summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Phlipot <cphlipot@fb.com> 2022-04-12 11:29:24 -0700
committer Christopher Phlipot <cphlipot@fb.com> 2022-04-12 18:42:53 +0000
commitfc9561e240b725b37b60ef7184736dc6ba4b77fe (patch)
treeb31f310cc3dcaef624ca33101c8d0b57fa53e732
parent89ee3e6394eb1b3275393dbbc7e032103136d4aa (diff)
Fix swapped backup/heavy oom adj labels
The labels for the "backup" and "heavy" oom adj are swapped relative to the ordering in DUMP_MEM_OOM_ADJ. Swap the order of the labels to be consistent. This should resolve an issue where meminfo mixes up heavy and backup in the text-based report. Change-Id: Idbc985c3080eada0945c21825659b031f1f7f2a5 Signed-off-by: Chris Phlipot <cphlipot@fb.com>
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index 0f450e16be2d..76c2d5ef7fd3 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -10375,7 +10375,7 @@ public class ActivityManagerService extends IActivityManager.Stub
"Native",
"System", "Persistent", "Persistent Service", "Foreground",
"Visible", "Perceptible", "Perceptible Low", "Perceptible Medium",
- "Heavy Weight", "Backup",
+ "Backup", "Heavy Weight",
"A Services", "Home",
"Previous", "B Services", "Cached"
};
@@ -10383,7 +10383,7 @@ public class ActivityManagerService extends IActivityManager.Stub
"native",
"sys", "pers", "persvc", "fore",
"vis", "percept", "perceptl", "perceptm",
- "heavy", "backup",
+ "backup", "heavy",
"servicea", "home",
"prev", "serviceb", "cached"
};