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

Commit 5884933e authored by Hall Liu's avatar Hall Liu
Browse files

Expose ServiceState#getDataNetworkType as SystemApi

Test: atest android.telephony.cts.ServiceStateTest#testGetDataNetworkType
Bug: 146834818
Change-Id: If3f7b227da1bd2d3a107375dbd8b4218435dc1dc
parent a32fcb74
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8954,6 +8954,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();
+1 −0
Original line number Diff line number Diff line
@@ -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);
+2 −1
Original line number Diff line number Diff line
@@ -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);