Home
last modified time | relevance | path

Searched refs:setPowerSaveMode (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java65 when(mMockPowerManager.setPowerSaveMode(anyBoolean())).thenReturn(true); in setUp()
73 assertEquals(false, BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)); in testSetPowerSaveMode_enable_firstCall_needWarning()
76 verify(mMockPowerManager, times(0)).setPowerSaveMode(anyBoolean()); in testSetPowerSaveMode_enable_firstCall_needWarning()
90 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)); in testSetPowerSaveMode_enable_secondCall_needWarning()
93 verify(mMockPowerManager, times(1)).setPowerSaveMode(eq(true)); in testSetPowerSaveMode_enable_secondCall_needWarning()
104 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)); in testSetPowerSaveMode_enable_thridCall_needWarning()
107 verify(mMockPowerManager, times(1)).setPowerSaveMode(eq(true)); in testSetPowerSaveMode_enable_thridCall_needWarning()
118 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, true, false)); in testSetPowerSaveMode_enable_firstCall_noWarning()
121 verify(mMockPowerManager, times(1)).setPowerSaveMode(eq(true)); in testSetPowerSaveMode_enable_firstCall_noWarning()
133 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, false, false)); in testSetPowerSaveMode_disable_firstCall_noWarning()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java91 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode() method in BatterySaverUtils
105 if (context.getSystemService(PowerManager.class).setPowerSaveMode(enable)) { in setPowerSaveMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java36 void setPowerSaveMode(boolean powerSave); in setPowerSaveMode() method
DBatteryControllerImpl.java96 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in BatteryControllerImpl
97 BatterySaverUtils.setPowerSaveMode(mContext, powerSave, /*needFirstTimeWarning*/ true); in setPowerSaveMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeBatteryController.java43 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in FakeBatteryController
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java64 mInterface.setPowerSaveMode(mode == LOW_POWER_MODE_ON); in runSetMode()
DPowerManagerService.java4357 public boolean setPowerSaveMode(boolean enabled) { in setPowerSaveMode() method in PowerManagerService.BinderService
/frameworks/base/core/java/android/os/
DIPowerManager.aidl50 boolean setPowerSaveMode(boolean mode); in setPowerSaveMode() method
DPowerManager.java1145 public boolean setPowerSaveMode(boolean mode) { in setPowerSaveMode() method in PowerManager
1147 return mService.setPowerSaveMode(mode); in setPowerSaveMode()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java43 public boolean setPowerSaveMode(boolean mode) throws RemoteException { in setPowerSaveMode() method in BridgePowerManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java73 mBatteryController.setPowerSaveMode(!mPowerSave); in handleClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java97 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in CarBatteryController
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java613 BatterySaverUtils.setPowerSaveMode(mContext, mode, needFirstTimeWarning); in setSaverMode()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt4150 Landroid/os/PowerManager;->setPowerSaveMode(Z)Z
Dboot-image-profile.txt27803 HSPLandroid/os/IPowerManager;->setPowerSaveMode(Z)Z