Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35e5e6ab authored by Pengquan Meng's avatar Pengquan Meng
Browse files

[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
parent 07037a86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+6 −3
Original line number Diff line number Diff line
@@ -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;
    }