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

Commit 61b0f1c2 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: Id5bc3e6f9595922540adebc3e574227e88b029ce
parent c8b8f229
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ public class CellIdentityNrTest extends AndroidTestCase {

        // THEN the get method should return correct value
        assertThat(cellIdentityNr.getType()).isEqualTo(CellInfo.TYPE_NR);
        assertThat(cellIdentityNr.getChannelNumber()).isEqualTo(NRARFCN);
        assertThat(cellIdentityNr.getNrarfcn()).isEqualTo(NRARFCN);
        assertThat(cellIdentityNr.getPci()).isEqualTo(PCI);
        assertThat(cellIdentityNr.getTac()).isEqualTo(TAC);
        assertThat(cellIdentityNr.getOperatorAlphaLong()).isEqualTo(ALPHAL);
@@ -95,7 +95,7 @@ public class CellIdentityNrTest extends AndroidTestCase {
        // THEN the new object is equal to the old one
        assertThat(anotherCellIdentityNr).isEqualTo(anotherCellIdentityNr);
        assertThat(anotherCellIdentityNr.getType()).isEqualTo(CellInfo.TYPE_NR);
        assertThat(anotherCellIdentityNr.getChannelNumber()).isEqualTo(NRARFCN);
        assertThat(anotherCellIdentityNr.getNrarfcn()).isEqualTo(NRARFCN);
        assertThat(anotherCellIdentityNr.getPci()).isEqualTo(PCI);
        assertThat(anotherCellIdentityNr.getTac()).isEqualTo(TAC);
        assertThat(anotherCellIdentityNr.getOperatorAlphaLong()).isEqualTo(ALPHAL);