Home
last modified time | relevance | path

Searched refs:setPowerSaveModeEnabled (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java72 when(mMockPowerManager.setPowerSaveModeEnabled(anyBoolean())).thenReturn(true); in setUp()
86 verify(mMockPowerManager, times(0)).setPowerSaveModeEnabled(anyBoolean()); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning()
110 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithWarning_secondCall_expectUpdateIntent()
133 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithWarning_thirdCall_expectUpdateIntent()
156 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithWarning_5thCall_needAutoSuggestionWarning()
179 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithoutWarning_expectUpdateIntent()
285 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(false)); in verifyDisablePowerSaveMode()
/frameworks/base/core/java/android/os/
DIPowerManager.aidl62 boolean setPowerSaveModeEnabled(boolean mode); in setPowerSaveModeEnabled() method
DPowerManager.java1953 public boolean setPowerSaveModeEnabled(boolean mode) { in setPowerSaveModeEnabled() method in PowerManager
1955 return mService.setPowerSaveModeEnabled(mode); in setPowerSaveModeEnabled()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java91 mService.setPowerSaveModeEnabled(mode == LOW_POWER_MODE_ON); in runSetMode()
DPowerManagerService.java6159 public boolean setPowerSaveModeEnabled(boolean enabled) {
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java59 public boolean setPowerSaveModeEnabled(boolean mode) throws RemoteException { in setPowerSaveModeEnabled() method in BridgePowerManager
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java139 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java2580 mService.getBinderServiceInstance().setPowerSaveModeEnabled(true); in testGetFullPowerSavePolicy_returnsStateMachineResult()
2593 assertFalse(mService.getBinderServiceInstance().setPowerSaveModeEnabled(true)); in testGetFullPowerSavePolicy_whenNoBatterySaverSupported()
2608 mService.getBinderServiceInstance().setPowerSaveModeEnabled(true); in testSetFullPowerSavePolicy_callsStateMachine()
/frameworks/base/core/api/
Dsystem-current.txt11017 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);