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

Commit afb53c82 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Exposing IMSCallSessionListenerProxy for test intent.

Bug: 30697460
Change-Id: I8f7bd29d83bb1e5acc3d218ca8108317738f9e2d
parent fb4abdfc
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
@@ -556,6 +556,11 @@ public class ImsCall implements ICall {
     */
    public final int uniqueId;

    /**
     * The current ImsCallSessionListenerProxy.
     */
    private ImsCallSessionListenerProxy mImsCallSessionListenerProxy;

    /**
     * Create an IMS call object.
     *
@@ -1533,7 +1538,16 @@ public class ImsCall implements ICall {
     * Creates an IMS call session listener.
     */
    private ImsCallSession.Listener createCallSessionListener() {
        return new ImsCallSessionListenerProxy();
        mImsCallSessionListenerProxy = new ImsCallSessionListenerProxy();
        return mImsCallSessionListenerProxy;
    }

    /**
     * @return the current ImsCallSessionListenerProxy.  NOTE: ONLY FOR USE WITH TESTING.
     */
    @VisibleForTesting
    public ImsCallSessionListenerProxy getImsCallSessionListenerProxy() {
        return mImsCallSessionListenerProxy;
    }

    private ImsCall createNewCall(ImsCallSession session, ImsCallProfile profile) {
@@ -2089,7 +2103,8 @@ public class ImsCall implements ICall {
        return;
    }

    private class ImsCallSessionListenerProxy extends ImsCallSession.Listener {
    @VisibleForTesting
    public class ImsCallSessionListenerProxy extends ImsCallSession.Listener {
        @Override
        public void callSessionProgressing(ImsCallSession session, ImsStreamMediaProfile profile) {
            logi("callSessionProgressing :: session=" + session + " profile=" + profile);