Home
last modified time | relevance | path

Searched refs:mMockContentResolver (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/provider/
DNameValueCacheTest.java65 private MockContentResolver mMockContentResolver; field in NameValueCacheTest
76 mMockContentResolver = new MockContentResolver(); in setUp()
77 mMockContentResolver.addProvider(DeviceConfig.CONTENT_URI.getAuthority(), in setUp()
134 Settings.Config.setStrings(mMockContentResolver, NAMESPACE, keyValues); in testCaching_singleNamespace()
139 Map<String, String> returnedValues = Settings.Config.getStrings(mMockContentResolver, in testCaching_singleNamespace()
147 Map<String, String> cachedKeyValues = Settings.Config.getStrings(mMockContentResolver, in testCaching_singleNamespace()
154 Settings.Config.setStrings(mMockContentResolver, NAMESPACE, keyValues); in testCaching_singleNamespace()
159 Map<String, String> returnedValues2 = Settings.Config.getStrings(mMockContentResolver, in testCaching_singleNamespace()
166 Map<String, String> cachedKeyValues2 = Settings.Config.getStrings(mMockContentResolver, in testCaching_singleNamespace()
176 Settings.Config.setStrings(mMockContentResolver, NAMESPACE, keyValues); in testCaching_multipleNamespaces()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DRescuePartyTest.java93 private ContentResolver mMockContentResolver; field in RescuePartyTest
118 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setUp()
241 verify(() -> Settings.Config.registerMonitorCallback(eq(mMockContentResolver), in testNonPersistentAppCrashDetectionWithScopedResets()
434 verify(() -> Settings.Global.resetToDefaultsAsUser(mMockContentResolver, null, in verifySettingsResets()
436 verify(() -> Settings.Secure.resetToDefaultsAsUser(eq(mMockContentResolver), isNull(), in verifySettingsResets()
DAppStateTrackerTest.java181 private MockContentResolver mMockContentResolver; field in AppStateTrackerTest
240 mMockContentResolver = new MockContentResolver(); in callStart()
241 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in callStart()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DSettingsToPropertiesMapperTest.java58 private ContentResolver mMockContentResolver; field in SettingsToPropertiesMapperTest
105 mMockContentResolver, TEST_MAPPING, new String[] {}); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/
DClockManagerTest.java75 @Mock ContentResolver mMockContentResolver; field in ClockManagerTest
95 mMockPluginManager, mMockColorExtractor, mMockContentResolver, in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java93 private MockContentResolver mMockContentResolver; field in TelephonyPermissionsTest
628 mMockContentResolver = new MockContentResolver(); in setupMocksForDeviceIdentifiersErrorPath()
629 mMockContentResolver.addProvider(Settings.AUTHORITY, mFakeSettingsConfigProvider); in setupMocksForDeviceIdentifiersErrorPath()
630 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver); in setupMocksForDeviceIdentifiersErrorPath()
DSubscriptionControllerTest.java82 private MockContentResolver mMockContentResolver; field in SubscriptionControllerTest
108 mMockContentResolver = (MockContentResolver) mContext.getContentResolver(); in setUp()
110 mMockContentResolver.addProvider(SubscriptionManager.CONTENT_URI.getAuthority(), in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java83 @Mock private ContentResolver mMockContentResolver; field in WifiPermissionsUtilTest
1279 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver);