From ca5b04dffae3cadad2505b21a4ded519965c826e Mon Sep 17 00:00:00 2001 From: Sarah Chin Date: Wed, 12 Aug 2020 19:51:45 -0700 Subject: [PATCH] Update NR TAC limit to 3 bytes TAC was updated to 3 bytes, so the limit is now 0xffffff instead of the previous 0xffff. Update to meet 3GPP requirements in 24.501 9.11.3.8. Test: build Bug: 144433329 Change-Id: Ie007c29671da709f23684ff27d30ef1c377aadc6 Merged-In: Ie007c29671da709f23684ff27d30ef1c377aadc6 --- telephony/java/android/telephony/CellIdentityNr.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telephony/java/android/telephony/CellIdentityNr.java b/telephony/java/android/telephony/CellIdentityNr.java index e34bbfcde492c..1794ac5b723a3 100644 --- a/telephony/java/android/telephony/CellIdentityNr.java +++ b/telephony/java/android/telephony/CellIdentityNr.java @@ -37,7 +37,7 @@ public final class CellIdentityNr extends CellIdentity { private static final String TAG = "CellIdentityNr"; private static final int MAX_PCI = 1007; - private static final int MAX_TAC = 65535; + private static final int MAX_TAC = 16777215; // 0xffffff private static final int MAX_NRARFCN = 3279165; private static final long MAX_NCI = 68719476735L; @@ -53,7 +53,7 @@ public final class CellIdentityNr extends CellIdentity { /** * * @param pci Physical Cell Id in range [0, 1007]. - * @param tac 16-bit Tracking Area Code. + * @param tac 24-bit Tracking Area Code. * @param nrArfcn NR Absolute Radio Frequency Channel Number, in range [0, 3279165]. * @param bands Bands used by the cell. Band number defined in 3GPP TS 38.101-1 and TS 38.101-2. * @param mccStr 3-digit Mobile Country Code in string format. @@ -199,7 +199,7 @@ public final class CellIdentityNr extends CellIdentity { /** * Get the tracking area code. - * @return a 16 bit integer or {@link CellInfo#UNAVAILABLE} if unknown. + * @return a 24 bit integer or {@link CellInfo#UNAVAILABLE} if unknown. */ @IntRange(from = 0, to = 65535) public int getTac() {