Home
last modified time | relevance | path

Searched refs:contactId (Results 1 – 25 of 393) sorted by relevance

12345678910>>...16

/aosp_15_r20/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProvider.java141 private static boolean shouldhaveAdditionalData(long contactId) { in shouldhaveAdditionalData() argument
142 return (contactId & 1) > 0; in shouldhaveAdditionalData()
146 private static int calculateIsSuperPrimary(long contactId) { in calculateIsSuperPrimary() argument
147 return ((contactId & 1) > 0) ? 1 : 0; in calculateIsSuperPrimary()
151 private static int calculateIsPrimary(long contactId) { in calculateIsPrimary() argument
152 return (((contactId >> 1) & 1) > 0) ? 1 : 0; in calculateIsPrimary()
156 private static void addEmail(long contactId, ContentValues values) { in addEmail() argument
158 values.put(Data._ID, contactId); in addEmail()
159 values.put(Data.IS_PRIMARY, calculateIsPrimary(contactId)); in addEmail()
160 values.put(Data.IS_SUPER_PRIMARY, calculateIsSuperPrimary(contactId)); in addEmail()
[all …]
/aosp_15_r20/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactMatcher.java161 private MatchScore getMatchingScore(long contactId) { in getMatchingScore() argument
162 MatchScore matchingScore = mScores.get(contactId); in getMatchingScore()
166 matchingScore.reset(contactId); in getMatchingScore()
168 matchingScore = new MatchScore(contactId); in getMatchingScore()
172 mScores.put(contactId, matchingScore); in getMatchingScore()
180 public void matchIdentity(long contactId) { in matchIdentity() argument
181 updatePrimaryScore(contactId, MatchScore.MAX_SCORE); in matchIdentity()
191 public void matchName(long contactId, int candidateNameType, String candidateName, in matchName() argument
199 updatePrimaryScore(contactId, maxScore); in matchName()
239 updatePrimaryScore(contactId, score); in matchName()
[all …]
DRawContactMatcher.java166 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { in getMatchingScore() argument
171 matchingScore.reset(rawContactId, contactId, accountId); in getMatchingScore()
173 matchingScore = new MatchScore(rawContactId, contactId, accountId); in getMatchingScore()
189 public void matchName(long rawContactId, long contactId, long accountId, int in matchName() argument
197 updatePrimaryScore(rawContactId, contactId, accountId, maxScore); in matchName()
237 updatePrimaryScore(rawContactId, contactId, accountId, score); in matchName()
240 public void matchIdentity(long rawContactId, long contactId, long accountId) { in matchIdentity() argument
241 updateSecondaryScore(rawContactId, contactId, accountId, IDENTITY_MATCH_SCORE); in matchIdentity()
244 public void updateScoreWithPhoneNumberMatch(long rawContactId, long contactId, long accountId) { in updateScoreWithPhoneNumberMatch() argument
245 updateSecondaryScore(rawContactId, contactId, accountId, PHONE_MATCH_SCORE); in updateScoreWithPhoneNumberMatch()
[all …]
DMatchScore.java38 public MatchScore(long rawContactId, long contactId, long accountId) { in MatchScore() argument
40 this.mContactId = contactId; in MatchScore()
44 public MatchScore(long contactId) { in MatchScore() argument
46 this.mContactId = contactId; in MatchScore()
50 public void reset(long rawContactId, long contactId, long accountId) { in reset() argument
52 this.mContactId = contactId; in reset()
61 public void reset(long contactId) { in reset() argument
62 this.reset(0l, contactId, 0l); in reset()
/aosp_15_r20/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java92 long contactId = -1; // Best matching contact ID. in aggregateContact() local
102 contactId = pickBestMatchBasedOnExceptions(db, rawContactId, matcher); in aggregateContact()
103 if (contactId == -1) { in aggregateContact()
109 contactId = pickBestMatchBasedOnData(db, rawContactId, candidates, matcher); in aggregateContact()
114 if (contactId != -1 && contactId != currentContactId) { in aggregateContact()
121 mSelectionArgs2[0] = String.valueOf(contactId); in aggregateContact()
157 contactId = -1; in aggregateContact()
179 if (contactId == -1 in aggregateContact()
183 contactId = currentContactId; in aggregateContact()
186 if (contactId == currentContactId) { in aggregateContact()
[all …]
DAbstractContactAggregator.java514 long contactId = mDbHelper.getContactId(rawContactId); in triggerAggregation() local
516 if (contactId != 0) { in triggerAggregation()
517 updateAggregateData(txContext, contactId); in triggerAggregation()
572 protected final void markContactForAggregation(SQLiteDatabase db, long contactId) { in markContactForAggregation() argument
573 mSelectionArgs1[0] = String.valueOf(contactId); in markContactForAggregation()
641 long contactId = insertContact(db, rawContactId); in onRawContactInsert() local
642 setContactId(rawContactId, contactId); in onRawContactInsert()
643 mDbHelper.updateContactVisible(txContext, contactId); in onRawContactInsert()
644 return contactId; in onRawContactInsert()
676 long contactId = 0; in aggregateContact() local
[all …]
DContactAggregator2.java334 Long contactId = null; in reAggregateRawContacts() local
343 contactId = currentCidForRawContact; in reAggregateRawContacts()
346 if (cid != null && !cid.equals(contactId)) { in reAggregateRawContacts()
359 contactId = currentContactId; in reAggregateRawContacts()
368 createContactForRawContacts(db, txContext, connectedRawContactIds, contactId); in reAggregateRawContacts()
407 private boolean canBeReused(SQLiteDatabase db, Long contactId, in canBeReused() argument
412 mSelectionArgs1[0] = String.valueOf(contactId); in canBeReused()
467 public void updateAggregationAfterVisibilityChange(long contactId) { in updateAggregationAfterVisibilityChange() argument
469 boolean visible = mDbHelper.isContactInDefaultDirectory(db, contactId); in updateAggregationAfterVisibilityChange()
471 markContactForAggregation(db, contactId); in updateAggregationAfterVisibilityChange()
[all …]
/aosp_15_r20/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java295 long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local
296 if (contactId != -1) { in onListItemClick()
297 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick()
305 final long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local
306 if (contactId != -1) { in onListItemClick()
307 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick()
314 final long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local
315 if (contactId != -1) { in onListItemClick()
316 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick()
327 final long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local
[all …]
/aosp_15_r20/out/soong/.intermediates/packages/apps/Dialer/Dialer/android_common/javac/anno/com/android/dialer/speeddial/database/
DAutoValue_SpeedDialEntry.java15 private final long contactId; field in AutoValue_SpeedDialEntry
25 long contactId, in AutoValue_SpeedDialEntry() argument
30 this.contactId = contactId; in AutoValue_SpeedDialEntry()
47 public long contactId() { in contactId() method in AutoValue_SpeedDialEntry
48 return contactId; in contactId()
67 + "contactId=" + contactId + ", " in toString()
82 && this.contactId == that.contactId() in equals()
97 h$ ^= (int) ((contactId >>> 32) ^ contactId); in hashCode()
113 private long contactId; field in AutoValue_SpeedDialEntry.Builder
122 this.contactId = source.contactId(); in Builder()
[all …]
/aosp_15_r20/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
H A DContactsTest.java109 String contactId; field in ContactsTest.ContactInfo
115 public ContactInfo(String contactId, String displayName, String photoUri, in ContactInfo() argument
117 this.contactId = contactId; in ContactInfo()
175 Contacts.CONTENT_URI.buildUpon().appendPath(contact.contactId).build(), null); in testRemoveAllUserContacts()
193 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
201 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
221 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
229 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
247 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
254 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
[all …]
/aosp_15_r20/out/soong/.intermediates/packages/apps/Dialer/Dialer/android_common/javac/anno/com/android/dialer/shortcuts/
DAutoValue_DialerShortcut.java9 private final long contactId; field in AutoValue_DialerShortcut
18 long contactId, in AutoValue_DialerShortcut() argument
22 this.contactId = contactId; in AutoValue_DialerShortcut()
30 return contactId; in getContactId()
53 + "contactId=" + contactId + ", " in toString()
67 return this.contactId == that.getContactId() in equals()
79 h$ ^= (int) ((contactId >>> 32) ^ contactId); in hashCode()
90 private long contactId; field in AutoValue_DialerShortcut.Builder
98 DialerShortcut.Builder setContactId(long contactId) { in setContactId() argument
99 this.contactId = contactId; in setContactId()
[all …]
/aosp_15_r20/out/soong/.intermediates/packages/apps/Dialer/Dialer/android_common/javac/anno/com/android/dialer/speeddial/loader/
DAutoValue_SpeedDialUiItem.java19 private final long contactId; field in AutoValue_SpeedDialUiItem
38 long contactId, in AutoValue_SpeedDialUiItem() argument
48 this.contactId = contactId; in AutoValue_SpeedDialUiItem()
74 public long contactId() { in contactId() method in AutoValue_SpeedDialUiItem
75 return contactId; in contactId()
115 + "contactId=" + contactId + ", " in toString()
135 && this.contactId == that.contactId() in equals()
156 h$ ^= (int) ((contactId >>> 32) ^ contactId); in hashCode()
181 private long contactId; field in AutoValue_SpeedDialUiItem.Builder
195 this.contactId = source.contactId(); in Builder()
[all …]
/aosp_15_r20/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSearchIndexManagerTest.java54 long contactId = queryContactId(rawContactId); in testSearchIndexForStructuredName() local
70 contactId, null, "John Doe Bob I Parr Helen I Parr PhD par helen parhelen", null); in testSearchIndexForStructuredName()
75 long contactId = queryContactId(rawContactId); in testSearchIndexForStructuredName_phoneticOnly() local
90 assertSearchIndex(contactId, null, "yamada taro", null); in testSearchIndexForStructuredName_phoneticOnly()
100 long contactId = queryContactId(rawContactId); in testSearchIndexForChineseName() local
106 contactId, null, "\u695A\u8FAD \u695A\u8FAD CI \u8FAD CHUCI CC C", null); in testSearchIndexForChineseName()
136 long contactId = queryContactId(rawContactId); in testSearchIndexForKoreanName() local
141 assertSearchIndex(contactId, null, in testSearchIndexForKoreanName()
200 long contactId = queryContactId(rawContactId); in testSearchIndexForOrganization() local
211 assertSearchIndex(contactId, in testSearchIndexForOrganization()
[all …]
DContactLookupKeyTest.java64 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingDisplayNameAndNoAccount() local
65 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount()
70 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount()
73 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId), in testLookupKeyUsingDisplayNameAndNoAccount()
74 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() local
77 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1), in testLookupKeyUsingDisplayNameAndNoAccount()
78 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() local
103 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingSourceIdAndNoAccount() local
104 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount()
108 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingSourceIdAndNoAccount()
[all …]
/aosp_15_r20/out/soong/.intermediates/packages/apps/Dialer/Dialer/android_common/javac/anno/com/android/dialer/searchfragment/cp2/
DAutoValue_Cp2Contact.java30 private final int contactId; field in AutoValue_Cp2Contact
50 int contactId, in AutoValue_Cp2Contact() argument
63 this.contactId = contactId; in AutoValue_Cp2Contact()
118 public int contactId() { in contactId() method in AutoValue_Cp2Contact
119 return contactId; in contactId()
151 + "contactId=" + contactId + ", " in toString()
174 && this.contactId == that.contactId() in equals()
204 h$ ^= contactId; in hashCode()
229 private int contactId; field in AutoValue_Cp2Contact.Builder
246 this.contactId = source.contactId(); in Builder()
[all …]
/aosp_15_r20/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DDatabaseAsserts.java70 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() local
71 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in assertAndCreateContact()
73 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContact()
85 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContactWithName() local
86 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in assertAndCreateContactWithName()
88 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContactWithName()
98 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, in assertHasDeleteLogGreaterThan() argument
100 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); in assertHasDeleteLogGreaterThan()
103 contactId); in assertHasDeleteLogGreaterThan()
115 public ContactIdPair(long contactId, long rawContactId) { in ContactIdPair() argument
[all …]
DContactUtil.java33 public static void update(ContentResolver resolver, long contactId, in update() argument
35 Uri uri = ContentUris.withAppendedId(URI, contactId); in update()
39 public static void delete(ContentResolver resolver, long contactId) { in delete() argument
40 Uri uri = ContentUris.withAppendedId(URI, contactId); in delete()
44 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) { in recordExistsForContactId() argument
48 Uri uri = ContentUris.withAppendedId(URI, contactId); in recordExistsForContactId()
56 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) { in queryContactLastUpdatedTimestamp() argument
61 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId); in queryContactLastUpdatedTimestamp()
/aosp_15_r20/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
H A DContactsContract_PhoneLookup.java64 public long contactId; field in ContactsContract_PhoneLookup.Id
67 public Id (long contactId, long dataId) { in Id() argument
68 this.contactId = contactId; in Id()
145 expected.put(PhoneLookup._ID, ids[0].contactId); in testPhoneLookup_found1()
146 expected.put(PhoneLookup.CONTACT_ID, ids[0].contactId); in testPhoneLookup_found1()
162 expected.put(PhoneLookup._ID, ids[1].contactId); in testPhoneLookup_found2()
163 expected.put(PhoneLookup.CONTACT_ID, ids[1].contactId); in testPhoneLookup_found2()
178 expected.put(PhoneLookup.CONTACT_ID, ids[2].contactId); in testPhoneLookup_sip_found()
205 expected.put(PhoneLookup._ID, ids[0].contactId); in testPhoneLookupEnterprise_found1()
206 expected.put(PhoneLookup.CONTACT_ID, ids[0].contactId); in testPhoneLookupEnterprise_found1()
[all …]
H A DContactsContract_ContactsTest.java111 long contactId = contact.getId(); in testLookupUri() local
114 Uri lookupUri = Contacts.getLookupUri(contactId, lookupKey); in testLookupUri()
116 lookupKey), contactId), lookupUri); in testLookupUri() local
118 Uri nullLookupUri = Contacts.getLookupUri(contactId, null); in testLookupUri()
121 Uri emptyLookupUri = Contacts.getLookupUri(contactId, ""); in testLookupUri()
142 long contactId = contact.getId(); in testQueryByAccount() local
145 assertContactFound(Contacts.CONTENT_URI, contactId); in testQueryByAccount()
150 .build(), contactId); in testQueryByAccount() local
158 .build(), contactId); in testQueryByAccount() local
163 .build(), contactId); in testQueryByAccount() local
[all …]
/aosp_15_r20/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java195 public static void showOrAddContact(final View view, final long contactId, in showOrAddContact() argument
198 if (contactId > ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED in showOrAddContact()
201 ContactsContract.Contacts.getLookupUri(contactId, contactLookupKey); in showOrAddContact()
413 private static CursorQueryData lookupStructuredName(final Context context, final long contactId, in lookupStructuredName() argument
421 .appendPath(String.valueOf(contactId)) in lookupStructuredName()
443 public static String lookupFirstName(final Context context, final long contactId) { in lookupFirstName() argument
444 if (isEnterpriseContactId(contactId)) { in lookupFirstName()
450 nameCursor = ContactUtil.lookupStructuredName(context, contactId, true) in lookupFirstName()
469 final String destinationLabel, final long contactId, final String lookupKey, in createRecipientEntry() argument
473 destination, destinationType, destinationLabel, contactId, null, dataId, in createRecipientEntry()
[all …]
/aosp_15_r20/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
H A DEABService.java465 Long contactId = Long.valueOf(cursor.getLong(cursor.getColumnIndex( in checkForContactNumberChanges() local
474 " contactId : " + contactId in checkForContactNumberChanges()
476 verifyInsertOrUpdateAction(dataId, contactId, rawContactId, phoneNumber, in checkForContactNumberChanges()
511 private void verifyInsertOrUpdateAction(Long dataId, Long contactId, in verifyInsertOrUpdateAction() argument
525 + " ='" + contactId.toString() + "'"; in verifyInsertOrUpdateAction()
549 handlePhoneNumberChanged(dataId, contactId, rawContactId, in verifyInsertOrUpdateAction()
553 handlePhoneNameUpdate(dataId, contactId, rawContactId, in verifyInsertOrUpdateAction()
564 handlePhoneNumberInsertion(dataId, contactId, rawContactId, phoneNumber, in verifyInsertOrUpdateAction()
727 Long contactId = Long.valueOf(cursor.getLong(cursor in checkForDeletedContact() local
729 logger.debug("contactId : " + contactId); in checkForDeletedContact()
[all …]
/aosp_15_r20/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/
DEabUtil.java130 int contactId = getEabContactId(contact, context); in removeContactFromEab() local
131 if (contactId == -1) { in removeContactFromEab()
134 int commonId = getEabCommonId(contactId, context); in removeContactFromEab()
135 count += removeContactCapabilities(contactId, commonId, context); in removeContactFromEab()
141 int contactId = -1; in getEabContactId() local
151 contactId = cursor.getInt(cursor.getColumnIndex(EabProvider.ContactColumns._ID)); in getEabContactId()
160 return contactId; in getEabContactId()
163 private static int getEabCommonId(int contactId, Context context) { in getEabCommonId() argument
171 new String[] { String.valueOf(contactId) }, null); in getEabCommonId()
185 private static int removeContactCapabilities(int contactId, int commonId, Context context) { in removeContactCapabilities() argument
[all …]
/aosp_15_r20/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEntry.java102 int destinationType, String destinationLabel, long contactId, Long directoryId, in RecipientEntry() argument
106 destinationLabel, contactId, directoryId, dataId, photoThumbnailUri, in RecipientEntry()
111 int destinationType, String destinationLabel, long contactId, Long directoryId, in RecipientEntry() argument
120 mContactId = contactId; in RecipientEntry()
134 int destinationType, String destinationLabel, long contactId, Long directoryId, in RecipientEntry() argument
138 contactId, directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid, in RecipientEntry()
191 String destination, int destinationType, String destinationLabel, long contactId, in constructTopLevelEntry() argument
196 contactId, directoryId, dataId, photoThumbnailUri, true, isValid, lookupKey, in constructTopLevelEntry()
201 String destination, int destinationType, String destinationLabel, long contactId, in constructTopLevelEntry() argument
206 contactId, directoryId, dataId, (thumbnailUriAsString != null in constructTopLevelEntry()
[all …]
/aosp_15_r20/out/soong/.intermediates/packages/providers/ContactsProvider/ContactsProvider/android_common/repackaged-jarjar/javac/
DContactsProvider.jarcom/android/providers/contacts/util/UserUtils.class UserUtils.java package com. ...
/aosp_15_r20/out/soong/.intermediates/packages/providers/ContactsProvider/ContactsProvider/android_common/javac/
DContactsProvider.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...

12345678910>>...16