Merge "Add @UnsupportedAppUsage annotations"

This commit is contained in:
Andrei-Valentin Onea
2019-03-07 17:26:15 +00:00
committed by Gerrit Code Review
15 changed files with 25 additions and 24 deletions

View File

@@ -234,7 +234,6 @@ Landroid/content/pm/IShortcutService$Stub;->asInterface(Landroid/os/IBinder;)Lan
Landroid/content/res/ConfigurationBoundResourceCache;-><init>()V Landroid/content/res/ConfigurationBoundResourceCache;-><init>()V
Landroid/content/res/DrawableCache;-><init>()V Landroid/content/res/DrawableCache;-><init>()V
Landroid/content/UndoManager;-><init>()V Landroid/content/UndoManager;-><init>()V
Landroid/database/BulkCursorProxy;->mRemote:Landroid/os/IBinder;
Landroid/database/IContentObserver$Stub;-><init>()V Landroid/database/IContentObserver$Stub;-><init>()V
Landroid/database/IContentObserver$Stub;->asInterface(Landroid/os/IBinder;)Landroid/database/IContentObserver; Landroid/database/IContentObserver$Stub;->asInterface(Landroid/os/IBinder;)Landroid/database/IContentObserver;
Landroid/database/IContentObserver;->onChange(ZLandroid/net/Uri;I)V Landroid/database/IContentObserver;->onChange(ZLandroid/net/Uri;I)V
@@ -296,16 +295,13 @@ Landroid/hardware/camera2/CaptureResult;->TONEMAP_CURVE_GREEN:Landroid/hardware/
Landroid/hardware/camera2/CaptureResult;->TONEMAP_CURVE_RED:Landroid/hardware/camera2/CaptureResult$Key; Landroid/hardware/camera2/CaptureResult;->TONEMAP_CURVE_RED:Landroid/hardware/camera2/CaptureResult$Key;
Landroid/hardware/camera2/utils/HashCodeHelpers;->hashCode([I)I Landroid/hardware/camera2/utils/HashCodeHelpers;->hashCode([I)I
Landroid/hardware/display/IDisplayManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/display/IDisplayManager; Landroid/hardware/display/IDisplayManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/display/IDisplayManager;
Landroid/hardware/display/IDisplayManager;->getDisplayInfo(I)Landroid/view/DisplayInfo;
Landroid/hardware/fingerprint/IFingerprintService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V Landroid/hardware/fingerprint/IFingerprintService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Landroid/hardware/fingerprint/IFingerprintService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/fingerprint/IFingerprintService; Landroid/hardware/fingerprint/IFingerprintService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/fingerprint/IFingerprintService;
Landroid/hardware/ICameraService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/ICameraService; Landroid/hardware/ICameraService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/ICameraService;
Landroid/hardware/input/IInputManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V Landroid/hardware/input/IInputManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Landroid/hardware/input/IInputManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/input/IInputManager; Landroid/hardware/input/IInputManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/input/IInputManager;
Landroid/hardware/input/IInputManager$Stub;->TRANSACTION_injectInputEvent:I Landroid/hardware/input/IInputManager$Stub;->TRANSACTION_injectInputEvent:I
Landroid/hardware/input/IInputManager;->injectInputEvent(Landroid/view/InputEvent;I)Z
Landroid/hardware/location/IActivityRecognitionHardwareClient$Stub;-><init>()V Landroid/hardware/location/IActivityRecognitionHardwareClient$Stub;-><init>()V
Landroid/hardware/location/IActivityRecognitionHardwareClient;->onAvailabilityChanged(ZLandroid/hardware/location/IActivityRecognitionHardware;)V
Landroid/hardware/location/IContextHubService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/location/IContextHubService; Landroid/hardware/location/IContextHubService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/location/IContextHubService;
Landroid/hardware/usb/IUsbManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V Landroid/hardware/usb/IUsbManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Landroid/hardware/usb/IUsbManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/usb/IUsbManager; Landroid/hardware/usb/IUsbManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/hardware/usb/IUsbManager;
@@ -315,48 +311,28 @@ Landroid/location/ICountryDetector$Stub;->asInterface(Landroid/os/IBinder;)Landr
Landroid/location/ICountryListener$Stub;-><init>()V Landroid/location/ICountryListener$Stub;-><init>()V
Landroid/location/IGeocodeProvider$Stub;-><init>()V Landroid/location/IGeocodeProvider$Stub;-><init>()V
Landroid/location/IGeocodeProvider$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/IGeocodeProvider; Landroid/location/IGeocodeProvider$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/IGeocodeProvider;
Landroid/location/IGeocodeProvider;->getFromLocation(DDILandroid/location/GeocoderParams;Ljava/util/List;)Ljava/lang/String;
Landroid/location/IGeocodeProvider;->getFromLocationName(Ljava/lang/String;DDDDILandroid/location/GeocoderParams;Ljava/util/List;)Ljava/lang/String;
Landroid/location/IGeofenceProvider$Stub;-><init>()V Landroid/location/IGeofenceProvider$Stub;-><init>()V
Landroid/location/IGeofenceProvider;->setGeofenceHardware(Landroid/hardware/location/IGeofenceHardware;)V
Landroid/location/ILocationListener$Stub$Proxy;-><init>(Landroid/os/IBinder;)V Landroid/location/ILocationListener$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Landroid/location/ILocationListener$Stub$Proxy;->mRemote:Landroid/os/IBinder; Landroid/location/ILocationListener$Stub$Proxy;->mRemote:Landroid/os/IBinder;
Landroid/location/ILocationListener$Stub;-><init>()V Landroid/location/ILocationListener$Stub;-><init>()V
Landroid/location/ILocationListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/ILocationListener; Landroid/location/ILocationListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/ILocationListener;
Landroid/location/ILocationListener;->onLocationChanged(Landroid/location/Location;)V
Landroid/location/ILocationListener;->onProviderDisabled(Ljava/lang/String;)V
Landroid/location/ILocationListener;->onProviderEnabled(Ljava/lang/String;)V
Landroid/location/ILocationListener;->onStatusChanged(Ljava/lang/String;ILandroid/os/Bundle;)V
Landroid/location/ILocationManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V Landroid/location/ILocationManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Landroid/location/ILocationManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/ILocationManager; Landroid/location/ILocationManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/location/ILocationManager;
Landroid/location/ILocationManager$Stub;->TRANSACTION_getAllProviders:I Landroid/location/ILocationManager$Stub;->TRANSACTION_getAllProviders:I
Landroid/location/ILocationManager;->getAllProviders()Ljava/util/List;
Landroid/location/ILocationManager;->getNetworkProviderPackage()Ljava/lang/String;
Landroid/location/ILocationManager;->reportLocation(Landroid/location/Location;Z)V
Landroid/location/INetInitiatedListener$Stub;-><init>()V Landroid/location/INetInitiatedListener$Stub;-><init>()V
Landroid/location/INetInitiatedListener;->sendNiResponse(II)Z
Landroid/location/LocationManager$ListenerTransport;-><init>(Landroid/location/LocationManager;Landroid/location/LocationListener;Landroid/os/Looper;)V Landroid/location/LocationManager$ListenerTransport;-><init>(Landroid/location/LocationManager;Landroid/location/LocationListener;Landroid/os/Looper;)V
Landroid/media/effect/SingleFilterEffect;-><init>(Landroid/media/effect/EffectContext;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V Landroid/media/effect/SingleFilterEffect;-><init>(Landroid/media/effect/EffectContext;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
Landroid/media/IAudioFocusDispatcher;->dispatchAudioFocusChange(ILjava/lang/String;)V
Landroid/media/IAudioRoutesObserver$Stub;-><init>()V Landroid/media/IAudioRoutesObserver$Stub;-><init>()V
Landroid/media/IAudioService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V Landroid/media/IAudioService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Landroid/media/IAudioService$Stub;-><init>()V Landroid/media/IAudioService$Stub;-><init>()V
Landroid/media/IAudioService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IAudioService; Landroid/media/IAudioService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IAudioService;
Landroid/media/IAudioService;->getStreamMaxVolume(I)I
Landroid/media/IAudioService;->getStreamVolume(I)I
Landroid/media/IAudioService;->setStreamVolume(IIILjava/lang/String;)V
Landroid/media/IAudioService;->startWatchingRoutes(Landroid/media/IAudioRoutesObserver;)Landroid/media/AudioRoutesInfo;
Landroid/media/IMediaRouterService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IMediaRouterService; Landroid/media/IMediaRouterService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IMediaRouterService;
Landroid/media/IMediaScannerListener$Stub;-><init>()V Landroid/media/IMediaScannerListener$Stub;-><init>()V
Landroid/media/IMediaScannerService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IMediaScannerService; Landroid/media/IMediaScannerService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IMediaScannerService;
Landroid/media/IMediaScannerService;->requestScanFile(Ljava/lang/String;Ljava/lang/String;Landroid/media/IMediaScannerListener;)V
Landroid/media/IMediaScannerService;->scanFile(Ljava/lang/String;Ljava/lang/String;)V
Landroid/media/IRemoteDisplayCallback;->onStateChanged(Landroid/media/RemoteDisplayState;)V
Landroid/media/IRingtonePlayer;->play(Landroid/os/IBinder;Landroid/net/Uri;Landroid/media/AudioAttributes;FZ)V Landroid/media/IRingtonePlayer;->play(Landroid/os/IBinder;Landroid/net/Uri;Landroid/media/AudioAttributes;FZ)V
Landroid/media/IVolumeController$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IVolumeController; Landroid/media/IVolumeController$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/IVolumeController;
Landroid/media/MediaFile;-><init>()V Landroid/media/MediaFile;-><init>()V
Landroid/media/MediaScanner$MyMediaScannerClient;-><init>(Landroid/media/MediaScanner;)V Landroid/media/MediaScanner$MyMediaScannerClient;-><init>(Landroid/media/MediaScanner;)V
Landroid/media/projection/IMediaProjectionManager;->hasProjectionPermission(ILjava/lang/String;)Z
Landroid/media/session/ISessionManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/session/ISessionManager; Landroid/media/session/ISessionManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/media/session/ISessionManager;
Landroid/media/tv/ITvRemoteProvider$Stub;-><init>()V Landroid/media/tv/ITvRemoteProvider$Stub;-><init>()V
Landroid/media/tv/ITvRemoteServiceInput;->clearInputBridge(Landroid/os/IBinder;)V Landroid/media/tv/ITvRemoteServiceInput;->clearInputBridge(Landroid/os/IBinder;)V

View File

@@ -16,6 +16,7 @@
package android.database; package android.database;
import android.annotation.UnsupportedAppUsage;
import android.os.Binder; import android.os.Binder;
import android.os.Bundle; import android.os.Bundle;
import android.os.IBinder; import android.os.IBinder;
@@ -138,6 +139,7 @@ public abstract class BulkCursorNative extends Binder implements IBulkCursor
final class BulkCursorProxy implements IBulkCursor { final class BulkCursorProxy implements IBulkCursor {
@UnsupportedAppUsage
private IBinder mRemote; private IBinder mRemote;
private Bundle mExtras; private Bundle mExtras;

View File

@@ -30,6 +30,7 @@ import android.view.Surface;
/** @hide */ /** @hide */
interface IDisplayManager { interface IDisplayManager {
@UnsupportedAppUsage
DisplayInfo getDisplayInfo(int displayId); DisplayInfo getDisplayInfo(int displayId);
int[] getDisplayIds(); int[] getDisplayIds();

View File

@@ -46,6 +46,7 @@ interface IInputManager {
// Injects an input event into the system. To inject into windows owned by other // Injects an input event into the system. To inject into windows owned by other
// applications, the caller must have the INJECT_EVENTS permission. // applications, the caller must have the INJECT_EVENTS permission.
@UnsupportedAppUsage
boolean injectInputEvent(in InputEvent ev, int mode); boolean injectInputEvent(in InputEvent ev, int mode);
// Calibrate input device position // Calibrate input device position

View File

@@ -32,5 +32,6 @@ oneway interface IActivityRecognitionHardwareClient {
* @param isSupported whether the platform has hardware support for the feature * @param isSupported whether the platform has hardware support for the feature
* @param instance the available instance to provide access to the feature * @param instance the available instance to provide access to the feature
*/ */
@UnsupportedAppUsage
void onAvailabilityChanged(in boolean isSupported, in IActivityRecognitionHardware instance); void onAvailabilityChanged(in boolean isSupported, in IActivityRecognitionHardware instance);
} }

View File

@@ -26,9 +26,11 @@ import android.location.GeocoderParams;
*/ */
interface IGeocodeProvider { interface IGeocodeProvider {
@UnsupportedAppUsage
String getFromLocation(double latitude, double longitude, int maxResults, String getFromLocation(double latitude, double longitude, int maxResults,
in GeocoderParams params, out List<Address> addrs); in GeocoderParams params, out List<Address> addrs);
@UnsupportedAppUsage
String getFromLocationName(String locationName, String getFromLocationName(String locationName,
double lowerLeftLatitude, double lowerLeftLongitude, double lowerLeftLatitude, double lowerLeftLongitude,
double upperRightLatitude, double upperRightLongitude, int maxResults, double upperRightLatitude, double upperRightLongitude, int maxResults,

View File

@@ -24,5 +24,6 @@ import android.hardware.location.IGeofenceHardware;
* {@hide} * {@hide}
*/ */
oneway interface IGeofenceProvider { oneway interface IGeofenceProvider {
@UnsupportedAppUsage
void setGeofenceHardware(in IGeofenceHardware proxy); void setGeofenceHardware(in IGeofenceHardware proxy);
} }

View File

@@ -25,8 +25,12 @@ import android.os.Bundle;
*/ */
oneway interface ILocationListener oneway interface ILocationListener
{ {
@UnsupportedAppUsage
void onLocationChanged(in Location location); void onLocationChanged(in Location location);
@UnsupportedAppUsage
void onStatusChanged(String provider, int status, in Bundle extras); void onStatusChanged(String provider, int status, in Bundle extras);
@UnsupportedAppUsage
void onProviderEnabled(String provider); void onProviderEnabled(String provider);
@UnsupportedAppUsage
void onProviderDisabled(String provider); void onProviderDisabled(String provider);
} }

View File

@@ -82,11 +82,13 @@ interface ILocationManager
boolean injectLocation(in Location location); boolean injectLocation(in Location location);
// --- deprecated --- // --- deprecated ---
@UnsupportedAppUsage
List<String> getAllProviders(); List<String> getAllProviders();
List<String> getProviders(in Criteria criteria, boolean enabledOnly); List<String> getProviders(in Criteria criteria, boolean enabledOnly);
String getBestProvider(in Criteria criteria, boolean enabledOnly); String getBestProvider(in Criteria criteria, boolean enabledOnly);
boolean providerMeetsCriteria(String provider, in Criteria criteria); boolean providerMeetsCriteria(String provider, in Criteria criteria);
ProviderProperties getProviderProperties(String provider); ProviderProperties getProviderProperties(String provider);
@UnsupportedAppUsage
String getNetworkProviderPackage(); String getNetworkProviderPackage();
boolean isProviderEnabledForUser(String provider, int userId); boolean isProviderEnabledForUser(String provider, int userId);
@@ -110,6 +112,7 @@ interface ILocationManager
// Used by location providers to tell the location manager when it has a new location. // Used by location providers to tell the location manager when it has a new location.
// Passive is true if the location is coming from the passive provider, in which case // Passive is true if the location is coming from the passive provider, in which case
// it need not be shared with other providers. // it need not be shared with other providers.
@UnsupportedAppUsage
void reportLocation(in Location location, boolean passive); void reportLocation(in Location location, boolean passive);
// Used when a (initially Gnss) Location batch arrives // Used when a (initially Gnss) Location batch arrives

View File

@@ -22,5 +22,6 @@ package android.location;
*/ */
interface INetInitiatedListener interface INetInitiatedListener
{ {
@UnsupportedAppUsage
boolean sendNiResponse(int notifId, int userResponse); boolean sendNiResponse(int notifId, int userResponse);
} }

View File

@@ -23,6 +23,7 @@ package android.media;
*/ */
oneway interface IAudioFocusDispatcher { oneway interface IAudioFocusDispatcher {
@UnsupportedAppUsage
void dispatchAudioFocusChange(int focusChange, String clientId); void dispatchAudioFocusChange(int focusChange, String clientId);
void dispatchFocusResultFromExtPolicy(int requestResult, String clientId); void dispatchFocusResultFromExtPolicy(int requestResult, String clientId);

View File

@@ -63,6 +63,7 @@ interface IAudioService {
void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage); void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage);
@UnsupportedAppUsage
void setStreamVolume(int streamType, int index, int flags, String callingPackage); void setStreamVolume(int streamType, int index, int flags, String callingPackage);
boolean isStreamMute(int streamType); boolean isStreamMute(int streamType);
@@ -73,10 +74,12 @@ interface IAudioService {
void setMasterMute(boolean mute, int flags, String callingPackage, int userId); void setMasterMute(boolean mute, int flags, String callingPackage, int userId);
@UnsupportedAppUsage
int getStreamVolume(int streamType); int getStreamVolume(int streamType);
int getStreamMinVolume(int streamType); int getStreamMinVolume(int streamType);
@UnsupportedAppUsage
int getStreamMaxVolume(int streamType); int getStreamMaxVolume(int streamType);
int getLastAudibleStreamVolume(int streamType); int getLastAudibleStreamVolume(int streamType);
@@ -155,6 +158,7 @@ interface IAudioService {
void handleBluetoothA2dpDeviceConfigChange(in BluetoothDevice device); void handleBluetoothA2dpDeviceConfigChange(in BluetoothDevice device);
@UnsupportedAppUsage
AudioRoutesInfo startWatchingRoutes(in IAudioRoutesObserver observer); AudioRoutesInfo startWatchingRoutes(in IAudioRoutesObserver observer);
boolean isCameraSoundForced(); boolean isCameraSoundForced();

View File

@@ -31,6 +31,7 @@ interface IMediaScannerService
* @param listener an optional IMediaScannerListener. * @param listener an optional IMediaScannerListener.
* If specified, the caller will be notified when scanning is complete via the listener. * If specified, the caller will be notified when scanning is complete via the listener.
*/ */
@UnsupportedAppUsage
void requestScanFile(String path, String mimeType, in IMediaScannerListener listener); void requestScanFile(String path, String mimeType, in IMediaScannerListener listener);
/** /**
@@ -40,5 +41,6 @@ interface IMediaScannerService
* @param mimeType an optional mimeType for the file. * @param mimeType an optional mimeType for the file.
* If mimeType is null, then the mimeType will be inferred from the file extension. * If mimeType is null, then the mimeType will be inferred from the file extension.
*/ */
@UnsupportedAppUsage
void scanFile(String path, String mimeType); void scanFile(String path, String mimeType);
} }

View File

@@ -22,5 +22,6 @@ import android.media.RemoteDisplayState;
* {@hide} * {@hide}
*/ */
oneway interface IRemoteDisplayCallback { oneway interface IRemoteDisplayCallback {
@UnsupportedAppUsage
void onStateChanged(in RemoteDisplayState state); void onStateChanged(in RemoteDisplayState state);
} }

View File

@@ -24,6 +24,7 @@ import android.os.IBinder;
/** {@hide} */ /** {@hide} */
interface IMediaProjectionManager { interface IMediaProjectionManager {
@UnsupportedAppUsage
boolean hasProjectionPermission(int uid, String packageName); boolean hasProjectionPermission(int uid, String packageName);
IMediaProjection createProjection(int uid, String packageName, int type, IMediaProjection createProjection(int uid, String packageName, int type,
boolean permanentGrant); boolean permanentGrant);