diff options
| author | Peter Collingbourne <pcc@google.com> | 2021-02-08 12:09:47 -0800 |
|---|---|---|
| committer | Peter Collingbourne <pcc@google.com> | 2021-02-19 15:36:15 -0800 |
| commit | 37374c9b6b267bf09c2fa6ef1ad8a09d418034ed (patch) | |
| tree | 121d7f0bf41624ef98191e8fda28257b30ecebab /core/java/android/os/Build.java | |
| parent | f8cc3c16d850884b21d6cc85cdcd79e131bf06e0 (diff) | |
Add support for a hw_timeout_multiplier system property.
In order to test the platform in emulators that are orders of magnitude
slower than real hardware we need to be able to avoid hitting timeouts
that prevent it from coming up properly. For this purpose introduce
a system property, ro.hw_timeout_multiplier, which may be set to
an integer value that acts as a multiplier for various timeouts on
the system.
Bug: 178231152
Change-Id: I6d7710beed0c4c5b1720e74e7abe3a586778c678
Ignore-AOSP-First: The frameworks/base part of this change conflicts with AOSP so we need to land it internally first
Diffstat (limited to 'core/java/android/os/Build.java')
| -rwxr-xr-x | core/java/android/os/Build.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index 74df1b2b9194..005ad46d8d5a 100755 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -1117,6 +1117,18 @@ public class Build { } /** + * A multiplier for various timeouts on the system. + * + * The intent is that products targeting software emulators that are orders of magnitude slower + * than real hardware may set this to a large number. On real devices and hardware-accelerated + * virtualized devices this should not be set. + * + * @hide + */ + public static final int HW_TIMEOUT_MULTIPLIER = + SystemProperties.getInt("ro.hw_timeout_multiplier", 1); + + /** * True if Treble is enabled and required for this device. * * @hide |
