summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorZoey Chen <zoeychen@google.com>2021-03-12 15:54:29 +0800
committerZoey Chen <zoeychen@google.com>2021-03-12 15:54:29 +0800
commit943a0c590b4481ef11fedbd63500ef243d1ce632 (patch)
tree068a2604431a8577d3d490eb2f0e729ed98b9ad2 /core
parent36b03734efb0607e063c44d02d7b84a971c941ca (diff)
[Telephony] Exposed PhysicalChannelConfigListener as public API instead of system
Bug: 182408018 Test: make Change-Id: I294453b0c28b79e309063a1cd2f57644b3a6242c
Diffstat (limited to 'core')
-rw-r--r--core/api/current.txt4
-rw-r--r--core/api/system-current.txt4
-rw-r--r--core/java/android/telephony/TelephonyCallback.java3
3 files changed, 4 insertions, 7 deletions
diff --git a/core/api/current.txt b/core/api/current.txt
index 0e7ecefbdbdc..2a9862c0edeb 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<android.telephony.PhysicalChannelConfig>);
+ }
+
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 a9e3fb54c7eb..a79806a1511b 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<android.telephony.PhysicalChannelConfig>);
- }
-
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 a2584cae1b9c..73ba003bcfe4 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