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

Commit d285c8eb authored by Nathan Harold's avatar Nathan Harold
Browse files

Add getMobileNetworkOperator to CellIdentityTdscdma

For consistency with CellIdentityLte, Wcdma, and Gsm
adding this function. It will aid in future refactors
to possibly create a common interface for these classes.

Bug: 111808089
Test: compilation
Change-Id: Ia6b21bcc368089d8346951ae9476e7eb12a05130
parent 7fff7e5e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42078,6 +42078,7 @@ package android.telephony {
    method public int getLac();
    method public java.lang.String getMccString();
    method public java.lang.String getMncString();
    method public java.lang.String getMobileNetworkOperator();
    method public void writeToParcel(android.os.Parcel, int);
    field public static final android.os.Parcelable.Creator<android.telephony.CellIdentityTdscdma> CREATOR;
  }
+7 −0
Original line number Diff line number Diff line
@@ -108,6 +108,13 @@ public final class CellIdentityTdscdma extends CellIdentity {
        return mMncStr;
    }

    /**
     * @return a 5 or 6 character string (MCC+MNC), null if any field is unknown
     */
    public String getMobileNetworkOperator() {
        return (mMccStr == null || mMncStr == null) ? null : mMccStr + mMncStr;
    }

    /**
     * @return 16-bit Location Area Code, 0..65535, INT_MAX if unknown
     */