From 23cf98eaa894b479593b0d208461aaf9c979b56a Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Fri, 20 Mar 2020 16:33:35 -0700 Subject: [PATCH] [Telephony Mainline] Hide TelephonyServiceManager and TelephonyFrameworkInitializer Bug: 151455139 Fix: 151455139 Test: Build Change-Id: I067c821239585d3d4e8dcf39798b1d0014ba077b --- api/system-current.txt | 30 ------------------- .../android/os/TelephonyServiceManager.java | 3 -- telephony/api/system-current.txt | 5 ---- .../TelephonyFrameworkInitializer.java | 2 -- 4 files changed, 40 deletions(-) diff --git a/api/system-current.txt b/api/system-current.txt index 753c841c7b6e6..a6a71375b387e 100755 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -8546,31 +8546,6 @@ package android.os { field public static final int STATUS_WAITING_REBOOT = 5; // 0x5 } - public class TelephonyServiceManager { - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getCarrierConfigServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getEuiccCardControllerServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getEuiccControllerService(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getIccPhoneBookServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getOpportunisticNetworkServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getPhoneSubServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getSmsServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getSubscriptionServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getTelephonyImsServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getTelephonyRcsMessageServiceRegisterer(); - method @NonNull public android.os.TelephonyServiceManager.ServiceRegisterer getTelephonyServiceRegisterer(); - } - - public static class TelephonyServiceManager.ServiceNotFoundException extends java.lang.Exception { - ctor public TelephonyServiceManager.ServiceNotFoundException(@NonNull String); - } - - public static final class TelephonyServiceManager.ServiceRegisterer { - method @Nullable public android.os.IBinder get(); - method @NonNull public android.os.IBinder getOrThrow() throws android.os.TelephonyServiceManager.ServiceNotFoundException; - method public void register(@NonNull android.os.IBinder); - method @Nullable public android.os.IBinder tryGet(); - } - public class UpdateEngine { ctor public UpdateEngine(); method @NonNull @WorkerThread public android.os.UpdateEngine.AllocateSpaceResult allocateSpace(@NonNull String, @NonNull String[]); @@ -11341,11 +11316,6 @@ package android.telephony { method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringWeekly(java.time.ZonedDateTime); } - public class TelephonyFrameworkInitializer { - method public static void registerServiceWrappers(); - method public static void setTelephonyServiceManager(@NonNull android.os.TelephonyServiceManager); - } - public final class TelephonyHistogram implements android.os.Parcelable { ctor public TelephonyHistogram(int, int, int); ctor public TelephonyHistogram(android.telephony.TelephonyHistogram); diff --git a/core/java/android/os/TelephonyServiceManager.java b/core/java/android/os/TelephonyServiceManager.java index 1128f4cb538ca..6993671edf52b 100644 --- a/core/java/android/os/TelephonyServiceManager.java +++ b/core/java/android/os/TelephonyServiceManager.java @@ -17,7 +17,6 @@ package android.os; import android.annotation.NonNull; import android.annotation.Nullable; -import android.annotation.SystemApi; import android.content.Context; /** @@ -28,7 +27,6 @@ import android.content.Context; * * @hide */ -@SystemApi public class TelephonyServiceManager { /** * @hide @@ -97,7 +95,6 @@ public class TelephonyServiceManager { * * @hide */ - @SystemApi public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException { /** * Constructor. diff --git a/telephony/api/system-current.txt b/telephony/api/system-current.txt index 959d1092d111b..ef4979dbba875 100644 --- a/telephony/api/system-current.txt +++ b/telephony/api/system-current.txt @@ -717,11 +717,6 @@ package android.telephony { field @NonNull public static final android.net.Uri WFC_ROAMING_MODE_CONTENT_URI; } - public class TelephonyFrameworkInitializer { - method public static void registerServiceWrappers(); - method public static void setTelephonyServiceManager(@NonNull android.os.TelephonyServiceManager); - } - public final class TelephonyHistogram implements android.os.Parcelable { ctor public TelephonyHistogram(int, int, int); ctor public TelephonyHistogram(android.telephony.TelephonyHistogram); diff --git a/telephony/java/android/telephony/TelephonyFrameworkInitializer.java b/telephony/java/android/telephony/TelephonyFrameworkInitializer.java index 0d2a8bc14bcb9..c9540fb5f4670 100644 --- a/telephony/java/android/telephony/TelephonyFrameworkInitializer.java +++ b/telephony/java/android/telephony/TelephonyFrameworkInitializer.java @@ -17,7 +17,6 @@ package android.telephony; import android.annotation.NonNull; -import android.annotation.SystemApi; import android.app.SystemServiceRegistry; import android.content.Context; import android.os.TelephonyServiceManager; @@ -33,7 +32,6 @@ import com.android.internal.util.Preconditions; * * @hide */ -@SystemApi public class TelephonyFrameworkInitializer { private TelephonyFrameworkInitializer() {