From c8d6e16572f900f01545ebf947d15e7006fe4e46 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 14 Sep 2015 18:43:27 -0700 Subject: Log various call initiation entry points Speed dial (PhoneNumberPickerInteraction, SpeedDialFragment) Regular search (RegularSearchFragment) Remote Directory (RegularSearchFragment) Call Log (CallLogAdapter) Smart Dial Search (SmartDialSearchFragment) Dialpad (DialpadFragment) Bug: 23164804 Change-Id: I7cc881ac655fca6d4f365b5de36a4087c4f17700 --- src/com/android/dialer/DialtactsActivity.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/com/android/dialer/DialtactsActivity.java') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index f62dea161..dbff276e5 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -89,6 +89,7 @@ import com.android.dialer.widget.ActionBarController; import com.android.dialer.widget.SearchEditTextLayout; import com.android.dialer.widget.SearchEditTextLayout.Callback; import com.android.dialerbind.DatabaseHelperManager; +import com.android.incallui.Call.LogState; import com.android.phone.common.animation.AnimUtils; import com.android.phone.common.animation.AnimationListenerAdapter; @@ -1243,21 +1244,15 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } @Override - public void onPickPhoneNumberAction(Uri dataUri) { - // Specify call-origin so that users will see the previous tab instead of - // CallLog screen (search UI will be automatically exited). - PhoneNumberInteraction.startInteractionForPhoneCall( - DialtactsActivity.this, dataUri, null); + public void onPickPhoneNumberAction(Uri dataUri, int callInitiationType) { mClearSearchOnPause = true; + PhoneNumberInteraction.startInteractionForPhoneCall( + DialtactsActivity.this, dataUri, callInitiationType); } @Override - public void onCallNumberDirectly(String phoneNumber) { - onCallNumberDirectly(phoneNumber, false /* isVideoCall */); - } - - @Override - public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall) { + public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall, + int callInitiationType) { if (phoneNumber == null) { // Invalid phone number, but let the call go through so that InCallUI can show // an error message. @@ -1266,6 +1261,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O final Intent intent = new CallIntentBuilder(phoneNumber) .setIsVideoCall(isVideoCall) + .setCallInitiationType(callInitiationType) .build(); DialerUtils.startActivityWithErrorToast(this, intent); -- cgit v1.2.3