From 2826bc4ca52686f6863409e36eaea1a7f45de3eb Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 5 Aug 2011 17:51:48 -0700 Subject: Use new more efficient API for retrieving pss. Change-Id: Ibcbcc397c2a7c19acd2de640528392df9bb780bb --- src/com/android/settings/applications/RunningState.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/com') diff --git a/src/com/android/settings/applications/RunningState.java b/src/com/android/settings/applications/RunningState.java index 8ca17a5..e9053b9 100644 --- a/src/com/android/settings/applications/RunningState.java +++ b/src/com/android/settings/applications/RunningState.java @@ -388,8 +388,8 @@ public class RunningState { return changed; } - boolean updateSize(Context context, Debug.MemoryInfo mem, int curSeq) { - mSize = ((long)mem.getTotalPss()) * 1024; + boolean updateSize(Context context, long pss, int curSeq) { + mSize = pss * 1024; if (mCurSeq == curSeq) { String sizeStr = Formatter.formatShortFileSize( context, mSize); @@ -964,12 +964,12 @@ public class RunningState { for (int i=0; i= -- cgit v1.1