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

Commit 98e84ea0 authored by Jayachandran C's avatar Jayachandran C
Browse files

Expose the following ServiceState API as system APIs

getOperatorAlphaLongRaw()
getOperatorAlphaShortRaw()

Bug: 111498835
Test: Make
Change-Id: Idcdcbd021f2e147604f0bd853d48f52d434c6fd2
parent b3866aee
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7990,6 +7990,8 @@ package android.telephony {
    method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoList();
    method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoListForDomain(int);
    method @NonNull public java.util.List<android.telephony.NetworkRegistrationInfo> getNetworkRegistrationInfoListForTransportType(int);
    method @Nullable public String getOperatorAlphaLongRaw();
    method @Nullable public String getOperatorAlphaShortRaw();
    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
+6 −0
Original line number Diff line number Diff line
@@ -1968,8 +1968,11 @@ public class ServiceState implements Parcelable {
    /**
     * The current registered raw data network operator name in long alphanumeric format.
     *
     * @return long raw name of operator, null if unregistered or unknown
     * @hide
     */
    @Nullable
    @SystemApi
    public String getOperatorAlphaLongRaw() {
        return mOperatorAlphaLongRaw;
    }
@@ -1984,8 +1987,11 @@ public class ServiceState implements Parcelable {
    /**
     * The current registered raw data network operator name in short alphanumeric format.
     *
     * @return short raw name of operator, null if unregistered or unknown
     * @hide
     */
    @Nullable
    @SystemApi
    public String getOperatorAlphaShortRaw() {
        return mOperatorAlphaShortRaw;
    }