Loading core/java/android/app/ActivityManager.java +23 −16 Original line number Diff line number Diff line Loading @@ -212,10 +212,16 @@ public class ActivityManager { /** * Used by persistent processes to determine if they are running on a * higher-end device so should be okay using hardware drawing acceleration * (which tends to consume a lot more RAM). * (which tends to consume a lot more RAM). Alternatively, setting * ro.config.disable_hw_accel=true disables hardware acceleration even if the * device meets the other criteria since not all devices currently have * the ability to support it. * @hide */ static public boolean isHighEndGfx(Display display) { if (SystemProperties.get("ro.config.disable_hw_accel").equals("true")) { return false; } else { MemInfoReader reader = new MemInfoReader(); reader.readMemInfo(); if (reader.getTotalSize() >= (512*1024*1024)) { Loading @@ -233,6 +239,7 @@ public class ActivityManager { } return false; } } /** * Use to decide whether the running device can be considered a "large Loading Loading
core/java/android/app/ActivityManager.java +23 −16 Original line number Diff line number Diff line Loading @@ -212,10 +212,16 @@ public class ActivityManager { /** * Used by persistent processes to determine if they are running on a * higher-end device so should be okay using hardware drawing acceleration * (which tends to consume a lot more RAM). * (which tends to consume a lot more RAM). Alternatively, setting * ro.config.disable_hw_accel=true disables hardware acceleration even if the * device meets the other criteria since not all devices currently have * the ability to support it. * @hide */ static public boolean isHighEndGfx(Display display) { if (SystemProperties.get("ro.config.disable_hw_accel").equals("true")) { return false; } else { MemInfoReader reader = new MemInfoReader(); reader.readMemInfo(); if (reader.getTotalSize() >= (512*1024*1024)) { Loading @@ -233,6 +239,7 @@ public class ActivityManager { } return false; } } /** * Use to decide whether the running device can be considered a "large Loading