summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2018-11-16 17:27:01 -0800
committerJoe Onorato <joeo@google.com>2018-11-29 10:48:26 -0800
commit68cf7a9e196d1702082a61f02ae259a59c0fe800 (patch)
tree375f0ffa6117d2b162981c457bf8c538e39369fd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent6e6208769903f2fd466250033abf7084fbef550e (diff)
Parse the raw batterystats into an ActivityReport object.
For each app that appears in the batterystats data, there is an AppActivity object (which subclasses from AppInfo, because the needs of the upcoming PowerReport object are similar). Inside the AppActivity, there are ComponentActivity objects. Each power using component has a ComponentActivity for the fields required. The additional Report objects in RawBatteryStats are also added here. This change usess modem data as a proof of concept. The exact fields in it may evolve, even though the calculation uses tx and rx packets, the final power calculation uses time, and putting the batterystats apportioning logic in the batterystats handling code seems better than what we're doing here. Anyway, that can be iterated upon. Test: atest frameworks/base/tools/powermodel --host Change-Id: I2c5fce16d4fef3628d64107562d6cf9ea4edbbc2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions