1syntax = "proto2"; 2 3package com.android.settings.intelligence; 4option java_multiple_files = true; 5option java_package = "com.android.settings.fuelgauge"; 6option java_outer_classname = "FuelgaugeLogProto"; 7 8// Store history of setting optimize mode 9message BatteryOptimizeHistoricalLog { 10 repeated BatteryOptimizeHistoricalLogEntry log_entry = 1; 11} 12 13message BatteryOptimizeHistoricalLogEntry { 14 // The action to set optimize mode 15 enum Action { 16 UNKNOWN = 0; 17 LEAVE = 1; 18 APPLY = 2; 19 RESET = 3; 20 RESTORE = 4; 21 BACKUP = 5; 22 FORCE_RESET = 6; 23 } 24 25 optional string package_name = 1; 26 optional Action action = 2; 27 optional string action_description = 3; 28 optional int64 timestamp = 4; 29} 30 31 32// Store history of battery usage periodic job 33message BatteryUsageHistoricalLog { 34 repeated BatteryUsageHistoricalLogEntry log_entry = 1; 35} 36 37message BatteryUsageHistoricalLogEntry { 38 // The action to record battery usage job event 39 enum Action { 40 UNKNOWN = 0; 41 SCHEDULE_JOB = 1; 42 EXECUTE_JOB = 2; 43 RECHECK_JOB = 3; 44 FETCH_USAGE_DATA = 4; 45 INSERT_USAGE_DATA = 5; 46 } 47 48 optional int64 timestamp = 1; 49 optional Action action = 2; 50 optional string action_description = 3; 51} 52