Home
last modified time | relevance | path

Searched refs:imageWidth (Results 1 – 12 of 12) sorted by relevance

/frameworks/support/transition/src/androidTest/java/androidx/transition/
DChangeImageTransformTest.java92 int imageWidth = mImage.getIntrinsicWidth(); in centerMatrix() local
94 float tx = Math.round((imageViewWidth - imageWidth) / 2f); in centerMatrix()
106 int imageWidth = mImage.getIntrinsicWidth(); in fitXYMatrix() local
108 float scaleX = ((float) imageViewWidth) / imageWidth; in fitXYMatrix()
120 int imageWidth = mImage.getIntrinsicWidth(); in centerCropMatrix() local
122 float scaleX = ((float) imageViewWidth) / imageWidth; in centerCropMatrix()
130 float width = imageWidth * maxScale; in centerCropMatrix()
142 int imageWidth = mImage.getIntrinsicWidth(); in fitCenterMatrix() local
144 float scaleX = ((float) imageViewWidth) / imageWidth; in fitCenterMatrix()
152 float width = imageWidth * minScale; in fitCenterMatrix()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java97 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth()); in assertImageSimilar() local
106 int width = 3 * imageWidth; in assertImageSimilar()
115 for (int x = 0; x < imageWidth; x++) { in assertImageSimilar()
119 deltaImage.setRGB(imageWidth + x, y, 0x00808080); in assertImageSimilar()
125 deltaImage.setRGB(imageWidth + x, y, 0x00808080); in assertImageSimilar()
140 deltaImage.setRGB(imageWidth + x, y, newRGB); in assertImageSimilar()
149 long total = imageHeight * imageWidth * 3L * 256L; in assertImageSimilar()
170 g.drawImage(image, 2 * imageWidth, 0, null); in assertImageSimilar()
173 if (imageWidth > 80) { in assertImageSimilar()
176 g.drawString("Actual", 2 * imageWidth + 10, 20); in assertImageSimilar()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java71 final float imageWidth = mRenderer.source.getImageWidth(); in getImageDims() local
74 imageDims[0] = imageWidth; in getImageDims()
86 final float imageWidth = imageDims[0]; in getEdgesHelper() local
96 rendererCenter[0] += imageWidth / 2; in getEdgesHelper()
100 float centerX = (width / 2f - rendererCenter[0] + (imageWidth - width) / 2f) in getEdgesHelper()
104 float leftEdge = centerX - imageWidth / 2f * scale; in getEdgesHelper()
105 float rightEdge = centerX + imageWidth / 2f * scale; in getEdgesHelper()
164 final float imageWidth = imageDims[0]; in updateMinScale() local
166 mMinScale = Math.max(w / imageWidth, h / imageHeight); in updateMinScale()
/frameworks/support/transition/src/main/java/androidx/transition/
DChangeImageTransform.java217 final int imageWidth = image.getIntrinsicWidth(); in centerCropMatrix() local
219 final float scaleX = ((float) imageViewWidth) / imageWidth; in centerCropMatrix()
227 final float width = imageWidth * maxScale; in centerCropMatrix()
/frameworks/support/print/src/main/java/androidx/print/
DPrintHelper.java573 private static Matrix getMatrix(int imageWidth, int imageHeight, RectF content, in getMatrix() argument
578 float scale = content.width() / imageWidth; in getMatrix()
588 - imageWidth * scale) / 2; in getMatrix()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DExifInterfaceTest.java115 public final int imageWidth; field in ExifInterfaceTest.ExpectedValue
158 imageWidth = typedArray.getInt(24, 0); in ExpectedValue()
309 assertIntTag(exifInterface, ExifInterface.TAG_IMAGE_WIDTH, expectedValue.imageWidth); in compareWithExpectedValue()
/frameworks/av/media/libstagefright/
DStagefrightMetadataRetriever.cpp501 int32_t imageWidth = -1; in parseMetaData() local
542 CHECK(trackMeta->findInt32(kKeyWidth, &imageWidth)); in parseMetaData()
603 sprintf(tmp, "%d", imageWidth); in parseMetaData()
/frameworks/support/exifinterface/src/androidTest/java/androidx/exifinterface/media/
DExifInterfaceTest.java251 public final int imageWidth; field in ExifInterfaceTest.ExpectedValue
294 imageWidth = typedArray.getInt(24, 0); in ExpectedValue()
765 assertIntTag(exifInterface, ExifInterface.TAG_IMAGE_WIDTH, expectedValue.imageWidth); in compareWithExpectedValue()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1048 static sp<TiffWriter> DngCreator_setup(JNIEnv* env, jobject thiz, uint32_t imageWidth, in DngCreator_setup() argument
1079 if (!((imageWidth == preWidth && imageHeight == preHeight) || in DngCreator_setup()
1080 (imageWidth == pixWidth && imageHeight == pixHeight))) { in DngCreator_setup()
1136 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_IMAGEWIDTH, 1, &imageWidth, TIFF_IFD_0), in DngCreator_setup()
1603 if (imageWidth == width && imageHeight == height) { in DngCreator_setup()
/frameworks/support/car/car-stubs/
Dandroid.car.jarMETA-INF/ META-INF/MANIFEST.MF android/car/Car.class Car ...
/frameworks/base/media/java/android/media/
DExifInterface.java1938 int imageWidth = imageWidthAttribute.getIntValue(mExifByteOrder); in getThumbnailBitmap() local
1940 rgbValues, imageWidth, imageLength, Bitmap.Config.ARGB_8888); in getThumbnailBitmap()
2509 int imageWidth = in.readShort(); in getRafAttributes() local
2513 ExifAttribute.createUShort(imageWidth, mExifByteOrder); in getRafAttributes()
2517 Log.d(TAG, "Updated to length: " + imageLength + ", width: " + imageWidth); in getRafAttributes()
/frameworks/support/exifinterface/src/main/java/androidx/exifinterface/media/
DExifInterface.java4414 int imageWidth = imageWidthAttribute.getIntValue(mExifByteOrder);
4416 rgbValues, imageWidth, imageLength, Bitmap.Config.ARGB_8888);
5003 int imageWidth = in.readShort();
5007 ExifAttribute.createUShort(imageWidth, mExifByteOrder);
5011 Log.d(TAG, "Updated to length: " + imageLength + ", width: " + imageWidth);