Add a mechanism to add package name into the allowlist to avoid users change the battery optimization modes for specific apps in the list https://screenshot.googleplex.com/8hrHCcTh5bNYXqp Bug: 281566984 Test: make test RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.fuelgauge.* Change-Id: I8efa6a55646d761f5bee3667a59b38ab68c74bc1
31 lines
712 B
Protocol Buffer
31 lines
712 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package com.android.settings.intelligence;
|
|
option java_multiple_files = true;
|
|
option java_package = "com.android.settings.fuelgauge";
|
|
option java_outer_classname = "FuelgaugeLogProto";
|
|
|
|
// Stores history of setting optimize mode
|
|
message BatteryOptimizeHistoricalLog {
|
|
repeated BatteryOptimizeHistoricalLogEntry log_entry = 1;
|
|
}
|
|
|
|
message BatteryOptimizeHistoricalLogEntry {
|
|
|
|
// The action to set optimize mode
|
|
enum Action {
|
|
UNKNOWN = 0;
|
|
LEAVE = 1;
|
|
APPLY = 2;
|
|
RESET = 3;
|
|
RESTORE = 4;
|
|
BACKUP = 5;
|
|
FORCE_RESET = 6;
|
|
}
|
|
|
|
optional string package_name = 1;
|
|
optional Action action = 2;
|
|
optional string action_description = 3;
|
|
optional int64 timestamp = 4;
|
|
}
|