From 301f754b9d3c8e6b09aad45f6de12601b7f245c8 Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Wed, 13 May 2020 13:10:34 -0700 Subject: [PATCH] Annotate ChargingStatus as a state atom. Charging status is different from plugged status and can be used as a state for certain metrics. Bug: 140496920 Bug: 143495340 Bug: 145838040 Test: bit statsd_test:* Change-Id: I1ef41191588b6d26346323203dabe488d488c131 --- cmds/statsd/src/atoms.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 1d9f20e8d3c33..4db0f91ca871e 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -1256,7 +1256,8 @@ message BatteryLevelChanged { */ message ChargingStateChanged { // State of the battery, from frameworks/base/core/proto/android/os/enums.proto. - optional android.os.BatteryStatusEnum state = 1; + optional android.os.BatteryStatusEnum state = 1 + [(state_field_option).exclusive_state = true, (state_field_option).nested = false]; } /**