summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2023-11-30 16:09:19 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2023-11-30 18:09:28 +0000
commitadc0250c93aa508fc6f41b75e767e764169ef39d (patch)
tree8d685386e938dd1cc68c3b3212fa094f8850d95b /libs/androidfw/FileStream.cpp
parent4aa3999f54bc1348952ccc45a9828e44d99e89b7 (diff)
Update mirroring dialog to show concurrent displays warning
This introduces config_concurrentDisplayDeviceStates array, that is device specific and is supposed to contain all device states that represent "concurrent displays". This also creates a DeviceStateRepository that allows interactors to use the state provided by DeviceStateManager easily. Several other places in sysui are doing something similar (e.g. DevicePostureController and DisplayStateRepository), but with a slighly different logic that doesn't suit this use case (DPC is using an androidx related res that doesn't contain the concurrent state and having some logic to use the base state in certain cases, and DSR is only listening for specific states). Eventually, those other classes should be refactored to use DeviceStateRepository under the wood. This is only enabled for devices overriding the config_concurrentDisplayDeviceStates array in an overlay. Flag: ACONFIG enable_dual_display_blocking DISABLED Test: ConnectedDisplayInteractorTest, DeviceStateRepositoryTest, MirroringConfirmationDialogScerenshotTest Bug: 296211844 Change-Id: I68c0b1489019471aec0a72fda70f57a7bc1ed29d
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions