summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Stuart <tjstuart@google.com>2022-01-31 20:31:42 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-07-07 01:46:53 +0000
commitfe205882e5abc45b668639f5cd43145a9f1bd3c6 (patch)
treeacb6051010440d68dbb8182de5576f235a59cd04
parent09d5eb29c9ebae08af4878325e4aa4328a2581b0 (diff)
downloadbase-fe205882e5abc45b668639f5cd43145a9f1bd3c6.tar.gz
limit TelecomManager#registerPhoneAccount to 10; api doc update
bug: 209814693 Bug: 217934478 Test: CTS Change-Id: I8e4425a4e7de716f86b1f1f56ea605d93f357a57 Merged-In: I8e4425a4e7de716f86b1f1f56ea605d93f357a57 (cherry picked from commit f0f67b5a319efedbf8693b436a641fa65bc2d8be) Merged-In: I8e4425a4e7de716f86b1f1f56ea605d93f357a57
-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 e000265f0a2c..4cdeb0b07187 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -1444,9 +1444,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}.
*/