summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/CallList.java
diff options
context:
space:
mode:
authorSailesh Nepal <sail@google.com>2016-04-14 20:38:40 -0700
committerSailesh Nepal <sail@google.com>2016-04-29 15:50:16 -0700
commitc76ca765c3ee306ed2ccdc0a71e79e1dcc028715 (patch)
tree104758ec1cb087e1c75f8f6bb52d858d1c7481e4 /InCallUI/src/com/android/incallui/CallList.java
parent8f9164c4072f680b68e7abe0c433300d032d66f4 (diff)
Add LatencyReport for every call
[This is a manual cherry pick from ub-contactsdialer-b-dev.] This CL tracks latency for all incoming and outgoing calls. We now measure the following latency values: - time for a connection service to add a call to telecom. - time for telecom to process a call - time for the dialer app to launch and have a call added to it by telecom. - time for dialer to check if a call should be blocked. - time to show a notification about the call (incoming only) - time it took to show the InCallUI (only if HUN wasn't displayed) Change-Id: I08685d312cbaefc564feb4119350da71df9b9e6c
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallList.java')
-rw-r--r--InCallUI/src/com/android/incallui/CallList.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/CallList.java b/InCallUI/src/com/android/incallui/CallList.java
index 61e8aa452..48870f68a 100644
--- a/InCallUI/src/com/android/incallui/CallList.java
+++ b/InCallUI/src/com/android/incallui/CallList.java
@@ -86,9 +86,9 @@ public class CallList {
CallList() {
}
- public void onCallAdded(final android.telecom.Call telecomCall) {
+ public void onCallAdded(final android.telecom.Call telecomCall, LatencyReport latencyReport) {
Trace.beginSection("onCallAdded");
- final Call call = new Call(telecomCall);
+ final Call call = new Call(telecomCall, latencyReport);
Log.d(this, "onCallAdded: callState=" + call.getState());
if (call.getState() == Call.State.INCOMING ||
@@ -630,6 +630,12 @@ public class CallList {
mExtendedCallInfoService = service;
}
+ public void onInCallUiShown(boolean forFullScreenIntent) {
+ for (Call call : mCallById.values()) {
+ call.getLatencyReport().onInCallUiShown(forFullScreenIntent);
+ }
+ }
+
/**
* Listener interface for any class that wants to be notified of changes
* to the call list.