diff options
| -rw-r--r-- | Android.mk | 2 | ||||
| -rw-r--r-- | api/current.txt | 9 | ||||
| -rw-r--r-- | core/java/android/annotation/SystemApi.java (renamed from core/java/android/annotation/PrivateApi.java) | 21 | ||||
| -rw-r--r-- | core/java/android/content/pm/ContainerEncryptionParams.java | 4 | ||||
| -rw-r--r-- | core/java/android/content/pm/ManifestDigest.java | 4 | ||||
| -rw-r--r-- | core/java/android/content/pm/PackageManager.java | 82 | ||||
| -rw-r--r-- | core/java/android/provider/MediaStore.java | 3 | ||||
| -rw-r--r-- | core/java/android/service/notification/NotificationListenerService.java | 6 | ||||
| -rw-r--r-- | rs/java/android/renderscript/RenderScript.java | 14 | ||||
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 64 |
10 files changed, 112 insertions, 97 deletions
diff --git a/Android.mk b/Android.mk index 573f46a6dd85..a5746e479e23 100644 --- a/Android.mk +++ b/Android.mk @@ -718,7 +718,7 @@ LOCAL_MODULE := private-api-stubs LOCAL_DROIDDOC_OPTIONS:=\ $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \ -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_private_stubs_current_intermediates/src \ - -showAnnotation android.annotation.PrivateApi \ + -showAnnotation android.annotation.SystemApi \ -nodocs LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk diff --git a/api/current.txt b/api/current.txt index 2c911d2c6e78..004d91df1e05 100644 --- a/api/current.txt +++ b/api/current.txt @@ -24268,7 +24268,6 @@ package android.provider { } public static final class MediaStore.Audio.Radio { - ctor public MediaStore.Audio.Radio(); field public static final java.lang.String ENTRY_CONTENT_TYPE = "vnd.android.cursor.item/radio"; } @@ -25651,7 +25650,7 @@ package android.renderscript { method public void contextDump(); method public static android.renderscript.RenderScript create(android.content.Context); method public static android.renderscript.RenderScript create(android.content.Context, android.renderscript.RenderScript.ContextType); - method public static android.renderscript.RenderScript create(android.content.Context, android.renderscript.RenderScript.ContextType, long); + method public static android.renderscript.RenderScript create(android.content.Context, android.renderscript.RenderScript.ContextType, int); method public void destroy(); method public void finish(); method public final android.content.Context getApplicationContext(); @@ -25661,9 +25660,9 @@ package android.renderscript { method public void setErrorHandler(android.renderscript.RenderScript.RSErrorHandler); method public void setMessageHandler(android.renderscript.RenderScript.RSMessageHandler); method public void setPriority(android.renderscript.RenderScript.Priority); - field public static final long CREATE_FLAG_LOW_LATENCY = 2L; // 0x2L - field public static final long CREATE_FLAG_LOW_POWER = 4L; // 0x4L - field public static final long CREATE_FLAG_NONE = 0L; // 0x0L + field public static final int CREATE_FLAG_LOW_LATENCY = 2; // 0x2 + field public static final int CREATE_FLAG_LOW_POWER = 4; // 0x4 + field public static final int CREATE_FLAG_NONE = 0; // 0x0 } public static final class RenderScript.ContextType extends java.lang.Enum { diff --git a/core/java/android/annotation/PrivateApi.java b/core/java/android/annotation/SystemApi.java index 985eafec5d33..55028ebfa8fd 100644 --- a/core/java/android/annotation/PrivateApi.java +++ b/core/java/android/annotation/SystemApi.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 The Android Open Source Project + * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,16 +16,29 @@ package android.annotation; +import static java.lang.annotation.ElementType.ANNOTATION_TYPE; +import static java.lang.annotation.ElementType.CONSTRUCTOR; +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.ElementType.PACKAGE; +import static java.lang.annotation.ElementType.TYPE; + import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; /** - * Indicates an API is exposed for use by bundled applications. + * Indicates an API is exposed for use by bundled system applications. * <p> * These APIs are not guaranteed to remain consistent release-to-release, - * and are not for use by apps linking against the SDK. + * and are not for use by apps linking against the Android SDK. + * </p><p> + * This annotation should only appear on API that is already marked <pre>@hide</pre>. + * </p> + * * @hide */ +@Target({TYPE, FIELD, METHOD, CONSTRUCTOR, ANNOTATION_TYPE, PACKAGE}) @Retention(RetentionPolicy.SOURCE) -public @interface PrivateApi { +public @interface SystemApi { } diff --git a/core/java/android/content/pm/ContainerEncryptionParams.java b/core/java/android/content/pm/ContainerEncryptionParams.java index dd1332bd4745..ab3aa27cfeb6 100644 --- a/core/java/android/content/pm/ContainerEncryptionParams.java +++ b/core/java/android/content/pm/ContainerEncryptionParams.java @@ -16,7 +16,7 @@ package android.content.pm; -import android.annotation.PrivateApi; +import android.annotation.SystemApi; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; @@ -35,7 +35,7 @@ import javax.crypto.spec.IvParameterSpec; * @deprecated encrypted containers are legacy. * @hide */ -@PrivateApi +@SystemApi @Deprecated public class ContainerEncryptionParams implements Parcelable { protected static final String TAG = "ContainerEncryptionParams"; diff --git a/core/java/android/content/pm/ManifestDigest.java b/core/java/android/content/pm/ManifestDigest.java index 943534fdec59..1fbef7a5d3c7 100644 --- a/core/java/android/content/pm/ManifestDigest.java +++ b/core/java/android/content/pm/ManifestDigest.java @@ -16,7 +16,7 @@ package android.content.pm; -import android.annotation.PrivateApi; +import android.annotation.SystemApi; import android.os.Parcel; import android.os.Parcelable; import android.util.Slog; @@ -37,7 +37,7 @@ import libcore.io.IoUtils; * * @hide */ -@PrivateApi +@SystemApi public class ManifestDigest implements Parcelable { private static final String TAG = "ManifestDigest"; diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index a34a1b6c2f0f..550c1f1eb2b9 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -17,7 +17,7 @@ package android.content.pm; import android.annotation.IntDef; -import android.annotation.PrivateApi; +import android.annotation.SystemApi; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.app.PackageInstallObserver; @@ -370,7 +370,7 @@ public abstract class PackageManager { * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} on success. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_SUCCEEDED = 1; /** @@ -379,7 +379,7 @@ public abstract class PackageManager { * already installed. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_ALREADY_EXISTS = -1; /** @@ -388,7 +388,7 @@ public abstract class PackageManager { * file is invalid. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_INVALID_APK = -2; /** @@ -397,7 +397,7 @@ public abstract class PackageManager { * is invalid. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_INVALID_URI = -3; /** @@ -406,7 +406,7 @@ public abstract class PackageManager { * service found that the device didn't have enough storage space to install the app. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_INSUFFICIENT_STORAGE = -4; /** @@ -415,7 +415,7 @@ public abstract class PackageManager { * package is already installed with the same name. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_DUPLICATE_PACKAGE = -5; /** @@ -424,7 +424,7 @@ public abstract class PackageManager { * the requested shared user does not exist. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_NO_SHARED_USER = -6; /** @@ -434,7 +434,7 @@ public abstract class PackageManager { * than the new package (and the old package's data was not removed). * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_UPDATE_INCOMPATIBLE = -7; /** @@ -444,7 +444,7 @@ public abstract class PackageManager { * device and does not have matching signature. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_SHARED_USER_INCOMPATIBLE = -8; /** @@ -453,7 +453,7 @@ public abstract class PackageManager { * the new package uses a shared library that is not available. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_MISSING_SHARED_LIBRARY = -9; /** @@ -462,7 +462,7 @@ public abstract class PackageManager { * the new package uses a shared library that is not available. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_REPLACE_COULDNT_DELETE = -10; /** @@ -472,7 +472,7 @@ public abstract class PackageManager { * either because there was not enough storage or the validation failed. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_DEXOPT = -11; /** @@ -482,7 +482,7 @@ public abstract class PackageManager { * that required by the package. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_OLDER_SDK = -12; /** @@ -492,7 +492,7 @@ public abstract class PackageManager { * same authority as a provider already installed in the system. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_CONFLICTING_PROVIDER = -13; /** @@ -502,7 +502,7 @@ public abstract class PackageManager { * that required by the package. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_NEWER_SDK = -14; /** @@ -513,7 +513,7 @@ public abstract class PackageManager { * flag. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_TEST_ONLY = -15; /** @@ -523,7 +523,7 @@ public abstract class PackageManager { * compatible with the device's CPU_ABI. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16; /** @@ -532,7 +532,7 @@ public abstract class PackageManager { * the new package uses a feature that is not available. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_MISSING_FEATURE = -17; // ------ Errors related to sdcard @@ -542,7 +542,7 @@ public abstract class PackageManager { * a secure container mount point couldn't be accessed on external media. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_CONTAINER_ERROR = -18; /** @@ -552,7 +552,7 @@ public abstract class PackageManager { * location. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_INVALID_INSTALL_LOCATION = -19; /** @@ -562,7 +562,7 @@ public abstract class PackageManager { * location because the media is not available. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_MEDIA_UNAVAILABLE = -20; /** @@ -571,7 +571,7 @@ public abstract class PackageManager { * the new package couldn't be installed because the verification timed out. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_VERIFICATION_TIMEOUT = -21; /** @@ -580,7 +580,7 @@ public abstract class PackageManager { * the new package couldn't be installed because the verification did not succeed. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_VERIFICATION_FAILURE = -22; /** @@ -589,7 +589,7 @@ public abstract class PackageManager { * the package changed from what the calling program expected. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_PACKAGE_CHANGED = -23; /** @@ -615,7 +615,7 @@ public abstract class PackageManager { * '.apk' extension. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_NOT_APK = -100; /** @@ -624,7 +624,7 @@ public abstract class PackageManager { * if the parser was unable to retrieve the AndroidManifest.xml file. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_BAD_MANIFEST = -101; /** @@ -633,7 +633,7 @@ public abstract class PackageManager { * if the parser encountered an unexpected exception. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION = -102; /** @@ -642,7 +642,7 @@ public abstract class PackageManager { * if the parser did not find any certificates in the .apk. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_NO_CERTIFICATES = -103; /** @@ -651,7 +651,7 @@ public abstract class PackageManager { * if the parser found inconsistent certificates on the files in the .apk. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES = -104; /** @@ -661,7 +661,7 @@ public abstract class PackageManager { * files in the .apk. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING = -105; /** @@ -670,7 +670,7 @@ public abstract class PackageManager { * if the parser encountered a bad or missing package name in the manifest. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME = -106; /** @@ -679,7 +679,7 @@ public abstract class PackageManager { * if the parser encountered a bad shared user id name in the manifest. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID = -107; /** @@ -688,7 +688,7 @@ public abstract class PackageManager { * if the parser encountered some structural problem in the manifest. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_MANIFEST_MALFORMED = -108; /** @@ -698,7 +698,7 @@ public abstract class PackageManager { * in the manifest. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_PARSE_FAILED_MANIFEST_EMPTY = -109; /** @@ -707,7 +707,7 @@ public abstract class PackageManager { * if the system failed to install the package because of system issues. * @hide */ - @PrivateApi + @SystemApi public static final int INSTALL_FAILED_INTERNAL_ERROR = -110; /** @@ -2907,7 +2907,7 @@ public abstract class PackageManager { * instead. This method will continue to be supported but the older observer interface * will not get additional failure details. */ - // @PrivateApi + // @SystemApi public abstract void installPackage( Uri packageURI, IPackageInstallObserver observer, int flags, String installerPackageName); @@ -2942,7 +2942,7 @@ public abstract class PackageManager { * continue to be supported but the older observer interface will not get additional failure * details. */ - // @PrivateApi + // @SystemApi public abstract void installPackageWithVerification(Uri packageURI, IPackageInstallObserver observer, int flags, String installerPackageName, Uri verificationURI, ManifestDigest manifestDigest, @@ -3071,7 +3071,7 @@ public abstract class PackageManager { * on the system for other users, also install it for the calling user. * @hide */ - // @PrivateApi + // @SystemApi public abstract int installExistingPackage(String packageName) throws NameNotFoundException; @@ -3161,7 +3161,7 @@ public abstract class PackageManager { * * @hide */ - // @PrivateApi + // @SystemApi public abstract void deletePackage( String packageName, IPackageDeleteObserver observer, int flags); @@ -3230,7 +3230,7 @@ public abstract class PackageManager { * * @hide */ - // @PrivateApi + // @SystemApi public abstract void freeStorageAndNotify(long freeStorageSize, IPackageDataObserver observer); /** diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java index cfab1b38cda5..0fe764f00126 100644 --- a/core/java/android/provider/MediaStore.java +++ b/core/java/android/provider/MediaStore.java @@ -1886,6 +1886,9 @@ public final class MediaStore { * The MIME type for entries in this table. */ public static final String ENTRY_CONTENT_TYPE = "vnd.android.cursor.item/radio"; + + // Not instantiable. + private Radio() { } } } diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java index 557f5a60b095..fd475cd56eba 100644 --- a/core/java/android/service/notification/NotificationListenerService.java +++ b/core/java/android/service/notification/NotificationListenerService.java @@ -16,7 +16,7 @@ package android.service.notification; -import android.annotation.PrivateApi; +import android.annotation.SystemApi; import android.annotation.SdkConstant; import android.app.INotificationManager; import android.app.Service; @@ -279,7 +279,7 @@ public abstract class NotificationListenerService extends Service { * @param currentUser the user to use as the stream filter * @hide */ - @PrivateApi + @SystemApi public void registerAsSystemService(ComponentName componentName, int currentUser) throws RemoteException { if (mWrapper == null) { @@ -297,7 +297,7 @@ public abstract class NotificationListenerService extends Service { * with (@link registerAsService). * @hide */ - @PrivateApi + @SystemApi public void unregisterAsSystemService() throws RemoteException { if (mWrapper != null) { INotificationManager noMan = getNotificationInterface(); diff --git a/rs/java/android/renderscript/RenderScript.java b/rs/java/android/renderscript/RenderScript.java index 8cac22d248bb..44de480e033f 100644 --- a/rs/java/android/renderscript/RenderScript.java +++ b/rs/java/android/renderscript/RenderScript.java @@ -64,23 +64,23 @@ public class RenderScript { static Method registerNativeFree; /* - * Context creation flag which specifies a normal context. + * Context creation flag that specifies a normal context. */ - public static final long CREATE_FLAG_NONE = 0x0000; + public static final int CREATE_FLAG_NONE = 0x0000; /* * Context creation flag which specifies a context optimized for low * latency over peak performance. This is a hint and may have no effect * on some implementations. */ - public static final long CREATE_FLAG_LOW_LATENCY = 0x0002; + public static final int CREATE_FLAG_LOW_LATENCY = 0x0002; /* * Context creation flag which specifies a context optimized for long * battery life over peak performance. This is a hint and may have no effect * on some implementations. */ - public static final long CREATE_FLAG_LOW_POWER = 0x0004; + public static final int CREATE_FLAG_LOW_POWER = 0x0004; /* * Detect the bitness of the VM to allow FieldPacker to do the right thing. @@ -1181,7 +1181,7 @@ public class RenderScript { * @param ctx The context. * @return RenderScript */ - public static RenderScript create(Context ctx, int sdkVersion, ContextType ct, long flags) { + public static RenderScript create(Context ctx, int sdkVersion, ContextType ct, int flags) { if (!sInitialized) { Log.e(LOG_TAG, "RenderScript.create() called when disabled; someone is likely to crash"); return null; @@ -1194,7 +1194,7 @@ public class RenderScript { RenderScript rs = new RenderScript(ctx); rs.mDev = rs.nDeviceCreate(); - rs.mContext = rs.nContextCreate(rs.mDev, (int)flags, sdkVersion, ct.mID); + rs.mContext = rs.nContextCreate(rs.mDev, flags, sdkVersion, ct.mID); rs.mContextType = ct; if (rs.mContext == 0) { throw new RSDriverException("Failed to create RS context."); @@ -1236,7 +1236,7 @@ public class RenderScript { * @param flags The OR of the CREATE_FLAG_* options desired * @return RenderScript */ - public static RenderScript create(Context ctx, ContextType ct, long flags) { + public static RenderScript create(Context ctx, ContextType ct, int flags) { int v = ctx.getApplicationInfo().targetSdkVersion; return create(ctx, v, ct, flags); } diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index ffa9a4ea4278..3f65bcaa0cd2 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -16,7 +16,7 @@ package android.telephony; -import android.annotation.PrivateApi; +import android.annotation.SystemApi; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.content.ComponentName; @@ -1961,11 +1961,11 @@ public class TelephonyManager { } /** - * Expose the rest of ITelephony to @PrivateApi + * Expose the rest of ITelephony to @SystemApi */ /** @hide */ - @PrivateApi + @SystemApi public void dial(String number) { try { getITelephony().dial(number); @@ -1975,7 +1975,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public void call(String callingPackage, String number) { try { getITelephony().call(callingPackage, number); @@ -1985,7 +1985,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean showCallScreen() { try { getTelecommService().showCallScreen(false); @@ -1997,7 +1997,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean showCallScreenWithDialpad(boolean showDialpad) { try { getTelecommService().showCallScreen(showDialpad); @@ -2009,7 +2009,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean endCall() { try { return getITelephony().endCall(); @@ -2020,7 +2020,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public void answerRingingCall() { try { getITelephony().answerRingingCall(); @@ -2030,7 +2030,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public void silenceRinger() { try { getTelecommService().silenceRinger(); @@ -2040,7 +2040,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean isOffhook() { try { return getITelephony().isOffhook(); @@ -2051,7 +2051,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean isRinging() { try { return getITelephony().isRinging(); @@ -2062,7 +2062,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean isIdle() { try { return getITelephony().isIdle(); @@ -2073,7 +2073,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean isRadioOn() { try { return getITelephony().isRadioOn(); @@ -2084,7 +2084,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean isSimPinEnabled() { try { return getITelephony().isSimPinEnabled(); @@ -2095,7 +2095,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public void cancelMissedCallsNotification() { try { getITelephony().cancelMissedCallsNotification(); @@ -2105,7 +2105,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean supplyPin(String pin) { try { return getITelephony().supplyPin(pin); @@ -2116,7 +2116,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean supplyPuk(String puk, String pin) { try { return getITelephony().supplyPuk(puk, pin); @@ -2127,7 +2127,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public int[] supplyPinReportResult(String pin) { try { return getITelephony().supplyPinReportResult(pin); @@ -2138,7 +2138,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public int[] supplyPukReportResult(String puk, String pin) { try { return getITelephony().supplyPukReportResult(puk, pin); @@ -2149,7 +2149,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean handlePinMmi(String dialString) { try { return getITelephony().handlePinMmi(dialString); @@ -2160,7 +2160,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public void toggleRadioOnOff() { try { getITelephony().toggleRadioOnOff(); @@ -2170,7 +2170,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean setRadio(boolean turnOn) { try { return getITelephony().setRadio(turnOn); @@ -2181,7 +2181,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean setRadioPower(boolean turnOn) { try { return getITelephony().setRadioPower(turnOn); @@ -2192,7 +2192,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public void updateServiceLocation() { try { getITelephony().updateServiceLocation(); @@ -2202,7 +2202,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public int enableApnType(String type) { try { return getITelephony().enableApnType(type); @@ -2213,7 +2213,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public int disableApnType(String type) { try { return getITelephony().disableApnType(type); @@ -2224,7 +2224,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean enableDataConnectivity() { try { return getITelephony().enableDataConnectivity(); @@ -2235,7 +2235,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean disableDataConnectivity() { try { return getITelephony().disableDataConnectivity(); @@ -2246,7 +2246,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean isDataConnectivityPossible() { try { return getITelephony().isDataConnectivityPossible(); @@ -2257,7 +2257,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean needsOtaServiceProvisioning() { try { return getITelephony().needsOtaServiceProvisioning(); @@ -2268,7 +2268,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public void setDataEnabled(boolean enable) { try { getITelephony().setDataEnabled(enable); @@ -2278,7 +2278,7 @@ public class TelephonyManager { } /** @hide */ - @PrivateApi + @SystemApi public boolean getDataEnabled() { try { return getITelephony().getDataEnabled(); |