Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java63 when(mMockPowerManager.setPowerSaveModeEnabled(anyBoolean())).thenReturn(true); in setUp()
74 verify(mMockPowerManager, times(0)).setPowerSaveModeEnabled(anyBoolean()); in testSetPowerSaveMode_enable_firstCall_needWarning()
91 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_secondCall_needWarning()
105 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_thridCall_needWarning()
119 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_firstCall_noWarning()
134 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(false)); in testSetPowerSaveMode_disable_firstCall_noWarning()
150 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(false)); in testSetPowerSaveMode_disable_firstCall_needWarning()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java74 mInterface.setPowerSaveModeEnabled(mode == LOW_POWER_MODE_ON); in runSetMode()
DPowerManagerService.java4996 public boolean setPowerSaveModeEnabled(boolean enabled) {
/frameworks/base/core/java/android/os/
DIPowerManager.aidl62 boolean setPowerSaveModeEnabled(boolean mode); in setPowerSaveModeEnabled() method
DPowerManager.java1573 public boolean setPowerSaveModeEnabled(boolean mode) { in setPowerSaveModeEnabled() method in PowerManager
1575 return mService.setPowerSaveModeEnabled(mode); in setPowerSaveModeEnabled()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java44 public boolean setPowerSaveModeEnabled(boolean mode) throws RemoteException { in setPowerSaveModeEnabled() method in BridgePowerManager
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java132 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode()
/frameworks/base/api/
Dtest-current.txt2788 ….DEVICE_POWER", "android.permission.POWER_SAVER"}) public boolean setPowerSaveModeEnabled(boolean);
Dsystem-current.txt8359 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);
/frameworks/base/non-updatable-api/
Dsystem-current.txt7279 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);
/frameworks/base/services/
Dart-profile28439 PLcom/android/server/power/PowerManagerService$BinderService;->setPowerSaveModeEnabled(Z)Z