Skip to content
Commit 5ad9ca63 authored by Manali Bhutiyani's avatar Manali Bhutiyani
Browse files

[hbm] Separate HBM times for multi-display devices.

This change separates High brightness mode information
for different physical displays, which was currently being shared
causing both displays to show similar HBM time remaining.
Each display's OLED lifetime risk due to HBM is independent,
so each display's HBM for SV timer should be independent.

Bug: 254588984

Test: atest com.android.server.display.HbmEventTest
      atest com.android.server.display.HighBrightnessModeControllerTest
      atest com.android.server.display.HighBrightnessModeMetadataTest
      atest com.android.server.display.DisplayPowerControllerTest
      atest com.android.server.display.DisplayPowerControllerTest2

      Manual testing:
      Manually tested this fix on multiple display devices, with high lux and
      forcing displays into HBM mode, and changing the
      displays to see if the time events are being updated correctly.

      $ adb shell dumpsys display | grep -i remainingtime
      remainingTime=274576
      remainingTime=249182

Change-Id: I0ed4ad99108a1a850dae68e1f6cf92adfab8bc1d
parent 7fd018f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment