Home
last modified time | relevance | path

Searched refs:ContactIdPair (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsProvider2_AccountRemovalTest.java23 import android.provider.cts.contacts.DatabaseAsserts.ContactIdPair;
66 ArrayList<ContactIdPair> acc1Ids = createContacts(ACCT_1, 5); in testAccountRemoval_deletesContacts()
67 ArrayList<ContactIdPair> acc2Ids = createContacts(ACCT_2, 15); in testAccountRemoval_deletesContacts()
79 ArrayList<ContactIdPair> acc1Ids = createContacts(ACCT_1, 5); in testAccountRemoval_hasDeleteLogsForContacts()
80 ArrayList<ContactIdPair> acc2Ids = createContacts(ACCT_2, 15); in testAccountRemoval_hasDeleteLogsForContacts()
97 List<ContactIdPair> idList = createAndAssertMergedContact(ACCT_1, ACCT_1); in testAccountRemovalWithMergedContact_deletesContacts()
109 List<ContactIdPair> idList = createAndAssertMergedContact(ACCT_1, ACCT_2); in testAccountRemovalWithMergedContact_doesNotDeleteContactAndTimestampUpdated()
126 List<ContactIdPair> idList = createAndAssertMergedContact(ACCT_1, ACCT_1); in testAccountRemovalWithMergedContact_hasDeleteLogsForContacts()
132 private List<ContactIdPair> createAndAssertMergedContact(Account acct, Account acct2) { in createAndAssertMergedContact()
133 ContactIdPair ids1 = DatabaseAsserts.assertAndCreateContactWithName(mResolver, acct, in createAndAssertMergedContact()
[all …]
DContactsContract_DeletedContacts.java19 import static android.provider.cts.contacts.DatabaseAsserts.ContactIdPair;
61 ContactIdPair ids = createAndDeleteContact(); in testQuery_returnsProperColumns()
79 ContactIdPair ids = createAndDeleteContact(); in testQueryByContactId()
133 private ContactIdPair createAndDeleteContact() { in createAndDeleteContact()
134 ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in createAndDeleteContact()
DContactsContract_PinnedPositionsTest.java62 final DatabaseAsserts.ContactIdPair i1 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
63 final DatabaseAsserts.ContactIdPair i2 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
64 final DatabaseAsserts.ContactIdPair i3 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
65 final DatabaseAsserts.ContactIdPair i4 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
140 final DatabaseAsserts.ContactIdPair i1 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsAfterJoinAndSplit()
141 final DatabaseAsserts.ContactIdPair i2 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsAfterJoinAndSplit()
142 final DatabaseAsserts.ContactIdPair i3 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsAfterJoinAndSplit()
143 final DatabaseAsserts.ContactIdPair i4 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsAfterJoinAndSplit()
144 final DatabaseAsserts.ContactIdPair i5 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsAfterJoinAndSplit()
145 final DatabaseAsserts.ContactIdPair i6 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsAfterJoinAndSplit()
[all …]
DDatabaseAsserts.java64 public static ContactIdPair assertAndCreateContact(ContentResolver resolver) { in assertAndCreateContact()
73 public static ContactIdPair assertAndCreateContactWithName(ContentResolver resolver, in assertAndCreateContactWithName()
80 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContactWithName()
88 public static ContactIdPair assertAndCreateContact(ContentResolver resolver, Account account) { in assertAndCreateContact()
94 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContact()
117 public static class ContactIdPair { class in DatabaseAsserts
121 public ContactIdPair(long contactId, long rawContactId) { in ContactIdPair() method in DatabaseAsserts.ContactIdPair
DContactsContract_ContactsTest.java134 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_hasDeleteLog()
142 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_marksRawContactsForDeletion()
160 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testContactUpdate_updatesContactUpdatedTimestamp()
333 private DatabaseAsserts.ContactIdPair assertContactCreateDelete() { in assertContactCreateDelete()
334 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in assertContactCreateDelete()
DContactsContract_RawContactsTest.java161 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactCreate_updatesContactUpdatedTimestamp()
172 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactUpdate_updatesContactUpdatedTimestamp()
188 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactPsuedoDelete_hasDeleteLogForContact()
201 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactDelete_hasDeleteLogForContact()
DContactsContract_DataUsageTest.java58 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testSingleDataUsageFeedback_incrementsCorrectDataItems()
76 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems()
DContactsContract_DataTest.java571 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testDataInsert_updatesContactLastUpdatedTimestamp()
585 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testDataDelete_updatesContactLastUpdatedTimestamp()
666 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testDataUpdate_updatesContactLastUpdatedTimestamp()