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

* changes:
  Export ServiceState#DataRegState into telephony provider
  Public ServiceState#duplexMode in telephony provider
This commit is contained in:
Rambo Wang
2021-03-24 01:22:51 +00:00
committed by Gerrit Code Review
4 changed files with 24 additions and 0 deletions

View File

@@ -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";

View File

@@ -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);

View File

@@ -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";
}
/**

View File

@@ -564,6 +564,7 @@ public class ServiceState implements Parcelable {
* @hide
*/
@UnsupportedAppUsage
@TestApi
public int getDataRegState() {
return mDataRegState;
}