Ensure only internal display display interactions are logged.
Bug:236234158 Change-Id: I473867eb37ae6d862759ab1f4fad95bb7bb96616 Test: statsd_testdrive
This commit is contained in:
@@ -2838,18 +2838,22 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
event.getThermalMax() == PowerManager.BRIGHTNESS_MAX
|
||||
? -1f : convertToNits(event.getThermalMax());
|
||||
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED,
|
||||
convertToNits(event.getInitialBrightness()),
|
||||
convertToNits(event.getBrightness()),
|
||||
event.getSlowAmbientLux(),
|
||||
event.getPhysicalDisplayId(),
|
||||
event.isShortTermModelActive(),
|
||||
appliedLowPowerMode,
|
||||
appliedRbcStrength,
|
||||
appliedHbmMaxNits,
|
||||
appliedThermalCapNits,
|
||||
event.isAutomaticBrightnessEnabled(),
|
||||
FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED__REASON__REASON_MANUAL);
|
||||
if (mLogicalDisplay.getPrimaryDisplayDeviceLocked() != null
|
||||
&& mLogicalDisplay.getPrimaryDisplayDeviceLocked()
|
||||
.getDisplayDeviceInfoLocked().type == Display.TYPE_INTERNAL) {
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED,
|
||||
convertToNits(event.getInitialBrightness()),
|
||||
convertToNits(event.getBrightness()),
|
||||
event.getSlowAmbientLux(),
|
||||
event.getPhysicalDisplayId(),
|
||||
event.isShortTermModelActive(),
|
||||
appliedLowPowerMode,
|
||||
appliedRbcStrength,
|
||||
appliedHbmMaxNits,
|
||||
appliedThermalCapNits,
|
||||
event.isAutomaticBrightnessEnabled(),
|
||||
FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED__REASON__REASON_MANUAL);
|
||||
}
|
||||
}
|
||||
|
||||
private final class DisplayControllerHandler extends Handler {
|
||||
|
||||
Reference in New Issue
Block a user