Merge "Ensure only internal display display interactions are logged." into tm-qpr-dev am: 6bb34e9b92
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20411902 Change-Id: I6a7226bd87e9c1d7e4d90e262a49044db41f3a44 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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