diff options
author | Bookatz <bookatz@google.com> | 2017-10-10 15:49:28 -0700 |
---|---|---|
committer | Bookatz <bookatz@google.com> | 2017-10-23 10:26:18 -0700 |
commit | c1a050ad32246e0f7a7cb60c96eda197e2715f04 (patch) | |
tree | 65a2f6f104d2f144cf5d971359e0868344e5551b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d2167ba99cbec712c988cc04a05d4a40602afd29 (diff) |
Add pushing many batterystats events to statsd
Statsd is now informed for starts/stops/etc of the following events:
BleScan
BleScanUnoptimized
BleScanResult
Sensor
Gps
Sync
ScheduledJob
UidWakelock (aggregate wakelock)
LongPartialWakelock
BatterySaverMode (power save mode)
DeviceIdleMode (doze)
ScreenBrightness
Audio
Video (media codec)
Camera
Flashlight
ProcessLifeCycle
TODO: Note that, although tags are java constants (e.g.
StatsLog.SCREEN_STATE), the values passed in for states do not have java
constants associated with them, so we use literals (0 vs 1 for off vs
on). In the future, when corresponding java constants exist, these can
be updated.
Test: manually confirmed statslog received each type of events
Change-Id: I24282cdb56265bba61dceb0932112804273dcfc8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions