summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authortsaichristine <tsaichristine@google.com>2020-05-13 14:32:37 -0700
committertsaichristine <tsaichristine@google.com>2020-05-18 09:45:12 -0700
commit9f951059bf529b365b14a2e14238add82a31e884 (patch)
tree32053b768732420b627ac89dbaf749b21d34fcb5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent31db4f456b3a0feba50719d8a08d5d4c75afb1b1 (diff)
Fix ValueMetric should only pull on real state changes
In ValueMetricProducer, we now map the new and old state values from onStateChanged to their correct group ids (no mapping happens if the metric has no state map). We then check if the group ids are the same and return if they are. Having the same group id means that the state values are in the same group and no pull is needed. onStateChanged was updated to take state values stored in FieldValue objects instead of as ints. This makes it easier to utilize the mapStateValue function in MetricProducer. Bug: b/156428844 Test: m statsd_test && adb sync data && adb shell data/nativetest/statsd_test/statsd_test Change-Id: Id8f110db593470b8923e7c4259d70cc5f5bc9147
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions