commit | cb6cc7555c63d7b29abd144d0bcb57b8ce8e2772 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Thu May 19 19:24:51 2022 -0700 |
committer | Andy Hung <hunga@google.com> | Thu Jul 07 00:00:33 2022 +0000 |
tree | e67cc181063d0e429dc87609dc3990af797af654 | |
parent | bb52d5773c2d170b051fbb2805455ce2b14d7476 [diff] |
TrackMetrics: Fix volume computation Average volume should be weighted based on active time not total lifetime. Improve the numerical accuracy of average volume using West's algorithm. Remove unneeded variables. Test: youtube, play/pause, adb shell dumpsys media.metrics Bug: 233409482 Merged-In: I9fadb7287bd0bccbf5c74aad5a07eab277303d02 Change-Id: I9fadb7287bd0bccbf5c74aad5a07eab277303d02 (cherry picked from commit a81a4b4c947ff4aa483603f2ca6c44d6fc3d1380)