From b4e12494935697fa4ede006b37e6be889ef27109 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 26 Jun 2013 15:08:19 -0700 Subject: Add new ActivityManager.isLowRamDevice(). This and the old isHighEndGfx() is set up through a device configuration, rather than trying to compute it automatically. Change-Id: Ibc95c05791023a7ae6c88555b75bb61f2b613991 --- services/java/com/android/server/am/ProcessTracker.java | 2 +- services/java/com/android/server/content/SyncManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'services') diff --git a/services/java/com/android/server/am/ProcessTracker.java b/services/java/com/android/server/am/ProcessTracker.java index c9db7e5..30470f1 100644 --- a/services/java/com/android/server/am/ProcessTracker.java +++ b/services/java/com/android/server/am/ProcessTracker.java @@ -850,7 +850,7 @@ public final class ProcessTracker { pw.print(prefix); pw.print("PSS ("); pw.print(proc.mPssTableSize); - pw.println(" entrues):"); + pw.println(" entries):"); printedHeader = true; } pw.print(prefix); diff --git a/services/java/com/android/server/content/SyncManager.java b/services/java/com/android/server/content/SyncManager.java index 2b37c0e..058d253 100644 --- a/services/java/com/android/server/content/SyncManager.java +++ b/services/java/com/android/server/content/SyncManager.java @@ -112,7 +112,7 @@ public class SyncManager { private static final long MAX_TIME_PER_SYNC; static { - final boolean isLargeRAM = ActivityManager.isLargeRAM(); + final boolean isLargeRAM = !ActivityManager.isLowRamDeviceStatic(); int defaultMaxInitSyncs = isLargeRAM ? 5 : 2; int defaultMaxRegularSyncs = isLargeRAM ? 2 : 1; MAX_SIMULTANEOUS_INITIALIZATION_SYNCS = -- cgit v1.1