Merge "Also allow avoiding gfx acceleration at runtime" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
744e6f1738
@@ -959,8 +959,10 @@ public class ActivityManager {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
static public boolean isHighEndGfx() {
|
static public boolean isHighEndGfx() {
|
||||||
return !isLowRamDeviceStatic() &&
|
return !isLowRamDeviceStatic()
|
||||||
!Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
|
&& !RoSystemProperties.CONFIG_AVOID_GFX_ACCEL
|
||||||
|
&& !Resources.getSystem()
|
||||||
|
.getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ public class RoSystemProperties {
|
|||||||
SystemProperties.get("ro.control_privapp_permissions");
|
SystemProperties.get("ro.control_privapp_permissions");
|
||||||
|
|
||||||
// ------ ro.config.* -------- //
|
// ------ ro.config.* -------- //
|
||||||
|
public static final boolean CONFIG_AVOID_GFX_ACCEL =
|
||||||
|
SystemProperties.getBoolean("ro.config.avoid_gfx_accel", false);
|
||||||
public static final boolean CONFIG_LOW_RAM =
|
public static final boolean CONFIG_LOW_RAM =
|
||||||
SystemProperties.getBoolean("ro.config.low_ram", false);
|
SystemProperties.getBoolean("ro.config.low_ram", false);
|
||||||
public static final boolean CONFIG_SMALL_BATTERY =
|
public static final boolean CONFIG_SMALL_BATTERY =
|
||||||
|
|||||||
Reference in New Issue
Block a user