From 35e5e6abbaaef7ef90b1575fb2a9cfa64c94e9ce Mon Sep 17 00:00:00 2001 From: Pengquan Meng Date: Thu, 21 Feb 2019 19:19:47 -0800 Subject: [PATCH] [API Feedback] Rename getChannelNumber to getNrarfcn For consistency with the rest of the public API, the CellIdentityNr structure should use the specific term for the channel number that is returned (NR-ARFCN) in the API name rather than the generic getChannelNumber(). Bug: 125025882 Test: build + cts + unit test Change-Id: I0513afc19171ea169f83ccb7fe3b378af79c8f4b --- api/current.txt | 2 +- telephony/java/android/telephony/CellIdentityNr.java | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/api/current.txt b/api/current.txt index ebcc1d7584a68..1d33102ab8d60 100755 --- a/api/current.txt +++ b/api/current.txt @@ -42333,10 +42333,10 @@ package android.telephony { } public final class CellIdentityNr extends android.telephony.CellIdentity { - method public int getChannelNumber(); method public String getMccString(); method public String getMncString(); method public long getNci(); + method public int getNrarfcn(); method public int getPci(); method public int getTac(); method public void writeToParcel(android.os.Parcel, int); diff --git a/telephony/java/android/telephony/CellIdentityNr.java b/telephony/java/android/telephony/CellIdentityNr.java index 856f08107fd7b..be16ddaddb541 100644 --- a/telephony/java/android/telephony/CellIdentityNr.java +++ b/telephony/java/android/telephony/CellIdentityNr.java @@ -88,11 +88,14 @@ public final class CellIdentityNr extends CellIdentity { } /** - * Get the Absolute Radio Frequency Channel Number. + * Get the New Radio Absolute Radio Frequency Channel Number. + * + * Reference: 3GPP TS 38.101-1 section 5.4.2.1 NR-ARFCN and channel raster. + * Reference: 3GPP TS 38.101-2 section 5.4.2.1 NR-ARFCN and channel raster. + * * @return Integer value in range [0, 3279165] or {@link CellInfo#UNAVAILABLE} if unknown. */ - @Override - public int getChannelNumber() { + public int getNrarfcn() { return mNrArfcn; }