IMS: Add support in frameworks for call deflection feature

Call deflection feature is useful to deflect MT call to another
number.

Test: Manual

Bug: 62170348
Change-Id: Idfbcc175a856aa0bb9476f8c73d7a614a3af0700
This commit is contained in:
Pooja Jain
2017-12-28 14:15:31 +05:30
parent 9f16828767
commit d34698def5
13 changed files with 138 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
package android.telecom;
import android.net.Uri;
import android.bluetooth.BluetoothDevice;
import android.os.Bundle;
import android.os.RemoteException;
@@ -60,6 +61,19 @@ public final class InCallAdapter {
}
}
/**
* Instructs Telecom to deflect the specified call.
*
* @param callId The identifier of the call to deflect.
* @param address The address to deflect.
*/
public void deflectCall(String callId, Uri address) {
try {
mAdapter.deflectCall(callId, address);
} catch (RemoteException e) {
}
}
/**
* Instructs Telecom to reject the specified call.
*