Home
last modified time | relevance | path

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

/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/av/camera/ndk/ndk_vendor/tests/
DAImageReaderVendorTest.cpp452 int32_t imageWidth = 0; in HandleImageAvailable() local
457 AImage_getWidth(outImage, &imageWidth); in HandleImageAvailable()
459 if (imageWidth != mWidth || imageHeight != mHeight) { in HandleImageAvailable()
461 mHeight, imageWidth, imageHeight); in HandleImageAvailable()
/frameworks/av/services/camera/libcameraservice/utils/
DExifUtils.h75 const size_t imageWidth, const size_t imageHeight) = 0;
DExifUtils.cpp63 const size_t imageWidth,
880 const size_t imageWidth, const size_t imageHeight) { in setFromMetadata() argument
881 if (!setImageWidth(imageWidth) || in setFromMetadata()
/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.cpp535 int32_t imageWidth = -1; in parseMetaData() local
594 CHECK(trackMeta->findInt32(kKeyWidth, &imageWidth)); in parseMetaData()
655 sprintf(tmp, "%d", imageWidth); in parseMetaData()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1217 static sp<TiffWriter> DngCreator_setup(JNIEnv* env, jobject thiz, uint32_t imageWidth, in DngCreator_setup() argument
1254 if (!((imageWidth == preWidth && imageHeight == preHeight) || in DngCreator_setup()
1255 (imageWidth == pixWidth && imageHeight == pixHeight))) { in DngCreator_setup()
1329 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_IMAGEWIDTH, 1, &imageWidth, TIFF_IFD_0), in DngCreator_setup()
1789 if (imageWidth == width && imageHeight == height) { in DngCreator_setup()
1986 if (preWidth == imageWidth && preHeight == imageHeight) { in DngCreator_setup()
/frameworks/base/media/java/android/media/
DExifInterface.java2024 int imageWidth = imageWidthAttribute.getIntValue(mExifByteOrder); in getThumbnailBitmap() local
2026 rgbValues, imageWidth, imageLength, Bitmap.Config.ARGB_8888); in getThumbnailBitmap()
2698 int imageWidth = in.readShort(); in getRafAttributes() local
2702 ExifAttribute.createUShort(imageWidth, mExifByteOrder); in getRafAttributes()
2706 Log.d(TAG, "Updated to length: " + imageLength + ", width: " + imageWidth); in getRafAttributes()
/frameworks/ml/nn/common/operations/
DGenerateProposals.cpp79 float imageWidth = imageInfoBase[1]; in bboxTransformFloat32() local
87 BoxEncodingCorner cliped = {.x1 = std::min(std::max(roiAfter.x1, 0.0f), imageWidth), in bboxTransformFloat32()
89 .x2 = std::min(std::max(roiAfter.x2, 0.0f), imageWidth), in bboxTransformFloat32()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java3679 int imageWidth = width - getPaddingRight() - getPaddingLeft();
3681 mPath.addRoundRect(getPaddingLeft(), getPaddingTop(), imageWidth, imageHeight, mRadius,