HomeSort by relevance Sort by last modified time
    Searched refs:contactId (Results 1 - 25 of 174) sorted by null

1 2 3 4 5 6 7

  /packages/apps/Contacts/src/com/android/contacts/compat/
PinnedPositionsCompat.java 41 public static void undemote(ContentResolver contentResolver, long contactId) {
46 PinnedPositions.undemote(contentResolver, contactId);
50 String.valueOf(contactId), null);
ContactsCompat.java 52 public static boolean isEnterpriseContactId(long contactId) {
54 return Contacts.isEnterpriseContactId(contactId);
57 return (contactId >= ENTERPRISE_CONTACT_ID_BASE) &&
58 (contactId < ContactsContract.Profile.MIN_ID);
  /packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DatabaseAsserts.java 60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId);
61 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId);
63 return new ContactIdPair(contactId, rawContactId);
75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId);
76 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId);
78 return new ContactIdPair(contactId, rawContactId);
85 * @param contactId The contact id to check.
88 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId,
90 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId));
93 contactId);
    [all...]
ContactUtil.java 33 public static void update(ContentResolver resolver, long contactId,
35 Uri uri = ContentUris.withAppendedId(URI, contactId);
39 public static void delete(ContentResolver resolver, long contactId) {
40 Uri uri = ContentUris.withAppendedId(URI, contactId);
44 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) {
48 Uri uri = ContentUris.withAppendedId(URI, contactId);
56 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) {
61 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
MatchScore.java 38 public MatchScore(long rawContactId, long contactId, long accountId) {
40 this.mContactId = contactId;
44 public MatchScore(long contactId) {
46 this.mContactId = contactId;
50 public void reset(long rawContactId, long contactId, long accountId) {
52 this.mContactId = contactId;
61 public void reset(long contactId) {
62 this.reset(0l, contactId, 0l);
ContactMatcher.java 163 private MatchScore getMatchingScore(long contactId) {
164 MatchScore matchingScore = mScores.get(contactId);
168 matchingScore.reset(contactId);
170 matchingScore = new MatchScore(contactId);
174 mScores.put(contactId, matchingScore);
182 public void matchIdentity(long contactId) {
183 updatePrimaryScore(contactId, MatchScore.MAX_SCORE);
193 public void matchName(long contactId, int candidateNameType, String candidateName,
201 updatePrimaryScore(contactId, maxScore);
241 updatePrimaryScore(contactId, score)
    [all...]
RawContactMatcher.java 168 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) {
173 matchingScore.reset(rawContactId, contactId, accountId);
175 matchingScore = new MatchScore(rawContactId, contactId, accountId);
191 public void matchName(long rawContactId, long contactId, long accountId, int
199 updatePrimaryScore(rawContactId, contactId, accountId, maxScore);
239 updatePrimaryScore(rawContactId, contactId, accountId, score);
242 public void matchIdentity(long rawContactId, long contactId, long accountId) {
243 updateSecondaryScore(rawContactId, contactId, accountId, IDENTITY_MATCH_SCORE);
246 public void updateScoreWithPhoneNumberMatch(long rawContactId, long contactId, long accountId) {
247 updateSecondaryScore(rawContactId, contactId, accountId, PHONE_MATCH_SCORE)
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/
ContactsUtils.java 52 * @param contactId contact id
57 * directoryId and contactId as ContactsProvider can only access current and work user's
60 public static @UserType long determineUserType(Long directoryId, Long contactId) {
68 if (contactId != null && contactId != 0L && Contacts.isEnterpriseContactId(contactId)) {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
BugleRecipientEntry.java 32 final long contactId, final Long directoryId, final long dataId,
35 super(entryType, displayName, destination, destinationType, destinationLabel, contactId,
41 final String destinationLabel, final long contactId, final Long directoryId,
45 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null
51 final String destinationLabel, final long contactId, final Long directoryId,
55 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactUtil.java 36 public static void update(ContentResolver resolver, long contactId,
38 Uri uri = ContentUris.withAppendedId(URI, contactId);
42 public static void delete(ContentResolver resolver, long contactId) {
43 Uri uri = ContentUris.withAppendedId(URI, contactId);
47 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) {
51 Uri uri = ContentUris.withAppendedId(URI, contactId);
59 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) {
64 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId);
ContactsContract_PhoneLookup.java 64 public long contactId;
67 public Id (long contactId, long dataId) {
68 this.contactId = contactId;
145 expected.put(PhoneLookup._ID, ids[0].contactId);
146 expected.put(PhoneLookup.CONTACT_ID, ids[0].contactId);
162 expected.put(PhoneLookup._ID, ids[1].contactId);
163 expected.put(PhoneLookup.CONTACT_ID, ids[1].contactId);
178 expected.put(PhoneLookup.CONTACT_ID, ids[2].contactId);
205 expected.put(PhoneLookup._ID, ids[0].contactId);
    [all...]
ContactsProvider2_AccountRemovalTest.java 118 long contactId = idList.get(0).mContactId;
120 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId);
124 while (ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId) == baseTime) {
126 "Contact " + contactId + " last updated timestamp has not been updated.");
161 long contactId = NOT_MERGED;
162 while (contactId == NOT_MERGED) {
167 contactId = checkMerged(rawContactId, rawContactId2);
169 return contactId;
173 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId);
175 if (contactId == contactId2)
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactLookupKeyTest.java 54 long contactId = queryContactId(rawContactId1);
55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
60 assertStoredValue(lookupUri, Contacts._ID, contactId);
63 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId),
64 Contacts._ID, contactId);
67 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1),
68 Contacts._ID, contactId);
89 long contactId = queryContactId(rawContactId1);
90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
94 assertStoredValue(lookupUri, Contacts._ID, contactId);
    [all...]
SearchIndexManagerTest.java 53 long contactId = queryContactId(rawContactId);
69 contactId, null, "John Doe Bob I Parr Helen I Parr PhD par helen parhelen", null);
74 long contactId = queryContactId(rawContactId);
89 assertSearchIndex(contactId, null, "yamada taro", null);
99 long contactId = queryContactId(rawContactId);
105 contactId, null, "\u695A\u8FAD \u695A\u8FAD CI \u8FAD CHUCI CC C", null);
135 long contactId = queryContactId(rawContactId);
140 assertSearchIndex(contactId, null,
199 long contactId = queryContactId(rawContactId);
210 assertSearchIndex(contactId,
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/list/
MultiSelectEntryContactListAdapter.java 130 * Toggle the checkbox beside the contact for {@param contactId}.
132 public void toggleSelectionOfContactId(long contactId) {
133 if (mSelectedContactIds.contains(contactId)) {
134 mSelectedContactIds.remove(contactId);
136 mSelectedContactIds.add(contactId);
190 final long contactId = cursor.getLong(mContactIdColumnIndex);
191 checkBox.setChecked(mSelectedContactIds.contains(contactId));
193 checkBox.setTag(contactId);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
ContactsTableUtil.java 58 public static void updateContactLastUpdateByContactId(SQLiteDatabase db, long contactId) {
63 new String[] {String.valueOf(contactId)});
109 * @param contactId The contact id to delete.
112 public static int deleteContact(SQLiteDatabase db, long contactId) {
113 DeletedContactsTableUtil.insertDeletedContact(db, contactId);
114 return db.delete(Tables.CONTACTS, Contacts._ID + " = ?", new String[]{contactId + ""});
134 long contactId = cursor.getLong(0);
139 return deleteContact(db, contactId);
  /packages/apps/Dialer/java/com/android/dialer/contactsfragment/
ContactViewHolder.java 43 private long contactId;
64 String headerText, String displayName, Uri contactUri, long contactId, boolean showHeader) {
67 this.contactId = contactId;
93 onContactSelectedListener.onContactSelected(photo, contactUri, contactId);
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
AllIntentsActivity.java 295 long contactId = findArbitraryContactWithPhoneNumber();
296 if (contactId != -1) {
297 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
305 final long contactId = findArbitraryContactWithPhoneNumber();
306 if (contactId != -1) {
307 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
314 final long contactId = findArbitraryContactWithPhoneNumber();
315 if (contactId != -1) {
316 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
327 final long contactId = findArbitraryContactWithPhoneNumber()
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
ContactAggregator.java 94 long contactId = -1; // Best matching contact ID.
104 contactId = pickBestMatchBasedOnExceptions(db, rawContactId, matcher);
105 if (contactId == -1) {
111 contactId = pickBestMatchBasedOnData(db, rawContactId, candidates, matcher);
116 if (contactId != -1 && contactId != currentContactId) {
118 // [contactId] excluding raw_contact [rawContactId].
123 mSelectionArgs2[0] = String.valueOf(contactId);
159 contactId = -1;
181 if (contactId == -
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
ContactRecipientEntryUtils.java 62 final long contactId) {
66 final Uri avatarUri = contactId == CONTACT_ID_SENDTO_DESTINATION ?
69 destination, RecipientEntry.INVALID_DESTINATION_TYPE, null, contactId,
70 null, contactId, avatarUri, true, null);
ContactUtil.java 190 * @param contactId The id of the contact in the android contacts DB
195 public static void showOrAddContact(final View view, final long contactId,
198 if (contactId > ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED
201 ContactsContract.Contacts.getLookupUri(contactId, contactLookupKey);
413 private static CursorQueryData lookupStructuredName(final Context context, final long contactId,
421 .appendPath(String.valueOf(contactId))
443 public static String lookupFirstName(final Context context, final long contactId) {
444 if (isEnterpriseContactId(contactId)) {
450 nameCursor = ContactUtil.lookupStructuredName(context, contactId, true)
469 final String destinationLabel, final long contactId, final String lookupKey
    [all...]
  /development/samples/BusinessCard/src/com/example/android/businesscard/
ContactAccessorSdk5.java 60 long contactId = -1;
67 contactId = cursor.getLong(0);
77 Phone.CONTACT_ID + "=" + contactId, null, Phone.IS_SUPER_PRIMARY + " DESC");
  /frameworks/opt/chips/src/com/android/ex/chips/
RecipientEntry.java 102 int destinationType, String destinationLabel, long contactId, Long directoryId,
106 destinationLabel, contactId, directoryId, dataId, photoThumbnailUri,
111 int destinationType, String destinationLabel, long contactId, Long directoryId,
120 mContactId = contactId;
134 int destinationType, String destinationLabel, long contactId, Long directoryId,
138 contactId, directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid,
191 String destination, int destinationType, String destinationLabel, long contactId,
196 contactId, directoryId, dataId, photoThumbnailUri, true, isValid, lookupKey,
201 String destination, int destinationType, String destinationLabel, long contactId,
206 contactId, directoryId, dataId, (thumbnailUriAsString != nul
    [all...]
  /packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
AccountImageChangeObserver.java 145 long contactId = getContactIdForAccount(context, thisAccount);
146 if (contactId != -1) {
148 contactId);
172 long contactId = -1;
178 contactId = c.getLong(1);
187 if (contactId != -1 && !TextUtils.isEmpty(lookupKey)) {
188 return contactId;
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactLookupKey.java 40 public long contactId;
43 if (contactId > another.contactId) {
46 if (contactId < another.contactId) {
251 segment.contactId = -1;

Completed in 324 milliseconds

1 2 3 4 5 6 7