/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_PhoneLookup.java | 64 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 …]
|
D | ContactUtil.java | 36 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()
|
D | ContactsProvider2_AccountRemovalTest.java | 110 long contactId = idList.get(0).mContactId; in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local 112 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 116 while (ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId) == baseTime) { in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 118 "Contact " + contactId + " last updated timestamp has not been updated."); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 153 long contactId = NOT_MERGED; in assertMerged() local 154 while (contactId == NOT_MERGED) { in assertMerged() 159 contactId = checkMerged(rawContactId, rawContactId2); in assertMerged() 161 return contactId; in assertMerged() 165 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in checkMerged() local 167 if (contactId == contactId2) { in checkMerged() [all …]
|
D | DatabaseAsserts.java | 77 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 …]
|
D | RawContactUtil.java | 76 public static List<String[]> queryByContactId(ContentResolver resolver, long contactId, in queryByContactId() argument 78 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryByContactId() 105 long contactId = queryContactIdByRawContactId(resolver, rawContactid); in rawContactExistsById() local 106 return contactId != CommonDatabaseUtils.NOT_FOUND; in rawContactExistsById()
|
D | ContactsContract_ContactsTest.java | 104 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() 258 final long contactId = contact.getId(); in testProjection() local 322 Contacts.getLookupUri(contactId, lookupKey), in testProjection()
|
D | ContactsContract_DeletedContacts.java | 124 long contactId = Long.parseLong(record[0]); in testQuerySinceTimestamp() local 125 assertFalse(beforeIds.contains(contactId)); in testQuerySinceTimestamp() 126 assertTrue(afterIds.contains(contactId)); in testQuerySinceTimestamp()
|
D | DeletedContactUtil.java | 35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { in queryDeletedTimestampForContactId() argument 39 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryDeletedTimestampForContactId()
|
D | ContactsContract_RawContactsTest.java | 214 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in getContactLastUpdatedTimestampByRawContactId() local 215 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in getContactLastUpdatedTimestampByRawContactId() 217 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in getContactLastUpdatedTimestampByRawContactId()
|
D | ContactsContract_FrequentsStrequentsTest.java | 391 private void starContact(long contactId) { in starContact() argument 394 mResolver.update(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), values, in starContact()
|
D | ContactsContract_PinnedPositionsTest.java | 338 private void assertValuesForContact(long contactId, ContentValues contentValues) { in assertValuesForContact() argument 340 buildUpon().appendEncodedPath(String.valueOf(contactId)).build(), contentValues); in assertValuesForContact()
|
D | ContactsContract_DataTest.java | 316 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/ |
D | ContactsTest.java | 98 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/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | AttentionManagementVerifierActivity.java | 1185 long contactId = c.getLong(idIdx); in lookupContact() local 1186 return ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in lookupContact()
|
/cts/tests/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 249 long contactId = c.getLong(idIdx); in lookupContact() local 250 return ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in lookupContact()
|