Home
last modified time | relevance | path

Searched refs:MAX_PARALLAX (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperCropperTest.java232 int tooLargeWidth = (int) (displaySize.x * (1 + 2 * WallpaperCropper.MAX_PARALLAX)); in testGetAdjustedCrop_tooMuchParallax()
235 int expectedWidth = (int) (displaySize.x * (1 + WallpaperCropper.MAX_PARALLAX)); in testGetAdjustedCrop_tooMuchParallax()
255 (int) (displaySize.x * (1 + 0.5 * WallpaperCropper.MAX_PARALLAX)), in testGetAdjustedCrop_acceptableParallax()
256 (int) (displaySize.x * (1 + 0.9 * WallpaperCropper.MAX_PARALLAX)), in testGetAdjustedCrop_acceptableParallax()
257 (int) (displaySize.x * (1 + 1.0 * WallpaperCropper.MAX_PARALLAX))); in testGetAdjustedCrop_acceptableParallax()
382 new Point(Math.min(800, (int) (500 * (1 + WallpaperCropper.MAX_PARALLAX))), 1000), in testGetCrop_noSuggestedCrops()
383 new Point(Math.min(800, (int) (200 * (1 + WallpaperCropper.MAX_PARALLAX))), 1000), in testGetCrop_noSuggestedCrops()
494 int maxParallax = (int) (WallpaperCropper.MAX_PARALLAX * unfoldedCrop.width()); in testGetCrop_hasUnfoldedSuggestedCrop()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperCropper.java70 @VisibleForTesting static final float MAX_PARALLAX = 1f; field in WallpaperCropper
309 if (additionalWidthForParallax > MAX_PARALLAX) { in getAdjustedCrop()
311 (additionalWidthForParallax - MAX_PARALLAX) * screenRatio * crop.height()); in getAdjustedCrop()