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

Skip to content
Commit 5f9c679c authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Add BatteryUsageStats.getDischargeDurationMs

This method returns the total amount of time the battery was
discharging during the current battery session.

Also, fixing time units used in BatteryStats tests: they are
supposed to be microseconds, not milliseconds.

Bug: 214407774
Test: atest FrameworksCoreTests:BatteryChargeCalculatorTest
Change-Id: I5b64a6bd8a577b558b90cb60a1db8c3774121921
parent 056333fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment