Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit eb21cf10 authored by Eric Jeong's avatar Eric Jeong
Browse files

Assign display groups to individual physical displays

- "displayGroup" attribute is added to display layout configuration.
- If displayGroup is null, the default display group is assigned to
  the display.
- The displays under the same displayGroup are assigned to the same
  display group.
- To not break backward compatibility, the default value of
  "displayGroup" is null.
- A power group corresponding to each display group is created when the
  boot phase is PHASE_SYSTEM_SERVICES_READY.

Bug: 254542024
Test: atest android.os.cts.PowerManagerTest PowerManagerServiceTest
      PowerManagerServiceMockingTest PowerManagerServicePermissionTest
      PowerManager_WakeLockTest PowerManager_ThermalTest
      android.os.PowerManagerTest WakeLockTest PowerGroupTest
      LogicalDisplayTest LogicalDisplayMapperTest
      DisplayManagerServiceTest LocalDisplayAdapterTest
      WakelockControllerTest DisplayPowerControllerTest
      DisplayPowerController2Test
Test: lunch gcar_md_emu_x86_64-userdebug && build && run emulator && adb
      shell dumpsys display && make sure each physical display has a
      different display group
Change-Id: Ieb42280f1a42e9d1353cb02ca3c1773fa1c50293
parent 75dcc784
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