summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
diff options
context:
space:
mode:
authorShaotang Li <shaotangli@google.com>2018-07-19 17:29:39 +0800
committerShaotang Li <shaotangli@google.com>2018-09-06 12:38:18 +0800
commit8cec25c3464d38a7c706171d23a7e64c470f51e7 (patch)
tree1b35e11e9ba97391df9c623c762b1e5182098518 /telecomm/java/android/telecom/TelecomManager.java
parent460a52947192febdf99f37cb761710a46c63fd46 (diff)
Add new telecom metrics for emergency dialer
These includes, 1. The source where user initiated the call. 2. The duration between START_CONNECTION and REQUEST_DISCONNECT. Bug: 111818008 Test: manual and check the result of 'adb shell dumpsys telecom' for metrics data Change-Id: Iddc7f256362abe9fe252bd12cead05a7d77d329e
Diffstat (limited to 'telecomm/java/android/telecom/TelecomManager.java')
-rw-r--r--telecomm/java/android/telecom/TelecomManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java
index 48c1e24db1f3..4e2282337ccd 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -622,6 +622,18 @@ public class TelecomManager {
"android.telecom.extra.USE_ASSISTED_DIALING";
/**
+ * Optional extra for {@link #placeCall(Uri, Bundle)} containing an integer that specifies
+ * the source where user initiated this call. This data is used in metrics.
+ * Valid source are:
+ * {@link ParcelableCallAnalytics#CALL_SOURCE_UNSPECIFIED},
+ * {@link ParcelableCallAnalytics#CALL_SOURCE_EMERGENCY_DIALPAD},
+ * {@link ParcelableCallAnalytics#CALL_SOURCE_EMERGENCY_SHORTCUT}.
+ *
+ * @hide
+ */
+ public static final String EXTRA_CALL_SOURCE = "android.telecom.extra.CALL_SOURCE";
+
+ /**
* The following 4 constants define how properties such as phone numbers and names are
* displayed to the user.
*/