Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeBatteryController.java53 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() argument
54 mPowerSaveMode = powerSave; in setPowerSaveMode()
56 callback.onPowerSaveChanged(powerSave); in setPowerSaveMode()
64 public void setPowerSaveMode(boolean powerSave, Expandable expandable) { in setPowerSaveMode() argument
65 setPowerSaveMode(powerSave); in setPowerSaveMode()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapperTest.kt88 val inputModel = createModel(nightMode = true, powerSave = true) in mapsEnabledDataToUnavailableStateWhenOnPowerSave()
108 val inputModel = createModel(nightMode = false, powerSave = true) in mapsDisabledDataToUnavailableStateWhenOnPowerSave()
128 val inputModel = createModel(nightMode = false, powerSave = false) in mapsDisabledDataToInactiveState()
165 val inputModel = createModel(nightMode = true, powerSave = false) in mapsEnabledDataToOnIconState()
184 val inputModel = createModel(nightMode = false, powerSave = false) in mapsDisabledDataToOffIconState()
203 val inputModel = createModel(nightMode = true, powerSave = false) in supportsClickAndLongClickActionsWhenNotInPowerSaveInNightMode()
224 val inputModel = createModel(nightMode = true, powerSave = true) in supportsOnlyLongClickActionWhenUnavailableInPowerSaveInNightMode()
247 val inputModel = createModel(nightMode = false, powerSave = false) in supportsClickAndLongClickActionsWhenNotInPowerSaveNotInNightMode()
268 val inputModel = createModel(nightMode = false, powerSave = true) in supportsOnlyClickActionWhenUnavailableInPowerSaveNotInNightMode()
289 val inputModel = createModel(powerSave = true) in secondaryLabelCorrectWhenInPowerSaveMode()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java45 default void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() argument
46 setPowerSaveMode(powerSave, null); in setPowerSaveMode()
54 void setPowerSaveMode(boolean powerSave, @Nullable Expandable expandable); in setPowerSaveMode() argument
DBatteryControllerImpl.java200 public void setPowerSaveMode(boolean powerSave, Expandable expandable) { in setPowerSaveMode() argument
201 if (powerSave) mPowerSaverStartExpandable.set(new WeakReference<>(expandable)); in setPowerSaveMode()
202 BatterySaverUtils.setPowerSaveMode(mContext, powerSave, /*needFirstTimeWarning*/ true, in setPowerSaveMode()
442 private void setPowerSave(boolean powerSave) { in setPowerSave() argument
443 if (powerSave == mPowerSave) return; in setPowerSave()
444 mPowerSave = powerSave; in setPowerSave()
496 String powerSave = args.getString("powersave"); in dispatchDemoCommand() local
506 if (powerSave != null) { in dispatchDemoCommand()
507 mPowerSave = powerSave.equals("true"); in dispatchDemoCommand()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/uimodenight/
DUiModeNightTileModelHelper.kt31 powerSave: Boolean = false, in createModel()
42 powerSave, in createModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java122 boolean powerSave = mBatteryController.isPowerSave(); in handleUpdateState()
126 if (powerSave) { in handleUpdateState()
164 if (powerSave) { in handleUpdateState()
DRotationLockTile.java149 final boolean powerSave = mBatteryController.isPowerSave(); in handleUpdateState()
152 !powerSave && !cameraLocked && hasSufficientPermission(mContext) in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/
DUiModeNightTileDataInteractor.kt93 val powerSave = batteryController.isPowerSave in createModel() constant
103 powerSave, in createModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterView.java770 String powerSave = mDrawable == null ? null : mDrawable.getPowerSaveEnabled() + ""; in dump() local
775 pw.println(" mDrawable.getPowerSave: " + powerSave); in dump()