Lines Matching defs:width
60 protected static final String WALLPAPER_WIDTH_KEY = "wallpaper.width";
209 private static float wallpaperTravelToScreenWidthRatio(int width, int height) {
210 float aspectRatio = width / (float) height;
212 // At an aspect ratio of 16/10, the wallpaper parallax effect should span 1.5 * screen width
213 // At an aspect ratio of 10/16, the wallpaper parallax effect should span 1.2 * screen width
222 // To find out the desired width at different aspect ratios, we use the following two
223 // formulas, where the coefficient on x is the aspect ratio (width/height):
376 float cropScale = mCropView.getWidth() / (float) cropRect.width();
401 // Cap the amount of extra width
402 float maxExtraSpace = defaultWallpaperSize.x / cropScale - cropRect.width();
428 final int outWidth = (int) Math.round(cropRect.width() * cropScale);
628 if (roundedTrueCrop.width() <= 0 || roundedTrueCrop.height() <= 0) {
635 int scaleDownSampleSize = Math.max(1, Math.min(roundedTrueCrop.width() / mOutWidth,
689 if (roundedTrueCrop.width() > fullSize.getWidth()) {
690 // Adjust the width
696 Math.max(0, roundedTrueCrop.right - roundedTrueCrop.width());
713 roundedTrueCrop.top, roundedTrueCrop.width(),
757 Bitmap tmp = Bitmap.createBitmap((int) returnRect.width(),