Searched refs:inHeight (Results 1 – 4 of 4) sorted by relevance
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ScaleFilter.java | 57 protected int getOutputWidth(int inWidth, int inHeight) { in getOutputWidth() argument 62 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument 63 return (int)(inHeight * mScale); in getOutputHeight()
|
H A D | CropFilter.java | 157 protected int getOutputWidth(int inWidth, int inHeight) { in getOutputWidth() argument 161 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument 162 return mOutputHeight <= 0 ? inHeight : mOutputHeight; in getOutputHeight()
|
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 811 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) { 814 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { 816 cropRect.bottom = inHeight; 817 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; 826 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2; 827 cropRect.bottom = inHeight - cropRect.top;
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 1062 int inHeight; in getBuiltInDrawable() local 1070 inHeight = options.outHeight; in getBuiltInDrawable() 1084 outHeight = Math.min(inHeight, outHeight); in getBuiltInDrawable() 1086 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable() 1091 float top = (inHeight - outHeight) * verticalAlignment; in getBuiltInDrawable() 1171 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument 1175 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect() 1177 cropRect.bottom = inHeight; in getMaxCropRect() 1178 float cropWidth = outWidth * (inHeight / (float) outHeight); in getMaxCropRect() 1185 cropRect.top = (inHeight - cropHeight) * verticalAlignment; in getMaxCropRect()
|