commit | 9c64cb6a725865f4e48c3dae464f48500ed6a830 | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Wed Apr 12 13:39:59 2017 -0700 |
committer | Wale Ogunwale <ogunwale@google.com> | Wed Apr 12 13:39:59 2017 -0700 |
tree | 5b04e128a52615239b3ef5cf9bad9846a84ce0cd | |
parent | a9a2bbc64744e33cdd555a843b3ea352ddd70a11 [diff] |
Dump controller for AppWindowToken To help with debugging. Bug: 36097078 Test: N/A Change-Id: I72108b918d839b67efe8b8eed65a33775bd94dbc
diff --git a/services/core/java/com/android/server/wm/AppWindowContainerController.java b/services/core/java/com/android/server/wm/AppWindowContainerController.java index e26914e..c03c487 100644 --- a/services/core/java/com/android/server/wm/AppWindowContainerController.java +++ b/services/core/java/com/android/server/wm/AppWindowContainerController.java
@@ -712,6 +712,10 @@ @Override public String toString() { - return "{AppWindowContainerController token=" + mToken + "}"; + return "AppWindowContainerController{" + + " token=" + mToken + + " mContainer=" + mContainer + + " mListener=" + mListener + + "}"; } }
diff --git a/services/core/java/com/android/server/wm/AppWindowToken.java b/services/core/java/com/android/server/wm/AppWindowToken.java index a8664a5..724743d 100644 --- a/services/core/java/com/android/server/wm/AppWindowToken.java +++ b/services/core/java/com/android/server/wm/AppWindowToken.java
@@ -1553,6 +1553,9 @@ if (mPendingRelaunchCount != 0) { pw.print(prefix); pw.print("mPendingRelaunchCount="); pw.println(mPendingRelaunchCount); } + if (getController() != null) { + pw.print(prefix); pw.print("controller="); pw.println(getController()); + } } @Override