summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Michael Wachenschwanz <mwachens@google.com> 2022-10-18 13:49:35 -0700
committer Michael Wachenschwanz <mwachens@google.com> 2022-10-18 13:49:35 -0700
commit9c841db321f63b39d129d80685890b8bf217524e (patch)
tree6d3db73caf9809ab76826a78b7a5a545d5fff183 /libs/androidfw/ResourceTimer.cpp
parent5cc7eec00aea3fda718d71d50387b18391edaf46 (diff)
Rate limit BatteryStats' ModemActivityInfo querying
Frequent mobile radio power state changes results in frequent ModemActivityInfo queries. To limit the unnecessary churn, a Modem update due to mobile radio power state change will only occur some amount of time after the previous update. Modem updates due to other signals (plug/unplug events, battery percent change, etc) will be unaffected. Fixes: 239715259 Test: atest BatteryStatsNoteTest Merged-In: Ie0af28dbc2ad4836ef6437c0656dc20eec2285ea Change-Id: Ib3ee18113ac381b8912bb58974b5d41ceefb7131
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions