summaryrefslogtreecommitdiff
path: root/healthd
diff options
context:
space:
mode:
authorJack Wu <wjack@google.com>2023-03-16 10:58:56 +0800
committerJack Wu <wjack@google.com>2023-03-17 01:28:56 +0000
commit9ac8d76c11c99d325d1f345231fab3c517810fdf (patch)
tree73ec53b4409508cb8157fc6d9f2ee897d88217a8 /healthd
parentdb2372b3108a7543272c1d141cbed037eb4fa07e (diff)
downloadcore-9ac8d76c11c99d325d1f345231fab3c517810fdf.tar.gz
charger: fix show qustion mark when start to draw UI
skip drawing UI for max 5 seconds if battery level is not ready. Bug: 265896703 Test: confirm offmode charge UI behavior Change-Id: I11ae3419749be8d3c1d8d8e61eb4446d276ac1ad Signed-off-by: Jack Wu <wjack@google.com>
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd_mode_charger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp
index 1ce174bf4..a0527e8e3 100644
--- a/healthd/healthd_mode_charger.cpp
+++ b/healthd/healthd_mode_charger.cpp
@@ -88,7 +88,7 @@ char* locale;
#define POWER_ON_KEY_TIME (2 * MSEC_PER_SEC)
#define UNPLUGGED_SHUTDOWN_TIME (10 * MSEC_PER_SEC)
#define UNPLUGGED_DISPLAY_TIME (3 * MSEC_PER_SEC)
-#define MAX_BATT_LEVEL_WAIT_TIME (3 * MSEC_PER_SEC)
+#define MAX_BATT_LEVEL_WAIT_TIME (5 * MSEC_PER_SEC)
#define UNPLUGGED_SHUTDOWN_TIME_PROP "ro.product.charger.unplugged_shutdown_time"
#define LAST_KMSG_MAX_SZ (32 * 1024)