Merge "Fix WallpaperManager javadoc for new U methods" into udc-dev am: 77a1d0820d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23591860 Change-Id: I66201eb972b44f7d59e4c5990832e09773e6b624 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -913,7 +913,7 @@ public class WallpaperManager {
|
|||||||
* instead the default system wallpaper is returned
|
* instead the default system wallpaper is returned
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
* (some versions of T may throw a {@code SecurityException}).</li>
|
||||||
* <li>From version U, this method should not be used
|
* <li>From version U, this method should not be used
|
||||||
* and will always throw a @code SecurityException}.</li>
|
* and will always throw a {@code SecurityException}.</li>
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
||||||
* can still access the real wallpaper on all versions. </li>
|
* can still access the real wallpaper on all versions. </li>
|
||||||
* </ul>
|
* </ul>
|
||||||
@@ -935,18 +935,9 @@ public class WallpaperManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <strong> Important note: </strong>
|
* <strong> Important note: </strong> only apps with
|
||||||
* <ul>
|
* {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE} should use this method.
|
||||||
* <li>Up to version S, this method requires the
|
* Otherwise, a {@code SecurityException} will be thrown.
|
||||||
* {@link android.Manifest.permission#READ_EXTERNAL_STORAGE} permission.</li>
|
|
||||||
* <li>Starting in T, directly accessing the wallpaper is not possible anymore,
|
|
||||||
* instead the default system wallpaper is returned
|
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
|
||||||
* <li>From version U, this method should not be used
|
|
||||||
* and will always throw a @code SecurityException}.</li>
|
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
|
||||||
* can still access the real wallpaper on all versions. </li>
|
|
||||||
* </ul>
|
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Retrieve the requested wallpaper for the specified wallpaper type if the wallpaper is not
|
* Retrieve the requested wallpaper for the specified wallpaper type if the wallpaper is not
|
||||||
@@ -1206,7 +1197,7 @@ public class WallpaperManager {
|
|||||||
* instead the default system wallpaper is returned
|
* instead the default system wallpaper is returned
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
* (some versions of T may throw a {@code SecurityException}).</li>
|
||||||
* <li>From version U, this method should not be used
|
* <li>From version U, this method should not be used
|
||||||
* and will always throw a @code SecurityException}.</li>
|
* and will always throw a {@code SecurityException}.</li>
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
||||||
* can still access the real wallpaper on all versions. </li>
|
* can still access the real wallpaper on all versions. </li>
|
||||||
* </ul>
|
* </ul>
|
||||||
@@ -1228,18 +1219,9 @@ public class WallpaperManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <strong> Important note: </strong>
|
* <strong> Important note: </strong> only apps with
|
||||||
* <ul>
|
* {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE} should use this method.
|
||||||
* <li>Up to version S, this method requires the
|
* Otherwise, a {@code SecurityException} will be thrown.
|
||||||
* {@link android.Manifest.permission#READ_EXTERNAL_STORAGE} permission.</li>
|
|
||||||
* <li>Starting in T, directly accessing the wallpaper is not possible anymore,
|
|
||||||
* instead the default system wallpaper is returned
|
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
|
||||||
* <li>From version U, this method should not be used
|
|
||||||
* and will always throw a @code SecurityException}.</li>
|
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
|
||||||
* can still access the real wallpaper on all versions. </li>
|
|
||||||
* </ul>
|
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Equivalent to {@link #getDrawable(int)}.
|
* Equivalent to {@link #getDrawable(int)}.
|
||||||
@@ -1268,7 +1250,7 @@ public class WallpaperManager {
|
|||||||
* instead the default wallpaper is returned
|
* instead the default wallpaper is returned
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
* (some versions of T may throw a {@code SecurityException}).</li>
|
||||||
* <li>From version U, this method should not be used
|
* <li>From version U, this method should not be used
|
||||||
* and will always throw a @code SecurityException}.</li>
|
* and will always throw a {@code SecurityException}.</li>
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
||||||
* can still access the real wallpaper on all versions. </li>
|
* can still access the real wallpaper on all versions. </li>
|
||||||
* </ul>
|
* </ul>
|
||||||
@@ -1290,19 +1272,9 @@ public class WallpaperManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <strong> Important note: </strong>
|
* <strong> Important note: </strong> only apps with
|
||||||
* <ul>
|
* {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE} should use this method.
|
||||||
* <li>Up to version S, this method requires the
|
* Otherwise, a {@code SecurityException} will be thrown.
|
||||||
* {@link android.Manifest.permission#READ_EXTERNAL_STORAGE} permission.</li>
|
|
||||||
* <li>Starting in T, directly accessing the wallpaper is not possible anymore,
|
|
||||||
* instead the default system wallpaper is returned
|
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
|
||||||
* <li>From version U, this method should not be used
|
|
||||||
* and will always throw a @code SecurityException}.</li>
|
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
|
||||||
* can still access the real wallpaper on all versions. </li>
|
|
||||||
* </ul>
|
|
||||||
* <br>
|
|
||||||
*
|
*
|
||||||
* Like {@link #getDrawable(int)}, but the returned Drawable has a number
|
* Like {@link #getDrawable(int)}, but the returned Drawable has a number
|
||||||
* of limitations to reduce its overhead as much as possible. It will
|
* of limitations to reduce its overhead as much as possible. It will
|
||||||
@@ -1334,18 +1306,9 @@ public class WallpaperManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <strong> Important note: </strong>
|
* <strong> Important note: </strong> only apps with
|
||||||
* <ul>
|
* {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE} should use this method.
|
||||||
* <li>Up to version S, this method requires the
|
* Otherwise, a {@code SecurityException} will be thrown.
|
||||||
* {@link android.Manifest.permission#READ_EXTERNAL_STORAGE} permission.</li>
|
|
||||||
* <li>Starting in T, directly accessing the wallpaper is not possible anymore,
|
|
||||||
* instead the default system wallpaper is returned
|
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
|
||||||
* <li>From version U, this method should not be used
|
|
||||||
* and will always throw a @code SecurityException}.</li>
|
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
|
||||||
* can still access the real wallpaper on all versions. </li>
|
|
||||||
* </ul>
|
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Equivalent to {@link #getFastDrawable()}.
|
* Equivalent to {@link #getFastDrawable()}.
|
||||||
@@ -1364,18 +1327,9 @@ public class WallpaperManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <strong> Important note: </strong>
|
* <strong> Important note: </strong> only apps with
|
||||||
* <ul>
|
* {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
||||||
* <li>Up to version S, this method requires the
|
* should use this method. Otherwise, a {@code SecurityException} will be thrown.
|
||||||
* {@link android.Manifest.permission#READ_EXTERNAL_STORAGE} permission.</li>
|
|
||||||
* <li>Starting in T, directly accessing the wallpaper is not possible anymore,
|
|
||||||
* instead the default system wallpaper is returned
|
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
|
||||||
* <li>From version U, this method should not be used
|
|
||||||
* and will always throw a @code SecurityException}.</li>
|
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
|
||||||
* can still access the real wallpaper on all versions. </li>
|
|
||||||
* </ul>
|
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Equivalent to {@link #getFastDrawable(int)}.
|
* Equivalent to {@link #getFastDrawable(int)}.
|
||||||
@@ -1562,7 +1516,7 @@ public class WallpaperManager {
|
|||||||
* instead the default system wallpaper is returned
|
* instead the default system wallpaper is returned
|
||||||
* (some versions of T may throw a {@code SecurityException}).</li>
|
* (some versions of T may throw a {@code SecurityException}).</li>
|
||||||
* <li>From version U, this method should not be used
|
* <li>From version U, this method should not be used
|
||||||
* and will always throw a @code SecurityException}.</li>
|
* and will always throw a {@code SecurityException}.</li>
|
||||||
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
* <li> Apps with {@link android.Manifest.permission#MANAGE_EXTERNAL_STORAGE}
|
||||||
* can still access the real wallpaper on all versions. </li>
|
* can still access the real wallpaper on all versions. </li>
|
||||||
* </ul>
|
* </ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user