diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-04-24 19:31:51 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-04-24 19:31:51 +0000 |
commit | 4f60ea7b50d62080429f95f1aacbe879797ae6e5 (patch) | |
tree | 8c5e6672ab985d86d637271e87fdef613d4aeb54 /java/com/android/incallui/call | |
parent | c4d4925c6617edae27c738e736a64ed75b31129f (diff) | |
parent | 81e373e4370a1d01dcfa854df12537aca8755628 (diff) |
Merge "Add impression logging for RTT call"
Diffstat (limited to 'java/com/android/incallui/call')
-rw-r--r-- | java/com/android/incallui/call/CallList.java | 14 | ||||
-rw-r--r-- | java/com/android/incallui/call/DialerCall.java | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/java/com/android/incallui/call/CallList.java b/java/com/android/incallui/call/CallList.java index eccdceeca..6b17962de 100644 --- a/java/com/android/incallui/call/CallList.java +++ b/java/com/android/incallui/call/CallList.java @@ -213,8 +213,22 @@ public class CallList implements DialerCallDelegate { if (call.getState() == DialerCall.State.INCOMING || call.getState() == DialerCall.State.CALL_WAITING) { + if (call.isActiveRttCall()) { + Logger.get(context) + .logCallImpression( + DialerImpression.Type.INCOMING_RTT_CALL, + call.getUniqueCallId(), + call.getTimeAddedMs()); + } onIncoming(call); } else { + if (call.isActiveRttCall()) { + Logger.get(context) + .logCallImpression( + DialerImpression.Type.OUTGOING_RTT_CALL, + call.getUniqueCallId(), + call.getTimeAddedMs()); + } onUpdateCall(call); notifyGenericListeners(); } diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java index 3b7e4dc8f..c153503ac 100644 --- a/java/com/android/incallui/call/DialerCall.java +++ b/java/com/android/incallui/call/DialerCall.java @@ -312,6 +312,13 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa @Override public void onRttStatusChanged(Call call, boolean enabled, RttCall rttCall) { LogUtil.v("TelecomCallCallback.onRttStatusChanged", "enabled=%b", enabled); + if (enabled) { + Logger.get(context) + .logCallImpression( + DialerImpression.Type.RTT_MID_CALL_ENABLED, + getUniqueCallId(), + getTimeAddedMs()); + } update(); } @@ -1064,6 +1071,13 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa @TargetApi(28) public void respondToRttRequest(boolean accept, int rttRequestId) { + Logger.get(context) + .logCallImpression( + accept + ? DialerImpression.Type.RTT_MID_CALL_ACCEPTED + : DialerImpression.Type.RTT_MID_CALL_REJECTED, + getUniqueCallId(), + getTimeAddedMs()); getTelecomCall().respondToRttRequest(rttRequestId, accept); } |