Home
last modified time | relevance | path

Searched refs:setPowerSaveModeEnabled (Results 1 – 10 of 10) 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.java71 mInterface.setPowerSaveModeEnabled(mode == LOW_POWER_MODE_ON); in runSetMode()
DPowerManagerService.java4527 public boolean setPowerSaveModeEnabled(boolean enabled) { in setPowerSaveModeEnabled() method in PowerManagerService.BinderService
/frameworks/base/core/java/android/os/
DIPowerManager.aidl56 boolean setPowerSaveModeEnabled(boolean mode); in setPowerSaveModeEnabled() method
DPowerManager.java1426 public boolean setPowerSaveModeEnabled(boolean mode) { in setPowerSaveModeEnabled() method in PowerManager
1428 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.java131 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode()
/frameworks/base/api/
Dtest-current.txt2183 ….DEVICE_POWER", "android.permission.POWER_SAVER"}) public boolean setPowerSaveModeEnabled(boolean);
Dsystem-current.txt6112 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);
/frameworks/base/non-updatable-api/
Dsystem-current.txt6018 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);