summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shuo Qian <shuoq@google.com> 2017-08-24 21:44:54 +0000
committer android-build-merger <android-build-merger@google.com> 2017-08-24 21:44:54 +0000
commita43b3827661ea5ca48f0fbef8adfbbdebe449344 (patch)
treeb8516f62b782912a1e8b50c44aee67fdf75d2a7d
parentb737076a4eb4d9feba68e17858708dc4b4b1dd89 (diff)
parent1dafcc89a59d1194c868393618643319e4bdf7bf (diff)
Merge "Add new error code in SmsManager" into oc-mr1-dev
am: 1dafcc89a5 Change-Id: I938ddabfe0d98ee1eee850ba9d6aeb857ebb748f
-rw-r--r--api/current.txt3
-rw-r--r--api/system-current.txt3
-rw-r--r--api/test-current.txt3
-rw-r--r--telephony/java/android/telephony/SmsManager.java6
4 files changed, 14 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt
index d1628e584a8b..5ea79090aed1 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -40098,9 +40098,12 @@ package android.telephony {
field public static final int MMS_ERROR_UNABLE_CONNECT_MMS = 3; // 0x3
field public static final int MMS_ERROR_UNSPECIFIED = 1; // 0x1
field public static final int RESULT_ERROR_GENERIC_FAILURE = 1; // 0x1
+ field public static final int RESULT_ERROR_LIMIT_EXCEEDED = 5; // 0x5
field public static final int RESULT_ERROR_NO_SERVICE = 4; // 0x4
field public static final int RESULT_ERROR_NULL_PDU = 3; // 0x3
field public static final int RESULT_ERROR_RADIO_OFF = 2; // 0x2
+ field public static final int RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED = 8; // 0x8
+ field public static final int RESULT_ERROR_SHORT_CODE_NOT_ALLOWED = 7; // 0x7
field public static final int STATUS_ON_ICC_FREE = 0; // 0x0
field public static final int STATUS_ON_ICC_READ = 1; // 0x1
field public static final int STATUS_ON_ICC_SENT = 5; // 0x5
diff --git a/api/system-current.txt b/api/system-current.txt
index 9559f02148ab..1550b1029709 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -43540,9 +43540,12 @@ package android.telephony {
field public static final int MMS_ERROR_UNABLE_CONNECT_MMS = 3; // 0x3
field public static final int MMS_ERROR_UNSPECIFIED = 1; // 0x1
field public static final int RESULT_ERROR_GENERIC_FAILURE = 1; // 0x1
+ field public static final int RESULT_ERROR_LIMIT_EXCEEDED = 5; // 0x5
field public static final int RESULT_ERROR_NO_SERVICE = 4; // 0x4
field public static final int RESULT_ERROR_NULL_PDU = 3; // 0x3
field public static final int RESULT_ERROR_RADIO_OFF = 2; // 0x2
+ field public static final int RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED = 8; // 0x8
+ field public static final int RESULT_ERROR_SHORT_CODE_NOT_ALLOWED = 7; // 0x7
field public static final int STATUS_ON_ICC_FREE = 0; // 0x0
field public static final int STATUS_ON_ICC_READ = 1; // 0x1
field public static final int STATUS_ON_ICC_SENT = 5; // 0x5
diff --git a/api/test-current.txt b/api/test-current.txt
index cad189c2e6f5..9a16d2770e51 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -40357,9 +40357,12 @@ package android.telephony {
field public static final int MMS_ERROR_UNABLE_CONNECT_MMS = 3; // 0x3
field public static final int MMS_ERROR_UNSPECIFIED = 1; // 0x1
field public static final int RESULT_ERROR_GENERIC_FAILURE = 1; // 0x1
+ field public static final int RESULT_ERROR_LIMIT_EXCEEDED = 5; // 0x5
field public static final int RESULT_ERROR_NO_SERVICE = 4; // 0x4
field public static final int RESULT_ERROR_NULL_PDU = 3; // 0x3
field public static final int RESULT_ERROR_RADIO_OFF = 2; // 0x2
+ field public static final int RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED = 8; // 0x8
+ field public static final int RESULT_ERROR_SHORT_CODE_NOT_ALLOWED = 7; // 0x7
field public static final int STATUS_ON_ICC_FREE = 0; // 0x0
field public static final int STATUS_ON_ICC_READ = 1; // 0x1
field public static final int STATUS_ON_ICC_SENT = 5; // 0x5
diff --git a/telephony/java/android/telephony/SmsManager.java b/telephony/java/android/telephony/SmsManager.java
index 1eac263133e5..6029995f2468 100644
--- a/telephony/java/android/telephony/SmsManager.java
+++ b/telephony/java/android/telephony/SmsManager.java
@@ -1131,10 +1131,14 @@ public final class SmsManager {
static public final int RESULT_ERROR_NULL_PDU = 3;
/** Failed because service is currently unavailable */
static public final int RESULT_ERROR_NO_SERVICE = 4;
- /** Failed because we reached the sending queue limit. {@hide} */
+ /** Failed because we reached the sending queue limit. */
static public final int RESULT_ERROR_LIMIT_EXCEEDED = 5;
/** Failed because FDN is enabled. {@hide} */
static public final int RESULT_ERROR_FDN_CHECK_FAILURE = 6;
+ /** Failed because user denied the sending of this short code. */
+ static public final int RESULT_ERROR_SHORT_CODE_NOT_ALLOWED = 7;
+ /** Failed because the user has denied this app ever send premium short codes. */
+ static public final int RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED = 8;
static private final String PHONE_PACKAGE_NAME = "com.android.phone";