Merge "Expose ServiceState#getDataNetworkType as SystemApi"
This commit is contained in:
@@ -8986,6 +8986,7 @@ package android.telephony {
|
||||
public class ServiceState implements android.os.Parcelable {
|
||||
method @NonNull public android.telephony.ServiceState createLocationInfoSanitizedCopy(boolean);
|
||||
method public void fillInNotifierBundle(@NonNull android.os.Bundle);
|
||||
method public int getDataNetworkType();
|
||||
method public int getDataRegistrationState();
|
||||
method @Nullable public android.telephony.NetworkRegistrationInfo getNetworkRegistrationInfo(int, int);
|
||||
method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoList();
|
||||
|
||||
@@ -3018,6 +3018,7 @@ package android.telephony {
|
||||
|
||||
public class ServiceState implements android.os.Parcelable {
|
||||
method public void addNetworkRegistrationInfo(android.telephony.NetworkRegistrationInfo);
|
||||
method public int getDataNetworkType();
|
||||
method public void setCdmaSystemAndNetworkId(int, int);
|
||||
method public void setCellBandwidths(int[]);
|
||||
method public void setChannelNumber(int);
|
||||
|
||||
@@ -1624,7 +1624,8 @@ public class ServiceState implements Parcelable {
|
||||
* @return Current data network type
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public @NetworkType int getDataNetworkType() {
|
||||
final NetworkRegistrationInfo iwlanRegInfo = getNetworkRegistrationInfo(
|
||||
NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WLAN);
|
||||
|
||||
Reference in New Issue
Block a user