Home
last modified time | relevance | path

Searched refs:MockContentResolver (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/test-runner/src/android/test/
DProviderTestCase.java23 import android.test.mock.MockContentResolver;
42 private MockContentResolver mResolver;
62 mResolver = new MockContentResolver(); in setUp()
87 public MockContentResolver getMockContentResolver() { in getMockContentResolver()
100 MockContentResolver resolver = new MockContentResolver(); in newResolverWithContentProviderFromSql()
DProviderTestCase2.java26 import android.test.mock.MockContentResolver;
77 private MockContentResolver mResolver;
134 mResolver = new MockContentResolver(); in setUp()
178 public MockContentResolver getMockContentResolver() { in getMockContentResolver()
225 MockContentResolver resolver = new MockContentResolver(); in newResolverWithContentProviderFromSql()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DStorageStatsServiceTest.java23 import android.test.mock.MockContentResolver;
31 private MockContentResolver mContentResolver;
36 mContentResolver = new MockContentResolver(); in setUp()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/test/
DFakeSettingsProviderTest.java24 import android.test.mock.MockContentResolver;
38 private MockContentResolver mCr;
42 mCr = new MockContentResolver(); in setUp()
/frameworks/base/test-mock/src/android/test/mock/
DMockContentResolver.java52 public class MockContentResolver extends ContentResolver { class
59 public MockContentResolver() { in MockContentResolver() method in MockContentResolver
67 public MockContentResolver(Context context) { in MockContentResolver() method in MockContentResolver
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DExportTestResolver.java20 import android.test.mock.MockContentResolver;
22 public class ExportTestResolver extends MockContentResolver {
DImportTestResolver.java23 import android.test.mock.MockContentResolver;
27 public class ImportTestResolver extends MockContentResolver {
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java33 import android.test.mock.MockContentResolver;
59 final MockContentResolver cr = new MockContentResolver(context); in configureTest()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestContentResolver.java21 import android.test.mock.MockContentResolver;
31 class TestContentResolver extends MockContentResolver {
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DCoreSettingsObserverTest.java32 import android.test.mock.MockContentResolver;
67 private MockContentResolver mContentResolver;
89 mContentResolver = new MockContentResolver(mContext); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DRcsMessageStoreControllerTest.java36 import android.test.mock.MockContentResolver;
52 private MockContentResolver mContentResolver;
64 mContentResolver = (MockContentResolver) mContext.getContentResolver(); in setUp()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DDnsManagerTest.java40 import android.test.mock.MockContentResolver;
73 MockContentResolver mContentResolver;
82 mContentResolver = new MockContentResolver(); in setUp()
DMultipathPolicyTrackerTest.java57 import android.test.mock.MockContentResolver;
103 private MockContentResolver mContentResolver;
137 mContentResolver = Mockito.spy(new MockContentResolver(mContext)); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsLoggingServiceTest.java45 import android.test.mock.MockContentResolver;
191 MockContentResolver cr = new MockContentResolver(); in testDontCrashOnRun()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsNumberUtilsTest.java25 import android.test.mock.MockContentResolver;
124 ((MockContentResolver) mContextFixture.getTestDouble().getContentResolver()) in setUp()
DSubscriptionInfoUpdaterTest.java52 import android.test.mock.MockContentResolver;
160 ((MockContentResolver) mContext.getContentResolver()).addProvider( in setUp()
647 ((MockContentResolver) mContext.getContentResolver()).addProvider( in testUpdateFromCarrierConfigOpportunisticUnchanged()
672 ((MockContentResolver) mContext.getContentResolver()).addProvider( in testUpdateFromCarrierConfigOpportunisticSetOpportunistic()
704 ((MockContentResolver) mContext.getContentResolver()).addProvider( in testUpdateFromCarrierConfigOpportunisticAddToGroup()
740 ((MockContentResolver) mContext.getContentResolver()).addProvider( in testUpdateFromCarrierConfigOpportunisticRemoveFromGroup()
DCarrierActionAgentTest.java33 import android.test.mock.MockContentResolver;
54 private class FakeContentResolver extends MockContentResolver {
DCarrierResolverTest.java35 import android.test.mock.MockContentResolver;
108 ((MockContentResolver) mContext.getContentResolver()).addProvider( in setUp()
275 ((MockContentResolver) mContext.getContentResolver()).addProvider( in testCarrierMatchPreferApnChange()
DTelephonyPermissionsTest.java40 import android.test.mock.MockContentResolver;
77 private MockContentResolver mMockContentResolver;
411 mMockContentResolver = new MockContentResolver(); in setupMocksForDeviceIdentifiersErrorPath()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DTetheringConfigurationTest.java40 import android.test.mock.MockContentResolver;
67 private MockContentResolver mContentResolver;
119 mContentResolver = new MockContentResolver(); in setUp()
DEntitlementManagerTest.java50 import android.test.mock.MockContentResolver;
93 private MockContentResolver mContentResolver;
160 mContentResolver = new MockContentResolver(); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java43 import android.test.mock.MockContentResolver;
154 ((MockContentResolver)mContext.getContentResolver()).addProvider( in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java59 import android.test.mock.MockContentResolver;
106 public final MockContentResolver contentResolver;
154 contentResolver = new MockContentResolver(); in MockSystemServices()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java60 import android.test.mock.MockContentResolver;
120 private MockContentResolver mContentResolver;
137 mContentResolver = new MockContentResolver(mContext); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DColorDisplayServiceTest.java35 import android.test.mock.MockContentResolver;
89 final MockContentResolver cr = new MockContentResolver(mContext); in setUp()

12