diff options
author | Santos Cordon <santoscordon@google.com> | 2013-10-07 11:24:17 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2013-10-07 17:27:15 -0700 |
commit | fa38c366467b7278825b21dbeba4a92106d52af9 (patch) | |
tree | 01da4d06a4409eaa6c3043a0923f5f0d36c74f81 | |
parent | bd3bc76a7a620b95a8aa7970c99031ecb37f12ea (diff) |
Add logging to dialer.
Two instances that need more logging:
1) Is UI showing for prox sensor.
2) Was the call hung up from notification?
bug:11050553
Change-Id: I9eb60621bc320fe466780e5d7df7502354dd3f1f
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallApp.java | 2 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/ProximitySensor.java | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallApp.java b/InCallUI/src/com/android/incallui/InCallApp.java index 6708bb49d..dcc78481b 100644 --- a/InCallUI/src/com/android/incallui/InCallApp.java +++ b/InCallUI/src/com/android/incallui/InCallApp.java @@ -57,7 +57,7 @@ public class InCallApp extends Application { @Override public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); - Log.v(this, "Broadcast from Notification: ", action); + Log.i(this, "Broadcast from Notification: " + action); if (action.equals(ACTION_HANG_UP_ONGOING_CALL)) { // TODO: Commands of this nature should exist in the CallList or a diff --git a/InCallUI/src/com/android/incallui/ProximitySensor.java b/InCallUI/src/com/android/incallui/ProximitySensor.java index 2210a38a8..0da68efb2 100644 --- a/InCallUI/src/com/android/incallui/ProximitySensor.java +++ b/InCallUI/src/com/android/incallui/ProximitySensor.java @@ -216,8 +216,9 @@ public class ProximitySensor implements AccelerometerListener.OrientationListene .add("keybrd", mIsHardKeyboardOpen ? 1 : 0) .add("dpad", mDialpadVisible ? 1 : 0) .add("offhook", mIsPhoneOffhook ? 1 : 0) - .add("aud", audioMode) - .add("hor", horizontal ? 1 : 0).toString()); + .add("hor", horizontal ? 1 : 0) + .add("ui", mUiShowing ? 1 : 0) + .add("aud", AudioMode.toString(audioMode)).toString()); if (mIsPhoneOffhook && !screenOnImmediately) { final String logStr = "turning on proximity sensor: "; |