summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author Arpit Singh <arpitks@google.com> 2025-03-06 13:47:19 +0000
committer Arpit Singh <arpitks@google.com> 2025-03-10 11:12:20 +0000
commit68ef9a17a1894ed5590172dba159df4a08b23fa0 (patch)
tree02e0775dd4a0bdc307c64a4a5328403ff16d3317 /include
parentc93479c9bfffac40445b6b0a843519690f73d028 (diff)
Add dev option override flag to connected display cursor flag
Adding the dev option flag that guards the dev option UI before checking the override value. We will fall back to connected displays cursor flag if dev option override is not available. Test: manual and presubmit Bug: 401213103 Flag: EXEMPT only changes the flagging logic Change-Id: Ib9fb9a66deaf1d58b36218039d1854e287be7ce5
Diffstat (limited to 'include')
-rw-r--r--include/input/InputFlags.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/input/InputFlags.h b/include/input/InputFlags.h
index 4b42f775dd..16e754e210 100644
--- a/include/input/InputFlags.h
+++ b/include/input/InputFlags.h
@@ -22,7 +22,21 @@ class InputFlags {
public:
/**
* Check if connected displays feature is enabled, either via the feature flag or settings
- * override.
+ * override. Developer setting override allows enabling all the "desktop experiences" features
+ * including input related connected_displays_cursor flag.
+ *
+ * The developer settings override is prioritised over aconfig flags. Any tests that require
+ * applicable aconfig flags to be disabled with SCOPED_FLAG_OVERRIDE also need this developer
+ * option to be reset locally.
+ *
+ * Also note the developer setting override is only applicable to the desktop experiences
+ * related features.
+ *
+ * To enable only the input flag run:
+ * adb shell aflags enable com.android.input.flags.connected_displays_cursor
+ * To override this flag and enable all "desktop experiences" features run:
+ * adb shell aflags enable com.android.window.flags.enable_desktop_mode_through_dev_option
+ * adb shell setprop persist.wm.debug.desktop_experience_devopts 1
*/
static bool connectedDisplaysCursorEnabled();