summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshit Sood <sooda@codeaurora.org>2020-07-13 14:03:25 -0700
committerAshit Sood <sooda@codeaurora.org>2020-07-15 15:31:44 -0700
commit0e1d95dc93e4fb54d78493f6d4bde687663bc90c (patch)
treeb5ff5b20805161f4a60ef28147099cecc616072a
parent56533d0e1cb9f52ffff0c0ac14f722bfcbc6e79c (diff)
IMS: Add doAnswer API
- Added doAnswer API to implement Pseudo DSDA logic in telephony. Change-Id: I16c12dff9de45a019e0b507a871edda193186ea2 CRs-Fixed: 2718074
-rwxr-xr-xtelecomm/java/android/telecom/ConnectionService.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java
index 56cba1d3f913..3efab17874e9 100755
--- a/telecomm/java/android/telecom/ConnectionService.java
+++ b/telecomm/java/android/telecom/ConnectionService.java
@@ -2108,19 +2108,23 @@ public abstract class ConnectionService extends Service {
private void answerVideo(String callId, int videoState) {
Log.i(this, "answerVideo %s", callId);
- if (mConnectionById.containsKey(callId)) {
- findConnectionForAction(callId, "answer").onAnswer(videoState);
- } else {
- findConferenceForAction(callId, "answer").onAnswer(videoState);
- }
+ doAnswer(callId, videoState);
}
private void answer(String callId) {
Log.i(this, "answer %s", callId);
+ doAnswer(callId, VideoProfile.STATE_AUDIO_ONLY);
+ }
+
+ /**
+ * Access is public because protected access is not allowed.
+ * @hide
+ */
+ public void doAnswer(String callId, int videoState) {
if (mConnectionById.containsKey(callId)) {
- findConnectionForAction(callId, "answer").onAnswer();
+ findConnectionForAction(callId, "answer").onAnswer(videoState);
} else {
- findConferenceForAction(callId, "answer").onAnswer();
+ findConferenceForAction(callId, "answer").onAnswer(videoState);
}
}