summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/WindowManagerGlobal.java
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2013-06-12 20:19:00 -0700
committerCraig Mautner <cmautner@google.com>2013-06-27 11:52:04 -0700
commite7c58b6d7d761b93e785b0a399e5b00fdb82f4ce (patch)
tree079d047233790d5d86b0b96d5ec04932f5acf906 /core/java/android/view/WindowManagerGlobal.java
parent9e424cfbf4404ae7c56ff374d66e7391ee9e84c4 (diff)
downloadframeworks_base-e7c58b6d7d761b93e785b0a399e5b00fdb82f4ce.zip
frameworks_base-e7c58b6d7d761b93e785b0a399e5b00fdb82f4ce.tar.gz
frameworks_base-e7c58b6d7d761b93e785b0a399e5b00fdb82f4ce.tar.bz2
Add debug for specific bug.
To be removed once the bug is fixed. Change-Id: Ie273d4503bb0b534af0e9efe8f45c573766e9a74
Diffstat (limited to 'core/java/android/view/WindowManagerGlobal.java')
-rw-r--r--core/java/android/view/WindowManagerGlobal.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerGlobal.java b/core/java/android/view/WindowManagerGlobal.java
index 0eb6d63..6666545 100644
--- a/core/java/android/view/WindowManagerGlobal.java
+++ b/core/java/android/view/WindowManagerGlobal.java
@@ -21,6 +21,7 @@ import android.app.ActivityManager;
import android.content.ComponentCallbacks2;
import android.content.res.Configuration;
import android.opengl.ManagedEGLContext;
+import android.os.Debug;
import android.os.IBinder;
import android.os.RemoteException;
import android.os.ServiceManager;
@@ -28,6 +29,7 @@ import android.os.SystemProperties;
import android.util.AndroidRuntimeException;
import android.util.ArraySet;
import android.util.Log;
+import android.util.Slog;
import android.view.inputmethod.InputMethodManager;
import com.android.internal.util.FastPrintWriter;
@@ -225,6 +227,7 @@ public final class WindowManagerGlobal {
if (index >= 0) {
if (mDyingViews.contains(view)) {
// Don't wait for MSG_DIE to make it's way through root's queue.
+ Slog.d(TAG, "addView: b9404689 mDying contains view=" + view);
mRoots.get(index).doDie();
} else {
throw new IllegalStateException("View " + view
@@ -249,6 +252,7 @@ public final class WindowManagerGlobal {
view.setLayoutParams(wparams);
+ Slog.d(TAG, "addView: b9404689 adding view=" + view + " root=" + root);
mViews.add(view);
mRoots.add(root);
mParams.add(wparams);
@@ -347,6 +351,8 @@ public final class WindowManagerGlobal {
if (view != null) {
view.assignParent(null);
if (deferred) {
+ Slog.d(TAG, "removeViewLocked: b9404689 mDyingViews adding view=" + view
+ + " root=" + root + " Callers=" + Debug.getCallers(4));
mDyingViews.add(view);
}
}
@@ -356,10 +362,15 @@ public final class WindowManagerGlobal {
synchronized (mLock) {
final int index = mRoots.indexOf(root);
if (index >= 0) {
+ Slog.d(TAG, "doRemoveView: b9404689 removing view=" + mViews.get(index)
+ + " Callers=" + Debug.getCallers(4));
mRoots.remove(index);
mParams.remove(index);
final View view = mViews.remove(index);
mDyingViews.remove(view);
+ } else {
+ Slog.d(TAG, "doRemoveView: b9404689 couldn't find root=" + root
+ + " Callers=" + Debug.getCallers(4));
}
}
}