summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2014-12-10 17:56:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-10 17:56:58 +0000
commiteb4de87683a0d1959d64af08f3685e1b3701a314 (patch)
treed61ebc2bc2127073631177961a1925692f9f27b7 /telephony/java
parent6bdbae07cf9b3929dca471072bea7001f7996efb (diff)
parent98513d7bd44fe9ce14733c8162544c2114f8f21b (diff)
downloadframeworks_base-eb4de87683a0d1959d64af08f3685e1b3701a314.zip
frameworks_base-eb4de87683a0d1959d64af08f3685e1b3701a314.tar.gz
frameworks_base-eb4de87683a0d1959d64af08f3685e1b3701a314.tar.bz2
Merge "Update API and documentation for invalid subscriptions id's" into lmp-mr1-dev
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/android/telephony/SubscriptionManager.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java
index 20cd037..39cce69 100644
--- a/telephony/java/android/telephony/SubscriptionManager.java
+++ b/telephony/java/android/telephony/SubscriptionManager.java
@@ -52,6 +52,7 @@ public class SubscriptionManager {
private static final boolean VDBG = false;
/** An invalid subscription identifier */
+ /** @hide */
public static final int INVALID_SUBSCRIPTION_ID = -1;
/** Base value for Dummy SUBSCRIPTION_ID's. */
@@ -662,7 +663,7 @@ public class SubscriptionManager {
* @param subId the unique SubscriptionInfo index in database
* @param nameSource 0: NAME_SOURCE_DEFAULT_SOURCE, 1: NAME_SOURCE_SIM_SOURCE,
* 2: NAME_SOURCE_USER_INPUT, -1 NAME_SOURCE_UNDEFINED
- * @return the number of records updated or -1 if invalid subId
+ * @return the number of records updated or < 0 if invalid subId
* @hide
*/
public int setDisplayName(String displayName, int subId, long nameSource) {
@@ -749,7 +750,7 @@ public class SubscriptionManager {
/**
* Get slotId associated with the subscription.
* @return slotId as a positive integer or a negative value if an error either
- * SIM_NOT_INSERTED or INVALID_SLOT_ID.
+ * SIM_NOT_INSERTED or < 0 if an invalid slot index
* @hide
*/
public static int getSlotId(int subId) {
@@ -884,7 +885,7 @@ public class SubscriptionManager {
/**
* @return subId of the DefaultSms subscription or
- * the value INVALID_SUBSCRIPTION_ID if an error.
+ * a value < 0 if an error.
*
* @hide
*/
@@ -998,7 +999,7 @@ public class SubscriptionManager {
/**
* If a default is set to subscription which is not active, this will reset that default back to
- * INVALID_SUBSCRIPTION_ID.
+ * an invalid subscription id, i.e. < 0.
* @hide
*/
public void clearDefaultsForInactiveSubIds() {
@@ -1023,7 +1024,7 @@ public class SubscriptionManager {
/**
* @return true if subId is an usable subId value else false. A
- * usable subId means its neither a INVALID_SUBSCRIPTION_ID nor a DEFAUL_SUB_ID.
+ * usable subId means its neither a INVALID_SUBSCRIPTION_ID nor a DEFAULT_SUB_ID.
* @hide
*/
public static boolean isUsableSubIdValue(int subId) {