From fa38c366467b7278825b21dbeba4a92106d52af9 Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Mon, 7 Oct 2013 11:24:17 -0700 Subject: 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 --- InCallUI/src/com/android/incallui/InCallApp.java | 2 +- 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: "; -- cgit v1.2.3