summaryrefslogtreecommitdiff
path: root/telecomm
diff options
context:
space:
mode:
author Xin Li <delphij@google.com> 2022-04-18 21:01:07 +0000
committer Xin Li <delphij@google.com> 2022-04-18 21:01:07 +0000
commitb2f021295c99be4ddbb7c91fccc7fcfdf37e4c93 (patch)
treeeda17934e6c8777f02771692815420082e4c1856 /telecomm
parent33c901faa068e7b89830785b57fe69d1e1a2f022 (diff)
parente42c779e4f59e6762645a2530be42e5b171d4471 (diff)
Merge sc-v2-dev-plus-aosp-without-vendor@8433047
Bug: 226662282 Merged-In: I6541f7d49cb932c85374bf9acf777038b888e873 Change-Id: I95df36a778a7fa9ea52fe0bba2332534d6288032
Diffstat (limited to 'telecomm')
-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 6122b080c500..95b9006151ea 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -1449,9 +1449,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}.
*/