From 60c671c3665667c7240ccd930382c69737fcb712 Mon Sep 17 00:00:00 2001 From: Taesu Lee Date: Mon, 11 Nov 2019 13:26:27 +0900 Subject: [PATCH] Remove dup result code descriptions Test: Not required. Change-Id: I14e574f9a29105985b4e467162002c9e590130de Signed-off-by: Taesu Lee --- .../java/android/telephony/SmsManager.java | 61 ++++++++----------- 1 file changed, 27 insertions(+), 34 deletions(-) diff --git a/telephony/java/android/telephony/SmsManager.java b/telephony/java/android/telephony/SmsManager.java index bcc2c67bd8e71..b958bff6d00b8 100644 --- a/telephony/java/android/telephony/SmsManager.java +++ b/telephony/java/android/telephony/SmsManager.java @@ -345,7 +345,6 @@ public final class SmsManager { * where this operation may fail. *

* - * * @param destinationAddress the address to send the message to * @param scAddress is the service center address or null to use * the current default SMSC @@ -358,7 +357,6 @@ public final class SmsManager { * RESULT_ERROR_RADIO_OFF
* RESULT_ERROR_NULL_PDU
* RESULT_ERROR_NO_SERVICE
- * RESULT_ERROR_NO_SERVICE
* RESULT_ERROR_LIMIT_EXCEEDED
* RESULT_ERROR_FDN_CHECK_FAILURE
* RESULT_ERROR_SHORT_CODE_NOT_ALLOWED
@@ -473,7 +471,6 @@ public final class SmsManager { * RESULT_ERROR_RADIO_OFF
* RESULT_ERROR_NULL_PDU
* RESULT_ERROR_NO_SERVICE
- * RESULT_ERROR_NO_SERVICE
* RESULT_ERROR_LIMIT_EXCEEDED
* RESULT_ERROR_FDN_CHECK_FAILURE
* RESULT_ERROR_SHORT_CODE_NOT_ALLOWED
@@ -862,22 +859,20 @@ public final class SmsManager { * where this operation may fail. *

* - * * @param destinationAddress the address to send the message to * @param scAddress is the service center address or null to use - * the current default SMSC + * the current default SMSC * @param parts an ArrayList of strings that, in order, - * comprise the original message + * comprise the original message * @param sentIntents if not null, an ArrayList of - * PendingIntents (one for each message part) that is - * broadcast when the corresponding message part has been sent. - * The result code will be Activity.RESULT_OK for success, - * or one of these errors:
+ * PendingIntents (one for each message part) that is + * broadcast when the corresponding message part has been sent. + * The result code will be Activity.RESULT_OK for success, + * or one of these errors:
* RESULT_ERROR_GENERIC_FAILURE
* RESULT_ERROR_RADIO_OFF
* RESULT_ERROR_NULL_PDU
* RESULT_ERROR_NO_SERVICE
- * RESULT_ERROR_NO_SERVICE
* RESULT_ERROR_LIMIT_EXCEEDED
* RESULT_ERROR_FDN_CHECK_FAILURE
* RESULT_ERROR_SHORT_CODE_NOT_ALLOWED
@@ -933,14 +928,14 @@ public final class SmsManager { * For RESULT_ERROR_GENERIC_FAILURE or any of the RESULT_RIL errors, * the sentIntent may include the extra "errorCode" containing a radio technology specific * value, generally only useful for troubleshooting.
- * The per-application based SMS control checks sentIntent. If sentIntent - * is NULL the caller will be checked against all unknown applications, - * which cause smaller number of SMS to be sent in checking period. + * The per-application based SMS control checks sentIntent. If sentIntent + * is NULL the caller will be checked against all unknown applications, + * which cause smaller number of SMS to be sent in checking period. * @param deliveryIntents if not null, an ArrayList of - * PendingIntents (one for each message part) that is - * broadcast when the corresponding message part has been delivered - * to the recipient. The raw pdu of the status report is in the - * extended data ("pdu"). + * PendingIntents (one for each message part) that is + * broadcast when the corresponding message part has been delivered + * to the recipient. The raw pdu of the status report is in the + * extended data ("pdu"). * * @throws IllegalArgumentException if destinationAddress or data are empty */ @@ -1123,22 +1118,21 @@ public final class SmsManager { * boolean value {@code true}. See {@link #getDefault()} for more information on the conditions * where this operation may fail. *

- + * * @param destinationAddress the address to send the message to * @param scAddress is the service center address or null to use - * the current default SMSC + * the current default SMSC * @param parts an ArrayList of strings that, in order, - * comprise the original message + * comprise the original message * @param sentIntents if not null, an ArrayList of - * PendingIntents (one for each message part) that is - * broadcast when the corresponding message part has been sent. - * The result code will be Activity.RESULT_OK for success, - * or one of these errors:
+ * PendingIntents (one for each message part) that is + * broadcast when the corresponding message part has been sent. + * The result code will be Activity.RESULT_OK for success, + * or one of these errors:
* RESULT_ERROR_GENERIC_FAILURE
* RESULT_ERROR_RADIO_OFF
* RESULT_ERROR_NULL_PDU
* RESULT_ERROR_NO_SERVICE
- * RESULT_ERROR_NO_SERVICE
* RESULT_ERROR_LIMIT_EXCEEDED
* RESULT_ERROR_FDN_CHECK_FAILURE
* RESULT_ERROR_SHORT_CODE_NOT_ALLOWED
@@ -1194,14 +1188,14 @@ public final class SmsManager { * For RESULT_ERROR_GENERIC_FAILURE or any of the RESULT_RIL errors, * the sentIntent may include the extra "errorCode" containing a radio technology specific * value, generally only useful for troubleshooting.
- * The per-application based SMS control checks sentIntent. If sentIntent - * is NULL the caller will be checked against all unknown applications, - * which cause smaller number of SMS to be sent in checking period. + * The per-application based SMS control checks sentIntent. If sentIntent + * is NULL the caller will be checked against all unknown applications, + * which cause smaller number of SMS to be sent in checking period. * @param deliveryIntents if not null, an ArrayList of - * PendingIntents (one for each message part) that is - * broadcast when the corresponding message part has been delivered - * to the recipient. The raw pdu of the status report is in the - * extended data ("pdu"). + * PendingIntents (one for each message part) that is + * broadcast when the corresponding message part has been delivered + * to the recipient. The raw pdu of the status report is in the + * extended data ("pdu"). * @param priority Priority level of the message * Refer specification See 3GPP2 C.S0015-B, v2.0, table 4.5.9-1 * --------------------------------- @@ -1340,7 +1334,6 @@ public final class SmsManager { * RESULT_ERROR_RADIO_OFF
* RESULT_ERROR_NULL_PDU
* RESULT_ERROR_NO_SERVICE
- * RESULT_ERROR_NO_SERVICE
* RESULT_ERROR_LIMIT_EXCEEDED
* RESULT_ERROR_FDN_CHECK_FAILURE
* RESULT_ERROR_SHORT_CODE_NOT_ALLOWED