Add @UnsupportedAppUsage annotations

For packages:
  android.security
  android-service.dreams
  android.service.euicc
  android.service.vr
  android.service.wallpaper

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I1c8ae08f8d3b4b2f5bf365468f22155f8def09fe
This commit is contained in:
Andrei Onea
2019-02-27 14:22:05 +00:00
parent fd25fe1206
commit 4aa2a2015b
15 changed files with 19 additions and 18 deletions

View File

@@ -1360,9 +1360,7 @@ Landroid/R$styleable;->View_visibility:I
Landroid/R$styleable;->Window:[I Landroid/R$styleable;->Window:[I
Landroid/R$styleable;->Window_windowBackground:I Landroid/R$styleable;->Window_windowBackground:I
Landroid/R$styleable;->Window_windowFrame:I Landroid/R$styleable;->Window_windowFrame:I
Landroid/security/Credentials;->convertToPem([Ljava/security/cert/Certificate;)[B
Landroid/security/IKeyChainService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/security/IKeyChainService; Landroid/security/IKeyChainService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/security/IKeyChainService;
Landroid/security/IKeyChainService;->requestPrivateKey(Ljava/lang/String;)Ljava/lang/String;
Landroid/security/keymaster/KeymasterBlobArgument;-><init>(ILandroid/os/Parcel;)V Landroid/security/keymaster/KeymasterBlobArgument;-><init>(ILandroid/os/Parcel;)V
Landroid/security/keymaster/KeymasterBlobArgument;-><init>(I[B)V Landroid/security/keymaster/KeymasterBlobArgument;-><init>(I[B)V
Landroid/security/keymaster/KeymasterBlobArgument;->blob:[B Landroid/security/keymaster/KeymasterBlobArgument;->blob:[B
@@ -1391,27 +1389,11 @@ Landroid/service/dreams/IDreamManager;->dream()V
Landroid/service/dreams/IDreamManager;->getDreamComponents()[Landroid/content/ComponentName; Landroid/service/dreams/IDreamManager;->getDreamComponents()[Landroid/content/ComponentName;
Landroid/service/dreams/IDreamManager;->isDreaming()Z Landroid/service/dreams/IDreamManager;->isDreaming()Z
Landroid/service/dreams/IDreamManager;->setDreamComponents([Landroid/content/ComponentName;)V Landroid/service/dreams/IDreamManager;->setDreamComponents([Landroid/content/ComponentName;)V
Landroid/service/euicc/IDeleteSubscriptionCallback;->onComplete(I)V
Landroid/service/euicc/IEraseSubscriptionsCallback;->onComplete(I)V
Landroid/service/euicc/IEuiccService$Stub;-><init>()V Landroid/service/euicc/IEuiccService$Stub;-><init>()V
Landroid/service/euicc/IGetDefaultDownloadableSubscriptionListCallback;->onComplete(Landroid/service/euicc/GetDefaultDownloadableSubscriptionListResult;)V
Landroid/service/euicc/IGetDownloadableSubscriptionMetadataCallback;->onComplete(Landroid/service/euicc/GetDownloadableSubscriptionMetadataResult;)V
Landroid/service/euicc/IGetEidCallback;->onSuccess(Ljava/lang/String;)V
Landroid/service/euicc/IGetEuiccInfoCallback;->onSuccess(Landroid/telephony/euicc/EuiccInfo;)V
Landroid/service/euicc/IGetEuiccProfileInfoListCallback;->onComplete(Landroid/service/euicc/GetEuiccProfileInfoListResult;)V
Landroid/service/euicc/IRetainSubscriptionsForFactoryResetCallback;->onComplete(I)V
Landroid/service/euicc/ISwitchToSubscriptionCallback;->onComplete(I)V
Landroid/service/euicc/IUpdateSubscriptionNicknameCallback;->onComplete(I)V
Landroid/service/notification/INotificationListener$Stub;-><init>()V Landroid/service/notification/INotificationListener$Stub;-><init>()V
Landroid/service/persistentdata/IPersistentDataBlockService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/service/persistentdata/IPersistentDataBlockService; Landroid/service/persistentdata/IPersistentDataBlockService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/service/persistentdata/IPersistentDataBlockService;
Landroid/service/vr/IVrManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/service/vr/IVrManager; Landroid/service/vr/IVrManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/service/vr/IVrManager;
Landroid/service/vr/IVrManager;->getVr2dDisplayId()I
Landroid/service/vr/IVrManager;->getVrModeState()Z
Landroid/service/wallpaper/IWallpaperConnection$Stub;-><init>()V Landroid/service/wallpaper/IWallpaperConnection$Stub;-><init>()V
Landroid/service/wallpaper/IWallpaperEngine;->destroy()V
Landroid/service/wallpaper/IWallpaperEngine;->dispatchPointer(Landroid/view/MotionEvent;)V
Landroid/service/wallpaper/IWallpaperEngine;->dispatchWallpaperCommand(Ljava/lang/String;IIILandroid/os/Bundle;)V
Landroid/service/wallpaper/IWallpaperEngine;->setVisibility(Z)V
Landroid/service/wallpaper/IWallpaperService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/service/wallpaper/IWallpaperService; Landroid/service/wallpaper/IWallpaperService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/service/wallpaper/IWallpaperService;
Landroid/speech/IRecognitionListener;->onEvent(ILandroid/os/Bundle;)V Landroid/speech/IRecognitionListener;->onEvent(ILandroid/os/Bundle;)V
Landroid/telecom/Log;->i(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V Landroid/telecom/Log;->i(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V

View File

@@ -18,5 +18,6 @@ package android.service.euicc;
/** @hide */ /** @hide */
oneway interface IDeleteSubscriptionCallback { oneway interface IDeleteSubscriptionCallback {
@UnsupportedAppUsage
void onComplete(int result); void onComplete(int result);
} }

View File

@@ -18,5 +18,6 @@ package android.service.euicc;
/** @hide */ /** @hide */
oneway interface IEraseSubscriptionsCallback { oneway interface IEraseSubscriptionsCallback {
@UnsupportedAppUsage
void onComplete(int result); void onComplete(int result);
} }

View File

@@ -20,5 +20,6 @@ import android.service.euicc.GetDefaultDownloadableSubscriptionListResult;
/** @hide */ /** @hide */
oneway interface IGetDefaultDownloadableSubscriptionListCallback { oneway interface IGetDefaultDownloadableSubscriptionListCallback {
@UnsupportedAppUsage
void onComplete(in GetDefaultDownloadableSubscriptionListResult result); void onComplete(in GetDefaultDownloadableSubscriptionListResult result);
} }

View File

@@ -20,5 +20,6 @@ import android.service.euicc.GetDownloadableSubscriptionMetadataResult;
/** @hide */ /** @hide */
oneway interface IGetDownloadableSubscriptionMetadataCallback { oneway interface IGetDownloadableSubscriptionMetadataCallback {
@UnsupportedAppUsage
void onComplete(in GetDownloadableSubscriptionMetadataResult result); void onComplete(in GetDownloadableSubscriptionMetadataResult result);
} }

View File

@@ -18,5 +18,6 @@ package android.service.euicc;
/** @hide */ /** @hide */
oneway interface IGetEidCallback { oneway interface IGetEidCallback {
@UnsupportedAppUsage
void onSuccess(String eid); void onSuccess(String eid);
} }

View File

@@ -20,5 +20,6 @@ import android.telephony.euicc.EuiccInfo;
/** @hide */ /** @hide */
oneway interface IGetEuiccInfoCallback { oneway interface IGetEuiccInfoCallback {
@UnsupportedAppUsage
void onSuccess(in EuiccInfo euiccInfo); void onSuccess(in EuiccInfo euiccInfo);
} }

View File

@@ -20,5 +20,6 @@ import android.service.euicc.GetEuiccProfileInfoListResult;
/** @hide */ /** @hide */
oneway interface IGetEuiccProfileInfoListCallback { oneway interface IGetEuiccProfileInfoListCallback {
@UnsupportedAppUsage
void onComplete(in GetEuiccProfileInfoListResult result); void onComplete(in GetEuiccProfileInfoListResult result);
} }

View File

@@ -18,5 +18,6 @@ package android.service.euicc;
/** @hide */ /** @hide */
oneway interface IRetainSubscriptionsForFactoryResetCallback { oneway interface IRetainSubscriptionsForFactoryResetCallback {
@UnsupportedAppUsage
void onComplete(int result); void onComplete(int result);
} }

View File

@@ -18,5 +18,6 @@ package android.service.euicc;
/** @hide */ /** @hide */
oneway interface ISwitchToSubscriptionCallback { oneway interface ISwitchToSubscriptionCallback {
@UnsupportedAppUsage
void onComplete(int result); void onComplete(int result);
} }

View File

@@ -18,5 +18,6 @@ package android.service.euicc;
/** @hide */ /** @hide */
oneway interface IUpdateSubscriptionNicknameCallback { oneway interface IUpdateSubscriptionNicknameCallback {
@UnsupportedAppUsage
void onComplete(int result); void onComplete(int result);
} }

View File

@@ -57,6 +57,7 @@ interface IVrManager {
* *
* @return {@code true} if VR mode is enabled. * @return {@code true} if VR mode is enabled.
*/ */
@UnsupportedAppUsage
boolean getVrModeState(); boolean getVrModeState();
/** /**
@@ -93,6 +94,7 @@ interface IVrManager {
* @return {@link android.view.Display.INVALID_DISPLAY} if there is no virtual display * @return {@link android.view.Display.INVALID_DISPLAY} if there is no virtual display
* currently, else return the display id of the virtual display * currently, else return the display id of the virtual display
*/ */
@UnsupportedAppUsage
int getVr2dDisplayId(); int getVr2dDisplayId();
/** /**

View File

@@ -26,11 +26,15 @@ import android.os.Bundle;
oneway interface IWallpaperEngine { oneway interface IWallpaperEngine {
void setDesiredSize(int width, int height); void setDesiredSize(int width, int height);
void setDisplayPadding(in Rect padding); void setDisplayPadding(in Rect padding);
@UnsupportedAppUsage
void setVisibility(boolean visible); void setVisibility(boolean visible);
void setInAmbientMode(boolean inAmbientDisplay, long animationDuration); void setInAmbientMode(boolean inAmbientDisplay, long animationDuration);
@UnsupportedAppUsage
void dispatchPointer(in MotionEvent event); void dispatchPointer(in MotionEvent event);
@UnsupportedAppUsage
void dispatchWallpaperCommand(String action, int x, int y, void dispatchWallpaperCommand(String action, int x, int y,
int z, in Bundle extras); int z, in Bundle extras);
void requestWallpaperColors(); void requestWallpaperColors();
@UnsupportedAppUsage
void destroy(); void destroy();
} }

View File

@@ -20,6 +20,7 @@ import com.android.org.bouncycastle.util.io.pem.PemObject;
import com.android.org.bouncycastle.util.io.pem.PemReader; import com.android.org.bouncycastle.util.io.pem.PemReader;
import com.android.org.bouncycastle.util.io.pem.PemWriter; import com.android.org.bouncycastle.util.io.pem.PemWriter;
import android.annotation.UnsupportedAppUsage;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
@@ -122,6 +123,7 @@ public class Credentials {
* Convert objects to a PEM format which is used for * Convert objects to a PEM format which is used for
* CA_CERTIFICATE and USER_CERTIFICATE entries. * CA_CERTIFICATE and USER_CERTIFICATE entries.
*/ */
@UnsupportedAppUsage
public static byte[] convertToPem(Certificate... objects) public static byte[] convertToPem(Certificate... objects)
throws IOException, CertificateEncodingException { throws IOException, CertificateEncodingException {
ByteArrayOutputStream bao = new ByteArrayOutputStream(); ByteArrayOutputStream bao = new ByteArrayOutputStream();

View File

@@ -27,6 +27,7 @@ import android.security.keystore.ParcelableKeyGenParameterSpec;
*/ */
interface IKeyChainService { interface IKeyChainService {
// APIs used by KeyChain // APIs used by KeyChain
@UnsupportedAppUsage
String requestPrivateKey(String alias); String requestPrivateKey(String alias);
byte[] getCertificate(String alias); byte[] getCertificate(String alias);
byte[] getCaCertificates(String alias); byte[] getCaCertificates(String alias);