Home
last modified time | relevance | path

Searched refs:LOW_POWER_MODE_TRIGGER_LEVEL (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java159 Global.putInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in testEnsureAutoBatterysaver_setNewPositiveValue_doNotOverwrite()
163 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testEnsureAutoBatterysaver_setNewPositiveValue_doNotOverwrite()
168 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testEnsureAutoBatterysaver_setNewPositiveValue_doNotOverwrite()
174 Global.putString(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, "null"); in testSetAutoBatterySaverTriggerLevel_setSuppressSuggestion()
178 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testSetAutoBatterySaverTriggerLevel_setSuppressSuggestion()
184 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testSetAutoBatterySaverTriggerLevel_setSuppressSuggestion()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java141 && Global.getInt(cr, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) == 0 in setPowerSaveMode()
207 Global.putInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, level); in setAutoBatterySaverTriggerLevel()
215 if (Global.getInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) in ensureAutoBatterySaver()
233 Global.putInt(resolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in revertScheduleToNoneIfNeeded()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java89 return mPersistedState.global.getOrDefault(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in getLowPowerModeTriggerLevel()
332 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 50); in testAutoBatterySaver()
436 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 70); in testAutoBatterySaver()
444 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 60); in testAutoBatterySaver()
467 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in testAutoBatterySaver()
484 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 50); in testAutoBatterySaver_withSticky_withAutoOffDisabled()
559 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 50); in testAutoBatterySaver_withSticky_withAutoOffEnabled()
734 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 75); in testAutoBatterySaver_withSticky_withAutoOffEnabled()
770 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 50); in testAutoBatterySaver_withSticky_withAutoOffToggled()
817 mDevice.putGlobalSetting(Global.LOW_POWER_MODE_TRIGGER_LEVEL, 50); in testAutoBatterySaver_withStickyDisabled()
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java305 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL), in onBootCompleted()
369 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in refreshSettingsLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java116 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL), in start()
DPowerNotificationWarnings.java586 Global.LOW_POWER_MODE_TRIGGER_LEVEL, in showStartSaverConfirmation()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java264 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL), in onBootPhase()
319 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, defWarnLevel); in updateBatteryWarningLevelLocked()
/frameworks/base/core/proto/android/server/
Dpowermanagerservice.proto369 // The value of Global.LOW_POWER_MODE_TRIGGER_LEVEL. This is a cached value, so it could
/frameworks/base/core/java/android/provider/
DSettings.java12876 public static final String LOW_POWER_MODE_TRIGGER_LEVEL = "low_power_trigger_level"; field in Settings.Global
13861 LOW_POWER_MODE_TRIGGER_LEVEL,
13911 VALIDATORS.put(LOW_POWER_MODE_TRIGGER_LEVEL, LOW_POWER_MODE_TRIGGER_LEVEL_VALIDATOR); in VALIDATORS.put() argument
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto549 // The max value for {@link #LOW_POWER_MODE_TRIGGER_LEVEL}. If this setting
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProtoDumpUtil.java856 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, in dumpProtoGlobalSettingsLocked()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt56246 Landroid/provider/Settings$Global;->LOW_POWER_MODE_TRIGGER_LEVEL:Ljava/lang/String;