From 943a0c590b4481ef11fedbd63500ef243d1ce632 Mon Sep 17 00:00:00 2001 From: Zoey Chen Date: Fri, 12 Mar 2021 15:54:29 +0800 Subject: [PATCH] [Telephony] Exposed PhysicalChannelConfigListener as public API instead of system Bug: 182408018 Test: make Change-Id: I294453b0c28b79e309063a1cd2f57644b3a6242c --- core/api/current.txt | 4 ++++ core/api/system-current.txt | 4 ---- core/java/android/telephony/TelephonyCallback.java | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 0e7ecefbdbdca..2a9862c0edeb2 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -40905,6 +40905,10 @@ package android.telephony { method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public void onMessageWaitingIndicatorChanged(boolean); } + public static interface TelephonyCallback.PhysicalChannelConfigListener { + method @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public void onPhysicalChannelConfigChanged(@NonNull java.util.List); + } + public static interface TelephonyCallback.PreciseDataConnectionStateListener { method @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public void onPreciseDataConnectionStateChanged(@NonNull android.telephony.PreciseDataConnectionState); } diff --git a/core/api/system-current.txt b/core/api/system-current.txt index a9e3fb54c7eb8..a79806a1511b4 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -10021,10 +10021,6 @@ package android.telephony { method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void onPhoneCapabilityChanged(@NonNull android.telephony.PhoneCapability); } - public static interface TelephonyCallback.PhysicalChannelConfigListener { - method @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public void onPhysicalChannelConfigChanged(@NonNull java.util.List); - } - public static interface TelephonyCallback.PreciseCallStateListener { method @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public void onPreciseCallStateChanged(@NonNull android.telephony.PreciseCallState); } diff --git a/core/java/android/telephony/TelephonyCallback.java b/core/java/android/telephony/TelephonyCallback.java index a2584cae1b9c7..73ba003bcfe44 100644 --- a/core/java/android/telephony/TelephonyCallback.java +++ b/core/java/android/telephony/TelephonyCallback.java @@ -1330,10 +1330,7 @@ public class TelephonyCallback { /** * Interface for current physical channel configuration listener. - * - * @hide */ - @SystemApi public interface PhysicalChannelConfigListener { /** * Callback invoked when the current physical channel configuration has changed