[Call Timing] Add constants for call timing extras
This CL defines new extras that can be set in a call's intent extras.
These extras track the following:
CALL_CREATED_TIME_MILLIS - the time when the call was created by
telephony (or another connection service)
CALL_TELECOM_ROUTING_START_TIME_MILLIS - the time when telecom
started processing the call
CALL_TELECOM_ROUTING_END_TIME_MILLIS - the time when telecom
finished processing things like call blocking and was ready to
connect to the UI
These extras can be used by the dialer to track how long it takes for
calls to be shown to the user.
Bug: 28202119
Change-Id: I8fca259d449adedaeb4ff91d35bf59a7409be866
This commit is contained in:
@@ -224,6 +224,30 @@ public class TelecomManager {
|
||||
public static final String EXTRA_UNKNOWN_CALL_HANDLE =
|
||||
"android.telecom.extra.UNKNOWN_CALL_HANDLE";
|
||||
|
||||
/**
|
||||
* Optional extra for incoming and outgoing calls containing a long which specifies the time the
|
||||
* call was created. This value is in milliseconds since boot.
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_CALL_CREATED_TIME_MILLIS =
|
||||
"android.telecom.extra.CALL_CREATED_TIME_MILLIS";
|
||||
|
||||
/**
|
||||
* Optional extra for incoming and outgoing calls containing a long which specifies the time
|
||||
* telecom began routing the call. This value is in milliseconds since boot.
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_CALL_TELECOM_ROUTING_START_TIME_MILLIS =
|
||||
"android.telecom.extra.CALL_TELECOM_ROUTING_START_TIME_MILLIS";
|
||||
|
||||
/**
|
||||
* Optional extra for incoming and outgoing calls containing a long which specifies the time
|
||||
* telecom finished routing the call. This value is in milliseconds since boot.
|
||||
* @hide
|
||||
*/
|
||||
public static final String EXTRA_CALL_TELECOM_ROUTING_END_TIME_MILLIS =
|
||||
"android.telecom.extra.CALL_TELECOM_ROUTING_END_TIME_MILLIS";
|
||||
|
||||
/**
|
||||
* Optional extra for {@link android.telephony.TelephonyManager#ACTION_PHONE_STATE_CHANGED}
|
||||
* containing the disconnect code.
|
||||
|
||||
Reference in New Issue
Block a user