1syntax = "proto2"; 2 3option java_multiple_files = true; 4option java_package = "com.android.settings.fuelgauge.batteryusage"; 5option java_outer_classname = "FuelgaugeUsageStateProto"; 6 7// Stores device battery relative information. 8message DeviceBatteryState { 9 optional int32 battery_level = 1; 10 optional int32 battery_status = 2; 11 optional int32 battery_health = 3; 12} 13 14message BatteryInformation { 15 // Records device battery relative information. 16 optional DeviceBatteryState device_battery_state = 1; 17 18 // Whether the data is represented as a system component or not? 19 optional bool is_hidden = 2; 20 21 // Records the timestamp relative information. 22 optional int64 boot_timestamp = 3; 23 optional string zone_id = 4; 24 25 // Records app relative information. 26 optional string app_label = 7; 27 28 // Records the battery usage relative information. 29 optional double total_power = 10; 30 optional double consume_power = 11; 31 optional double percent_of_total = 12; 32 optional int32 drain_type = 13; 33 optional int64 foreground_usage_time_in_ms = 14; 34 optional int64 background_usage_time_in_ms = 15; 35 optional double foreground_usage_consume_power = 16; 36 optional double foreground_service_usage_consume_power = 17; 37 optional double background_usage_consume_power = 18; 38 optional double cached_usage_consume_power = 19; 39 optional int64 foreground_service_usage_time_in_ms = 20; 40}