Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 298d8c75 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Merge "Expose setCallProfile for unit testing."

am: 0877155c

Change-Id: I0f21308f7b9f4232c60d3647da3861c732113b9b
parents 9b675fb0 0877155c
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -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);