Merge changes from topic "pick-sst-location-iwlan"

* changes:
  Update GlobalCellId during Un-parceling
  Make CellIdentity#getPlmn() Publicly Accessible
This commit is contained in:
Nathan Harold
2020-05-04 16:11:28 +00:00
committed by Gerrit Code Review
7 changed files with 11 additions and 1 deletions

View File

@@ -211,7 +211,7 @@ public abstract class CellIdentity implements Parcelable {
} }
/** @hide */ /** @hide */
protected String getPlmn() { public @Nullable String getPlmn() {
if (mMccStr == null || mMncStr == null) return null; if (mMccStr == null || mMncStr == null) return null;
return mMccStr + mMncStr; return mMccStr + mMncStr;
} }

View File

@@ -279,6 +279,7 @@ public final class CellIdentityCdma extends CellIdentity {
mLongitude = in.readInt(); mLongitude = in.readInt();
mLatitude = in.readInt(); mLatitude = in.readInt();
updateGlobalCellId();
if (DBG) log(toString()); if (DBG) log(toString());
} }

View File

@@ -323,6 +323,7 @@ public final class CellIdentityGsm extends CellIdentity {
mBsic = in.readInt(); mBsic = in.readInt();
mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null); mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null);
updateGlobalCellId();
if (DBG) log(toString()); if (DBG) log(toString());
} }

View File

@@ -403,6 +403,8 @@ public final class CellIdentityLte extends CellIdentity {
mBandwidth = in.readInt(); mBandwidth = in.readInt();
mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null); mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null);
mCsgInfo = in.readParcelable(null); mCsgInfo = in.readParcelable(null);
updateGlobalCellId();
if (DBG) log(toString()); if (DBG) log(toString());
} }

View File

@@ -273,6 +273,8 @@ public final class CellIdentityNr extends CellIdentity {
mBands = in.createIntArray(); mBands = in.createIntArray();
mNci = in.readLong(); mNci = in.readLong();
mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null); mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null);
updateGlobalCellId();
} }
/** Implement the Parcelable interface */ /** Implement the Parcelable interface */

View File

@@ -321,6 +321,8 @@ public final class CellIdentityTdscdma extends CellIdentity {
mUarfcn = in.readInt(); mUarfcn = in.readInt();
mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null); mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null);
mCsgInfo = in.readParcelable(null); mCsgInfo = in.readParcelable(null);
updateGlobalCellId();
if (DBG) log(toString()); if (DBG) log(toString());
} }

View File

@@ -336,6 +336,8 @@ public final class CellIdentityWcdma extends CellIdentity {
mUarfcn = in.readInt(); mUarfcn = in.readInt();
mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null); mAdditionalPlmns = (ArraySet<String>) in.readArraySet(null);
mCsgInfo = in.readParcelable(null); mCsgInfo = in.readParcelable(null);
updateGlobalCellId();
if (DBG) log(toString()); if (DBG) log(toString());
} }