Merge "Add a Settings.Secure value to store extra battery saver schedule" into tm-qpr-dev am: 1dc27fa1f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19194690 Change-Id: I99927c9818b93b73f268bdc64fda1813e0d7b346 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -10879,6 +10879,14 @@ public final class Settings {
|
|||||||
*/
|
*/
|
||||||
public static final String ADAPTIVE_CHARGING_ENABLED = "adaptive_charging_enabled";
|
public static final String ADAPTIVE_CHARGING_ENABLED = "adaptive_charging_enabled";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether battery saver is currently set to different schedule mode.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final String EXTRA_AUTOMATIC_POWER_SAVE_MODE =
|
||||||
|
"extra_automatic_power_save_mode";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These entries are considered common between the personal and the managed profile,
|
* These entries are considered common between the personal and the managed profile,
|
||||||
* since the managed profile doesn't get to change them.
|
* since the managed profile doesn't get to change them.
|
||||||
|
|||||||
@@ -473,6 +473,13 @@ message SecureSettingsProto {
|
|||||||
}
|
}
|
||||||
optional PowerMenuPrivacy power_menu_privacy = 81;
|
optional PowerMenuPrivacy power_menu_privacy = 81;
|
||||||
|
|
||||||
|
message ExtraLowPowerMode {
|
||||||
|
option (android.msg_privacy).dest = DEST_EXPLICIT;
|
||||||
|
|
||||||
|
optional SettingProto extra_automatic_power_save_mode = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
|
||||||
|
}
|
||||||
|
optional ExtraLowPowerMode extra_low_power_mode = 93;
|
||||||
|
|
||||||
message PrintService {
|
message PrintService {
|
||||||
option (android.msg_privacy).dest = DEST_EXPLICIT;
|
option (android.msg_privacy).dest = DEST_EXPLICIT;
|
||||||
|
|
||||||
@@ -679,5 +686,5 @@ message SecureSettingsProto {
|
|||||||
|
|
||||||
// Please insert fields in alphabetical order and group them into messages
|
// Please insert fields in alphabetical order and group them into messages
|
||||||
// if possible (to avoid reaching the method limit).
|
// if possible (to avoid reaching the method limit).
|
||||||
// Next tag = 93;
|
// Next tag = 94;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2358,6 +2358,12 @@ class SettingsProtoDumpUtil {
|
|||||||
SecureSettingsProto.PowerMenuPrivacy.SHOW);
|
SecureSettingsProto.PowerMenuPrivacy.SHOW);
|
||||||
p.end(powerMenuPrivacyToken);
|
p.end(powerMenuPrivacyToken);
|
||||||
|
|
||||||
|
final long extraLowPowerModeToken = p.start(SecureSettingsProto.EXTRA_LOW_POWER_MODE);
|
||||||
|
dumpSetting(s, p,
|
||||||
|
Settings.Secure.EXTRA_AUTOMATIC_POWER_SAVE_MODE,
|
||||||
|
SecureSettingsProto.ExtraLowPowerMode.EXTRA_AUTOMATIC_POWER_SAVE_MODE);
|
||||||
|
p.end(extraLowPowerModeToken);
|
||||||
|
|
||||||
final long printServiceToken = p.start(SecureSettingsProto.PRINT_SERVICE);
|
final long printServiceToken = p.start(SecureSettingsProto.PRINT_SERVICE);
|
||||||
dumpSetting(s, p,
|
dumpSetting(s, p,
|
||||||
Settings.Secure.PRINT_SERVICE_SEARCH_URI,
|
Settings.Secure.PRINT_SERVICE_SEARCH_URI,
|
||||||
|
|||||||
Reference in New Issue
Block a user