diff options
author | Hall Liu <hallliu@google.com> | 2019-01-14 21:28:28 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-01-14 21:28:28 +0000 |
commit | b763d2a40a3bc4b18273284ec2a5ad2a50fed0fc (patch) | |
tree | 6b7398a8f186a972dc9be61c92712e1dddabed4f | |
parent | 043ccdc179ea7513448e48280251fa4a2b9ec3ce (diff) | |
parent | 0245c9499656ca00b6f4c1d8287c24dc5f684be1 (diff) | |
download | ims-b763d2a40a3bc4b18273284ec2a5ad2a50fed0fc.tar.gz |
Merge "IMS: Propagate media profile changed message"
-rw-r--r-- | src/java/com/android/ims/ImsCall.java | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/java/com/android/ims/ImsCall.java b/src/java/com/android/ims/ImsCall.java index b2e1359e..32350d1f 100644 --- a/src/java/com/android/ims/ImsCall.java +++ b/src/java/com/android/ims/ImsCall.java @@ -475,6 +475,15 @@ public class ImsCall implements ICall { */ public void onMultipartyStateChanged(ImsCall imsCall, boolean isMultiParty) { } + + /** + * Called when rtt call audio indicator has changed. + * + * @param imsCall ImsCall object + * @param profile updated ImsStreamMediaProfile profile. + */ + public void onRttAudioIndicatorChanged(ImsCall imsCall, ImsStreamMediaProfile profile) { + } } // List of update operation for IMS call control @@ -3173,7 +3182,24 @@ public class ImsCall implements ICall { try { listener.onRttMessageReceived(ImsCall.this, rttMessage); } catch (Throwable t) { - loge("callSessionRttModifyResponseReceived:: ", t); + loge("callSessionRttMessageReceived:: ", t); + } + } + } + + @Override + public void callSessionRttAudioIndicatorChanged(ImsStreamMediaProfile profile) { + ImsCall.Listener listener; + + synchronized(ImsCall.this) { + listener = mListener; + } + + if (listener != null) { + try { + listener.onRttAudioIndicatorChanged(ImsCall.this, profile); + } catch (Throwable t) { + loge("callSessionRttAudioIndicatorChanged:: ", t); } } } |