aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Ford <kennethford@google.com>2022-11-15 18:05:37 +0000
committerKenneth Ford <kennethford@google.com>2022-11-17 17:42:34 +0000
commitb428cd829fec281b1c3ac3815591b63c2a71a876 (patch)
tree5826531e1d7e8cc04a7e9a20dc4c33cd07bf987e
parent3617557793e925477b2c9fc75e89535468454547 (diff)
downloadcuttlefish-b428cd829fec281b1c3ac3815591b63c2a71a876.tar.gz
Adds config values for rear display mode
Adds new device state and display configuration for rear display mode Bug: 207686851 Test: Manual Change-Id: I2fc96a5e8c6fd7d7950afd2ec403cab811dc6eda
-rw-r--r--shared/foldable/device_state_configuration.xml7
-rw-r--r--shared/foldable/display_layout_configuration.xml13
-rw-r--r--shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml2
3 files changed, 21 insertions, 1 deletions
diff --git a/shared/foldable/device_state_configuration.xml b/shared/foldable/device_state_configuration.xml
index 9618b117f..877a58303 100644
--- a/shared/foldable/device_state_configuration.xml
+++ b/shared/foldable/device_state_configuration.xml
@@ -34,4 +34,11 @@
</lid-switch>
</conditions>
</device-state>
+ <device-state>
+ <identifier>3</identifier>
+ <name>REAR_DISPLAY_MODE</name>
+ <flags>
+ <flag>FLAG_EMULATED_ONLY</flag>
+ </flags>
+ </device-state>
</device-state-config>
diff --git a/shared/foldable/display_layout_configuration.xml b/shared/foldable/display_layout_configuration.xml
index 54b76b1b5..2c50e76ba 100644
--- a/shared/foldable/display_layout_configuration.xml
+++ b/shared/foldable/display_layout_configuration.xml
@@ -38,4 +38,17 @@
<address>4619827551948147201</address>
</display>
</layout>
+
+ <layout>
+ <!-- REAR_DISPLAY_MODE: display0 disabled, display1 enabled -->
+ <state>3</state>
+
+ <display enabled="false">
+ <address>4619827259835644672</address>
+ </display>
+
+ <display enabled="true" defaultDisplay="true">
+ <address>4619827551948147201</address>
+ </display>
+ </layout>
</layouts>
diff --git a/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml b/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml
index c93ab5afa..85b6cadb8 100644
--- a/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml
@@ -49,5 +49,5 @@
<!-- Device state that corresponds to rear display mode, feature provided
through Jetpack WindowManager -->
- <integer name="config_deviceStateRearDisplay">0</integer>
+ <integer name="config_deviceStateRearDisplay">3</integer>
</resources>