From 4f6640c55973bfb7101bfa9af69fbef07d108b04 Mon Sep 17 00:00:00 2001 From: Zoey Chen Date: Tue, 27 Apr 2021 14:15:43 +0800 Subject: [Telephony] Remove getChannelNumber from SDK getChannelNumber is replaced with getDownlinkChannelNumber Bug: 186475843 Test: make Change-Id: Ibb5a3d7ca1abd412e7c5a6c24baeb0ad71fcfe9b --- core/api/current.txt | 1 - telephony/java/android/telephony/PhysicalChannelConfig.java | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 2a16084f348e..d712855918bc 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -40391,7 +40391,6 @@ package android.telephony { method @IntRange(from=1, to=261) public int getBand(); method @IntRange(from=1) public int getCellBandwidthDownlinkKhz(); method @IntRange(from=1) public int getCellBandwidthUplinkKhz(); - method @Deprecated public int getChannelNumber(); method public int getConnectionStatus(); method @IntRange(from=0) public int getDownlinkChannelNumber(); method @IntRange(from=0) public int getDownlinkFrequencyKhz(); diff --git a/telephony/java/android/telephony/PhysicalChannelConfig.java b/telephony/java/android/telephony/PhysicalChannelConfig.java index 1c9cd94b245d..8a4bb4642887 100644 --- a/telephony/java/android/telephony/PhysicalChannelConfig.java +++ b/telephony/java/android/telephony/PhysicalChannelConfig.java @@ -181,16 +181,6 @@ public final class PhysicalChannelConfig implements Parcelable { return mContextIds; } - /** - * @return the absolute radio frequency channel number for this physical channel, - * {@link #CHANNEL_NUMBER_UNKNOWN} if unknown. - * @deprecated Use {@link #getDownlinkChannelNumber()} to get the channel number. - */ - @Deprecated - public int getChannelNumber() { - return getDownlinkChannelNumber(); - } - /** * @return the rough frequency range for this physical channel, * {@link ServiceState#FREQUENCY_RANGE_UNKNOWN} if unknown. -- cgit v1.2.3-59-g8ed1b