Loading telephony/java/android/telephony/CellIdentity.java +16 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,22 @@ public abstract class CellIdentity implements Parcelable { return mType; } /** * @return MCC or null for CDMA * @hide */ public String getMccString() { return mMccStr; } /** * @return MNC or null for CDMA * @hide */ public String getMncString() { return mMncStr; } /** * Returns the channel number of the cell identity. * Loading telephony/java/android/telephony/CellIdentityCdma.java +7 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,13 @@ public final class CellIdentityCdma extends CellIdentity { return new CellIdentityCdma(this); } /** @hide */ public CellIdentityCdma sanitizeLocationInfo() { return new CellIdentityCdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort); } /** * Take the latitude and longitude in 1/4 seconds and see if * the reported location is on Null Island. Loading telephony/java/android/telephony/CellIdentityGsm.java +6 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,12 @@ public final class CellIdentityGsm extends CellIdentity { return new CellIdentityGsm(this); } /** @hide */ public CellIdentityGsm sanitizeLocationInfo() { return new CellIdentityGsm(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, mAlphaLong, mAlphaShort); } /** * @return 3-digit Mobile Country Code, 0..999, * {@link android.telephony.CellInfo#UNAVAILABLE UNAVAILABLE} if unavailable. Loading telephony/java/android/telephony/CellIdentityLte.java +7 −0 Original line number Diff line number Diff line Loading @@ -113,6 +113,13 @@ public final class CellIdentityLte extends CellIdentity { cid.mMncStr, cid.mAlphaLong, cid.mAlphaShort); } /** @hide */ public CellIdentityLte sanitizeLocationInfo() { return new CellIdentityLte(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, mAlphaLong, mAlphaShort); } CellIdentityLte copy() { return new CellIdentityLte(this); } Loading telephony/java/android/telephony/CellIdentityNr.java +7 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,12 @@ public final class CellIdentityNr extends CellIdentity { mNci = nci; } /** @hide */ public CellIdentityNr sanitizeLocationInfo() { return new CellIdentityNr(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort); } /** * @return a CellLocation object for this CellIdentity. * @hide Loading Loading
telephony/java/android/telephony/CellIdentity.java +16 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,22 @@ public abstract class CellIdentity implements Parcelable { return mType; } /** * @return MCC or null for CDMA * @hide */ public String getMccString() { return mMccStr; } /** * @return MNC or null for CDMA * @hide */ public String getMncString() { return mMncStr; } /** * Returns the channel number of the cell identity. * Loading
telephony/java/android/telephony/CellIdentityCdma.java +7 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,13 @@ public final class CellIdentityCdma extends CellIdentity { return new CellIdentityCdma(this); } /** @hide */ public CellIdentityCdma sanitizeLocationInfo() { return new CellIdentityCdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort); } /** * Take the latitude and longitude in 1/4 seconds and see if * the reported location is on Null Island. Loading
telephony/java/android/telephony/CellIdentityGsm.java +6 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,12 @@ public final class CellIdentityGsm extends CellIdentity { return new CellIdentityGsm(this); } /** @hide */ public CellIdentityGsm sanitizeLocationInfo() { return new CellIdentityGsm(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, mAlphaLong, mAlphaShort); } /** * @return 3-digit Mobile Country Code, 0..999, * {@link android.telephony.CellInfo#UNAVAILABLE UNAVAILABLE} if unavailable. Loading
telephony/java/android/telephony/CellIdentityLte.java +7 −0 Original line number Diff line number Diff line Loading @@ -113,6 +113,13 @@ public final class CellIdentityLte extends CellIdentity { cid.mMncStr, cid.mAlphaLong, cid.mAlphaShort); } /** @hide */ public CellIdentityLte sanitizeLocationInfo() { return new CellIdentityLte(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, mAlphaLong, mAlphaShort); } CellIdentityLte copy() { return new CellIdentityLte(this); } Loading
telephony/java/android/telephony/CellIdentityNr.java +7 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,12 @@ public final class CellIdentityNr extends CellIdentity { mNci = nci; } /** @hide */ public CellIdentityNr sanitizeLocationInfo() { return new CellIdentityNr(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort); } /** * @return a CellLocation object for this CellIdentity. * @hide Loading