Merge "Add override to WallpaperManager.peekBitmapDimensions with which param" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
aebffa1f2a
@@ -1132,11 +1132,25 @@ public class WallpaperManager {
|
|||||||
* @return the dimensions of system wallpaper
|
* @return the dimensions of system wallpaper
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@Nullable
|
||||||
public Rect peekBitmapDimensions() {
|
public Rect peekBitmapDimensions() {
|
||||||
return sGlobals.peekWallpaperDimensions(
|
return sGlobals.peekWallpaperDimensions(
|
||||||
mContext, true /* returnDefault */, mContext.getUserId());
|
mContext, true /* returnDefault */, mContext.getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Peek the dimensions of given wallpaper of the user without decoding it.
|
||||||
|
*
|
||||||
|
* @param which Wallpaper type. Must be either {@link #FLAG_SYSTEM} or
|
||||||
|
* {@link #FLAG_LOCK}.
|
||||||
|
* @return the dimensions of system wallpaper
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
@Nullable
|
||||||
|
public Rect peekBitmapDimensions(@SetWallpaperFlags int which) {
|
||||||
|
return peekBitmapDimensions();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get an open, readable file descriptor to the given wallpaper image file.
|
* Get an open, readable file descriptor to the given wallpaper image file.
|
||||||
* The caller is responsible for closing the file descriptor when done ingesting the file.
|
* The caller is responsible for closing the file descriptor when done ingesting the file.
|
||||||
|
|||||||
Reference in New Issue
Block a user