commit | cbfc95c6ee0301f8350c6b364f264bc9095a119f | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Mon Jan 08 18:37:09 2024 -0800 |
committer | Andy Hung <hunga@google.com> | Fri Mar 08 17:07:02 2024 -0800 |
tree | bd38639c2c58b0d949f4a8bd1e6a7265418fb220 | |
parent | 1b651bac830060a7aa0df6bc40186ee810b168cc [diff] |
MediaMetricsService: Set TimedAction wakeup interval to 3 min Better AudioPowerUsageDataReported stats for low power form factors which are suspended most of the time. Test: adb shell dumpsys media.metrics --all Bug: 319178129 Merged-In: I43a5fd80daacde36f7f5923cedcc70b07872f8ab Change-Id: I43a5fd80daacde36f7f5923cedcc70b07872f8ab
diff --git a/services/mediametrics/include/mediametricsservice/TimedAction.h b/services/mediametrics/include/mediametricsservice/TimedAction.h index e5d7df0..8b53ded 100644 --- a/services/mediametrics/include/mediametricsservice/TimedAction.h +++ b/services/mediametrics/include/mediametricsservice/TimedAction.h
@@ -30,7 +30,7 @@ // Define granularity of wakeup to prevent delayed events if // device is suspended. - static constexpr auto kWakeupInterval = std::chrono::minutes(15); + static constexpr auto kWakeupInterval = std::chrono::minutes(3); public: TimedAction() : mThread{[this](){threadLoop();}} {}