diff options
author | Tyler Gunn <tgunn@google.com> | 2017-12-04 13:01:55 -0800 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2017-12-04 13:01:55 -0800 |
commit | cc0f78f27b00dd27c0842d27574239f31f5598aa (patch) | |
tree | 80d06fb32d0016f4195b2e2b68d3798b7b0078d0 /src | |
parent | 2335b7020d66b25ee22bc414faf2847582fb8290 (diff) | |
download | ims-cc0f78f27b00dd27c0842d27574239f31f5598aa.tar.gz |
Expose setCallProfile for unit testing.
Exposing this method to aid in unit testing.
Test: Added unit test coverage for hold tones, manually tested with TMO.
Bug: 64099717
Change-Id: Ied7b81d5c7a9f3b0fdcb4509ccdae07a53f7bbc3
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/android/ims/ImsCall.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/java/com/android/ims/ImsCall.java b/src/java/com/android/ims/ImsCall.java index c5e6368e..6200a07c 100644 --- a/src/java/com/android/ims/ImsCall.java +++ b/src/java/com/android/ims/ImsCall.java @@ -686,7 +686,8 @@ public class ImsCall implements ICall { * * @param profile The new call profile. */ - private void setCallProfile(ImsCallProfile profile) { + @VisibleForTesting + public void setCallProfile(ImsCallProfile profile) { synchronized(mLockObj) { mCallProfile = profile; trackVideoStateHistory(mCallProfile); @@ -2419,6 +2420,12 @@ public class ImsCall implements ICall { } } + /** + * Indicates that an {@link ImsCallSession} has been remotely held. This can be due to the + * remote party holding the current call, or swapping between calls. + * @param session the session which was held. + * @param profile the profile for the held call. + */ @Override public void callSessionHoldReceived(ImsCallSession session, ImsCallProfile profile) { logi("callSessionHoldReceived :: session=" + session + "profile=" + profile); @@ -2446,6 +2453,12 @@ public class ImsCall implements ICall { } } + /** + * Indicates that an {@link ImsCallSession} has been remotely resumed. This can be due to + * the remote party un-holding the current call, or swapping back to this call. + * @param session the session which was resumed. + * @param profile the profile for the held call. + */ @Override public void callSessionResumed(ImsCallSession session, ImsCallProfile profile) { logi("callSessionResumed :: session=" + session + "profile=" + profile); |