commit | 30e2d72810e699d7a61277b7ba1b6cace26b84aa | [log] [tgz] |
---|---|---|
author | Craig Mautner <cmautner@google.com> | Tue Feb 12 11:30:16 2013 -0800 |
committer | Craig Mautner <cmautner@google.com> | Tue Feb 12 16:03:29 2013 -0800 |
tree | 89011de6d793c94d9503642c6ec9d0b8fcd41e67 | |
parent | 7f03185fbe4ac066ffa7f6e3d29b531a9c43c29f [diff] [blame] |
Replace access to mAppTokens with AppTokenIterator More switching from Activity-based to Task-based control. Change-Id: Ida47d71a52b875a6a6bd77cb62911053f942da15
diff --git a/services/java/com/android/server/wm/DisplayContent.java b/services/java/com/android/server/wm/DisplayContent.java index 43a5f0c..a592893 100644 --- a/services/java/com/android/server/wm/DisplayContent.java +++ b/services/java/com/android/server/wm/DisplayContent.java
@@ -293,6 +293,15 @@ public void remove() { throw new IllegalArgumentException(); } + + int size() { + int size = 0; + final TaskListsIterator iterator = new TaskListsIterator(); + while (iterator.hasNext()) { + size += iterator.next().mAppTokens.size(); + } + return size; + } } void verifyAppTokens() {