Home
last modified time | relevance | path

Searched refs:DatabaseAsserts (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_PinnedPositionsTest.java35 import android.provider.cts.contacts.DatabaseAsserts;
62 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()
[all …]
DContactsContract_ContactsTest.java125 DatabaseAsserts.assertInsertIsUnsupported(mResolver, Contacts.CONTENT_URI); in testInsert_isUnsupported()
134 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_hasDeleteLog()
135 DatabaseAsserts.assertHasDeleteLogGreaterThan(mResolver, ids.mContactId, start); in testContactDelete_hasDeleteLog()
142 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_marksRawContactsForDeletion()
160 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testContactUpdate_updatesContactUpdatedTimestamp()
298 DatabaseAsserts.checkProjection(mResolver, in testProjection()
305 DatabaseAsserts.checkProjection(mResolver, in testProjection()
312 DatabaseAsserts.checkProjection(mResolver, in testProjection()
321 DatabaseAsserts.checkProjection(mResolver, in testProjection()
333 private DatabaseAsserts.ContactIdPair assertContactCreateDelete() { in assertContactCreateDelete()
[all …]
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()
194 DatabaseAsserts.assertHasDeleteLogGreaterThan(mResolver, ids.mContactId, baseTime); in testRawContactPsuedoDelete_hasDeleteLogForContact()
201 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactDelete_hasDeleteLogForContact()
207 DatabaseAsserts.assertHasDeleteLogGreaterThan(mResolver, ids.mContactId, baseTime); in testRawContactDelete_hasDeleteLogForContact()
229 DatabaseAsserts.checkProjection(mResolver, RawContacts.CONTENT_URI, in testProjection()
DContactsContract_DeletedContacts.java19 import static android.provider.cts.contacts.DatabaseAsserts.ContactIdPair;
27 import android.provider.cts.contacts.DatabaseAsserts;
49 DatabaseAsserts.assertDeleteIsUnsupported(mResolver, URI); in testDelete_isUnsupported()
52 DatabaseAsserts.assertDeleteIsUnsupported(mResolver, uri); in testDelete_isUnsupported()
56 DatabaseAsserts.assertInsertIsUnsupported(mResolver, URI); in testInsert_isUnsupported()
134 ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in createAndDeleteContact()
DContactsContract_AggregationSuggestionsTest.java75 DatabaseAsserts.assertCursorValuesMatchExactly(cursor, values); in testAggregationSuggestionsByNameReversed()
97 DatabaseAsserts.assertCursorValuesMatchExactly(cursor, values); in testAggregationSuggestionsByName()
134 DatabaseAsserts.assertCursorValuesMatchExactly(cursor, values); in testAggregationSuggestionsByName_matchSecondNameParameter()
155 DatabaseAsserts.assertCursorValuesMatchExactly(cursor, values); in testAggregationSuggestionsByName_matchFirstNameParameter()
DContactsContract_DataUsageTest.java58 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testSingleDataUsageFeedback_incrementsCorrectDataItems()
76 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems()
DContactsProvider2_AccountRemovalTest.java23 import android.provider.cts.contacts.DatabaseAsserts.ContactIdPair;
133 ContactIdPair ids1 = DatabaseAsserts.assertAndCreateContactWithName(mResolver, acct, in createAndAssertMergedContact()
137 ContactIdPair ids2 = DatabaseAsserts.assertAndCreateContactWithName(mResolver, acct2, in createAndAssertMergedContact()
241 accountIds.add(DatabaseAsserts.assertAndCreateContact(mResolver, account)); in createContacts()
DContactsContract_FrequentsStrequentsTest.java253 DatabaseAsserts.checkProjection(mResolver, Contacts.CONTENT_STREQUENT_URI, in testStrequents_projection()
259 DatabaseAsserts.checkProjection(mResolver, in testStrequents_projection()
316 DatabaseAsserts.checkProjection(mResolver, uri, in testStrequents_phoneOnly_projection()
350 DatabaseAsserts.checkProjection(mResolver, Contacts.CONTENT_FREQUENT_URI, in testFrequent_projection()
381 DatabaseAsserts.assertStoredValuesInUriMatchExactly(mResolver, uri, null, sb.toString(), in assertCursorStoredValuesWithContactsFilter()
DContactsContract_DataTest.java239 DatabaseAsserts.checkProjection(mResolver, Data.CONTENT_URI, in testDataProjection()
255 DatabaseAsserts.checkProjection(mResolver, RawContactsEntity.CONTENT_URI, in testRawContactsEntityProjection()
318 DatabaseAsserts.checkProjection(mResolver, Contacts.CONTENT_URI.buildUpon().appendPath( in testEntityProjection()
459 DatabaseAsserts.assertStoredValuesInUriMatchExactly(mResolver, contentUri, null, in testContactablesUri()
571 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()
704 DatabaseAsserts.assertStoredValuesInUriMatchExactly(mResolver, uri, null, sb.toString(), in assertCursorStoredValuesWithRawContactsFilter()
DContactsContract_ProviderStatus.java76 DatabaseAsserts.assertCursorValuesMatchExactly(cursor, values); in testProviderStatus_addedContacts()
DDatabaseAsserts.java36 public class DatabaseAsserts { class
DContactsContract_PhoneLookup.java258 DatabaseAsserts.assertStoredValuesInUriMatchExactly(mResolver, uri, null, in assertCursorStoredValuesWithContactsFilter()
DContactsContract_SearchSnippetsTest.java317 DatabaseAsserts.assertStoredValuesInUriMatchExactly(mResolver, uri, TEST_PROJECTION, in assertCursorStoredValuesWithContactsFilter()