summaryrefslogtreecommitdiff
path: root/telecomm/java/android
diff options
context:
space:
mode:
author Thomas Stuart <tjstuart@google.com> 2022-01-31 20:31:42 +0000
committer Thomas Stuart <tjstuart@google.com> 2022-02-01 00:11:09 +0000
commite0416215873c1b4d1ceafbcec1ee1916ae4f047d (patch)
treefb3e64a6ad03266cef27f826fc5fb3f72bc5a2e4 /telecomm/java/android
parentb41b25ff7325e7f2406999a76b6b8b2c24866321 (diff)
limit TelecomManager#registerPhoneAccount to 10; api doc update
bug: 209814693 Test: CTS Change-Id: I8e4425a4e7de716f86b1f1f56ea605d93f357a57
Diffstat (limited to 'telecomm/java/android')
-rw-r--r--telecomm/java/android/telecom/TelecomManager.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java
index e560f34cfcd8..3b9d3d9c640d 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -1489,9 +1489,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}.
*/