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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user