diff options
author | Zongheng Wang <wangzongheng@google.com> | 2021-03-23 18:47:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-03-23 18:47:36 +0000 |
commit | ab2c1e5777a101bdfb76b8b6319ad7649f49ba35 (patch) | |
tree | 6a0d635060475ed0be6e20f23828968c86915337 /telephony/java | |
parent | b4d4127efbc3d273352e186116042499b1930291 (diff) | |
parent | 7b8f79b64104ac41c40ff85c2024c19903a42881 (diff) |
Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu"
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/SmsMessage.java | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/telephony/java/android/telephony/SmsMessage.java b/telephony/java/android/telephony/SmsMessage.java index cfb29f124b43..5a12865fb2a0 100644 --- a/telephony/java/android/telephony/SmsMessage.java +++ b/telephony/java/android/telephony/SmsMessage.java @@ -300,9 +300,12 @@ public class SmsMessage { * @param data Message data. * @param isCdma Indicates weather the type of the SMS is CDMA. * @return An SmsMessage representing the message. + * + * @hide */ + @SystemApi @Nullable - public static SmsMessage createSmsSubmitPdu(@NonNull byte[] data, boolean isCdma) { + public static SmsMessage createFromNativeSmsSubmitPdu(@NonNull byte[] data, boolean isCdma) { SmsMessageBase wrappedMessage; if (isCdma) { @@ -318,23 +321,6 @@ public class SmsMessage { } /** - * Create an SmsMessage from a native SMS-Submit PDU, specified by Bluetooth Message Access - * Profile Specification v1.4.2 5.8. - * This is used by Bluetooth MAP profile to decode message when sending non UTF-8 SMS messages. - * - * @param data Message data. - * @param isCdma Indicates weather the type of the SMS is CDMA. - * @return An SmsMessage representing the message. - * - * @hide - */ - @SystemApi - @Nullable - public static SmsMessage createFromNativeSmsSubmitPdu(@NonNull byte[] data, boolean isCdma) { - return null; - } - - /** * Get the TP-Layer-Length for the given SMS-SUBMIT PDU Basically, the * length in bytes (not hex chars) less the SMSC header * |