diff options
author | Yuncheol Heo <ycheo@google.com> | 2021-12-02 11:07:07 -0800 |
---|---|---|
committer | Yuncheol Heo <ycheo@google.com> | 2022-01-31 22:57:54 +0000 |
commit | 1c7826e338ffb2c4ead749ec53bcd1924693ff08 (patch) | |
tree | 0b7b12a2e16c5b5ff9b465c447b593a2368b3aa0 | |
parent | da323c48ad98c46345936a932ca2573bb857b0a7 (diff) | |
download | Cluster-1c7826e338ffb2c4ead749ec53bcd1924693ff08.tar.gz |
Use non-trusted virtual display for ClusterOsDouble.
- non-trusted virtual display can't be the forcus display, so it can't
hinder RotaryService.
Bug: 206862329
Test: Change ClusterActivity and check if the cluster display is focused display.
Change-Id: I932c84177bf54fd25f711693ccb931982527a360
(cherry picked from commit 31eb2758df42b51184e03cc257989584cef75581)
Merged-In: I932c84177bf54fd25f711693ccb931982527a360
-rw-r--r-- | ClusterOsDouble/src/com/android/car/cluster/osdouble/ClusterOsDoubleActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ClusterOsDouble/src/com/android/car/cluster/osdouble/ClusterOsDoubleActivity.java b/ClusterOsDouble/src/com/android/car/cluster/osdouble/ClusterOsDoubleActivity.java index 1b4f571..8ba7eb3 100644 --- a/ClusterOsDouble/src/com/android/car/cluster/osdouble/ClusterOsDoubleActivity.java +++ b/ClusterOsDouble/src/com/android/car/cluster/osdouble/ClusterOsDoubleActivity.java @@ -194,7 +194,9 @@ public class ClusterOsDoubleActivity extends ComponentActivity { + "x" + height); return mDisplayManager.createVirtualDisplay(/* projection= */ null, "ClusterOsDouble-VD", width, height, 160, surface, - VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY | VIRTUAL_DISPLAY_FLAG_TRUSTED, + // Don't use VIRTUAL_DISPLAY_FLAG_TRUSTED, because we don't want the cluster display + // to be the focus display which can hinder Rotary service (b/206862329). + VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY, /* callback= */ null, /* handler= */ null, "ClusterDisplay"); } |