diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 66e03db5923b032c8da1e361a2f18e3e762438ff..d5cb27faab0cd83fd3c325fd840051800d61e3d7 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -13738,6 +13738,7 @@ package android.telecom { field public static final int CAPABILITY_EMERGENCY_VIDEO_CALLING = 512; // 0x200 field public static final int CAPABILITY_MULTI_USER = 32; // 0x20 field public static final String EXTRA_PLAY_CALL_RECORDING_TONE = "android.telecom.extra.PLAY_CALL_RECORDING_TONE"; + field @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") public static final String EXTRA_SKIP_CALL_FILTERING = "android.telecom.extra.SKIP_CALL_FILTERING"; field public static final String EXTRA_SORT_ORDER = "android.telecom.extra.SORT_ORDER"; } diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index b7706a926a3dc38a20e1d6c2c204fea211f1c6a9..ab6f4279b086c697b19cb5438840f88184258dbe 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -190,6 +190,8 @@ public final class PhoneAccount implements Parcelable { * this may be used to skip call filtering when it has already been performed on another device. * @hide */ + @SystemApi + @FlaggedApi(com.android.server.telecom.flags.Flags.FLAG_TELECOM_RESOLVE_HIDDEN_DEPENDENCIES) public static final String EXTRA_SKIP_CALL_FILTERING = "android.telecom.extra.SKIP_CALL_FILTERING"; diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index e62bd90807d10905eaf06372c7831188fbbf60fd..6ba5d23d9fe101da8ee0c059925df8f576d77aed 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -1611,6 +1611,26 @@ public class TelecomManager { * {@link PhoneAccount} when the upper bound limit, 10, has already been reached. * * @param account The complete {@link PhoneAccount}. + * @throws UnsupportedOperationException if the caller cannot modify phone state and the device + * does not have the Telecom feature. + * @throws SecurityException if: + * <ol> + * <li>the caller cannot modify phone state and the phone account doesn't belong to the + * calling user.</li> + * <li>the caller is registering a self-managed phone and either they are not allowed to + * manage their own calls or if the account is call capable, a connection manager, or a + * sim account.</li> + * <li>the caller is registering a sim account without the ability to do so.</li> + * <li>the caller is registering a multi-user phone account but isn't a system app.</li> + * <li>the account can make SIM-based voice calls but the caller cannot register sim + * accounts or isn't a sim call manager.</li> + * <li>the account defines the EXTRA_SKIP_CALL_FILTERING extra but the caller isn't + * able to modify the phone state.</li> + * <li>the caller is registering an account for a different user but isn't able to + * interact across users.</li> + * <li>if simultaneous calling is available and the phone account package name doesn't + * correspond to the simultaneous calling accounts associated with this phone account.</li> + * </ol> */ public void registerPhoneAccount(PhoneAccount account) { ITelecomService service = getTelecomService();