summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Pierre Barbier de Reuille <pbdr@google.com> 2023-05-12 14:13:22 +0100
committer Pierre Barbier de Reuille <pbdr@google.com> 2023-08-25 22:09:00 +0000
commit4d96c1ffee6bb58e59d6e61c16b9a062dfe31c13 (patch)
tree54c4612763f3efe7cf9176ebba66590fb6cd3c09 /libs/hwui/FrameInfoVisualizer.cpp
parentd2cd2b64f434d755fd307476af3fef44750afa10 (diff)
Add APIs to control the external display state
External displays start disabled, signal connection / disconnection and can be enabled / disabled by system apps. The implementation of the signalling is mostly in LogicalDisplayMapper. The flags are accessed through DisplayManagerFlags, which is injected into DisplayManagerService. All other uses come from DisplayManagerService and is propagated. This allows for injection in tests. Currently, we are using a standard flag, but if DeviceConfig is not ready, we instead read a default static value. The value cannot change during the runtime of the device. When read only flags are ready, we can simplify the code to remove the default value, as the flag will always be available. To test on a local device, set `DisplayManagerFlags.DEFAULT_IS_CONNECTED_DISPLAY_MANAGEMENT_ENABLED` to true. Bug: 280739508 Test: atest LocalDisplayAdapterTest Test: atest DisplayManagerServiceTest Change-Id: I91411a8e726982d88474cf2ecd0f423bde9be107
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions