/frameworks/base/core/tests/coretests/src/android/provider/ |
D | NameValueCacheTest.java | 65 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/ |
D | RescuePartyTest.java | 93 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()
|
D | AppStateTrackerTest.java | 181 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/ |
D | SettingsToPropertiesMapperTest.java | 58 private ContentResolver mMockContentResolver; field in SettingsToPropertiesMapperTest 105 mMockContentResolver, TEST_MAPPING, new String[] {}); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | ClockManagerTest.java | 75 @Mock ContentResolver mMockContentResolver; field in ClockManagerTest 95 mMockPluginManager, mMockColorExtractor, mMockContentResolver, in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyPermissionsTest.java | 93 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()
|
D | SubscriptionControllerTest.java | 82 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/ |
D | WifiPermissionsUtilTest.java | 83 @Mock private ContentResolver mMockContentResolver; field in WifiPermissionsUtilTest 1279 when(mMockContext.getContentResolver()).thenReturn(mMockContentResolver);
|