Loading api/current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -44383,6 +44383,7 @@ package android.telephony { method public int getChannelNumber(); method public int getChannelNumber(); method public String getMccString(); method public String getMccString(); method public String getMncString(); method public String getMncString(); method public long getNci(); method public int getPci(); method public int getPci(); method public int getTac(); method public int getTac(); method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int); telephony/java/android/telephony/CellIdentityNr.java +18 −3 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,7 @@ public final class CellIdentityNr extends CellIdentity { private final int mNrArfcn; private final int mNrArfcn; private final int mPci; private final int mPci; private final int mTac; private final int mTac; private final long mNci; /** /** * * Loading @@ -44,11 +45,12 @@ public final class CellIdentityNr extends CellIdentity { * @hide * @hide */ */ public CellIdentityNr(int pci, int tac, int nrArfcn, String mccStr, String mncStr, public CellIdentityNr(int pci, int tac, int nrArfcn, String mccStr, String mncStr, String alphal, String alphas) { long nci, String alphal, String alphas) { super(TAG, CellInfo.TYPE_NR, mccStr, mncStr, alphal, alphas); super(TAG, CellInfo.TYPE_NR, mccStr, mncStr, alphal, alphas); mPci = pci; mPci = pci; mTac = tac; mTac = tac; mNrArfcn = nrArfcn; mNrArfcn = nrArfcn; mNci = nci; } } /** /** Loading @@ -62,7 +64,7 @@ public final class CellIdentityNr extends CellIdentity { @Override @Override public int hashCode() { public int hashCode() { return Objects.hash(super.hashCode(), mPci, mTac, mNrArfcn); return Objects.hash(super.hashCode(), mPci, mTac, mNrArfcn, mNci); } } @Override @Override Loading @@ -72,7 +74,17 @@ public final class CellIdentityNr extends CellIdentity { } } CellIdentityNr o = (CellIdentityNr) other; CellIdentityNr o = (CellIdentityNr) other; return super.equals(o) && mPci == o.mPci && mTac == o.mTac && mNrArfcn == o.mNrArfcn; return super.equals(o) && mPci == o.mPci && mTac == o.mTac && mNrArfcn == o.mNrArfcn && mNci == o.mNci; } /** * Get the NR Cell Identity. * * @return The NR Cell Identity in range [0, 68719476735] or Long.MAX_VALUE if unknown. */ public long getNci() { return mNci; } } /** /** Loading Loading @@ -122,6 +134,7 @@ public final class CellIdentityNr extends CellIdentity { .append(" mNrArfcn = ").append(mNrArfcn) .append(" mNrArfcn = ").append(mNrArfcn) .append(" mMcc = ").append(mMccStr) .append(" mMcc = ").append(mMccStr) .append(" mMnc = ").append(mMncStr) .append(" mMnc = ").append(mMncStr) .append(" mNci = ").append(mNci) .append(" mAlphaLong = ").append(mAlphaLong) .append(" mAlphaLong = ").append(mAlphaLong) .append(" mAlphaShort = ").append(mAlphaShort) .append(" mAlphaShort = ").append(mAlphaShort) .append(" }") .append(" }") Loading @@ -134,6 +147,7 @@ public final class CellIdentityNr extends CellIdentity { dest.writeInt(mPci); dest.writeInt(mPci); dest.writeInt(mTac); dest.writeInt(mTac); dest.writeInt(mNrArfcn); dest.writeInt(mNrArfcn); dest.writeLong(mNci); } } /** Construct from Parcel, type has already been processed */ /** Construct from Parcel, type has already been processed */ Loading @@ -142,6 +156,7 @@ public final class CellIdentityNr extends CellIdentity { mPci = in.readInt(); mPci = in.readInt(); mTac = in.readInt(); mTac = in.readInt(); mNrArfcn = in.readInt(); mNrArfcn = in.readInt(); mNci = in.readLong(); } } /** Implement the Parcelable interface */ /** Implement the Parcelable interface */ Loading Loading
api/current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -44383,6 +44383,7 @@ package android.telephony { method public int getChannelNumber(); method public int getChannelNumber(); method public String getMccString(); method public String getMccString(); method public String getMncString(); method public String getMncString(); method public long getNci(); method public int getPci(); method public int getPci(); method public int getTac(); method public int getTac(); method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int);
telephony/java/android/telephony/CellIdentityNr.java +18 −3 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,7 @@ public final class CellIdentityNr extends CellIdentity { private final int mNrArfcn; private final int mNrArfcn; private final int mPci; private final int mPci; private final int mTac; private final int mTac; private final long mNci; /** /** * * Loading @@ -44,11 +45,12 @@ public final class CellIdentityNr extends CellIdentity { * @hide * @hide */ */ public CellIdentityNr(int pci, int tac, int nrArfcn, String mccStr, String mncStr, public CellIdentityNr(int pci, int tac, int nrArfcn, String mccStr, String mncStr, String alphal, String alphas) { long nci, String alphal, String alphas) { super(TAG, CellInfo.TYPE_NR, mccStr, mncStr, alphal, alphas); super(TAG, CellInfo.TYPE_NR, mccStr, mncStr, alphal, alphas); mPci = pci; mPci = pci; mTac = tac; mTac = tac; mNrArfcn = nrArfcn; mNrArfcn = nrArfcn; mNci = nci; } } /** /** Loading @@ -62,7 +64,7 @@ public final class CellIdentityNr extends CellIdentity { @Override @Override public int hashCode() { public int hashCode() { return Objects.hash(super.hashCode(), mPci, mTac, mNrArfcn); return Objects.hash(super.hashCode(), mPci, mTac, mNrArfcn, mNci); } } @Override @Override Loading @@ -72,7 +74,17 @@ public final class CellIdentityNr extends CellIdentity { } } CellIdentityNr o = (CellIdentityNr) other; CellIdentityNr o = (CellIdentityNr) other; return super.equals(o) && mPci == o.mPci && mTac == o.mTac && mNrArfcn == o.mNrArfcn; return super.equals(o) && mPci == o.mPci && mTac == o.mTac && mNrArfcn == o.mNrArfcn && mNci == o.mNci; } /** * Get the NR Cell Identity. * * @return The NR Cell Identity in range [0, 68719476735] or Long.MAX_VALUE if unknown. */ public long getNci() { return mNci; } } /** /** Loading Loading @@ -122,6 +134,7 @@ public final class CellIdentityNr extends CellIdentity { .append(" mNrArfcn = ").append(mNrArfcn) .append(" mNrArfcn = ").append(mNrArfcn) .append(" mMcc = ").append(mMccStr) .append(" mMcc = ").append(mMccStr) .append(" mMnc = ").append(mMncStr) .append(" mMnc = ").append(mMncStr) .append(" mNci = ").append(mNci) .append(" mAlphaLong = ").append(mAlphaLong) .append(" mAlphaLong = ").append(mAlphaLong) .append(" mAlphaShort = ").append(mAlphaShort) .append(" mAlphaShort = ").append(mAlphaShort) .append(" }") .append(" }") Loading @@ -134,6 +147,7 @@ public final class CellIdentityNr extends CellIdentity { dest.writeInt(mPci); dest.writeInt(mPci); dest.writeInt(mTac); dest.writeInt(mTac); dest.writeInt(mNrArfcn); dest.writeInt(mNrArfcn); dest.writeLong(mNci); } } /** Construct from Parcel, type has already been processed */ /** Construct from Parcel, type has already been processed */ Loading @@ -142,6 +156,7 @@ public final class CellIdentityNr extends CellIdentity { mPci = in.readInt(); mPci = in.readInt(); mTac = in.readInt(); mTac = in.readInt(); mNrArfcn = in.readInt(); mNrArfcn = in.readInt(); mNci = in.readLong(); } } /** Implement the Parcelable interface */ /** Implement the Parcelable interface */ Loading