summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-11-04 17:39:01 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-11-04 17:39:01 +0000
commite6037138d37ea1b54e847a7684f68f96a85b9b1c (patch)
tree9c71c7f808c438ccc2cf1d81b76b97c861315000 /InCallUI
parentdd38cb8f6bf0b82ece971f45091537206865d253 (diff)
parent9e5fa06bb98a8ebb29a99e662cfe48f9879a4342 (diff)
Merge "Log number of conference child calls" into ub-contactsdialer-a-dev
am: 6db499fd7b * commit '6db499fd7bb4c8127e7af4c2ec99f99a5005ddf0': Log number of conference child calls
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/Call.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/Call.java b/InCallUI/src/com/android/incallui/Call.java
index d1cb62374..ab4e2ca85 100644
--- a/InCallUI/src/com/android/incallui/Call.java
+++ b/InCallUI/src/com/android/incallui/Call.java
@@ -213,7 +213,10 @@ public class Call {
public boolean isIncoming = false;
public int contactLookupResult = LOOKUP_UNKNOWN;
public int callInitiationMethod = INITIATION_UNKNOWN;
+ // If this was a conference call, the total number of calls involved in the conference.
+ public int conferencedCalls = 0;
public long duration = 0;
+ public boolean isLogged = false;
@Override
public String toString() {
@@ -433,12 +436,17 @@ public class Call {
}
mChildCallIds.clear();
- for (int i = 0; i < mTelecomCall.getChildren().size(); i++) {
+ final int numChildCalls = mTelecomCall.getChildren().size();
+ for (int i = 0; i < numChildCalls; i++) {
mChildCallIds.add(
CallList.getInstance().getCallByTelecomCall(
mTelecomCall.getChildren().get(i)).getId());
}
+ // The number of conferenced calls can change over the course of the call, so use the
+ // maximum number of conferenced child calls as the metric for conference call usage.
+ mLogState.conferencedCalls = Math.max(numChildCalls, mLogState.conferencedCalls);
+
Bundle callExtras = mTelecomCall.getDetails().getExtras();
if (callExtras != null) {
// Child address arrives when the call is first set up, so we do not need to notify the