commit | 59325eb31f25704bb88c348160bb69e7c1aa3b48 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Wed May 09 18:45:20 2012 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Wed May 09 18:45:20 2012 -0700 |
tree | b0e5c3229fbc35974658646b08b5611f5cad93ff | |
parent | a53de0629f3b94472c0f160f5bbe1090b020feab [diff] [blame] |
Add new API to find total RAM. Change-Id: Iad2dff3c44f471515f093e7f0d0d959528881ab9
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index aa7de82..54ef724 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -5360,6 +5360,7 @@ final long homeAppMem = mProcessList.getMemLevel(ProcessList.HOME_APP_ADJ); final long hiddenAppMem = mProcessList.getMemLevel(ProcessList.HIDDEN_APP_MIN_ADJ); outInfo.availMem = Process.getFreeMemory(); + outInfo.totalMem = Process.getTotalMemory(); outInfo.threshold = homeAppMem; outInfo.lowMemory = outInfo.availMem < (homeAppMem + ((hiddenAppMem-homeAppMem)/2)); outInfo.hiddenAppThreshold = hiddenAppMem;