Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java45 default void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method
46 setPowerSaveMode(powerSave, null); in setPowerSaveMode()
54 void setPowerSaveMode(boolean powerSave, @Nullable Expandable expandable); in setPowerSaveMode() method
DBatteryControllerImpl.java200 public void setPowerSaveMode(boolean powerSave, Expandable expandable) { in setPowerSaveMode() method in BatteryControllerImpl
202 BatterySaverUtils.setPowerSaveMode(mContext, powerSave, /*needFirstTimeWarning*/ true, in setPowerSaveMode()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeBatteryController.java53 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in FakeBatteryController
64 public void setPowerSaveMode(boolean powerSave, Expandable expandable) { in setPowerSaveMode() method in FakeBatteryController
65 setPowerSaveMode(powerSave); in setPowerSaveMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java178 mBatteryController.setPowerSaveMode(true, mExpandable); in testBatteryUtilsCalledOnSetPowerSaveMode()
179 mBatteryController.setPowerSaveMode(false, mExpandable); in testBatteryUtilsCalledOnSetPowerSaveMode()
182 inOrder.verify(() -> BatterySaverUtils.setPowerSaveMode(getContext(), true, true, in testBatteryUtilsCalledOnSetPowerSaveMode()
184 inOrder.verify(() -> BatterySaverUtils.setPowerSaveMode(getContext(), false, true, in testBatteryUtilsCalledOnSetPowerSaveMode()
190 mBatteryController.setPowerSaveMode(false, mExpandable); in testSaveViewReferenceWhenSettingPowerSaveMode()
194 mBatteryController.setPowerSaveMode(true, mExpandable); in testSaveViewReferenceWhenSettingPowerSaveMode()
201 mBatteryController.setPowerSaveMode(true, mExpandable); in testClearViewReference()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileDataInteractorTest.kt117 batteryController.setPowerSaveMode(true) in <lambda>()
143 batteryController.setPowerSaveMode(false) in <lambda>()
148 batteryController.setPowerSaveMode(true) in <lambda>()
150 batteryController.setPowerSaveMode(false) in <lambda>()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java81 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, true, in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning()
105 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, true, in testSetPowerSaveMode_enableWithWarning_secondCall_expectUpdateIntent()
128 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, true, in testSetPowerSaveMode_enableWithWarning_thirdCall_expectUpdateIntent()
151 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, true, in testSetPowerSaveMode_enableWithWarning_5thCall_needAutoSuggestionWarning()
174 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, true, false, in testSetPowerSaveMode_enableWithoutWarning_expectUpdateIntent()
280 assertThat(BatterySaverUtils.setPowerSaveMode(mMockContext, false, needFirstTimeWarning, in verifyDisablePowerSaveMode()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/battery/doman/interactor/
DBatterySaverTileDataInteractorTest.kt72 batteryController.setPowerSaveMode(true) in tileData_matchesBatteryControllerPowerSaving()
76 batteryController.setPowerSaveMode(false) in tileData_matchesBatteryControllerPowerSaving()
DBatterySaverTileUserActionInteractorTest.kt58 controller.setPowerSaveMode(false) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/domain/interactor/
DRotationLockTileDataInteractorTest.kt131 batteryController.setPowerSaveMode(true) in tileData_cameraRotationMatchesBatteryController()
135 batteryController.setPowerSaveMode(false) in tileData_cameraRotationMatchesBatteryController()
218 batteryController.setPowerSaveMode(false) in setupControllersToEnableCameraRotation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBatterySaverTileTest.kt132 verify(batteryController).setPowerSaveMode(true, expandable) in testClickingPowerSavePassesView()
133 verify(batteryController).setPowerSaveMode(false, expandable) in testClickingPowerSavePassesView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/domain/interactor/
DBatterySaverTileUserActionInteractor.kt42 batteryController.setPowerSaveMode(!data.isPowerSaving, action.expandable) in handleInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatterySaverTile.java138 mBatteryController.setPowerSaveMode(!mPowerSave, expandable); in handleClick()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java122 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode() method in BatterySaverUtils
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java803 BatterySaverUtils.setPowerSaveMode(mContext, mode, needFirstTimeWarning, reason); in setSaverMode()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt36251 Landroid/os/IPowerManager$Stub$Proxy;->setPowerSaveMode(Z)Z
36299 Landroid/os/IPowerManager;->setPowerSaveMode(Z)Z