/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...] |
/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);
|
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;
|
/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...] |
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);
|
/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 | 504 long contactId = mDbHelper.getContactId(rawContactId); 506 if (contactId != 0) { 507 updateAggregateData(txContext, contactId); 562 private void markContactForAggregation(SQLiteDatabase db, long contactId) { 563 mSelectionArgs1[0] = String.valueOf(contactId); 629 long contactId = insertContact(db, rawContactId); 630 setContactId(rawContactId, contactId); 631 mDbHelper.updateContactVisible(txContext, contactId); 632 return contactId; 664 long contactId = 0 [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
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/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 324 long contactId = findArbitraryContactWithPhoneNumber(); 325 if (contactId != -1) { 326 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 338 final long contactId = findArbitraryContactWithPhoneNumber(); 339 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 345 final long contactId = findArbitraryContactWithPhoneNumber(); 346 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 356 final long contactId = findArbitraryContactWithPhoneNumber(); 357 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 364 final long contactId = findArbitraryContactWithPhoneNumber() [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
AccountImageChangeObserver.java | 147 long contactId = getContactIdForAccount(context, thisAccount); 148 if (contactId != -1) { 150 contactId); 174 long contactId = -1; 180 contactId = c.getLong(1); 189 if (contactId != -1 && !TextUtils.isEmpty(lookupKey)) { 190 return contactId;
|
AccountImageHelper.java | 67 long contactId = -1; 76 contactId = c.getLong(1); 88 if (contactId != -1 && !TextUtils.isEmpty(lookupKey) && !TextUtils.isEmpty(photoUri)) {
|
/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...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
RecipientEntry.java | 83 int destinationType, String destinationLabel, long contactId, Long directoryId, 92 mContactId = contactId; 162 String destination, int destinationType, String destinationLabel, long contactId, 167 contactId, directoryId, dataId, photoThumbnailUri, true, isValid, lookupKey); 171 String destination, int destinationType, String destinationLabel, long contactId, 176 contactId, directoryId, dataId, (thumbnailUriAsString != null 182 String destinationLabel, long contactId, Long directoryId, long dataId, 186 contactId, directoryId, dataId, (thumbnailUriAsString != null
|
/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 final long contactId = cursor.getLong(0); 345 Arrays.binarySearch(mSuggestedContactIds, contactId) < 0) { 348 newIds.add(contactId); 384 long contactId = mDataCursor.getLong(DataQuery.CONTACT_ID); 385 if (contactId != currentContactId) [all...] |
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
RecipientAlternatesAdapterTest.java | 82 long contactId, 88 contactId, dataId, photoUri, displayNameSource}); 97 long contactId, 107 assertEquals(contactId, c.getLong(4));
|