Exclude screen on time in battery usage page when the device is in charging.
Bug: 265751163 Fix: 265751163 Test: manual Change-Id: I4ed71e1d6fad56a7cbfc9cd47ed4d791f45261ce
This commit is contained in:
@@ -7,6 +7,22 @@ package {
|
||||
default_applicable_licenses: ["packages_apps_Settings_license"],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "app-usage-event-protos-lite",
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: ["app_usage_event.proto"],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "battery-event-protos-lite",
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: ["battery_event.proto"],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "fuelgauge-usage-state-protos-lite",
|
||||
proto: {
|
||||
@@ -14,11 +30,3 @@ java_library {
|
||||
},
|
||||
srcs: ["fuelgauge_usage_state.proto"],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "app-usage-event-protos-lite",
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: ["app_usage_event.proto"],
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
syntax = "proto2";
|
||||
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.android.settings.fuelgauge.batteryusage";
|
||||
option java_outer_classname = "BatteryEventProto";
|
||||
|
||||
enum BatteryEventType {
|
||||
UNKNOWN_EVENT = 0;
|
||||
POWER_CONNECTED = 1;
|
||||
POWER_DISCONNECTED = 2;
|
||||
}
|
||||
|
||||
message BatteryEvent {
|
||||
optional int64 timestamp = 1;
|
||||
optional BatteryEventType type = 2;
|
||||
optional int32 battery_level = 3;
|
||||
}
|
Reference in New Issue
Block a user