Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54a81c7c authored by Keun young Park's avatar Keun young Park Committed by Keun-young Park
Browse files

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
parent eac39c52
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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";