Searched refs:RawContactUtil (Results 1 – 9 of 9) sorted by relevance
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_RawContactsTest.java | 124 long rawContactid = RawContactUtil.insertRawContact(mResolver, in testRawContactDelete_setsDeleteFlag() 127 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_setsDeleteFlag() 129 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_setsDeleteFlag() 135 String[] result = RawContactUtil.queryByRawContactId(mResolver, rawContactid, in testRawContactDelete_setsDeleteFlag() 145 long rawContactid = RawContactUtil.insertRawContact(mResolver, in testRawContactDelete_removesRecord() 147 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_removesRecord() 149 RawContactUtil.delete(mResolver, rawContactid, true); in testRawContactDelete_removesRecord() 151 assertFalse(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_removesRecord() 168 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactCreate_updatesContactUpdatedTimestamp() 178 RawContactUtil.update(mResolver, ids.mRawContactId, values); in testRawContactUpdate_updatesContactUpdatedTimestamp() [all …]
|
D | ContactsContract_DataUsageTest.java | 72 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testSingleDataUsageFeedback_incrementsCorrectDataItems() 86 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems() 168 assertEquals(1, RawContactUtil.update(mResolver, rawContact.getId(), values)); in testUsageUpdate() 176 assertEquals(1, RawContactUtil.update(mResolver, rawContact.getId(), values)); in testUsageUpdate() 187 assertEquals(1, RawContactUtil.update(mResolver, rawContact.getId(), values)); in testUsageUpdate()
|
D | DatabaseAsserts.java | 75 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account, name); in assertAndCreateContactWithName() 77 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContactWithName() 89 long rawContactId = RawContactUtil.createRawContactWithAutoGeneratedName(resolver, account); in assertAndCreateContact() 91 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact()
|
D | ContactsContract_ContactsTest.java | 138 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactDelete_hasDeleteLog() 148 List<String[]> records = RawContactUtil.queryByContactId(mResolver, ids.mContactId, in testContactDelete_marksRawContactsForDeletion() 156 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactDelete_marksRawContactsForDeletion() 174 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactUpdate_updatesContactUpdatedTimestamp()
|
D | ContactsProvider2_AccountRemovalTest.java | 165 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in checkMerged() 166 long contactId2 = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId2); in checkMerged() 216 if (!RawContactUtil.rawContactExistsById(mResolver, ids.mRawContactId)) { in assertContactsDeletedEventually()
|
D | RawContactUtil.java | 32 public class RawContactUtil { class 96 String[] result = RawContactUtil.queryByRawContactId(resolver, rawContactid, in queryContactIdByRawContactId()
|
D | ContactsContract_DeletedContacts.java | 29 import android.provider.cts.contacts.RawContactUtil; 138 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in createAndDeleteContact()
|
D | ContactsContract_PinnedPositionsTest.java | 36 import android.provider.cts.contacts.RawContactUtil; 229 final long cId1 = RawContactUtil.queryContactIdByRawContactId(mResolver, i1.mRawContactId); in testPinnedPositionsAfterJoinAndSplit() 230 final long cId4 = RawContactUtil.queryContactIdByRawContactId(mResolver, i4.mRawContactId); in testPinnedPositionsAfterJoinAndSplit()
|
D | ContactsContract_DataTest.java | 581 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testDataInsert_updatesContactLastUpdatedTimestamp() 598 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testDataDelete_updatesContactLastUpdatedTimestamp() 680 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testDataUpdate_updatesContactLastUpdatedTimestamp()
|