Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperCropper.java380 adjustedRect.offset(-wallpaper.cropHint.left, -wallpaper.cropHint.top); in getRelativeCropHints()
396 originalRect.offset(wallpaper.cropHint.left, wallpaper.cropHint.top); in getOriginalCropHints()
409 Rect cropHint = suggestedCrops.get(ORIENTATION_UNKNOWN); in getDefaultCrops() local
410 if (cropHint != null) { in getDefaultCrops()
412 if (suggestedCrops.size() != 1 || !bitmapRect.contains(cropHint)) { in getDefaultCrops()
417 Point cropSize = new Point(cropHint.width(), cropHint.height()); in getDefaultCrops()
420 relativeDefaultCrops.valueAt(i).offset(cropHint.left, cropHint.top); in getDefaultCrops()
494 wallpaper.cropHint.set(bitmapRect); in generateCropInternal()
499 final Rect cropHint; in generateCropInternal() local
506 wallpaper.cropHint.set(tempCropHint); in generateCropInternal()
[all …]
DWallpaperDataParser.java206 Slog.v(TAG, "cropRect:" + wallpaper.cropHint); in loadSettingsLocked()
235 wallpaper.cropHint.set(0, 0, 0, 0); in loadSettingsLocked()
264 if (wallpaper.cropHint.width() < 0 in ensureSaneWallpaperData()
265 || wallpaper.cropHint.height() < 0) { in ensureSaneWallpaperData()
266 wallpaper.cropHint.set(0, 0, 0, 0); in ensureSaneWallpaperData()
330 Rect cropHint = new Rect( in parseWallpaperAttributes() local
335 if (!cropHint.isEmpty()) wallpaper.mCropHints.put(pair.first, cropHint); in parseWallpaperAttributes()
336 if (!cropHint.isEmpty() && cropHint.equals(legacyCropHint)) { in parseWallpaperAttributes()
343 wallpaper.cropHint.set(legacyCropHint); in parseWallpaperAttributes()
346 wallpaper.cropHint.set(totalCropHint); in parseWallpaperAttributes()
[all …]
DWallpaperData.java133 final Rect cropHint = new Rect(0, 0, 0, 0); field in WallpaperData
198 this.cropHint.set(source.cropHint); in WallpaperData()
DWallpaperManagerService.java1963 wallpaperToClear.cropHint.set(0, 0, 0, 0); in clearWallpaperLocked()
2276 (int) (0.5f + wallpaper.cropHint.width() / wallpaper.mSampleSize), in getBitmapCrops()
2277 (int) (0.5f + wallpaper.cropHint.height() / wallpaper.mSampleSize)); in getBitmapCrops()
2919 Rect cropHint = multiCrop() || crops == null || crops.isEmpty() ? new Rect() : crops.get(0); in setWallpaper() local
2924 if (cropHint == null && !multiCrop()) { in setWallpaper()
2925 cropHint = new Rect(0, 0, 0, 0); in setWallpaper()
2927 if (cropHint.width() < 0 || cropHint.height() < 0 in setWallpaper()
2928 || cropHint.left < 0 in setWallpaper()
2929 || cropHint.top < 0) { in setWallpaper()
2930 throw new IllegalArgumentException("Invalid crop rect supplied: " + cropHint); in setWallpaper()
[all …]
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java597 Rect cropHint = parseCropHint(info, hintTag); in restoreFromStage() local
598 if (cropHint != null) { in restoreFromStage()
600 + "; cropHint = " + cropHint); in restoreFromStage()
619 Rect adjustedCrop = findNewCropfromOldCrop(cropHint, in restoreFromStage()
623 cropHint.set(adjustedCrop); in restoreFromStage()
627 mWallpaperManager.setStream(in, cropHint.isEmpty() ? null : cropHint, in restoreFromStage()
867 Rect cropHint = new Rect(); in parseCropHint() local
877 cropHint.left = getAttributeInt(parser, "cropLeft", 0); in parseCropHint()
878 cropHint.top = getAttributeInt(parser, "cropTop", 0); in parseCropHint()
879 cropHint.right = getAttributeInt(parser, "cropRight", 0); in parseCropHint()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperManager.java2343 Rect cropHint = cropHints.valueAt(i); in setBitmapWithCrops() local
2344 validateRect(cropHint); in setBitmapWithCrops()
2345 crops.add(cropHint); in setBitmapWithCrops()
2544 Rect cropHint = cropHints.valueAt(i); in setStreamWithCrops() local
2545 validateRect(cropHint); in setStreamWithCrops()
2546 crops.add(cropHint); in setStreamWithCrops()