diff options
author | 2020-06-15 12:34:53 -0700 | |
---|---|---|
committer | 2020-06-17 15:56:52 +0000 | |
commit | 54a81c7cd14d2552c61daa2da3ebaf25c98ac506 (patch) | |
tree | 7b8b74a9556476d04284f1587766f3d2d8122192 | |
parent | eac39c521b506d17786d8590b66e2de8935ad53d (diff) |
Reduce boot animation completion check interval
- 200 ms interval can increase boot time by 200ms.
- Reduce it to 50 ms for now.
- TODO: Migrate to SystemServices.waitForState and remove
polling completely
Bug: 157281833
Bug: 159045990
Test: reboot and check boot time
Change-Id: I2a7b7da90f1b14c16a7429ebd7f2971792f48e3c
-rw-r--r-- | services/core/java/com/android/server/wm/WindowManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java index 10d07573f8c6..4718b59f3bfe 100644 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java @@ -369,7 +369,8 @@ public class WindowManagerService extends IWindowManager.Stub static final long DEFAULT_INPUT_DISPATCHING_TIMEOUT_NANOS = 5000 * 1000000L; // Poll interval in milliseconds for watching boot animation finished. - private static final int BOOT_ANIMATION_POLL_INTERVAL = 200; + // TODO(b/159045990) Migrate to SystemService.waitForState with dedicated thread. + private static final int BOOT_ANIMATION_POLL_INTERVAL = 50; // The name of the boot animation service in init.rc. private static final String BOOT_ANIMATION_SERVICE = "bootanim"; |