From da59b539079694f61b523c33c02314bad283bffe Mon Sep 17 00:00:00 2001 From: Nathan Harold Date: Tue, 12 Feb 2019 10:20:46 -0800 Subject: Add missing UARFCN Getter to CellIdentityTdscdma Add a method to get the UARFCN for CellIdentityTdscdma. There is an equivalent method in all the other classes, so this is simply correcting an oversight. Bug: 123957505 Test: atest CellIdentityTdscdmaTest Change-Id: I743d90b4532b86edb34d267ae55eca73de2a0086 --- api/current.txt | 1 + telephony/java/android/telephony/CellIdentityTdscdma.java | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/api/current.txt b/api/current.txt index bcac6ad0b58b..95350955f163 100755 --- a/api/current.txt +++ b/api/current.txt @@ -42350,6 +42350,7 @@ package android.telephony { method public String getMccString(); method public String getMncString(); method @Nullable public String getMobileNetworkOperator(); + method public int getUarfcn(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator CREATOR; } diff --git a/telephony/java/android/telephony/CellIdentityTdscdma.java b/telephony/java/android/telephony/CellIdentityTdscdma.java index 38143335dbf1..dba437a3a007 100644 --- a/telephony/java/android/telephony/CellIdentityTdscdma.java +++ b/telephony/java/android/telephony/CellIdentityTdscdma.java @@ -141,6 +141,14 @@ public final class CellIdentityTdscdma extends CellIdentity { return mCpid; } + /** + * @return 16-bit UMTS Absolute RF Channel Number, + * {@link android.telephony.CellInfo#UNAVAILABLE UNAVAILABLE} if unavailable. + */ + public int getUarfcn() { + return mUarfcn; + } + /** @hide */ @Override public int getChannelNumber() { -- cgit v1.2.3-59-g8ed1b