diff options
author | Yuncheol Heo <ycheo@google.com> | 2021-12-02 11:07:07 -0800 |
---|---|---|
committer | Yuncheol Heo <ycheo@google.com> | 2021-12-02 19:35:25 +0000 |
commit | 31eb2758df42b51184e03cc257989584cef75581 (patch) | |
tree | 7c7bf055157546b393fe10e1776822df1c2e7b84 | |
parent | 192c570e834ad5f611f9b0d9ffa8ba672aca594c (diff) | |
download | Cluster-31eb2758df42b51184e03cc257989584cef75581.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
-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"); } |