Ensure only internal display display interactions are logged.
Bug:236234158
Change-Id: I473867eb37ae6d862759ab1f4fad95bb7bb96616
Test: statsd_testdrive
(cherry picked from commit fedad29a41)
Merged-in: I473867eb37ae6d862759ab1f4fad95bb7bb96616
This commit is contained in:
@@ -2810,18 +2810,22 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
|
||||
float appliedPowerFactor = event.isLowPowerModeSet() ? event.powerFactor : -1f;
|
||||
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED,
|
||||
convertToNits(event.initialBrightness),
|
||||
convertToNits(event.brightness),
|
||||
event.slowAmbientLux,
|
||||
event.physicalDisplayId,
|
||||
event.isShortTermModelActive(),
|
||||
appliedPowerFactor,
|
||||
appliedRbcStrength,
|
||||
appliedHbmMaxNits,
|
||||
appliedThermalCapNits,
|
||||
event.automaticBrightnessEnabled,
|
||||
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.initialBrightness),
|
||||
convertToNits(event.brightness),
|
||||
event.slowAmbientLux,
|
||||
event.physicalDisplayId,
|
||||
event.isShortTermModelActive(),
|
||||
appliedPowerFactor,
|
||||
appliedRbcStrength,
|
||||
appliedHbmMaxNits,
|
||||
appliedThermalCapNits,
|
||||
event.automaticBrightnessEnabled,
|
||||
FrameworkStatsLog.DISPLAY_BRIGHTNESS_CHANGED__REASON__REASON_MANUAL);
|
||||
}
|
||||
}
|
||||
|
||||
class BrightnessEvent {
|
||||
|
||||
Reference in New Issue
Block a user