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

Commit c05f8294 authored by Mike Ma's avatar Mike Ma Committed by android-build-merger
Browse files

Merge "Fix ambient display time unit error" into pi-dev am: a15aa6e2

am: 763a3ad4

Change-Id: I16a0ac201c253767687b647bcc65f65a4c9da7a0
parents ee9402a7 763a3ad4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -657,7 +657,7 @@ public class BatteryStatsHelper {
     * {@link #removeHiddenBatterySippers(List)}.
     */
    private void addAmbientDisplayUsage() {
        long ambientDisplayMs = mStats.getScreenDozeTime(mRawRealtimeUs, mStatsType);
        long ambientDisplayMs = mStats.getScreenDozeTime(mRawRealtimeUs, mStatsType) / 1000;
        double power = mPowerProfile.getAveragePower(PowerProfile.POWER_AMBIENT_DISPLAY)
                * ambientDisplayMs / (60 * 60 * 1000);
        if (power > 0) {