Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 524ae55a authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Change javadoc of getSubmitPduEncodedMessage and add IntRange to its...

Merge "Change javadoc of getSubmitPduEncodedMessage and add IntRange to its parameters" into rvc-dev am: 931e7099 am: 0f5eab74

Change-Id: I2bfbdd9064a84632c5bc98dd0e79a29a98e4dc34
parents c33de535 0f5eab74
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -11522,7 +11522,7 @@ package android.telephony {
  public class SmsMessage {
  public class SmsMessage {
    method @Nullable public static android.telephony.SmsMessage.SubmitPdu getSmsPdu(int, int, @Nullable String, @NonNull String, @NonNull String, long);
    method @Nullable public static android.telephony.SmsMessage.SubmitPdu getSmsPdu(int, int, @Nullable String, @NonNull String, @NonNull String, long);
    method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public static byte[] getSubmitPduEncodedMessage(boolean, @NonNull String, @NonNull String, int, int, int, int, int, int);
    method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public static byte[] getSubmitPduEncodedMessage(boolean, @NonNull String, @NonNull String, int, @IntRange(from=0) int, @IntRange(from=0) int, @IntRange(from=0, to=255) int, @IntRange(from=1, to=255) int, @IntRange(from=1, to=255) int);
  }
  }
  public class SubscriptionInfo implements android.os.Parcelable {
  public class SubscriptionInfo implements android.os.Parcelable {
+12 −8
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@ import static android.telephony.TelephonyManager.PHONE_TYPE_CDMA;


import android.Manifest;
import android.Manifest;
import android.annotation.IntDef;
import android.annotation.IntDef;
import android.annotation.IntRange;
import android.annotation.NonNull;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Nullable;
import android.annotation.RequiresPermission;
import android.annotation.RequiresPermission;
@@ -716,9 +717,9 @@ public class SmsMessage {
     *                      23.040 9.2.3.24.16
     *                      23.040 9.2.3.24.16
     * @param languageShiftTable GSM national language shift table to use, specified by 3GPP
     * @param languageShiftTable GSM national language shift table to use, specified by 3GPP
     *                           23.040 9.2.3.24.15
     *                           23.040 9.2.3.24.15
     * @param refNumber parameter to create SmsHeader
     * @param refNumber reference number of concatenated SMS, specified by 3GPP 23.040 9.2.3.24.1
     * @param seqNumber parameter to create SmsHeader
     * @param seqNumber sequence number of concatenated SMS, specified by 3GPP 23.040 9.2.3.24.1
     * @param msgCount parameter to create SmsHeader
     * @param msgCount count of messages of concatenated SMS, specified by 3GPP 23.040 9.2.3.24.2
     * @return a byte[] containing the encoded message
     * @return a byte[] containing the encoded message
     *
     *
     * @hide
     * @hide
@@ -729,9 +730,12 @@ public class SmsMessage {
    public static byte[] getSubmitPduEncodedMessage(boolean isTypeGsm,
    public static byte[] getSubmitPduEncodedMessage(boolean isTypeGsm,
                                                    @NonNull String destinationAddress,
                                                    @NonNull String destinationAddress,
                                                    @NonNull String message,
                                                    @NonNull String message,
            @EncodingSize int encoding, int languageTable,
                                                    @EncodingSize int encoding,
            int languageShiftTable, int refNumber,
                                                    @IntRange(from = 0) int languageTable,
            int seqNumber, int msgCount) {
                                                    @IntRange(from = 0) int languageShiftTable,
                                                    @IntRange(from = 0, to = 255) int refNumber,
                                                    @IntRange(from = 1, to = 255) int seqNumber,
                                                    @IntRange(from = 1, to = 255) int msgCount) {
        byte[] data;
        byte[] data;
        SmsHeader.ConcatRef concatRef = new SmsHeader.ConcatRef();
        SmsHeader.ConcatRef concatRef = new SmsHeader.ConcatRef();
        concatRef.refNumber = refNumber;
        concatRef.refNumber = refNumber;