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

Commit c289c9b0 authored by Rambo Wang's avatar Rambo Wang Committed by Gerrit Code Review
Browse files

Merge changes from topics "ServiceState#dataRegState", "ServiceState#duplexMode"

* changes:
  Export ServiceState#DataRegState into telephony provider
  Public ServiceState#duplexMode in telephony provider
parents f1a81b04 cff9760e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34220,6 +34220,8 @@ package android.provider {
    field public static final String AUTHORITY = "service-state";
    field public static final android.net.Uri CONTENT_URI;
    field public static final String DATA_NETWORK_TYPE = "data_network_type";
    field public static final String DATA_REG_STATE = "data_reg_state";
    field public static final String DUPLEX_MODE = "duplex_mode";
    field public static final String IS_MANUAL_NETWORK_SELECTION = "is_manual_network_selection";
    field public static final String VOICE_OPERATOR_NUMERIC = "voice_operator_numeric";
    field public static final String VOICE_REG_STATE = "voice_reg_state";
+1 −0
Original line number Diff line number Diff line
@@ -1652,6 +1652,7 @@ package android.telephony {
  public class ServiceState implements android.os.Parcelable {
    method public void addNetworkRegistrationInfo(android.telephony.NetworkRegistrationInfo);
    method public int getDataNetworkType();
    method public int getDataRegState();
    method public void setCdmaSystemAndNetworkId(int, int);
    method public void setCellBandwidths(int[]);
    method public void setChannelNumber(int);
+20 −0
Original line number Diff line number Diff line
@@ -4556,6 +4556,15 @@ public final class Telephony {
         */
        public static final String VOICE_REG_STATE = "voice_reg_state";

        /**
         * An integer value indicating the current data service state.
         * <p>
         * Valid values: {@link ServiceState#STATE_IN_SERVICE},
         * {@link ServiceState#STATE_OUT_OF_SERVICE}, {@link ServiceState#STATE_EMERGENCY_ONLY},
         * {@link ServiceState#STATE_POWER_OFF}.
         */
        public static final String DATA_REG_STATE = "data_reg_state";

        /**
         * The current registered operator numeric id.
         * <p>
@@ -4579,6 +4588,17 @@ public final class Telephony {
         * This is the same as {@link TelephonyManager#getDataNetworkType()}.
         */
        public static final String DATA_NETWORK_TYPE = "data_network_type";

        /**
         * An integer value indicating the current duplex mode if the radio technology is LTE,
         * LTE-CA or NR.
         * <p>
         * Valid values: {@link ServiceState#DUPLEX_MODE_UNKNOWN},
         * {@link ServiceState#DUPLEX_MODE_FDD}, {@link ServiceState#DUPLEX_MODE_TDD}.
         * <p>
         * This is the same as {@link ServiceState#getDuplexMode()}.
         */
        public static final String DUPLEX_MODE = "duplex_mode";
    }

    /**
+1 −0
Original line number Diff line number Diff line
@@ -564,6 +564,7 @@ public class ServiceState implements Parcelable {
     * @hide
     */
    @UnsupportedAppUsage
    @TestApi
    public int getDataRegState() {
        return mDataRegState;
    }