Searched refs:BatterySaverUtils (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtilsTest.java | 21 import static com.android.settingslib.fuelgauge.BatterySaverUtils.ACTION_SHOW_AUTO_SAVER_SUGGESTION; 22 import static com.android.settingslib.fuelgauge.BatterySaverUtils.ACTION_SHOW_START_SAVER_CONFIRMAT… 23 import static com.android.settingslib.fuelgauge.BatterySaverUtils.KEY_NO_SCHEDULE; 24 import static com.android.settingslib.fuelgauge.BatterySaverUtils.KEY_PERCENTAGE; 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() 203 BatterySaverUtils.ensureAutoBatterySaver(mMockContext, BATTERY_SAVER_THRESHOLD_1); in testEnsureAutoBatterysaver_setNewPositiveValue_doNotOverwrite() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 45 import com.android.settingslib.fuelgauge.BatterySaverUtils; 87 .mockStatic(BatterySaverUtils.class) in setUp() 181 StaticInOrder inOrder = inOrder(staticMockMarker(BatterySaverUtils.class)); in testBatteryUtilsCalledOnSetPowerSaveMode() 182 inOrder.verify(() -> BatterySaverUtils.setPowerSaveMode(getContext(), true, true, in testBatteryUtilsCalledOnSetPowerSaveMode() 184 inOrder.verify(() -> BatterySaverUtils.setPowerSaveMode(getContext(), false, true, in testBatteryUtilsCalledOnSetPowerSaveMode()
|
D | BatteryControllerStartableTest.java | 36 import com.android.settingslib.fuelgauge.BatterySaverUtils; 71 .mockStatic(BatterySaverUtils.class) in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 52 import com.android.settingslib.fuelgauge.BatterySaverUtils; 243 Intent intent = new Intent(BatterySaverUtils.ACTION_SHOW_START_SAVER_CONFIRMATION); in testDialogStartedFromLauncher_viewVisible() 258 Intent intent = new Intent(BatterySaverUtils.ACTION_SHOW_START_SAVER_CONFIRMATION); in testDialogStartedNotFromLauncher_viewNotVisible() 273 Intent intent = new Intent(BatterySaverUtils.ACTION_SHOW_START_SAVER_CONFIRMATION); in testDialogShownNotFromLauncher()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerNotificationWarnings.java | 66 import com.android.settingslib.fuelgauge.BatterySaverUtils; 127 BatterySaverUtils.ACTION_SHOW_START_SAVER_CONFIRMATION; 129 BatterySaverUtils.ACTION_SHOW_AUTO_SAVER_SUGGESTION; 654 final boolean confirmOnly = extras.getBoolean(BatterySaverUtils.EXTRA_CONFIRM_TEXT_ONLY); in showStartSaverConfirmation() 656 extras.getInt(BatterySaverUtils.EXTRA_POWER_SAVE_MODE_TRIGGER, in showStartSaverConfirmation() 659 extras.getInt(BatterySaverUtils.EXTRA_POWER_SAVE_MODE_TRIGGER_LEVEL, 0); in showStartSaverConfirmation() 803 BatterySaverUtils.setPowerSaveMode(mContext, mode, needFirstTimeWarning, reason); in setSaverMode() 879 BatterySaverUtils.suppressAutoBatterySaver(context); in onReceive()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtils.java | 39 public class BatterySaverUtils { class 67 private BatterySaverUtils() { in BatterySaverUtils() method in BatterySaverUtils
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerImpl.java | 46 import com.android.settingslib.fuelgauge.BatterySaverUtils; 202 BatterySaverUtils.setPowerSaveMode(mContext, powerSave, /*needFirstTimeWarning*/ true, in setPowerSaveMode()
|