Fix WindowManager boot timeout on emulators
Like many other timeouts across frameworks/base/, the WindowManager
boot timeout should be multiplied to Build.HW_TIMEOUT_MULTIPLIER
which comes from ro.hw_timeout_multiplier whose default is 1 on real
hardware.
Change-Id: I7d9827e71ae74c2c145ffaa921127c5b0aa27bfd
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 2125c63..16d3bb9 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -3672,7 +3672,7 @@
hideBootMessagesLocked();
// If the screen still doesn't come up after 30 seconds, give
// up and turn it on.
- mH.sendEmptyMessageDelayed(H.BOOT_TIMEOUT, 30 * 1000);
+ mH.sendEmptyMessageDelayed(H.BOOT_TIMEOUT, 30 * 1000 * Build.HW_TIMEOUT_MULTIPLIER);
}
mPolicy.systemBooted();