Add @UnsupportedAppUsage annotations

For packages:
  android.speech
  android.telephony.mbms.vendor
  android.view
  android.webkit

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: Iefe25091fa0fcc0adfe4ff85fe5e3ab3ac9c5f10
This commit is contained in:
Andrei Onea
2019-02-27 14:46:52 +00:00
parent fd25fe1206
commit f4fb6fb754
11 changed files with 54 additions and 54 deletions

View File

@@ -1413,7 +1413,6 @@ Landroid/service/wallpaper/IWallpaperEngine;->dispatchPointer(Landroid/view/Moti
Landroid/service/wallpaper/IWallpaperEngine;->dispatchWallpaperCommand(Ljava/lang/String;IIILandroid/os/Bundle;)V Landroid/service/wallpaper/IWallpaperEngine;->dispatchWallpaperCommand(Ljava/lang/String;IIILandroid/os/Bundle;)V
Landroid/service/wallpaper/IWallpaperEngine;->setVisibility(Z)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/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
Landroid/telecom/Log;->w(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V Landroid/telecom/Log;->w(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
Landroid/telephony/ims/compat/feature/MMTelFeature;-><init>()V Landroid/telephony/ims/compat/feature/MMTelFeature;-><init>()V
@@ -1424,10 +1423,6 @@ Landroid/telephony/JapanesePhoneNumberFormatter;->format(Landroid/text/Editable;
Landroid/telephony/mbms/IMbmsStreamingSessionCallback$Stub;-><init>()V Landroid/telephony/mbms/IMbmsStreamingSessionCallback$Stub;-><init>()V
Landroid/telephony/mbms/IStreamingServiceCallback$Stub;-><init>()V Landroid/telephony/mbms/IStreamingServiceCallback$Stub;-><init>()V
Landroid/telephony/mbms/vendor/IMbmsStreamingService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/telephony/mbms/vendor/IMbmsStreamingService; Landroid/telephony/mbms/vendor/IMbmsStreamingService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/telephony/mbms/vendor/IMbmsStreamingService;
Landroid/telephony/mbms/vendor/IMbmsStreamingService;->getPlaybackUri(ILjava/lang/String;)Landroid/net/Uri;
Landroid/telephony/mbms/vendor/IMbmsStreamingService;->initialize(Landroid/telephony/mbms/IMbmsStreamingSessionCallback;I)I
Landroid/telephony/mbms/vendor/IMbmsStreamingService;->requestUpdateStreamingServices(ILjava/util/List;)I
Landroid/telephony/mbms/vendor/IMbmsStreamingService;->startStreaming(ILjava/lang/String;Landroid/telephony/mbms/IStreamingServiceCallback;)I
Landroid/telephony/SmsCbCmasInfo;->getCategory()I Landroid/telephony/SmsCbCmasInfo;->getCategory()I
Landroid/telephony/SmsCbCmasInfo;->getCertainty()I Landroid/telephony/SmsCbCmasInfo;->getCertainty()I
Landroid/telephony/SmsCbCmasInfo;->getMessageClass()I Landroid/telephony/SmsCbCmasInfo;->getMessageClass()I
@@ -1470,17 +1465,8 @@ Landroid/view/autofill/IAutoFillManager$Stub$Proxy;-><init>(Landroid/os/IBinder;
Landroid/view/autofill/IAutoFillManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/autofill/IAutoFillManager; Landroid/view/autofill/IAutoFillManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/autofill/IAutoFillManager;
Landroid/view/IAppTransitionAnimationSpecsFuture$Stub;-><init>()V Landroid/view/IAppTransitionAnimationSpecsFuture$Stub;-><init>()V
Landroid/view/IDockedStackListener$Stub;-><init>()V Landroid/view/IDockedStackListener$Stub;-><init>()V
Landroid/view/IRecentsAnimationController;->finish(Z)V
Landroid/view/IRecentsAnimationController;->screenshotTask(I)Landroid/app/ActivityManager$TaskSnapshot;
Landroid/view/IRecentsAnimationController;->setAnimationTargetsBehindSystemBars(Z)V
Landroid/view/IRecentsAnimationController;->setInputConsumerEnabled(Z)V
Landroid/view/IRecentsAnimationRunner$Stub;-><init>()V Landroid/view/IRecentsAnimationRunner$Stub;-><init>()V
Landroid/view/IRecentsAnimationRunner;->onAnimationCanceled()V
Landroid/view/IRecentsAnimationRunner;->onAnimationStart(Landroid/view/IRecentsAnimationController;[Landroid/view/RemoteAnimationTarget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V
Landroid/view/IRemoteAnimationFinishedCallback;->onAnimationFinished()V
Landroid/view/IRemoteAnimationRunner$Stub;-><init>()V Landroid/view/IRemoteAnimationRunner$Stub;-><init>()V
Landroid/view/IRemoteAnimationRunner;->onAnimationCancelled()V
Landroid/view/IRemoteAnimationRunner;->onAnimationStart([Landroid/view/RemoteAnimationTarget;Landroid/view/IRemoteAnimationFinishedCallback;)V
Landroid/view/IRotationWatcher$Stub;-><init>()V Landroid/view/IRotationWatcher$Stub;-><init>()V
Landroid/view/IWindow$Stub;-><init>()V Landroid/view/IWindow$Stub;-><init>()V
Landroid/view/IWindow$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IWindow; Landroid/view/IWindow$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IWindow;
@@ -1492,44 +1478,7 @@ Landroid/view/IWindowManager$Stub$Proxy;->hasNavigationBar(I)Z
Landroid/view/IWindowManager$Stub$Proxy;->watchRotation(Landroid/view/IRotationWatcher;I)I Landroid/view/IWindowManager$Stub$Proxy;->watchRotation(Landroid/view/IRotationWatcher;I)I
Landroid/view/IWindowManager$Stub;-><init>()V Landroid/view/IWindowManager$Stub;-><init>()V
Landroid/view/IWindowManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IWindowManager; Landroid/view/IWindowManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IWindowManager;
Landroid/view/IWindowManager;->createInputConsumer(Landroid/os/IBinder;Ljava/lang/String;ILandroid/view/InputChannel;)V
Landroid/view/IWindowManager;->destroyInputConsumer(Ljava/lang/String;I)Z
Landroid/view/IWindowManager;->endProlongedAnimations()V
Landroid/view/IWindowManager;->executeAppTransition()V
Landroid/view/IWindowManager;->freezeRotation(I)V
Landroid/view/IWindowManager;->getAnimationScale(I)F
Landroid/view/IWindowManager;->getAnimationScales()[F
Landroid/view/IWindowManager;->getBaseDisplaySize(ILandroid/graphics/Point;)V
Landroid/view/IWindowManager;->getDockedStackSide()I
Landroid/view/IWindowManager;->getInitialDisplayDensity(I)I
Landroid/view/IWindowManager;->getInitialDisplaySize(ILandroid/graphics/Point;)V
Landroid/view/IWindowManager;->getStableInsets(ILandroid/graphics/Rect;)V
Landroid/view/IWindowManager;->hasNavigationBar(I)Z
Landroid/view/IWindowManager;->isKeyguardLocked()Z
Landroid/view/IWindowManager;->isKeyguardSecure()Z
Landroid/view/IWindowManager;->isSafeModeEnabled()Z
Landroid/view/IWindowManager;->lockNow(Landroid/os/Bundle;)V
Landroid/view/IWindowManager;->overridePendingAppTransitionMultiThumbFuture(Landroid/view/IAppTransitionAnimationSpecsFuture;Landroid/os/IRemoteCallback;ZI)V
Landroid/view/IWindowManager;->overridePendingAppTransitionRemote(Landroid/view/RemoteAnimationAdapter;I)V
Landroid/view/IWindowManager;->registerDockedStackListener(Landroid/view/IDockedStackListener;)V
Landroid/view/IWindowManager;->removeRotationWatcher(Landroid/view/IRotationWatcher;)V
Landroid/view/IWindowManager;->setAnimationScale(IF)V
Landroid/view/IWindowManager;->setAnimationScales([F)V
Landroid/view/IWindowManager;->setNavBarVirtualKeyHapticFeedbackEnabled(Z)V
Landroid/view/IWindowManager;->setShelfHeight(ZI)V
Landroid/view/IWindowManager;->setStrictModeVisualIndicatorPreference(Ljava/lang/String;)V
Landroid/view/IWindowManager;->thawRotation()V
Landroid/view/IWindowSession$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IWindowSession; Landroid/view/IWindowSession$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IWindowSession;
Landroid/view/IWindowSession;->finishDrawing(Landroid/view/IWindow;)V
Landroid/view/IWindowSession;->getInTouchMode()Z
Landroid/view/IWindowSession;->performDrag(Landroid/view/IWindow;ILandroid/view/SurfaceControl;IFFFFLandroid/content/ClipData;)Landroid/os/IBinder;
Landroid/view/IWindowSession;->performHapticFeedback(IZ)Z
Landroid/view/IWindowSession;->remove(Landroid/view/IWindow;)V
Landroid/view/IWindowSession;->setInTouchMode(Z)V
Landroid/view/IWindowSession;->setTransparentRegion(Landroid/view/IWindow;Landroid/graphics/Region;)V
Landroid/view/IWindowSession;->wallpaperCommandComplete(Landroid/os/IBinder;Landroid/os/Bundle;)V
Landroid/view/IWindowSession;->wallpaperOffsetsComplete(Landroid/os/IBinder;)V
Landroid/view/RenderNodeAnimator;->setDuration(J)Landroid/view/RenderNodeAnimator;
Landroid/view/View$AttachInfo$InvalidateInfo;-><init>()V Landroid/view/View$AttachInfo$InvalidateInfo;-><init>()V
Landroid/view/View$CheckForLongPress;-><init>(Landroid/view/View;)V Landroid/view/View$CheckForLongPress;-><init>(Landroid/view/View;)V
Landroid/view/View$ListenerInfo;-><init>()V Landroid/view/View$ListenerInfo;-><init>()V
@@ -1538,9 +1487,6 @@ Landroid/webkit/CacheManager$CacheResult;-><init>()V
Landroid/webkit/IWebViewUpdateService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V Landroid/webkit/IWebViewUpdateService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
Landroid/webkit/IWebViewUpdateService$Stub$Proxy;->waitForAndGetProvider()Landroid/webkit/WebViewProviderResponse; Landroid/webkit/IWebViewUpdateService$Stub$Proxy;->waitForAndGetProvider()Landroid/webkit/WebViewProviderResponse;
Landroid/webkit/IWebViewUpdateService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/webkit/IWebViewUpdateService; Landroid/webkit/IWebViewUpdateService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/webkit/IWebViewUpdateService;
Landroid/webkit/IWebViewUpdateService;->getCurrentWebViewPackageName()Ljava/lang/String;
Landroid/webkit/IWebViewUpdateService;->getValidWebViewPackages()[Landroid/webkit/WebViewProviderInfo;
Landroid/webkit/IWebViewUpdateService;->isFallbackPackage(Ljava/lang/String;)Z
Landroid/widget/DigitalClock$FormatChangeObserver;-><init>(Landroid/widget/DigitalClock;)V Landroid/widget/DigitalClock$FormatChangeObserver;-><init>(Landroid/widget/DigitalClock;)V
Landroid/widget/QuickContactBadge$QueryHandler;-><init>(Landroid/widget/QuickContactBadge;Landroid/content/ContentResolver;)V Landroid/widget/QuickContactBadge$QueryHandler;-><init>(Landroid/widget/QuickContactBadge;Landroid/content/ContentResolver;)V
Landroid/widget/RelativeLayout$DependencyGraph$Node;-><init>()V Landroid/widget/RelativeLayout$DependencyGraph$Node;-><init>()V

View File

@@ -83,5 +83,6 @@ oneway interface IRecognitionListener {
* @param eventType the type of the occurred event * @param eventType the type of the occurred event
* @param params a Bundle containing the passed parameters * @param params a Bundle containing the passed parameters
*/ */
@UnsupportedAppUsage
void onEvent(in int eventType, in Bundle params); void onEvent(in int eventType, in Bundle params);
} }

View File

@@ -33,6 +33,7 @@ interface IRecentsAnimationController {
* Takes a screenshot of the task associated with the given {@param taskId}. Only valid for the * Takes a screenshot of the task associated with the given {@param taskId}. Only valid for the
* current set of task ids provided to the handler. * current set of task ids provided to the handler.
*/ */
@UnsupportedAppUsage
ActivityManager.TaskSnapshot screenshotTask(int taskId); ActivityManager.TaskSnapshot screenshotTask(int taskId);
/** /**
@@ -41,6 +42,7 @@ interface IRecentsAnimationController {
* the home activity should be moved to the top. Otherwise, the home activity is hidden and the * the home activity should be moved to the top. Otherwise, the home activity is hidden and the
* user is returned to the app. * user is returned to the app.
*/ */
@UnsupportedAppUsage
void finish(boolean moveHomeToTop); void finish(boolean moveHomeToTop);
/** /**
@@ -50,6 +52,7 @@ interface IRecentsAnimationController {
* may register the recents animation input consumer prior to starting the recents animation * may register the recents animation input consumer prior to starting the recents animation
* and then enable it mid-animation to start receiving touch events. * and then enable it mid-animation to start receiving touch events.
*/ */
@UnsupportedAppUsage
void setInputConsumerEnabled(boolean enabled); void setInputConsumerEnabled(boolean enabled);
/** /**
@@ -58,6 +61,7 @@ interface IRecentsAnimationController {
* they can control the SystemUI flags, otherwise the SystemUI flags from home activity will be * they can control the SystemUI flags, otherwise the SystemUI flags from home activity will be
* taken. * taken.
*/ */
@UnsupportedAppUsage
void setAnimationTargetsBehindSystemBars(boolean behindSystemBars); void setAnimationTargetsBehindSystemBars(boolean behindSystemBars);
/** /**

View File

@@ -33,6 +33,7 @@ oneway interface IRecentsAnimationRunner {
* wallpaper not drawing in time, or the handler not finishing the animation within a predefined * wallpaper not drawing in time, or the handler not finishing the animation within a predefined
* amount of time. * amount of time.
*/ */
@UnsupportedAppUsage
void onAnimationCanceled() = 1; void onAnimationCanceled() = 1;
/** /**
@@ -42,6 +43,7 @@ oneway interface IRecentsAnimationRunner {
* @param minimizedHomeBounds Specifies the bounds of the minimized home app, will be * @param minimizedHomeBounds Specifies the bounds of the minimized home app, will be
* {@code null} if the device is not currently in split screen * {@code null} if the device is not currently in split screen
*/ */
@UnsupportedAppUsage
void onAnimationStart(in IRecentsAnimationController controller, void onAnimationStart(in IRecentsAnimationController controller,
in RemoteAnimationTarget[] apps, in Rect homeContentInsets, in RemoteAnimationTarget[] apps, in Rect homeContentInsets,
in Rect minimizedHomeBounds) = 2; in Rect minimizedHomeBounds) = 2;

View File

@@ -23,5 +23,6 @@ package android.view;
* {@hide} * {@hide}
*/ */
interface IRemoteAnimationFinishedCallback { interface IRemoteAnimationFinishedCallback {
@UnsupportedAppUsage
void onAnimationFinished(); void onAnimationFinished();
} }

View File

@@ -33,6 +33,7 @@ oneway interface IRemoteAnimationRunner {
* @param apps The list of apps to animate. * @param apps The list of apps to animate.
* @param finishedCallback The callback to invoke when the animation is finished. * @param finishedCallback The callback to invoke when the animation is finished.
*/ */
@UnsupportedAppUsage
void onAnimationStart(in RemoteAnimationTarget[] apps, void onAnimationStart(in RemoteAnimationTarget[] apps,
in IRemoteAnimationFinishedCallback finishedCallback); in IRemoteAnimationFinishedCallback finishedCallback);
@@ -40,5 +41,6 @@ oneway interface IRemoteAnimationRunner {
* Called when the animation was cancelled. From this point on, any updates onto the leashes * Called when the animation was cancelled. From this point on, any updates onto the leashes
* won't have any effect anymore. * won't have any effect anymore.
*/ */
@UnsupportedAppUsage
void onAnimationCancelled(); void onAnimationCancelled();
} }

View File

@@ -74,10 +74,13 @@ interface IWindowManager
IWindowSession openSession(in IWindowSessionCallback callback); IWindowSession openSession(in IWindowSessionCallback callback);
@UnsupportedAppUsage
void getInitialDisplaySize(int displayId, out Point size); void getInitialDisplaySize(int displayId, out Point size);
@UnsupportedAppUsage
void getBaseDisplaySize(int displayId, out Point size); void getBaseDisplaySize(int displayId, out Point size);
void setForcedDisplaySize(int displayId, int width, int height); void setForcedDisplaySize(int displayId, int width, int height);
void clearForcedDisplaySize(int displayId); void clearForcedDisplaySize(int displayId);
@UnsupportedAppUsage
int getInitialDisplayDensity(int displayId); int getInitialDisplayDensity(int displayId);
int getBaseDisplayDensity(int displayId); int getBaseDisplayDensity(int displayId);
void setForcedDisplayDensityForUser(int displayId, int density, int userId); void setForcedDisplayDensityForUser(int displayId, int density, int userId);
@@ -97,17 +100,21 @@ interface IWindowManager
* used for recents, where generating the thumbnails of the specs takes a non-trivial amount of * used for recents, where generating the thumbnails of the specs takes a non-trivial amount of
* time, so we want to move that off the critical path for starting the new activity. * time, so we want to move that off the critical path for starting the new activity.
*/ */
@UnsupportedAppUsage
void overridePendingAppTransitionMultiThumbFuture( void overridePendingAppTransitionMultiThumbFuture(
IAppTransitionAnimationSpecsFuture specsFuture, IRemoteCallback startedCallback, IAppTransitionAnimationSpecsFuture specsFuture, IRemoteCallback startedCallback,
boolean scaleUp, int displayId); boolean scaleUp, int displayId);
@UnsupportedAppUsage
void overridePendingAppTransitionRemote(in RemoteAnimationAdapter remoteAnimationAdapter, void overridePendingAppTransitionRemote(in RemoteAnimationAdapter remoteAnimationAdapter,
int displayId); int displayId);
@UnsupportedAppUsage
void executeAppTransition(); void executeAppTransition();
/** /**
* Used by system ui to report that recents has shown itself. * Used by system ui to report that recents has shown itself.
* @deprecated to be removed once prebuilts are updated * @deprecated to be removed once prebuilts are updated
*/ */
@UnsupportedAppUsage
void endProlongedAnimations(); void endProlongedAnimations();
void startFreezingScreen(int exitAnim, int enterAnim); void startFreezingScreen(int exitAnim, int enterAnim);
@@ -119,7 +126,9 @@ interface IWindowManager
/** @deprecated use Activity.setShowWhenLocked instead. */ /** @deprecated use Activity.setShowWhenLocked instead. */
void reenableKeyguard(IBinder token, int userId); void reenableKeyguard(IBinder token, int userId);
void exitKeyguardSecurely(IOnKeyguardExitResult callback); void exitKeyguardSecurely(IOnKeyguardExitResult callback);
@UnsupportedAppUsage
boolean isKeyguardLocked(); boolean isKeyguardLocked();
@UnsupportedAppUsage
boolean isKeyguardSecure(); boolean isKeyguardSecure();
void dismissKeyguard(IKeyguardDismissCallback callback, CharSequence message); void dismissKeyguard(IKeyguardDismissCallback callback, CharSequence message);
@@ -129,9 +138,13 @@ interface IWindowManager
void closeSystemDialogs(String reason); void closeSystemDialogs(String reason);
// These can only be called with the SET_ANIMATON_SCALE permission. // These can only be called with the SET_ANIMATON_SCALE permission.
@UnsupportedAppUsage
float getAnimationScale(int which); float getAnimationScale(int which);
@UnsupportedAppUsage
float[] getAnimationScales(); float[] getAnimationScales();
@UnsupportedAppUsage
void setAnimationScale(int which, float scale); void setAnimationScale(int which, float scale);
@UnsupportedAppUsage
void setAnimationScales(in float[] scales); void setAnimationScales(in float[] scales);
float getCurrentAnimatorScale(); float getCurrentAnimatorScale();
@@ -150,6 +163,7 @@ interface IWindowManager
// should be enabled. The 'enabled' value is null or blank for // should be enabled. The 'enabled' value is null or blank for
// the system default (differs per build variant) or any valid // the system default (differs per build variant) or any valid
// boolean string as parsed by SystemProperties.getBoolean(). // boolean string as parsed by SystemProperties.getBoolean().
@UnsupportedAppUsage
void setStrictModeVisualIndicatorPreference(String enabled); void setStrictModeVisualIndicatorPreference(String enabled);
/** /**
@@ -188,6 +202,7 @@ interface IWindowManager
* Remove a rotation watcher set using watchRotation. * Remove a rotation watcher set using watchRotation.
* @hide * @hide
*/ */
@UnsupportedAppUsage
void removeRotationWatcher(IRotationWatcher watcher); void removeRotationWatcher(IRotationWatcher watcher);
/** /**
@@ -203,12 +218,14 @@ interface IWindowManager
* Equivalent to calling {@link #freezeDisplayRotation(int, int)} with {@link * Equivalent to calling {@link #freezeDisplayRotation(int, int)} with {@link
* android.view.Display#DEFAULT_DISPLAY} and given rotation. * android.view.Display#DEFAULT_DISPLAY} and given rotation.
*/ */
@UnsupportedAppUsage
void freezeRotation(int rotation); void freezeRotation(int rotation);
/** /**
* Equivalent to calling {@link #thawDisplayRotation(int)} with {@link * Equivalent to calling {@link #thawDisplayRotation(int)} with {@link
* android.view.Display#DEFAULT_DISPLAY}. * android.view.Display#DEFAULT_DISPLAY}.
*/ */
@UnsupportedAppUsage
void thawRotation(); void thawRotation();
/** /**
@@ -286,11 +303,13 @@ interface IWindowManager
/** /**
* Called by System UI to notify of changes to the visibility and height of the shelf. * Called by System UI to notify of changes to the visibility and height of the shelf.
*/ */
@UnsupportedAppUsage
void setShelfHeight(boolean visible, int shelfHeight); void setShelfHeight(boolean visible, int shelfHeight);
/** /**
* Called by System UI to enable or disable haptic feedback on the navigation bar buttons. * Called by System UI to enable or disable haptic feedback on the navigation bar buttons.
*/ */
@UnsupportedAppUsage
void setNavBarVirtualKeyHapticFeedbackEnabled(boolean enabled); void setNavBarVirtualKeyHapticFeedbackEnabled(boolean enabled);
/** /**
@@ -298,6 +317,7 @@ interface IWindowManager
* *
* @param displayId the id of display to check if there is a software navigation bar. * @param displayId the id of display to check if there is a software navigation bar.
*/ */
@UnsupportedAppUsage
boolean hasNavigationBar(int displayId); boolean hasNavigationBar(int displayId);
/** /**
@@ -308,11 +328,13 @@ interface IWindowManager
/** /**
* Lock the device immediately with the specified options (can be null). * Lock the device immediately with the specified options (can be null).
*/ */
@UnsupportedAppUsage
void lockNow(in Bundle options); void lockNow(in Bundle options);
/** /**
* Device is in safe mode. * Device is in safe mode.
*/ */
@UnsupportedAppUsage
boolean isSafeModeEnabled(); boolean isSafeModeEnabled();
/** /**
@@ -340,6 +362,7 @@ interface IWindowManager
* @return the dock side the current docked stack is at; must be one of the * @return the dock side the current docked stack is at; must be one of the
* WindowManagerGlobal.DOCKED_* values * WindowManagerGlobal.DOCKED_* values
*/ */
@UnsupportedAppUsage
int getDockedStackSide(); int getDockedStackSide();
/** /**
@@ -352,6 +375,7 @@ interface IWindowManager
* Registers a listener that will be called when the dock divider changes its visibility or when * Registers a listener that will be called when the dock divider changes its visibility or when
* the docked stack gets added/removed. * the docked stack gets added/removed.
*/ */
@UnsupportedAppUsage
void registerDockedStackListener(IDockedStackListener listener); void registerDockedStackListener(IDockedStackListener listener);
/** /**
@@ -378,6 +402,7 @@ interface IWindowManager
/** /**
* Retrieves the current stable insets from the primary display. * Retrieves the current stable insets from the primary display.
*/ */
@UnsupportedAppUsage
void getStableInsets(int displayId, out Rect outInsets); void getStableInsets(int displayId, out Rect outInsets);
/** /**
@@ -400,6 +425,7 @@ interface IWindowManager
/** /**
* Create an input consumer by name and display id. * Create an input consumer by name and display id.
*/ */
@UnsupportedAppUsage
void createInputConsumer(IBinder token, String name, int displayId, void createInputConsumer(IBinder token, String name, int displayId,
out InputChannel inputChannel); out InputChannel inputChannel);
@@ -407,6 +433,7 @@ interface IWindowManager
* Destroy an input consumer by name and display id. * Destroy an input consumer by name and display id.
* This method will also dispose the input channels associated with that InputConsumer. * This method will also dispose the input channels associated with that InputConsumer.
*/ */
@UnsupportedAppUsage
boolean destroyInputConsumer(String name, int displayId); boolean destroyInputConsumer(String name, int displayId);
/** /**

View File

@@ -46,6 +46,7 @@ interface IWindowSession {
int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs,
in int viewVisibility, in int layerStackId, out Rect outContentInsets, in int viewVisibility, in int layerStackId, out Rect outContentInsets,
out Rect outStableInsets, out InsetsState insetsState); out Rect outStableInsets, out InsetsState insetsState);
@UnsupportedAppUsage
void remove(IWindow window); void remove(IWindow window);
/** /**
@@ -122,6 +123,7 @@ interface IWindowSession {
* completely transparent, allowing it to work with the surface flinger * completely transparent, allowing it to work with the surface flinger
* to optimize compositing of this part of the window. * to optimize compositing of this part of the window.
*/ */
@UnsupportedAppUsage
void setTransparentRegion(IWindow window, in Region region); void setTransparentRegion(IWindow window, in Region region);
/** /**
@@ -143,11 +145,15 @@ interface IWindowSession {
*/ */
void getDisplayFrame(IWindow window, out Rect outDisplayFrame); void getDisplayFrame(IWindow window, out Rect outDisplayFrame);
@UnsupportedAppUsage
void finishDrawing(IWindow window); void finishDrawing(IWindow window);
@UnsupportedAppUsage
void setInTouchMode(boolean showFocus); void setInTouchMode(boolean showFocus);
@UnsupportedAppUsage
boolean getInTouchMode(); boolean getInTouchMode();
@UnsupportedAppUsage
boolean performHapticFeedback(int effectId, boolean always); boolean performHapticFeedback(int effectId, boolean always);
/** /**
@@ -166,6 +172,7 @@ interface IWindowSession {
* @param data Data transferred by drag and drop * @param data Data transferred by drag and drop
* @return Token of drag operation which will be passed to cancelDragAndDrop. * @return Token of drag operation which will be passed to cancelDragAndDrop.
*/ */
@UnsupportedAppUsage
IBinder performDrag(IWindow window, int flags, in SurfaceControl surface, int touchSource, IBinder performDrag(IWindow window, int flags, in SurfaceControl surface, int touchSource,
float touchX, float touchY, float thumbCenterX, float thumbCenterY, in ClipData data); float touchX, float touchY, float thumbCenterX, float thumbCenterY, in ClipData data);
@@ -199,6 +206,7 @@ interface IWindowSession {
*/ */
void setWallpaperPosition(IBinder windowToken, float x, float y, float xstep, float ystep); void setWallpaperPosition(IBinder windowToken, float x, float y, float xstep, float ystep);
@UnsupportedAppUsage
void wallpaperOffsetsComplete(IBinder window); void wallpaperOffsetsComplete(IBinder window);
/** /**
@@ -209,6 +217,7 @@ interface IWindowSession {
Bundle sendWallpaperCommand(IBinder window, String action, int x, int y, Bundle sendWallpaperCommand(IBinder window, String action, int x, int y,
int z, in Bundle extras, boolean sync); int z, in Bundle extras, boolean sync);
@UnsupportedAppUsage
void wallpaperCommandComplete(IBinder window, in Bundle result); void wallpaperCommandComplete(IBinder window, in Bundle result);
/** /**

View File

@@ -336,6 +336,7 @@ public class RenderNodeAnimator extends Animator {
return mUnscaledStartDelay; return mUnscaledStartDelay;
} }
@UnsupportedAppUsage
@Override @Override
public RenderNodeAnimator setDuration(long duration) { public RenderNodeAnimator setDuration(long duration) {
checkMutable(); checkMutable();

View File

@@ -51,6 +51,7 @@ interface IWebViewUpdateService {
* DevelopmentSettings uses this to get the current available WebView * DevelopmentSettings uses this to get the current available WebView
* providers (to display as choices to the user). * providers (to display as choices to the user).
*/ */
@UnsupportedAppUsage
WebViewProviderInfo[] getValidWebViewPackages(); WebViewProviderInfo[] getValidWebViewPackages();
/** /**
@@ -61,6 +62,7 @@ interface IWebViewUpdateService {
/** /**
* Used by DevelopmentSetting to get the name of the WebView provider currently in use. * Used by DevelopmentSetting to get the name of the WebView provider currently in use.
*/ */
@UnsupportedAppUsage
String getCurrentWebViewPackageName(); String getCurrentWebViewPackageName();
/** /**
@@ -72,6 +74,7 @@ interface IWebViewUpdateService {
* Used by Settings to determine whether a certain package can be enabled/disabled by the user - * Used by Settings to determine whether a certain package can be enabled/disabled by the user -
* the package should not be modifiable in this way if it is a fallback package. * the package should not be modifiable in this way if it is a fallback package.
*/ */
@UnsupportedAppUsage
boolean isFallbackPackage(String packageName); boolean isFallbackPackage(String packageName);
/** /**

View File

@@ -26,13 +26,17 @@ import android.telephony.mbms.StreamingServiceInfo;
*/ */
interface IMbmsStreamingService interface IMbmsStreamingService
{ {
@UnsupportedAppUsage
int initialize(IMbmsStreamingSessionCallback callback, int subId); int initialize(IMbmsStreamingSessionCallback callback, int subId);
@UnsupportedAppUsage
int requestUpdateStreamingServices(int subId, in List<String> serviceClasses); int requestUpdateStreamingServices(int subId, in List<String> serviceClasses);
@UnsupportedAppUsage
int startStreaming(int subId, String serviceId, int startStreaming(int subId, String serviceId,
IStreamingServiceCallback callback); IStreamingServiceCallback callback);
@UnsupportedAppUsage
Uri getPlaybackUri(int subId, String serviceId); Uri getPlaybackUri(int subId, String serviceId);
void stopStreaming(int subId, String serviceId); void stopStreaming(int subId, String serviceId);