From 4d2dbe20152544f8a6c1d11dba68ce45dd159caf Mon Sep 17 00:00:00 2001 From: Malcolm Chen Date: Wed, 12 Dec 2018 10:29:16 -0800 Subject: [PATCH] Fix broken building offline-sdk-docs. TelephonyManager#hasCarrierPrivileges(int) is hidden API so it shouldn't be referenced in public API descriptions. Bug: 120622105 Test: none Change-Id: Ia6b6ec2c16b824b8eb092920089cb77cdc54bfb7 --- telephony/java/android/telephony/SubscriptionManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index c40eb9ac91e3a..387453fa3985a 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -2403,7 +2403,7 @@ public class SubscriptionManager { * * Caller will either have {@link android.Manifest.permission#MODIFY_PHONE_STATE} * permission or had carrier privilege permission on the subscriptions: - * {@link TelephonyManager#hasCarrierPrivileges(int)} or + * {@link TelephonyManager#hasCarrierPrivileges()} or * {@link #canManageSubscription(SubscriptionInfo)} * * @throws SecurityException if the caller doesn't meet the requirements @@ -2441,7 +2441,7 @@ public class SubscriptionManager { * * Caller will either have {@link android.Manifest.permission#MODIFY_PHONE_STATE} * permission or had carrier privilege permission on the subscriptions: - * {@link TelephonyManager#hasCarrierPrivileges(int)} or + * {@link TelephonyManager#hasCarrierPrivileges()} or * {@link #canManageSubscription(SubscriptionInfo)} * * @throws SecurityException if the caller doesn't meet the requirements @@ -2477,7 +2477,7 @@ public class SubscriptionManager { * * Caller will either have {@link android.Manifest.permission#READ_PHONE_STATE} * permission or had carrier privilege permission on the subscription. - * {@link TelephonyManager#hasCarrierPrivileges(int)} + * {@link TelephonyManager#hasCarrierPrivileges()} * * @throws SecurityException if the caller doesn't meet the requirements * outlined above.