Support custom virtual display dim brightness
This is twofold:
- In PowerManagerService, use the relevant DisplayInfo to get the
brightness constraints. This is a no-op because both PMS and
DisplayDeviceConfig use the same resources to get the min/max
and default brightness. As a bonus, PhoneWindowManager can get
these constraints for the specific display.
- Add a dim brightness API to VirtualDisplayConfig and populate a
new DisplayInfo field with it, similar to how the default
brightness is handled. And simply add the relevant displayId to
DisplayDimModifier.
Fix: 377443330
Test: presubmit
Flag: android.companion.virtualdevice.flags.device_aware_display_power
Change-Id: Iecd62ca0f4bb395bda2221e0b51e40b7e21558c9
20 files changed