Merge "Add ncid to CellLocation in CellIdentityNr" into rvc-qpr-dev am: c8eaff3037
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12469801 Change-Id: I2927aafb6d15fa21b01a03d2695dbcc95c4c50d7
This commit is contained in:
@@ -138,7 +138,11 @@ public final class CellIdentityNr extends CellIdentity {
|
|||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public CellLocation asCellLocation() {
|
public CellLocation asCellLocation() {
|
||||||
return new GsmCellLocation();
|
GsmCellLocation cl = new GsmCellLocation();
|
||||||
|
int tac = mTac != CellInfo.UNAVAILABLE ? mTac : -1;
|
||||||
|
cl.setLacAndCid(tac, -1);
|
||||||
|
cl.setPsc(0);
|
||||||
|
return cl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public class GsmCellLocation extends CellLocation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return gsm cell id, -1 if unknown, 0xffff max legal value
|
* @return gsm cell id, -1 if unknown or invalid, 0xffff max legal value
|
||||||
*/
|
*/
|
||||||
public int getCid() {
|
public int getCid() {
|
||||||
return mCid;
|
return mCid;
|
||||||
|
|||||||
Reference in New Issue
Block a user