From 503772eb501d208184cc66bf1ee699640e063093 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Tue, 1 Jul 2014 12:20:07 -0700 Subject: API changes to support telephony-telecomm-incall reporting of changes to the currently applicable call features (eg VoLTE, VoWIFI, etc). Bug: 15987281 Change-Id: I5080deb8d4c514a8a94353778a170fdfc9139e05 --- InCallUI/src/com/android/incallui/Call.java | 9 +++++++++ InCallUI/src/com/android/incallui/InCallServiceImpl.java | 1 + 2 files changed, 10 insertions(+) diff --git a/InCallUI/src/com/android/incallui/Call.java b/InCallUI/src/com/android/incallui/Call.java index c0e5fd06b..d87c49384 100644 --- a/InCallUI/src/com/android/incallui/Call.java +++ b/InCallUI/src/com/android/incallui/Call.java @@ -115,6 +115,7 @@ public final class Call { private RemoteCallVideoProvider mCallVideoProvider; private String mParentCallId; private List mChildCallIds; + private int mFeatures; private InCallVideoClient mCallVideoClient; @@ -284,6 +285,14 @@ public final class Call { return mParentCallId; } + public int getFeatures() { + return mFeatures; + } + + public void setFeatures(int features) { + mFeatures = features; + } + @Override public String toString() { return String.format(Locale.US, "[%s, %s, %s, children:%s, parent:%s]", diff --git a/InCallUI/src/com/android/incallui/InCallServiceImpl.java b/InCallUI/src/com/android/incallui/InCallServiceImpl.java index a76afa293..121321a13 100644 --- a/InCallUI/src/com/android/incallui/InCallServiceImpl.java +++ b/InCallUI/src/com/android/incallui/InCallServiceImpl.java @@ -130,6 +130,7 @@ public class InCallServiceImpl extends InCallService { call.setState(translateState(telecommCall.getState())); call.setParentId(telecommCall.getParentCallId()); call.setChildCallIds(telecommCall.getChildCallIds()); + call.setFeatures(telecommCall.getFeatures()); try { call.setCallVideoProvider(telecommCall.getCallVideoProvider()); -- cgit v1.2.3