Add APIs to support background call screening
Add Telecom APIs and AIDL code. Test: CTS Bug: 140317205 Change-Id: I99970f5ce12442f307a656db76cb26f5101e6c7f
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
package android.telecom;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.bluetooth.BluetoothDevice;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.RemoteException;
|
||||
|
||||
@@ -148,6 +148,26 @@ public final class InCallAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Call#enterBackgroundAudioProcessing()
|
||||
*/
|
||||
public void enterBackgroundAudioProcessing(String callId) {
|
||||
try {
|
||||
mAdapter.enterBackgroundAudioProcessing(callId);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Call#exitBackgroundAudioProcessing(boolean)
|
||||
*/
|
||||
public void exitBackgroundAudioProcessing(String callId, boolean shouldRing) {
|
||||
try {
|
||||
mAdapter.exitBackgroundAudioProcessing(callId, shouldRing);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Request audio routing to a specific bluetooth device. Calling this method may result in
|
||||
* the device routing audio to a different bluetooth device than the one specified. A list of
|
||||
|
||||
Reference in New Issue
Block a user