Raise the theshold of TV devices up to 1.5GB
according to Android Help Center
for Panel TV and/or hybrid STB
the recommened threshold should be 1.5GB
Bug: 156579157
Bug: 169202633
Change-Id: Ib7d3d88c5b6d8db2d43f37018ba98aeac9ffca40
diff --git a/hostsidetests/securitybulletin/src/android/security/cts/HostsideOomCatcher.java b/hostsidetests/securitybulletin/src/android/security/cts/HostsideOomCatcher.java
index 86f930b..d97c4db 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/HostsideOomCatcher.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/HostsideOomCatcher.java
@@ -51,7 +51,7 @@
private static final String LOG_TAG = "HostsideOomCatcher";
- private static final long LOW_MEMORY_DEVICE_THRESHOLD_KB = 1024 * 1024; // 1GB
+ private static final long LOW_MEMORY_DEVICE_THRESHOLD_KB = (long)(1.5 * 1024 * 1024); //1.5GB
private static Map<String, WeakReference<BackgroundDeviceAction>> oomCatchers =
new ConcurrentHashMap<>();
private static Map<String, Long> totalMemories = new ConcurrentHashMap<>();