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

Commit 42ff79f0 authored by Pavan Kumar Tatavarthi's avatar Pavan Kumar Tatavarthi
Browse files

Add call deflection api

1. Add call deflection api in Phone, PhoneBase, and PhoneProxy

Change-Id: I1b29419a94fe02834e2b3967f89af99f558fef15
CRs-Fixed: 609140
parent 0da07f2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -838,7 +838,7 @@ public interface Phone {
    void hangupWithReason(int callId, String userUri,
            boolean mpty, int failCause, String errorInfo) throws CallStateException;

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

    /**
     * Clears all DISCONNECTED connections from Call connection lists. Calls
+1 −1
Original line number Diff line number Diff line
@@ -1544,7 +1544,7 @@ public abstract class PhoneBase extends Handler implements Phone {
                + this);
    }

    public void deflectCall(int callId, String number) throws CallStateException {
    public void deflectCall(int connId, String number, Message response) throws CallStateException {
        throw new CallStateException("deflectCall is not supported in this phone "
                + this);
    }
+2 −2
Original line number Diff line number Diff line
@@ -1311,8 +1311,8 @@ public class PhoneProxy extends Handler implements Phone {
        mActivePhone.hangupWithReason(callId, userUri, mpty, failCause, errorInfo);
    }

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

    public int getSubscription() {