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

Commit 763a3ad4 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

Change-Id: I9eafd677e57ddf8c03a0c1c06bc9d68cc10e7b42
parents c266a5d5 a15aa6e2
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) {