Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java71 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)).isFalse(); in testSetPowerSaveMode_enable_firstCall_needWarning()
88 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)).isTrue(); in testSetPowerSaveMode_enable_secondCall_needWarning()
102 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)).isTrue(); in testSetPowerSaveMode_enable_thridCall_needWarning()
116 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, false)).isTrue(); in testSetPowerSaveMode_enable_firstCall_noWarning()
131 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, false, false)).isTrue(); in testSetPowerSaveMode_disable_firstCall_noWarning()
147 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, false, true)).isTrue(); in testSetPowerSaveMode_disable_firstCall_needWarning()
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java38 void setPowerSaveMode(boolean powerSave); in setPowerSaveMode() method
DBatteryControllerImpl.java116 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in BatteryControllerImpl
117 BatterySaverUtils.setPowerSaveMode(mContext, powerSave, /*needFirstTimeWarning*/ true); in setPowerSaveMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java90 mBatteryController.setPowerSaveMode(!mPowerSave); in handleClick()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java114 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode() method in BatterySaverUtils
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java100 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in CarBatteryController
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java679 BatterySaverUtils.setPowerSaveMode(mContext, mode, needFirstTimeWarning); in setSaverMode()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt50733 Landroid/os/IPowerManager$Stub$Proxy;->setPowerSaveMode(Z)Z
50781 Landroid/os/IPowerManager;->setPowerSaveMode(Z)Z