Home
last modified time | relevance | path

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

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
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 …]
DContactUtil.java36 public static int update(ContentResolver resolver, long contactId, in update() argument
38 Uri uri = ContentUris.withAppendedId(URI, contactId); in update()
42 public static void delete(ContentResolver resolver, long contactId) { in delete() argument
43 Uri uri = ContentUris.withAppendedId(URI, contactId); in delete()
47 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) { in recordExistsForContactId() argument
51 Uri uri = ContentUris.withAppendedId(URI, contactId); in recordExistsForContactId()
59 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) { in queryContactLastUpdatedTimestamp() argument
64 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId); in queryContactLastUpdatedTimestamp()
DDatabaseAsserts.java77 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContactWithName() local
78 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in assertAndCreateContactWithName()
80 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContactWithName()
91 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() local
92 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in assertAndCreateContact()
94 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContact()
104 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, in assertHasDeleteLogGreaterThan() argument
106 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); in assertHasDeleteLogGreaterThan()
109 contactId); in assertHasDeleteLogGreaterThan()
121 public ContactIdPair(long contactId, long rawContactId) { in ContactIdPair() argument
[all …]
DContactsProvider2_AccountRemovalTest.java231 long contactId = idList.get(0).mContactId; in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local
233 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
237 while (ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId) == baseTime) { in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
239 "Contact " + contactId + " last updated timestamp has not been updated."); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
274 long contactId = NOT_MERGED; in assertMerged() local
275 while (contactId == NOT_MERGED) { in assertMerged()
280 contactId = checkMerged(rawContactId, rawContactId2); in assertMerged()
282 return contactId; in assertMerged()
286 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in checkMerged() local
288 if (contactId == contactId2) { in checkMerged()
[all …]
DRawContactUtil.java78 public static List<String[]> queryByContactId(ContentResolver resolver, long contactId, in queryByContactId() argument
80 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryByContactId()
107 long contactId = queryContactIdByRawContactId(resolver, rawContactid); in rawContactExistsById() local
108 return contactId != CommonDatabaseUtils.NOT_FOUND; in rawContactExistsById()
DContactsContract_DeletedContacts.java124 long contactId = Long.parseLong(record[0]); in testQuerySinceTimestamp() local
125 assertFalse(beforeIds.contains(contactId)); in testQuerySinceTimestamp()
126 assertTrue(afterIds.contains(contactId)); in testQuerySinceTimestamp()
DDeletedContactUtil.java35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { in queryDeletedTimestampForContactId() argument
39 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryDeletedTimestampForContactId()
DContactsContract_ContactsTest.java104 long contactId = contact.getId(); in testLookupUri() local
107 Uri lookupUri = Contacts.getLookupUri(contactId, lookupKey); in testLookupUri()
109 lookupKey), contactId), lookupUri); in testLookupUri() local
111 Uri nullLookupUri = Contacts.getLookupUri(contactId, null); in testLookupUri()
114 Uri emptyLookupUri = Contacts.getLookupUri(contactId, ""); in testLookupUri()
345 final long contactId = contact.getId(); in testProjection() local
409 Contacts.getLookupUri(contactId, lookupKey), in testProjection()
DContactsContract_RawContactsTest.java293 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in getContactLastUpdatedTimestampByRawContactId() local
294 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in getContactLastUpdatedTimestampByRawContactId()
296 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in getContactLastUpdatedTimestampByRawContactId()
DContactsContract_FrequentsStrequentsTest.java391 private void starContact(long contactId) { in starContact() argument
394 mResolver.update(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), values, in starContact()
DContactsContract_PinnedPositionsTest.java338 private void assertValuesForContact(long contactId, ContentValues contentValues) { in assertValuesForContact() argument
340 buildUpon().appendEncodedPath(String.valueOf(contactId)).build(), contentValues); in assertValuesForContact()
DContactsContract_DataTest.java316 long contactId = rawContact.load().getContactId(); in testEntityProjection() local
319 String.valueOf(contactId)).appendPath( in testEntityProjection()
407 new long[]{contactId} in testEntityProjection()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DContactsTest.java98 String contactId; field in ContactsTest.ContactInfo
104 public ContactInfo(String contactId, String displayName, String photoUri, in ContactInfo() argument
106 this.contactId = contactId; in ContactInfo()
174 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
182 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
202 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
210 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
228 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
235 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
250 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfileDuplicatedPhoneEmailContact_insertedAndfound()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DEabBulkCapabilityUpdaterTest.java228 String contactId = String.valueOf(ContentUris.parseId(insertResult[0].uri)); in insertNewContactTest() local
244 assertEquals(contactId, eabContactId); in insertNewContactTest()
340 String contactId = cursor.getString(cursor.getColumnIndex( in updatePhoneNumber() local
347 new String[]{contactId}); in updatePhoneNumber()
416 String contactId = cursor.getString(cursor.getColumnIndex( in deletePhoneNumberOfContact() local
422 new String[]{contactId}); in deletePhoneNumberOfContact()
434 String contactId = cursor.getString(cursor.getColumnIndex( in cleanupTestContactFromContactProvider() local
438 new String[]{contactId}); in cleanupTestContactFromContactProvider()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DAttentionManagementVerifierActivity.java1176 long contactId = c.getLong(idIdx); in lookupContact() local
1177 return ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in lookupContact()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java406 long contactId = c.getLong(idIdx); in lookupContact() local
407 return ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in lookupContact()