summaryrefslogtreecommitdiff
path: root/core/java/android/os/Debug.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2016-05-11 14:21:07 -0700
committerDianne Hackborn <hackbod@google.com>2016-05-11 14:21:07 -0700
commitef0a402f5811d326e4e8d35758ab5c348297f9f4 (patch)
tree3355279b27bbdc825ed519daa5878c0d92e4605c /core/java/android/os/Debug.java
parentccb85eb411f5df1c50e504d4acfc973e8cbb6835 (diff)
Fix issue #28400000: Settings memory UI still showing z-ram...
...but probably shouldn't. Keep track of whether zram is being included in per-process pss and, if so, don't add it on separately. Change-Id: Ic945fc3deca8412272bb6019fe1be4b878cb763a
Diffstat (limited to 'core/java/android/os/Debug.java')
-rw-r--r--core/java/android/os/Debug.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java
index 55b107a215e4..175d883da29d 100644
--- a/core/java/android/os/Debug.java
+++ b/core/java/android/os/Debug.java
@@ -676,6 +676,15 @@ public final class Debug
return getTotalSwappedOutPss();
}
+ /**
+ * Return true if the kernel is reporting pss swapped out... that is, if
+ * {@link #getSummaryTotalSwapPss()} will return non-0 values.
+ * @hide
+ */
+ public boolean hasSwappedOutPss() {
+ return hasSwappedOutPss;
+ }
+
public int describeContents() {
return 0;
}