Home
last modified time | relevance | path

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

12

/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/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/activities/
DPeopleActivityTest.java39 import com.android.contacts.test.mocks.MockContentProvider;
40 import com.android.contacts.test.mocks.MockContentProvider.Query;
65 private MockContentProvider mContactsProvider;
66 private MockContentProvider mSettingsProvider;
DSimImportActivityTest.java62 import com.android.contacts.test.mocks.MockContentProvider;
227 final MockContentProvider iccProvider = new MockContentProvider(); in selectionsAreImportedAndDisabledOnSubsequentImports()
228 iccProvider.expect(MockContentProvider.Query.forAnyUri()) in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarBluetoothServiceTest.java28 import android.test.mock.MockContentProvider;
63 private MockContentProvider mMockContentProvider;
78 mMockContentProvider = new MockContentProvider() { in setUp()
DBluetoothDeviceConnectionPolicyTest.java31 import android.test.mock.MockContentProvider;
59 private MockContentProvider mMockContentProvider;
75 mMockContentProvider = new MockContentProvider() { in setUp()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java22 import android.test.mock.MockContentProvider;
45 final MockContentProvider mMockContentProvider = new MockContentProvider() { in setUp()
DSimContactDaoTests.java62 import com.android.contacts.test.mocks.MockContentProvider;
581 private MockContentProvider mMockIccProvider;
588 mMockIccProvider = new MockContentProvider(); in setUp()
596 mMockIccProvider.expect(MockContentProvider.Query.forAnyUri()) in createsContactsFromCursor()
632 mMockIccProvider.expect(MockContentProvider.Query.forAnyUri()) in excludesEmptyContactsFromResult()
696 mMockIccProvider.expect(MockContentProvider.Query.forAnyUri()) in returnsEmptyListForEmptyCursor()
715 final ContentProvider mockProvider = mock(android.test.mock.MockContentProvider.class); in returnsEmptyListForNullCursor()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactDeletionInteractionTest.java35 import com.android.contacts.test.mocks.MockContentProvider;
36 import com.android.contacts.test.mocks.MockContentProvider.Query;
60 private MockContentProvider mContactsProvider;
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DGetOrCreateConversationActionTest.java22 import android.test.mock.MockContentProvider;
156 final MockContentProvider mockProvider = new MockContentProvider() { in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java29 import android.test.mock.MockContentProvider;
49 class ExceptionTestProvider extends MockContentProvider {
/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()
DDatabaseHelperTest.java27 import android.test.mock.MockContentProvider;
41 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DParametersTest.java28 import android.test.mock.MockContentProvider;
46 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
DEpgDataCleanupServiceTests.java35 import android.test.mock.MockContentProvider;
62 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsManagerTest.java31 import android.test.mock.MockContentProvider;
160 static class FakeContactsContentProvider extends MockContentProvider {
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DCp2DeviceLocalAccountLocatorTests.java31 import com.android.contacts.test.mocks.MockContentProvider;
184 private static class FakeContactsProvider extends MockContentProvider {
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java32 import android.test.mock.MockContentProvider;
277 ContentProvider contentProvider = new MockContentProvider() { in setUp()
702 private class FakeSmsProvider extends MockContentProvider {
751 private class FakeMmsProvider extends MockContentProvider {
887 private static class ThreadProvider extends MockContentProvider {
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DMediaScannerTest.java36 import android.test.mock.MockContentProvider;
81 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in IsolatedContext()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java43 import android.test.mock.MockContentProvider;
103 static class MockMediaProvider extends MockContentProvider {

12