diff options
author | Shaotang Li <shaotangli@google.com> | 2018-07-19 17:37:17 +0800 |
---|---|---|
committer | Shaotang Li <shaotangli@google.com> | 2018-09-12 11:20:15 +0800 |
commit | 03ec7ce2dd4334d7c855c03101e1a445195b4a0d (patch) | |
tree | 609723950a714afabfdbfe603602a59cc8e1104e /proto | |
parent | b1b1c64f2228e7d46ee8b6d48ef76105f92157c5 (diff) | |
download | android_packages_services_Telecomm-03ec7ce2dd4334d7c855c03101e1a445195b4a0d.tar.gz android_packages_services_Telecomm-03ec7ce2dd4334d7c855c03101e1a445195b4a0d.tar.bz2 android_packages_services_Telecomm-03ec7ce2dd4334d7c855c03101e1a445195b4a0d.zip |
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: I7d57ac29ad4bb6c8506b7a37b2f1bc63253fa9cb
Diffstat (limited to 'proto')
-rw-r--r-- | proto/telecom.proto | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/proto/telecom.proto b/proto/telecom.proto index 9fd64dbc..5539f7f6 100644 --- a/proto/telecom.proto +++ b/proto/telecom.proto @@ -145,6 +145,7 @@ message EventTimingEntry { BLOCK_CHECK_FINISHED_TIMING = 9; FILTERING_COMPLETED_TIMING = 10; FILTERING_TIMED_OUT_TIMING = 11; + START_CONNECTION_TO_REQUEST_DISCONNECT_TIMING = 12; } // The name of the event timing. @@ -230,6 +231,18 @@ message CallLog { CONNECTION_MANAGER_NOT_SUPPORTED = 10; } + // The source where user initiated this call. + enum CallSource { + // Call source is not specified. + CALL_SOURCE_UNSPECIFIED = 0; + + // Dialpad at emergency dialer. + CALL_SOURCE_EMERGENCY_DIALPAD = 1; + + // Shortcut button at emergency dialer. + CALL_SOURCE_EMERGENCY_SHORTCUT = 2; + } + // Start time of the connection. // Rounded to the nearest 5 minute interval. optional int64 start_time_5min = 1; @@ -283,4 +296,7 @@ message CallLog { // A bitmask of the properties that were set at any point during the call. // Bits are defined by android.telecom.Connection.PROPERTY_* constants. optional int32 connection_properties = 17; + + // Call source. + optional CallSource call_source = 18; } |