summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorTrishool Narayanasetty <tnarayan@codeaurora.org>2014-09-04 22:24:40 +0530
committerSteve Kondik <shade@chemlab.org>2016-06-26 11:39:48 -0700
commitc93e778562e0d662cf90c6c012f8c19766051bb0 (patch)
tree6490f5f678e67412fc74a625aba43ecd1f7d199a /services/java
parent9cf937f503bb9e9f89a1f9c95edc94857661cab1 (diff)
downloadframeworks_base-c93e778562e0d662cf90c6c012f8c19766051bb0.zip
frameworks_base-c93e778562e0d662cf90c6c012f8c19766051bb0.tar.gz
frameworks_base-c93e778562e0d662cf90c6c012f8c19766051bb0.tar.bz2
SystemServer: Do not start Atlas Service on lowram devices.
Provide an on/off switch to control atlas service at start-up. This service is disabled by default on lowram devices to save memory. Atlas service is responsible for pre-loading drawables which can be shareable among the applications. Found that the probability of using same drawables in different apps concurrently is very less. However it allocates fixed size of ion buffer based on config. So by disabling it this memory overhead can be avoided. We are safe to disable this service as it does not block any functionality. Change-Id: I14599125c717b61f3ea5cded376fcc1802281756
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/SystemServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index d69fe11..953eaae 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -460,6 +460,7 @@ public final class SystemServer {
boolean isEmulator = SystemProperties.get("ro.kernel.qemu").equals("1");
String externalServer = context.getResources().getString(
org.cyanogenmod.platform.internal.R.string.config_externalSystemServer);
+ boolean disableAtlas = SystemProperties.getBoolean("config.disable_atlas", false);
try {
Slog.i(TAG, "Reading configuration...");
@@ -960,7 +961,7 @@ public final class SystemServer {
mSystemServiceManager.startService(DreamManagerService.class);
}
- if (!disableNonCoreServices) {
+ if (!disableNonCoreServices && !disableAtlas) {
try {
Slog.i(TAG, "Assets Atlas Service");
atlas = new AssetAtlasService(context);