Searched refs:mMockResolver (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtilsTest.java | 61 private ContentResolver mMockResolver; field in BatterySaverUtilsTest 70 when(mMockContext.getContentResolver()).thenReturn(mMockResolver); in setUp() 77 Secure.putString(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, "null"); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 78 Secure.putString(mMockResolver, Secure.EXTRA_LOW_POWER_WARNING_ACKNOWLEDGED, "null"); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 79 Secure.putString(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, "null"); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 91 assertEquals(-1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 93 Secure.getInt(mMockResolver, Secure.EXTRA_LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 95 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 101 Secure.putInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1); in testSetPowerSaveMode_enableWithWarning_secondCall_expectUpdateIntent() 102 Secure.putInt(mMockResolver, Secure.EXTRA_LOW_POWER_WARNING_ACKNOWLEDGED, 1); in testSetPowerSaveMode_enableWithWarning_secondCall_expectUpdateIntent() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityUserStateTest.java | 115 private MockContentResolver mMockResolver; field in AccessibilityUserStateTest 128 mMockResolver = new MockContentResolver(); in setUp() 129 mMockResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider()); in setUp() 130 when(mMockContext.getContentResolver()).thenReturn(mMockResolver); in setUp() 496 return Settings.Secure.getIntForUser(mMockResolver, key, -1, userId); in getSecureIntForUser() 500 Settings.Secure.putIntForUser(mMockResolver, key, value, userId); in putSecureIntForUser()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/dream/ |
D | DreamBackendTest.java | 61 private ContentResolver mMockResolver; field in DreamBackendTest 68 when(mContext.getContentResolver()).thenReturn(mMockResolver); in setUp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 131 private ContentResolver mMockResolver; field in DisplayRotationTests 202 assertEquals(0, Settings.System.getInt(mMockResolver, in testLocksUserRotation_LockRotation_DefaultDisplay() 204 assertEquals(Surface.ROTATION_180, Settings.System.getInt(mMockResolver, in testLocksUserRotation_LockRotation_DefaultDisplay() 302 assertEquals(1, Settings.System.getInt(mMockResolver, in testPersistUserRotation_UnlockRotation_DefaultDisplay() 1445 verify(mMockResolver, atMost(1)).registerContentObserver( in captureObservers() 1455 verify(mMockResolver, atMost(1)).registerContentObserver( in captureObservers() 1465 verify(mMockResolver, atMost(1)).registerContentObserver( in captureObservers() 1595 mMockResolver = mock(ContentResolver.class); in build() 1596 when(mMockContext.getContentResolver()).thenReturn(mMockResolver); in build() 1598 when(mMockResolver.acquireProvider(Settings.AUTHORITY)) in build()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MagnificationControllerTest.java | 147 private MockContentResolver mMockResolver; field in MagnificationControllerTest 188 mMockResolver = new MockContentResolver(); in setUp() 189 mMockResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider()); in setUp() 193 when(mContext.getContentResolver()).thenReturn(mMockResolver); in setUp() 195 Settings.Secure.putFloatForUser(mMockResolver, in setUp() 1329 Settings.Secure.putIntForUser(mMockResolver, in setMagnificationModeSettings()
|