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

Commit 850525ff authored by Jordan Liu's avatar Jordan Liu Committed by android-build-merger
Browse files

Merge "Expose SmsCbLocation and SmsCbMessage constructors"

am: d87727f7

Change-Id: I24bfb6ed5fa25a810c2a5fe78745091f5b576162
parents 12b5e9f4 d87727f7
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -8154,7 +8154,7 @@ package android.telephony {
  }
  }
  public final class SmsCbMessage implements android.os.Parcelable {
  public final class SmsCbMessage implements android.os.Parcelable {
    ctor public SmsCbMessage(int, int, int, @NonNull android.telephony.SmsCbLocation, int, @Nullable String, @Nullable String, int, @Nullable android.telephony.SmsCbEtwsInfo, @Nullable android.telephony.SmsCbCmasInfo, int);
    ctor public SmsCbMessage(int, int, int, @NonNull android.telephony.SmsCbLocation, int, @Nullable String, @Nullable String, int, @Nullable android.telephony.SmsCbEtwsInfo, @Nullable android.telephony.SmsCbCmasInfo, int, @Nullable java.util.List<android.telephony.CbGeoUtils.Geometry>, long, int);
    method @NonNull public static android.telephony.SmsCbMessage createFromCursor(@NonNull android.database.Cursor);
    method @NonNull public static android.telephony.SmsCbMessage createFromCursor(@NonNull android.database.Cursor);
    method public int describeContents();
    method public int describeContents();
    method @Nullable public android.telephony.SmsCbCmasInfo getCmasWarningInfo();
    method @Nullable public android.telephony.SmsCbCmasInfo getCmasWarningInfo();
@@ -8181,6 +8181,7 @@ package android.telephony {
    field public static final int GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE = 0; // 0x0
    field public static final int GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE = 0; // 0x0
    field public static final int GEOGRAPHICAL_SCOPE_LOCATION_AREA_WIDE = 2; // 0x2
    field public static final int GEOGRAPHICAL_SCOPE_LOCATION_AREA_WIDE = 2; // 0x2
    field public static final int GEOGRAPHICAL_SCOPE_PLMN_WIDE = 1; // 0x1
    field public static final int GEOGRAPHICAL_SCOPE_PLMN_WIDE = 1; // 0x1
    field public static final int MAXIMUM_WAIT_TIME_NOT_SET = 255; // 0xff
    field public static final int MESSAGE_FORMAT_3GPP = 1; // 0x1
    field public static final int MESSAGE_FORMAT_3GPP = 1; // 0x1
    field public static final int MESSAGE_FORMAT_3GPP2 = 2; // 0x2
    field public static final int MESSAGE_FORMAT_3GPP2 = 2; // 0x2
    field public static final int MESSAGE_PRIORITY_EMERGENCY = 3; // 0x3
    field public static final int MESSAGE_PRIORITY_EMERGENCY = 3; // 0x3
+4 −0
Original line number Original line Diff line number Diff line
@@ -65,6 +65,10 @@ public final class SmsCbLocation implements Parcelable {
    /**
    /**
     * Construct a location object for the PLMN, LAC, and Cell ID. This class is immutable, so
     * Construct a location object for the PLMN, LAC, and Cell ID. This class is immutable, so
     * the same object can be reused for multiple broadcasts.
     * the same object can be reused for multiple broadcasts.
     *
     * @param plmn the MCC/MNC of the network
     * @param lac the GSM location area code, or UMTS service area code
     * @param cid the GSM or UMTS cell ID
     */
     */
    public SmsCbLocation(@NonNull String plmn, int lac, int cid) {
    public SmsCbLocation(@NonNull String plmn, int lac, int cid) {
        mPlmn = plmn;
        mPlmn = plmn;
+9 −8
Original line number Original line Diff line number Diff line
@@ -138,8 +138,8 @@ public final class SmsCbMessage implements Parcelable {
    public @interface MessagePriority {}
    public @interface MessagePriority {}


    /**
    /**
     * ATIS-0700041 Section 5.2.8 WAC Geo-Fencing Maximum Wait Time Table 12.
     * Integer indicating that the maximum wait time is not set.
     * @hide
     * Based on ATIS-0700041 Section 5.2.8 WAC Geo-Fencing Maximum Wait Time Table 12.
     */
     */
    public static final int MAXIMUM_WAIT_TIME_NOT_SET = 255;
    public static final int MAXIMUM_WAIT_TIME_NOT_SET = 255;


@@ -209,6 +209,7 @@ public final class SmsCbMessage implements Parcelable {


    /**
    /**
     * Create a new SmsCbMessage with the specified data.
     * Create a new SmsCbMessage with the specified data.
     * @hide
     */
     */
    public SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber,
    public SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber,
            @NonNull SmsCbLocation location, int serviceCategory, @Nullable String language,
            @NonNull SmsCbLocation location, int serviceCategory, @Nullable String language,
@@ -221,14 +222,14 @@ public final class SmsCbMessage implements Parcelable {
    }
    }


    /**
    /**
     * Create a new {@link SmsCbMessage} with the warning area coordinates information.
     * Create a new {@link SmsCbMessage} with the specified data, including warning area
     * @hide
     * coordinates information.
     */
     */
    public SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber,
    public SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber,
            SmsCbLocation location, int serviceCategory, String language, String body,
            @NonNull SmsCbLocation location, int serviceCategory, @Nullable String language,
            int priority, SmsCbEtwsInfo etwsWarningInfo, SmsCbCmasInfo cmasWarningInfo,
            @Nullable String body, int priority, @Nullable SmsCbEtwsInfo etwsWarningInfo,
            int maximumWaitTimeSec, List<Geometry> geometries, long receivedTimeMillis,
            @Nullable SmsCbCmasInfo cmasWarningInfo, int maximumWaitTimeSec,
            int slotIndex) {
            @Nullable List<Geometry> geometries, long receivedTimeMillis, int slotIndex) {
        mMessageFormat = messageFormat;
        mMessageFormat = messageFormat;
        mGeographicalScope = geographicalScope;
        mGeographicalScope = geographicalScope;
        mSerialNumber = serialNumber;
        mSerialNumber = serialNumber;