summaryrefslogtreecommitdiffstats
path: root/policy/src
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2013-08-26 15:37:58 -0400
committerJohn Spurlock <jspurlock@google.com>2013-08-26 15:37:58 -0400
commit0ec64c65fb7fbfd89556bc33f5caab4ef0937fd4 (patch)
treed583f1d2d0776612696a0c898b0e440cae3a4d65 /policy/src
parent94366313331a789440a3c077173aafcb85cabe78 (diff)
downloadframeworks_base-0ec64c65fb7fbfd89556bc33f5caab4ef0937fd4.zip
frameworks_base-0ec64c65fb7fbfd89556bc33f5caab4ef0937fd4.tar.gz
frameworks_base-0ec64c65fb7fbfd89556bc33f5caab4ef0937fd4.tar.bz2
Add new logging for system bar window state.
And re-enable PhoneStatusBar dump output in bugreports. Bug:10488453 Change-Id: If39b32e82dee59f3c166c5a948d379030da0ea01
Diffstat (limited to 'policy/src')
-rw-r--r--policy/src/com/android/internal/policy/impl/BarController.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/policy/src/com/android/internal/policy/impl/BarController.java b/policy/src/com/android/internal/policy/impl/BarController.java
index 554fd1cc..01c53fe 100644
--- a/policy/src/com/android/internal/policy/impl/BarController.java
+++ b/policy/src/com/android/internal/policy/impl/BarController.java
@@ -33,7 +33,7 @@ import java.io.PrintWriter;
* Controls state/behavior specific to a system bar window.
*/
public class BarController {
- private static final boolean DEBUG = false;
+ private static final boolean DEBUG = true;
private static final int TRANSIENT_BAR_NONE = 0;
private static final int TRANSIENT_BAR_SHOWING = 1;
@@ -126,6 +126,7 @@ public class BarController {
private void updateState(final int state) {
if (state != mState) {
mState = state;
+ if (DEBUG) Slog.d(mTag, "mState: " + StatusBarManager.windowStateToString(state));
mHandler.post(new Runnable() {
@Override
public void run() {
@@ -135,6 +136,7 @@ public class BarController {
statusbar.setWindowState(mStatusBarManagerId, state);
}
} catch (RemoteException e) {
+ if (DEBUG) Slog.w(mTag, "Error posting window state", e);
// re-acquire status bar service next time it is needed.
mStatusBarService = null;
}
@@ -204,7 +206,7 @@ public class BarController {
mLastTransparent = SystemClock.uptimeMillis();
}
mTransientBarState = state;
- if (DEBUG) Slog.d(mTag, "New state: " + transientBarStateToString(state));
+ if (DEBUG) Slog.d(mTag, "mTransientBarState: " + transientBarStateToString(state));
}
}
@@ -227,8 +229,10 @@ public class BarController {
public void dump(PrintWriter pw, String prefix) {
if (mWin != null) {
- pw.print(prefix); pw.print(mTag); pw.print(' ');
- pw.print("mTransientBar"); pw.print('=');
+ pw.print(prefix); pw.println(mTag);
+ pw.print(" "); pw.print("mState"); pw.print('=');
+ pw.println(StatusBarManager.windowStateToString(mState));
+ pw.print(" "); pw.print("mTransientBar"); pw.print('=');
pw.println(transientBarStateToString(mTransientBarState));
}
}