/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryController.java | 45 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
|
D | BatteryControllerImpl.java | 200 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/ |
D | FakeBatteryController.java | 53 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/ |
D | BatteryControllerTest.java | 178 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/ |
D | UiModeNightTileDataInteractorTest.kt | 117 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/ |
D | BatterySaverUtilsTest.java | 81 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/ |
D | BatterySaverTileDataInteractorTest.kt | 72 batteryController.setPowerSaveMode(true) in tileData_matchesBatteryControllerPowerSaving() 76 batteryController.setPowerSaveMode(false) in tileData_matchesBatteryControllerPowerSaving()
|
D | BatterySaverTileUserActionInteractorTest.kt | 58 controller.setPowerSaveMode(false) in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/domain/interactor/ |
D | RotationLockTileDataInteractorTest.kt | 131 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/ |
D | BatterySaverTileTest.kt | 132 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/ |
D | BatterySaverTileUserActionInteractor.kt | 42 batteryController.setPowerSaveMode(!data.isPowerSaving, action.expandable) in handleInput()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTile.java | 138 mBatteryController.setPowerSaveMode(!mPowerSave, expandable); in handleClick()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtils.java | 122 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode() method in BatterySaverUtils
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerNotificationWarnings.java | 803 BatterySaverUtils.setPowerSaveMode(mContext, mode, needFirstTimeWarning, reason); in setSaverMode()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 36251 Landroid/os/IPowerManager$Stub$Proxy;->setPowerSaveMode(Z)Z 36299 Landroid/os/IPowerManager;->setPowerSaveMode(Z)Z
|