summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2023-05-12 08:20:00 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-08-20 08:07:45 +0000
commit93fffde25bd02941e2f8afc4a32591aefc387218 (patch)
treeb5aeccc274c9a0cf14aaa66f2d63e5125bdbd3e9
parent4ee2ba0c249aac3c2889109f30fcda67523f9f03 (diff)
downloadbase-93fffde25bd02941e2f8afc4a32591aefc387218.tar.gz
Enable insets cache for display switch
To reduce latency of physical display switch. Bug: 266197298 Bug: 293131586 Bug: 292472402 Test: Check latency of fold/unfold. (cherry picked from commit 5dfc7882dfa7431f8d3df257fe59ebfaa15705e2) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b71e95146f2c2241ab48c4602e4cbcec87d246da) Merged-In: Id2e796edee45dae281f867c2b1549a80984c8a8e Change-Id: Id2e796edee45dae281f867c2b1549a80984c8a8e
-rw-r--r--services/core/java/com/android/server/wm/DisplayPolicy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
index 95c953a5cf2d..a1a9a0877710 100644
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
@@ -176,7 +176,7 @@ public class DisplayPolicy {
// TODO(b/266197298): Remove this by a more general protocol from the insets providers.
private static final boolean USE_CACHED_INSETS_FOR_DISPLAY_SWITCH =
- SystemProperties.getBoolean("persist.wm.debug.cached_insets_switch", false);
+ SystemProperties.getBoolean("persist.wm.debug.cached_insets_switch", true);
private final WindowManagerService mService;
private final Context mContext;