Searched refs:RawContactUtil (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_RawContactsTest.java | 135 long rawContactid = RawContactUtil.insertRawContact(mResolver, in testRawContactDelete_setsDeleteFlag() 138 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_setsDeleteFlag() 140 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_setsDeleteFlag() 146 String[] result = RawContactUtil.queryByRawContactId(mResolver, rawContactid, in testRawContactDelete_setsDeleteFlag() 161 long rawContactid = RawContactUtil.insertRawContact(mResolver, account); in testRawContactDelete_localDeleteRemovesRecord() 162 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_localDeleteRemovesRecord() 165 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_localDeleteRemovesRecord() 167 assertFalse(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_localDeleteRemovesRecord() 173 long rawContactid = RawContactUtil.insertRawContact(mResolver, in testRawContactDelete_removesRecord() 175 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_removesRecord() [all …]
|
D | ContactsProvider2_AccountRemovalTest.java | 141 long deviceRawContactId = RawContactUtil in testAccountRemoval_doesNotDeleteLocalAccountContacts() 150 assertTrue(RawContactUtil.rawContactExistsById(mResolver, deviceRawContactId)); in testAccountRemoval_doesNotDeleteLocalAccountContacts() 172 long simRawContactId = RawContactUtil in testAccountRemoval_doesNotDeleteSimAccountContacts() 181 assertTrue(RawContactUtil.rawContactExistsById(mResolver, simRawContactId)); in testAccountRemoval_doesNotDeleteSimAccountContacts() 207 long secondSimSlotRawContactId = RawContactUtil in testRemoveSimAccount_deleteSimAccountContacts() 220 assertTrue(RawContactUtil.rawContactExistsById(mResolver, secondSimSlotRawContactId)); in testRemoveSimAccount_deleteSimAccountContacts() 286 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in checkMerged() 287 long contactId2 = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId2); in checkMerged() 337 if (!RawContactUtil.rawContactExistsById(mResolver, ids.mRawContactId)) { in assertContactsDeletedEventually()
|
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 | RawContactUtil.java | 32 public class RawContactUtil { class 98 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()
|