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

Commit 5a55d5d7 authored by Fiona Campbell's avatar Fiona Campbell Committed by Android (Google) Code Review
Browse files

Merge "Only log internal display interactions."

parents 513f5626 4bf3c4a9
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -2511,7 +2511,9 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal
        float appliedThermalCapNits =
                event.getThermalMax() == PowerManager.BRIGHTNESS_MAX
                ? -1f : convertToNits(event.getThermalMax());

        if (mLogicalDisplay.getPrimaryDisplayDeviceLocked() != null
                && mLogicalDisplay.getPrimaryDisplayDeviceLocked()
                .getDisplayDeviceInfoLocked().type == Display.TYPE_INTERNAL) {
            FrameworkStatsLog.write(FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED,
                    convertToNits(event.getInitialBrightness()),
                    convertToNits(event.getBrightness()),
@@ -2525,6 +2527,7 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal
                    event.isAutomaticBrightnessEnabled(),
                    FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED__REASON__REASON_MANUAL);
        }
    }

    private final class DisplayControllerHandler extends Handler {
        DisplayControllerHandler(Looper looper) {