Fix dumpsys display apptoken ordering.

Ordering was bottom up stack ordering but top down apptoken ordering
within each stack. This makes it top down ordering throughout the
dump.

Change-Id: Ie15dbbfc3b21b8df101a0803e556094142dc408e
This commit is contained in:
Craig Mautner
2014-10-22 09:23:25 -07:00
parent a9a550dd8e
commit e8b85fd419

View File

@@ -376,10 +376,9 @@ class DisplayContent {
stack.dump(prefix + " ", pw);
}
pw.println();
pw.println(" Application tokens in bottom up Z order:");
pw.println(" Application tokens in top down Z order:");
int ndx = 0;
final int numStacks = mStacks.size();
for (int stackNdx = 0; stackNdx < numStacks; ++stackNdx) {
for (int stackNdx = mStacks.size() - 1; stackNdx >= 0; --stackNdx) {
ArrayList<Task> tasks = mStacks.get(stackNdx).getTasks();
for (int taskNdx = tasks.size() - 1; taskNdx >= 0; --taskNdx) {
AppTokenList tokens = tasks.get(taskNdx).mAppTokens;