From 9530e3a22d5ffa2019d1a5177b6a441d4d6d048b Mon Sep 17 00:00:00 2001 From: Nicolas Falliere Date: Mon, 18 Jun 2012 17:21:06 -0700 Subject: Added or fixed doctrings for required permissions. Bug: 6591338 Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec --- core/java/android/content/Context.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android/content/Context.java') diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 7588cda..621113d 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -813,6 +813,8 @@ public abstract class Context { /** * @deprecated Use {@link android.app.WallpaperManager#setBitmap(Bitmap) * WallpaperManager.set()} instead. + *

This method requires the caller to hold the permission + * {@link android.Manifest.permission#SET_WALLPAPER}. */ @Deprecated public abstract void setWallpaper(Bitmap bitmap) throws IOException; @@ -820,6 +822,8 @@ public abstract class Context { /** * @deprecated Use {@link android.app.WallpaperManager#setStream(InputStream) * WallpaperManager.set()} instead. + *

This method requires the caller to hold the permission + * {@link android.Manifest.permission#SET_WALLPAPER}. */ @Deprecated public abstract void setWallpaper(InputStream data) throws IOException; @@ -827,6 +831,8 @@ public abstract class Context { /** * @deprecated Use {@link android.app.WallpaperManager#clear * WallpaperManager.clear()} instead. + *

This method requires the caller to hold the permission + * {@link android.Manifest.permission#SET_WALLPAPER}. */ @Deprecated public abstract void clearWallpaper() throws IOException; -- cgit v1.1