Home
last modified time | relevance | path

Searched refs:MockContentProvider (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DContactsMockContext.java36 private MockContentProvider mContactsProvider;
37 private MockContentProvider mSettingsProvider;
48 mContactsProvider = new MockContentProvider(); in ContactsMockContext()
50 mSettingsProvider = new MockContentProvider(); in ContactsMockContext()
59 public MockContentProvider getContactsProvider() { in getContactsProvider()
63 public MockContentProvider getSettingsProvider() { in getSettingsProvider()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java45 import com.android.contacts.test.mocks.MockContentProvider;
276 final MockContentProvider provider = new MockContentProvider();
277 provider.expect(MockContentProvider.Query.forAnyUri())
285 private MockContentProvider.Query queryFor(Uri uri, Object... rows) {
286 final MockContentProvider.Query query = MockContentProvider.Query
296 private MockContentProvider.Query queryForSingleRow(Uri uri, Object... row) {
297 return new MockContentProvider.Query(uri)
304 private ContentResolver resolverWithExpectedQueries(MockContentProvider.Query... queries) {
305 final MockContentProvider provider = new MockContentProvider();
306 for (MockContentProvider.Query query : queries) {
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java40 import com.android.contacts.test.mocks.MockContentProvider;
41 import com.android.contacts.test.mocks.MockContentProvider.Query;
66 private MockContentProvider mContactsProvider;
67 private MockContentProvider mSettingsProvider;
DSimImportActivityTest.java64 import com.android.contacts.test.mocks.MockContentProvider;
229 final MockContentProvider simPhonebookProvider = new MockContentProvider(); in selectionsAreImportedAndDisabledOnSubsequentImports()
230 simPhonebookProvider.expect(MockContentProvider.Query.forAnyUri()) in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java22 import android.test.mock.MockContentProvider;
46 final MockContentProvider mMockContentProvider = new MockContentProvider() { in setUp()
DSimContactDaoTests.java64 import com.android.contacts.test.mocks.MockContentProvider;
583 private MockContentProvider mMockSimPhonebookProvider;
590 mMockSimPhonebookProvider = new MockContentProvider(); in setUp()
598 mMockSimPhonebookProvider.expect(MockContentProvider.Query.forAnyUri()) in createsContactsFromCursor()
624 mMockSimPhonebookProvider.expect(MockContentProvider.Query.forAnyUri()) in excludesEmptyContactsFromResult()
667 mMockSimPhonebookProvider.expect(MockContentProvider.Query.forAnyUri()) in returnsEmptyListForEmptyCursor()
685 final ContentProvider mockProvider = mock(android.test.mock.MockContentProvider.class); in returnsEmptyListForNullCursor()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/utils/
DMockContentProviderWrapper.kt24 import android.test.mock.MockContentProvider
35 class MockContentProviderWrapper(val provider: ContentProvider) : MockContentProvider() {
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactDeletionInteractionTest.java36 import com.android.contacts.test.mocks.MockContentProvider;
37 import com.android.contacts.test.mocks.MockContentProvider.Query;
61 private MockContentProvider mContactsProvider;
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DDataMigrationTest.java37 import android.test.mock.MockContentProvider;
132 private static class BluetoothLegacyContentProvider extends MockContentProvider {
165 mMockContentResolver.addProvider(AUTHORITY, new MockContentProvider(mMockContext)); in testMissingProvider()
183 mMockContentResolver.addProvider(AUTHORITY, new MockContentProvider(mMockContext)); in testTooManyAttempt()
227 extends MockContentProvider {
431 private static class BluetoothLegacyDbContentProvider extends MockContentProvider {
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProviderTestBase.java26 import android.test.mock.MockContentProvider;
56 MockContentProvider.attachInfoForTesting(mFakeContactsProvider, context, providerInfo); in setUp()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DGetOrCreateConversationActionTest.java22 import android.test.mock.MockContentProvider;
150 final MockContentProvider mockProvider = new MockContentProvider() { in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DCarBluetoothServiceTest.java40 import android.test.mock.MockContentProvider;
76 private MockContentProvider mMockContentProvider;
97 mMockContentProvider = new MockContentProvider() { in setUp()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DUnrecognizedColumnsTest.java10 import android.test.mock.MockContentProvider;
35 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DColumnFilterTest.java29 import android.test.mock.MockContentProvider;
45 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DBootCompletedReceiverTest.java33 import android.test.mock.MockContentProvider;
53 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DPackageRemovedReceiverTest.java33 import android.test.mock.MockContentProvider;
53 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DTransientRowHelperTests.java34 import android.test.mock.MockContentProvider;
59 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DParametersTest.java28 import android.test.mock.MockContentProvider;
46 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DDatabaseHelperTest.java27 import android.test.mock.MockContentProvider;
41 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DEpgDataCleanupServiceTests.java32 import android.test.mock.MockContentProvider;
60 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
/packages/apps/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java27 import android.test.mock.MockContentProvider;
133 static class FakeContentProvider extends MockContentProvider {
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DIsolatedContext.java29 import android.test.mock.MockContentProvider;
80 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in IsolatedContext()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsManagerTest.java31 import android.test.mock.MockContentProvider;
160 static class FakeContactsContentProvider extends MockContentProvider {
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DTestMediaProvider.kt24 import android.test.mock.MockContentProvider in <lambda>()
100 ) : MockContentProvider() {
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java43 import android.test.mock.MockContentProvider;
103 static class MockMediaProvider extends MockContentProvider {

12