Searched refs:cropHint (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 329 Rect cropHint = new Rect(wallpaper.cropHint); in generateCrop() local 335 + " crop=(" + cropHint.width() + 'x' + cropHint.height() in generateCrop() 351 if (cropHint.isEmpty()) { in generateCrop() 352 cropHint.left = cropHint.top = 0; in generateCrop() 353 cropHint.right = options.outWidth; in generateCrop() 354 cropHint.bottom = options.outHeight; in generateCrop() 357 cropHint.offset( in generateCrop() 358 (cropHint.right > options.outWidth ? options.outWidth - cropHint.right : 0), in generateCrop() 359 … (cropHint.bottom > options.outHeight ? options.outHeight - cropHint.bottom : 0)); in generateCrop() 362 if (cropHint.left < 0) { in generateCrop() [all …]
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 266 Rect cropHint = parseCropHint(info, hintTag); in restoreFromStage() local 267 if (cropHint != null) { in restoreFromStage() 270 Slog.v(TAG, "Restored crop hint " + cropHint); in restoreFromStage() 273 mWm.setStream(in, cropHint.isEmpty() ? null : cropHint, true, which); in restoreFromStage() 280 Rect cropHint = new Rect(); in parseCropHint() local 291 cropHint.left = getAttributeInt(parser, "cropLeft", 0); in parseCropHint() 292 cropHint.top = getAttributeInt(parser, "cropTop", 0); in parseCropHint() 293 cropHint.right = getAttributeInt(parser, "cropRight", 0); in parseCropHint() 294 cropHint.bottom = getAttributeInt(parser, "cropBottom", 0); in parseCropHint() 304 return cropHint; in parseCropHint()
|
/frameworks/base/core/java/android/app/ |
D | IWallpaperManager.aidl | 46 in Rect cropHint, boolean allowBackup, out Bundle extras, int which, in setWallpaper() argument
|