Loading services/core/java/com/android/server/display/DisplayPowerController.java +16 −12 Original line number Diff line number Diff line Loading @@ -2810,6 +2810,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call float appliedPowerFactor = event.isLowPowerModeSet() ? event.powerFactor : -1f; if (mLogicalDisplay.getPrimaryDisplayDeviceLocked() != null && mLogicalDisplay.getPrimaryDisplayDeviceLocked() .getDisplayDeviceInfoLocked().type == Display.TYPE_INTERNAL) { FrameworkStatsLog.write(FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED, convertToNits(event.initialBrightness), convertToNits(event.brightness), Loading @@ -2823,6 +2826,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call event.automaticBrightnessEnabled, FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED__REASON__REASON_MANUAL); } } class BrightnessEvent { static final int FLAG_RBC = 0x1; Loading Loading
services/core/java/com/android/server/display/DisplayPowerController.java +16 −12 Original line number Diff line number Diff line Loading @@ -2810,6 +2810,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call float appliedPowerFactor = event.isLowPowerModeSet() ? event.powerFactor : -1f; if (mLogicalDisplay.getPrimaryDisplayDeviceLocked() != null && mLogicalDisplay.getPrimaryDisplayDeviceLocked() .getDisplayDeviceInfoLocked().type == Display.TYPE_INTERNAL) { FrameworkStatsLog.write(FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED, convertToNits(event.initialBrightness), convertToNits(event.brightness), Loading @@ -2823,6 +2826,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call event.automaticBrightnessEnabled, FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED__REASON__REASON_MANUAL); } } class BrightnessEvent { static final int FLAG_RBC = 0x1; Loading