Home
last modified time | relevance | path

Searched refs:MockContentProvider (Results 1 – 25 of 35) 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.java30 import android.test.mock.MockContentProvider;
62 private MockContentProvider mMockContentProvider;
77 mMockContentProvider = new MockContentProvider() { in setUp()
DBluetoothDeviceConnectionPolicyTest.java36 import android.test.mock.MockContentProvider;
65 private MockContentProvider mMockContentProvider;
81 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;
149 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/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmCellBroadcastHandlerTest.java45 import android.test.mock.MockContentProvider;
79 private class CellBroadcastContentProvider extends MockContentProvider {
141 private class SettingsProvider extends MockContentProvider {
DCellBroadcastHandlerTest.java34 import android.test.mock.MockContentProvider;
67 private class CellBroadcastContentProvider 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.java36 import android.test.mock.MockContentProvider;
288 ContentProvider contentProvider = new MockContentProvider() { in setUp()
751 private class FakeSmsProvider extends MockContentProvider {
800 private class FakeMmsProvider extends MockContentProvider {
936 private static class ThreadProvider extends MockContentProvider {

12