diff options
author | Santos Cordon <santoscordon@google.com> | 2013-08-23 17:14:51 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2013-08-23 17:14:51 -0700 |
commit | 6002b83345c66319a8839912b326a0f84d7a1d9a (patch) | |
tree | 6f67778a96f5460c5946228c547dc3fca4f6ce1a /InCallUI/src/com/android/incallui/InCallPresenter.java | |
parent | 46c1840b5964f84cc2d632d9c6a41b0eca08f356 (diff) |
Adding more public logging to InCallUI
bug: 10461651
Change-Id: Ib79717530911d30478a9c00ad154423f0aca670d
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallPresenter.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java index 8df8c168a..8bb0973bf 100644 --- a/InCallUI/src/com/android/incallui/InCallPresenter.java +++ b/InCallUI/src/com/android/incallui/InCallPresenter.java @@ -104,13 +104,13 @@ public class InCallPresenter implements CallList.Listener { mInCallActivity = inCallActivity; if (mInCallActivity != null) { - Log.d(this, "UI Initialized"); + Log.i(this, "UI Initialized"); // Since the UI just came up, imitate an update from the call list // to set the proper UI state. onCallListChange(mCallList); } else { - Log.d(this, "setActivity(null)"); + Log.i(this, "UI Destroyed)"); attemptCleanup(); } } @@ -127,6 +127,7 @@ public class InCallPresenter implements CallList.Listener { newState = startOrFinishUi(newState); // Set the new state before announcing it to the world + Log.i(this, "Phone switching state: " + mInCallState + " -> " + newState); mInCallState = newState; // notify listeners of new state @@ -264,15 +265,14 @@ public class InCallPresenter implements CallList.Listener { // user with a top-level notification. Just show the call UI normally. final boolean showCallUi = (InCallState.OUTGOING == newState); - Log.v(this, "showCallUi: ", showCallUi); - Log.v(this, "startStartupSequence: ", startStartupSequence); - - if (showCallUi) { + Log.i(this, "Start in call UI"); showInCall(); } else if (startStartupSequence) { + Log.i(this, "Start Full Screen in call UI"); mStatusBarNotifier.updateNotificationAndLaunchIncomingCallUi(newState, mCallList); } else if (newState == InCallState.HIDDEN) { + Log.i(this, "Hide in call UI"); // The new state is the hidden state (no calls). Tear everything down. if (mInCallActivity != null) { @@ -297,7 +297,7 @@ public class InCallPresenter implements CallList.Listener { */ private void attemptCleanup() { if (mInCallActivity == null && !mServiceConnected) { - Log.d(this, "Start InCallPresenter.CleanUp"); + Log.i(this, "Start InCall presenter cleanup."); mProximitySensor = null; mAudioModeProvider = null; @@ -318,7 +318,6 @@ public class InCallPresenter implements CallList.Listener { } private void showInCall() { - Log.d(this, "Showing in call manually."); mContext.startActivity(getInCallIntent()); } |