Add relative APIs for InCallService that can support self-managed

connections that want to expose itself.

Add PhoneAccount#EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE and
Connection#onInCallServiceTrackingChanged.

Bug: 161144815
Test: CtsTelecomTestCases
Change-Id: I0a42ea79a1cd46aa9df3399c4fa2e9396321778a
This commit is contained in:
Grace Jia
2021-01-19 14:58:01 -08:00
parent 283c206e2a
commit e99fde9678
5 changed files with 121 additions and 4 deletions

View File

@@ -187,6 +187,15 @@ public final class PhoneAccount implements Parcelable {
public static final String EXTRA_SKIP_CALL_FILTERING =
"android.telecom.extra.SKIP_CALL_FILTERING";
/**
* Boolean {@link PhoneAccount} extras key (see {@link PhoneAccount#getExtras()}) which
* indicates whether a Self-managed {@link PhoneAccount} want to expose its calls to all
* {@link InCallService} which declares the metadata
* {@link TelecomManager#METADATA_INCLUDE_SELF_MANAGED_CALLS}.
*/
public static final String EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE =
"android.telecom.extra.ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE";
/**
* Flag indicating that this {@code PhoneAccount} can act as a connection manager for
* other connections. The {@link ConnectionService} associated with this {@code PhoneAccount}