1syntax = "proto2";
2
3option java_multiple_files = true;
4option java_package = "com.android.settings.fuelgauge.batteryusage";
5option java_outer_classname = "BatteryEventProto";
6
7enum BatteryEventType {
8  UNKNOWN_EVENT = 0;
9  POWER_CONNECTED = 1;
10  POWER_DISCONNECTED = 2;
11  FULL_CHARGED = 3;
12  EVEN_HOUR = 4;
13}
14
15message BatteryEvent {
16  optional int64 timestamp = 1;
17  optional BatteryEventType type = 2;
18  optional int32 battery_level = 3;
19}
20