Merge "new SystemAPI for roamingType in NetworkRegistrationState"

am: 24df195e78

Change-Id: Ic21830831a4a528b250c89e1b2cd63f45f4373c6
This commit is contained in:
Chen Xu
2018-11-12 17:41:47 -08:00
committed by android-build-merger
3 changed files with 16 additions and 11 deletions

View File

@@ -5113,6 +5113,7 @@ package android.telephony {
method public int getDomain();
method public int getRegState();
method public int getRejectCause();
method public int getRoamingType();
method public int getTransportType();
method public boolean isEmergencyEnabled();
method public boolean isRoaming();
@@ -5172,6 +5173,10 @@ package android.telephony {
method public deprecated android.telephony.NetworkRegistrationState getNetworkRegistrationStates(int, int);
method public java.util.List<android.telephony.NetworkRegistrationState> getNetworkRegistrationStatesForDomain(int);
method public java.util.List<android.telephony.NetworkRegistrationState> getNetworkRegistrationStatesForTransportType(int);
field public static final int ROAMING_TYPE_DOMESTIC = 2; // 0x2
field public static final int ROAMING_TYPE_INTERNATIONAL = 3; // 0x3
field public static final int ROAMING_TYPE_NOT_ROAMING = 0; // 0x0
field public static final int ROAMING_TYPE_UNKNOWN = 1; // 0x1
}
public final class SmsManager {

View File

@@ -237,10 +237,9 @@ public class NetworkRegistrationState implements Parcelable {
}
/**
* @return {@link ServiceState.RoamingType roaming type}. This could return
* overridden roaming type based on resource overlay or carrier config.
* @hide
* @return the current network roaming type.
*/
public @ServiceState.RoamingType int getRoamingType() {
return mRoamingType;
}

View File

@@ -211,29 +211,30 @@ public class ServiceState implements Parcelable {
ROAMING_TYPE_INTERNATIONAL
})
public @interface RoamingType {}
/**
* Roaming type
* HOME : in home network
* Not roaming, registered in home network.
* @hide
*/
@SystemApi
public static final int ROAMING_TYPE_NOT_ROAMING = 0;
/**
* Roaming type
* UNKNOWN : in a roaming network, but we can not tell if it's domestic or international
* registered in a roaming network, but can not tell if it's domestic or international.
* @hide
*/
@SystemApi
public static final int ROAMING_TYPE_UNKNOWN = 1;
/**
* Roaming type
* DOMESTIC : in domestic roaming network
* registered in a domestic roaming network
* @hide
*/
@SystemApi
public static final int ROAMING_TYPE_DOMESTIC = 2;
/**
* Roaming type
* INTERNATIONAL : in international roaming network
* registered in an international roaming network
* @hide
*/
@SystemApi
public static final int ROAMING_TYPE_INTERNATIONAL = 3;
/**