Add call answered timestamp into call extra
Dialer app can used this this timestamp and cross compare with call connected time to calculate the accpeting call latency within framework.
Test: Manual test
Bug: 242074284
Change-Id: I1bf412a67fead0199844639b562e9110d983ebec
Skip-CP-To-Master:pending on telecom review
diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java
old mode 100644
new mode 100755
index d89fd7f..a45764a
--- a/src/com/android/server/telecom/CallsManager.java
+++ b/src/com/android/server/telecom/CallsManager.java
@@ -2888,6 +2888,10 @@
call.answer(videoState);
} else {
// Hold or disconnect the active call and request call focus for the incoming call.
+ Bundle bundle = new Bundle();
+ bundle.putLong(TelecomManager.EXTRA_CALL_ANSWERED_TIME_MILLIS,
+ mClockProxy.currentTimeMillis());
+ call.putConnectionServiceExtras(bundle);
holdActiveCallForNewCall(call);
mConnectionSvrFocusMgr.requestFocus(
call,