Home
last modified time | relevance | path

Searched refs:imageHeight (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java72 final float imageHeight = mRenderer.source.getImageHeight(); in getImageDims() local
75 imageDims[1] = imageHeight; in getImageDims()
87 final float imageHeight = imageDims[1]; in getEdgesHelper() local
97 rendererCenter[1] += imageHeight / 2; in getEdgesHelper()
102 float centerY = (height / 2f - rendererCenter[1] + (imageHeight - height) / 2f) in getEdgesHelper()
106 float topEdge = centerY - imageHeight / 2f * scale; in getEdgesHelper()
107 float bottomEdge = centerY + imageHeight / 2f * scale; in getEdgesHelper()
165 final float imageHeight = imageDims[1]; in updateMinScale() local
166 mMinScale = Math.max(w / imageWidth, h / imageHeight); in updateMinScale()
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DLayerDrawable.cpp126 const int imageHeight = layerImage->height(); in DrawLayer() local
141 adjustCropForYUV(layer->getBufferFormat(), imageWidth, imageHeight, &skiaSrcRect); in DrawLayer()
143 skiaSrcRect = SkRect::MakeIWH(imageWidth, imageHeight); in DrawLayer()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DLongScreenshotActivity.java455 int imageHeight = previewHeight; in updateImageDimensions() local
462 imageHeight = (int) (previewHeight * viewRatio / imageRatio); in updateImageDimensions()
463 extraPadding = (previewHeight - imageHeight) / 2; in updateImageDimensions()
466 imageTop += (previewHeight - imageHeight) / 2; in updateImageDimensions()
479 Rect boundaries = mCropView.getCropBoundaries(imageWidth, imageHeight); in updateImageDimensions()
H A DCropView.java350 public Rect getCropBoundaries(int imageWidth, int imageHeight) { in getCropBoundaries() argument
351 return new Rect((int) (mCrop.left * imageWidth), (int) (mCrop.top * imageHeight), in getCropBoundaries()
352 (int) (mCrop.right * imageWidth), (int) (mCrop.bottom * imageHeight)); in getCropBoundaries()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/
H A DAppClipsActivity.java325 int imageHeight = (int) (previewHeight * viewRatio / imageRatio); in updateImageDimensions() local
326 int extraPadding = (previewHeight - imageHeight) / 2; in updateImageDimensions()
/aosp14/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_DngCreator.cpp804 uint32_t imageHeight, const sp<TiffWriter> writer, in isMaximumResolutionModeImage() argument
840 return (imageWidth == preWidth && imageHeight == preHeight) || in isMaximumResolutionModeImage()
841 (imageWidth == pixWidth && imageHeight == pixHeight); in isMaximumResolutionModeImage()
1281 uint32_t imageHeight) { in DngCreator_setup() argument
1303 isMaximumResolutionModeImage(characteristics, imageWidth, imageHeight, writer, env); in DngCreator_setup()
1323 if (!((imageWidth == preWidth && imageHeight == preHeight) || in DngCreator_setup()
1324 (imageWidth == pixWidth && imageHeight == pixHeight))) { in DngCreator_setup()
1400 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_IMAGELENGTH, 1, &imageHeight, TIFF_IFD_0), in DngCreator_setup()
1859 if (imageWidth == width && imageHeight == height) { in DngCreator_setup()
2065 if (preWidth == imageWidth && preHeight == imageHeight) { in DngCreator_setup()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DChooserActivity.java4127 int imageHeight = height - getPaddingBottom() - getPaddingTop();
4128 mPath.addRoundRect(getPaddingLeft(), getPaddingTop(), imageWidth, imageHeight, mRadius,