diff options
| author | 2024-11-21 14:15:04 +0000 | |
|---|---|---|
| committer | 2024-11-29 15:57:34 +0100 | |
| commit | fce5e5cdf43093345de095407375031510cfcedd (patch) | |
| tree | d2a3117161384b6e5130df9d7862ade12c2022c4 /libs/androidfw/misc.cpp | |
| parent | a217bb289df85db4bcc4f6e1a66807fbb37854c8 (diff) | |
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
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions