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

Commit 0da07f2a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Add call deflection api"

parents 0f767978 4535cde3
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -838,6 +838,8 @@ public interface Phone {
    void hangupWithReason(int callId, String userUri,
    void hangupWithReason(int callId, String userUri,
            boolean mpty, int failCause, String errorInfo) throws CallStateException;
            boolean mpty, int failCause, String errorInfo) throws CallStateException;


    void deflectCall(int callId, String number) throws CallStateException;

    /**
    /**
     * Clears all DISCONNECTED connections from Call connection lists. Calls
     * Clears all DISCONNECTED connections from Call connection lists. Calls
     * that were in the DISCONNECTED state become idle. This occurs
     * that were in the DISCONNECTED state become idle. This occurs
+5 −0
Original line number Original line Diff line number Diff line
@@ -1544,6 +1544,11 @@ public abstract class PhoneBase extends Handler implements Phone {
                + this);
                + this);
    }
    }


    public void deflectCall(int callId, String number) throws CallStateException {
        throw new CallStateException("deflectCall is not supported in this phone "
                + this);
    }

    public void registerForModifyCallRequest(Handler h, int what, Object obj)
    public void registerForModifyCallRequest(Handler h, int what, Object obj)
            throws CallStateException {
            throws CallStateException {
        throw new CallStateException("registerForModifyCallRequest is not supported in this phone "
        throw new CallStateException("registerForModifyCallRequest is not supported in this phone "
+4 −0
Original line number Original line Diff line number Diff line
@@ -1311,6 +1311,10 @@ public class PhoneProxy extends Handler implements Phone {
        mActivePhone.hangupWithReason(callId, userUri, mpty, failCause, errorInfo);
        mActivePhone.hangupWithReason(callId, userUri, mpty, failCause, errorInfo);
    }
    }


    public void deflectCall(int callId, String number) throws CallStateException {
        mActivePhone.deflectCall(callId, number);
    }

    public int getSubscription() {
    public int getSubscription() {
        return mActivePhone.getSubscription();
        return mActivePhone.getSubscription();
    }
    }