Home
last modified time | relevance | path

Searched refs:cropHint (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java309 Rect cropHint = parseCropHint(info, hintTag); in restoreFromStage() local
310 if (cropHint != null) { in restoreFromStage()
312 + "; cropHint = " + cropHint); in restoreFromStage()
314 mWm.setStream(in, cropHint.isEmpty() ? null : cropHint, true, which); in restoreFromStage()
323 Rect cropHint = new Rect(); in parseCropHint() local
333 cropHint.left = getAttributeInt(parser, "cropLeft", 0); in parseCropHint()
334 cropHint.top = getAttributeInt(parser, "cropTop", 0); in parseCropHint()
335 cropHint.right = getAttributeInt(parser, "cropRight", 0); in parseCropHint()
336 cropHint.bottom = getAttributeInt(parser, "cropBottom", 0); in parseCropHint()
346 return cropHint; in parseCropHint()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java613 final Rect cropHint = new Rect(wallpaper.cropHint); in generateCropInternal() local
621 + " crop=(" + cropHint.width() + 'x' + cropHint.height() in generateCropInternal()
637 if (cropHint.isEmpty()) { in generateCropInternal()
638 cropHint.left = cropHint.top = 0; in generateCropInternal()
639 cropHint.right = options.outWidth; in generateCropInternal()
640 cropHint.bottom = options.outHeight; in generateCropInternal()
643 cropHint.offset( in generateCropInternal()
644 (cropHint.right > options.outWidth ? options.outWidth - cropHint.right : 0), in generateCropInternal()
645 … (cropHint.bottom > options.outHeight ? options.outHeight - cropHint.bottom : 0)); in generateCropInternal()
648 if (cropHint.left < 0) { in generateCropInternal()
[all …]
/frameworks/base/core/java/android/app/
DIWallpaperManager.aidl49 in Rect cropHint, boolean allowBackup, out Bundle extras, int which, in setWallpaper() argument