Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cb6cc755 authored by Andy Hung's avatar Andy Hung
Browse files

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 a81a4b4c)
parent bb52d577
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment