/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
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);
|
DatabaseAsserts.java | 75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 76 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); 78 return new ContactIdPair(contactId, rawContactId); 89 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 90 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); 92 return new ContactIdPair(contactId, rawContactId); 99 * @param contactId The contact id to check. 102 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, 104 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); 107 contactId); [all...] |
RawContactUtil.java | 76 public static List<String[]> queryByContactId(ContentResolver resolver, long contactId, 78 Uri uri = ContentUris.withAppendedId(URI, contactId); 105 long contactId = queryContactIdByRawContactId(resolver, rawContactid); 106 return contactId != CommonDatabaseUtils.NOT_FOUND;
|
DeletedContactUtil.java | 35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { 39 Uri uri = ContentUris.withAppendedId(URI, contactId);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
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);
|
DatabaseAsserts.java | 60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 61 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); 63 return new ContactIdPair(contactId, rawContactId); 70 * @param contactId The contact id to check. 73 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, 75 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); 78 contactId); 90 public ContactIdPair(long contactId, long rawContactId) { 91 this.mContactId = contactId;
|
DeletedContactUtil.java | 35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { 39 Uri uri = ContentUris.withAppendedId(URI, contactId);
|
RawContactUtil.java | 56 public static List<String[]> queryByContactId(ContentResolver resolver, long contactId, 58 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, contactId); 85 long contactId = queryContactIdByRawContactId(resolver, rawContactid); 86 return contactId != CommonDatabaseUtils.NOT_FOUND;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
ContactMatcher.java | 164 * contactId - MatchScore map. 174 public MatchScore(long contactId) { 175 this.mContactId = contactId; 178 public void reset(long contactId) { 179 this.mContactId = contactId; 251 private MatchScore getMatchingScore(long contactId) { 252 MatchScore matchingScore = mScores.get(contactId); 256 matchingScore.reset(contactId); 258 matchingScore = new MatchScore(contactId); 262 mScores.put(contactId, matchingScore) [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); 79 long contactId = queryContactId(rawContactId); 85 contactId, null, "\u695A\u8FAD \u695A\u8FAD CI \u8FAD CHUCI CC C", null); 115 long contactId = queryContactId(rawContactId); 120 assertSearchIndex(contactId, null, 179 long contactId = queryContactId(rawContactId); 190 assertSearchIndex(contactId, 197 long contactId = queryContactId(rawContactId); 201 assertSearchIndex(contactId, null, null, "8005554664 +18005554664 8005551234 +18005551234") [all...] |
GroupsTest.java | 232 final long contactId = this.queryContactId(rawContactId); 233 assertContactVisible(contactId, expected); 236 public void assertContactVisible(long contactId, boolean expected) { 239 }, Contacts._ID + "=" + contactId, null, null); 246 public ContentProviderOperation buildVisibleAssert(long contactId, boolean visible) { 248 Contacts._ID + "=" + contactId + " AND " + Contacts.IN_VISIBLE_GROUP + "=" 260 final long contactId = this.queryContactId(rawContactId); 261 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 269 oper.add(buildVisibleAssert(contactId, true)); 272 oper.add(buildVisibleAssert(contactId, true)) [all...] |
/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 deleteContact(db, contactId);
|
DeletedContactsTableUtil.java | 53 * @param contactId The contact id to insert. 56 public static long insertDeletedContact(SQLiteDatabase db, long contactId) { 58 values.put(ContactsContract.DeletedContacts.CONTACT_ID, contactId);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
ContactLoaderTest.java | 100 final long contactId = 1; 105 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 109 contactId); 113 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 117 assertEquals(contactId, contact.getId()); 129 final long contactId = 1; 137 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 140 contactId); 144 queries.fetchContactIdAndLookupFromRawContactUri(rawContactUri, contactId, lookupKey); 145 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey) [all...] |
/frameworks/ex/chips/src/com/android/ex/chips/ |
RecipientEntry.java | 80 int destinationType, String destinationLabel, long contactId, long dataId, 88 mContactId = contactId; 157 String destination, int destinationType, String destinationLabel, long contactId, 161 contactId, dataId, photoThumbnailUri, true, isValid, isGalContact); 165 String destination, int destinationType, String destinationLabel, long contactId, 169 contactId, dataId, (thumbnailUriAsString != null ? Uri.parse(thumbnailUriAsString) 175 String destinationLabel, long contactId, long dataId, String thumbnailUriAsString, 179 contactId, dataId, (thumbnailUriAsString != null ? Uri.parse(thumbnailUriAsString)
|
/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");
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
ContactAggregator.java | 503 long contactId = mDbHelper.getContactId(rawContactId); 505 if (contactId != 0) { 506 updateAggregateData(txContext, contactId); 561 private void markContactForAggregation(SQLiteDatabase db, long contactId) { 562 mSelectionArgs1[0] = String.valueOf(contactId); 628 long contactId = insertContact(db, rawContactId); 629 setContactId(rawContactId, contactId); 630 mDbHelper.updateContactVisible(txContext, contactId); 631 return contactId; 663 long contactId = 0 [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsProvider2_AccountRemovalTest.java | 117 long contactId = idList.get(0).mContactId; 119 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); 123 while (ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId) == baseTime) { 125 "Contact " + contactId + " last updated timestamp has not been updated."); 159 long contactId = NOT_MERGED; 160 while (contactId == NOT_MERGED) { 165 contactId = checkMerged(rawContactId, rawContactId2); 167 return contactId; 171 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); 173 if (contactId == contactId2) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 318 long contactId = findArbitraryContactWithPhoneNumber(); 319 if (contactId != -1) { 320 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 332 final long contactId = findArbitraryContactWithPhoneNumber(); 333 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 339 final long contactId = findArbitraryContactWithPhoneNumber(); 340 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 350 final long contactId = findArbitraryContactWithPhoneNumber(); 351 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 358 final long contactId = findArbitraryContactWithPhoneNumber() [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactLookupKey.java | 42 public long contactId; 45 if (contactId > another.contactId) { 48 if (contactId < another.contactId) { 250 segment.contactId = -1;
|
GlobalSearchSupport.java | 72 long contactId; 101 list.add(contactId); // _id 121 list.add(contactId); 146 return Contacts.getLookupUri(contactId, lookupKey).toString(); 150 contactId = 0; 211 long contactId; 213 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey); 215 contactId = -1L; 220 db, projection, ContactsColumns.CONCRETE_ID + "=" + contactId, filter, null, 258 suggestion.contactId = c.getLong(0) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
SuggestedMemberListAdapter.java | 118 public void addNewMember(long contactId) { 119 mExistingMemberContactIds.add(contactId); 122 public void removeMember(long contactId) { 123 if (mExistingMemberContactIds.contains(contactId)) { 124 mExistingMemberContactIds.remove(contactId); 218 long contactId = cursor.getLong(CONTACT_ID_COLUMN_INDEX); 220 if (mExistingMemberContactIds.contains(contactId)) { 226 contactId); 333 public SuggestedMember(long rawContactId, String displayName, long contactId) { 336 mContactId = contactId; [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionEngine.java | 72 public long contactId; 83 return "ID: " + contactId + " rawContacts: " + rawContacts + " name: " + name 143 public void setContactId(long contactId) { 144 if (contactId != mContactId) { 145 mContactId = contactId; 343 long contactId = cursor.getLong(0); 344 if (Arrays.binarySearch(mSuggestedContactIds, contactId) < 0) { 385 long contactId = mDataCursor.getLong(DataQuery.CONTACT_ID); 386 if (contactId != currentContactId) { 388 suggestion.contactId = contactId [all...] |
/frameworks/ex/chips/tests/src/com/android/ex/chips/ |
RecipientAlternatesAdapterTest.java | 77 long contactId, 83 contactId, dataId, photoUri, displayNameSource}); 92 long contactId, 102 assertEquals(contactId, c.getLong(4));
|