summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-07-28 17:11:29 -0700
committerAdam Lesinski <adamlesinski@google.com>2015-07-28 17:11:29 -0700
commitc691d3ccf4eb29376225bcbeb35bc532a3071ed1 (patch)
treeaaf6fd676b6643b92da6cd06cceaedb0c0d15cd1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbeb6e66817e084c8a1ac92ecaeb6f0c73d11cc49 (diff)
BatteryStats: Use proper power calculator when energy data is received
We check for the presence of energy data when determining whether to use the WiFiPowerCalculator or WiFiPowerEstimator. Since we can receive this data later, we need to switch to the WiFiPowerCalculator if we weren't using it before. We can't ask the hardware if it supports energy data because that would involve a call into WiFiManagerService, which can cause a deadlock if we are holding the BatteryStatsService lock while using this class. Bug:22776010 Change-Id: Id685d487c56595eab1d382f49da9417a423bb517
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions