Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f7e6c10 authored by Thomas Stuart's avatar Thomas Stuart Committed by Justin Dunlap
Browse files

limit TelecomManager#registerPhoneAccount to 10; api doc update

bug: 209814693
Bug: 217934478
Test: CTS
Change-Id: I8e4425a4e7de716f86b1f1f56ea605d93f357a57
Merged-In: I8e4425a4e7de716f86b1f1f56ea605d93f357a57
(cherry picked from commit f0f67b5a)
Merged-In: I8e4425a4e7de716f86b1f1f56ea605d93f357a57
parent 4f9a87b9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1125,9 +1125,14 @@ public class TelecomManager {
     * when placing calls. The user may still need to enable the {@link PhoneAccount} within
     * the phone app settings before the account is usable.
     * <p>
     * Note: Each package is limited to 10 {@link PhoneAccount} registrations.
     * <p>
     * A {@link SecurityException} will be thrown if an app tries to register a
     * {@link PhoneAccountHandle} where the package name specified within
     * {@link PhoneAccountHandle#getComponentName()} does not match the package name of the app.
     * <p>
     * A {@link IllegalArgumentException} will be thrown if an app tries to register a
     * {@link PhoneAccount} when the upper bound limit, 10, has already been reached.
     *
     * @param account The complete {@link PhoneAccount}.
     */