/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactUtil.java | 36 public static void 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 | 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 | DeletedContactUtil.java | 35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { in queryDeletedTimestampForContactId() argument 39 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryDeletedTimestampForContactId()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_PhoneLookup.java | 65 public long contactId; field in ContactsContract_PhoneLookup.Id 68 public Id (long contactId, long dataId) { in Id() argument 69 this.contactId = contactId; in Id() 146 expected.put(PhoneLookup._ID, ids[0].contactId); in testPhoneLookup_found1() 147 expected.put(PhoneLookup.CONTACT_ID, ids[0].contactId); in testPhoneLookup_found1() 163 expected.put(PhoneLookup._ID, ids[1].contactId); in testPhoneLookup_found2() 164 expected.put(PhoneLookup.CONTACT_ID, ids[1].contactId); in testPhoneLookup_found2() 179 expected.put(PhoneLookup.CONTACT_ID, ids[2].contactId); in testPhoneLookup_sip_found() 206 expected.put(PhoneLookup._ID, ids[0].contactId); in testPhoneLookupEnterprise_found1() 207 expected.put(PhoneLookup.CONTACT_ID, ids[0].contactId); in testPhoneLookupEnterprise_found1() [all …]
|
D | ContactsProvider2_AccountRemovalTest.java | 118 long contactId = idList.get(0).mContactId; in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() local 120 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 124 while (ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId) == baseTime) { in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 126 "Contact " + contactId + " last updated timestamp has not been updated."); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated() 161 long contactId = NOT_MERGED; in assertMerged() local 162 while (contactId == NOT_MERGED) { in assertMerged() 167 contactId = checkMerged(rawContactId, rawContactId2); in assertMerged() 169 return contactId; in assertMerged() 173 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in checkMerged() local 175 if (contactId == contactId2) { in checkMerged() [all …]
|
D | ContactsContract_ContactsTest.java | 98 long contactId = contact.getId(); 101 Uri lookupUri = Contacts.getLookupUri(contactId, lookupKey); 103 lookupKey), contactId), lookupUri); 105 Uri nullLookupUri = Contacts.getLookupUri(contactId, null); 108 Uri emptyLookupUri = Contacts.getLookupUri(contactId, ""); 178 final long contactId = contact.getId(); 233 Contacts.getLookupUri(contactId, lookupKey),
|
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 | ContactsContract_RawContactsTest.java | 219 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in getContactLastUpdatedTimestampByRawContactId() local 220 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in getContactLastUpdatedTimestampByRawContactId() 222 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in getContactLastUpdatedTimestampByRawContactId()
|
D | ContactsContract_FrequentsStrequentsTest.java | 403 private void starContact(long contactId) { in starContact() argument 406 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 | 315 long contactId = rawContact.load().getContactId(); in testEntityProjection() local 318 String.valueOf(contactId)).appendPath( in testEntityProjection() 404 new long[]{contactId} in testEntityProjection()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ContactsTest.java | 94 String contactId; field in ContactsTest.ContactInfo 100 public ContactInfo(String contactId, String displayName, String photoUri, in ContactInfo() argument 102 this.contactId = contactId; in ContactInfo() 170 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound() 178 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound() 198 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfilePhoneAndEmailLookup_insertedAndfound() 206 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfilePhoneAndEmailLookup_insertedAndfound() 224 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound() 231 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound() 246 assertFalse(isEnterpriseContactId(contactInfo.contactId)); in testManagedProfileDuplicatedPhoneEmailContact_insertedAndfound() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | AttentionManagementVerifierActivity.java | 932 long contactId = c.getLong(idIdx); in lookupContact() local 933 return ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in lookupContact()
|