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 EXTERNAL_UPDATE = 7; 24 EXPIRATION_RESET = 8; 25 } 26 27 optional string package_name = 1; 28 optional Action action = 2; 29 optional string action_description = 3; 30 optional int64 timestamp = 4; 31} 32 33 34// Store history of battery usage periodic job 35message BatteryUsageHistoricalLog { 36 repeated BatteryUsageHistoricalLogEntry log_entry = 1; 37} 38 39message BatteryUsageHistoricalLogEntry { 40 // The action to record battery usage job event 41 enum Action { 42 UNKNOWN = 0; 43 SCHEDULE_JOB = 1; 44 EXECUTE_JOB = 2; 45 RECHECK_JOB = 3; 46 FETCH_USAGE_DATA = 4; 47 INSERT_USAGE_DATA = 5; 48 TIME_UPDATED = 6; 49 TIMEZONE_UPDATED = 7; 50 } 51 52 optional int64 timestamp = 1; 53 optional Action action = 2; 54 optional string action_description = 3; 55} 56