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 */
protected String getPlmn() {
public @Nullable String getPlmn() {
if (mMccStr == null || mMncStr == null) return null;
return mMccStr + mMncStr;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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