Searched refs:cropRect (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecImage.java | 142 public void setCropRect(Rect cropRect) { in setCropRect() argument 143 if (cropRect != null) { in setCropRect() 144 cropRect = new Rect(cropRect); // make a copy in setCropRect() 145 cropRect.intersect(0, 0, getWidth(), getHeight()); in setCropRect() 147 mCropRect = cropRect; in setCropRect()
|
/cts/tests/tests/media/libmediandkjni/ |
D | codec-utils-jni.cpp | 182 jobject cropRect = NULL; in getNativeImage() local 184 cropRect = env->CallObjectMethod(image, gFields.methodCrop); in getNativeImage() 185 area = cropRect; in getNativeImage() 197 if (cropRect != NULL) { in getNativeImage() 198 env->DeleteLocalRef(cropRect); in getNativeImage() 199 cropRect = NULL; in getNativeImage()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ImageDecoderTest.java | 1376 public Rect cropRect; in testCrop() field in Listener 1390 cropRect = new Rect(quarterWidth, quarterHeight, in testCrop() 1392 decoder.setCrop(cropRect); in testCrop() 1410 assertEquals(l.cropRect.width(), drawable.getIntrinsicWidth()); in testCrop() 1411 assertEquals(l.cropRect.height(), drawable.getIntrinsicHeight()); in testCrop() 1463 Rect cropRect = new Rect(l.outCropRect); in testScaleAndCrop() local 1480 Bitmap cropped = Bitmap.createBitmap(twoStepBm, cropRect.left, cropRect.top, in testScaleAndCrop() 1481 cropRect.width(), cropRect.height()); in testScaleAndCrop()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestBase.java | 338 Rect cropRect = image.getCropRect(); in checksum() local 339 int imageWidth = cropRect.width(); in checksum() 340 int imageHeight = cropRect.height(); in checksum() 343 int imageLeft = cropRect.left; in checksum() 344 int imageTop = cropRect.top; in checksum()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 2691 MeteringRectangle[] requestRegions, Rect cropRect){ in getExpectedOutputRegion() argument 2696 boolean intersect = resultRect.setIntersect(requestRect, cropRect); in getExpectedOutputRegion()
|