From 4a8ed3c57d917e2f82a29dc87f9f091297daa7e9 Mon Sep 17 00:00:00 2001 From: Nicolo' Mazzucato Date: Thu, 9 Mar 2023 10:16:46 +0000 Subject: [PATCH] Increase keyguardDrawnTimeout to reduce fold->AOD flickers Once we hit the keyguard drawn timeout, the screen is turned on. However, in some cases sysui and launcher are not ready (due to big ui thread latency), and this results with the screen on while showing the wrong layout, followed by a rapid jump to the correct one. This cl makes the timeout configurable in overlays for each device. In this way, the chances to have flicker are greatly reduced, but the underlying latency problem remains. In parallel, we're looking to fix the root cause latency problem Bug: 243015678 Test: trying to repro the scenario generating flicker many times, no flicker. Change-Id: I08f147e7e4944656a0028df7e521441b1a9cc65c --- core/res/res/values/config.xml | 3 +++ core/res/res/values/symbols.xml | 1 + .../java/com/android/server/policy/PhoneWindowManager.java | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 993fcf8770553..38913f5d29412 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -727,6 +727,9 @@ mode. --> 1000 + + 1000 +