Home
last modified time | relevance | path

Searched refs:region (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionIteratorTest.java43 Region region = new Region(); in testNext() local
44 region.set(1, 1, 10, 10); in testNext()
47 RegionIterator regionIterator = new RegionIterator(region); in testNext()
65 region.set(1, 1, 10, 10); in testNext()
67 region.op(rect, Region.Op.UNION); in testNext()
68 regionIterator = new RegionIterator(region); in testNext()
69 assertFalse(region.isRect()); in testNext()
92 region.set(1, 1, 10, 10); in testNext()
94 region.op(rect, Region.Op.DIFFERENCE); in testNext()
95 regionIterator = new RegionIterator(region); in testNext()
[all …]
DNinePatchTest.java206 Region region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() local
207 assertNull(region); in testGetTransparentRegion()
216 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion()
217 assertNotNull(region); in testGetTransparentRegion()
218 Rect regionBounds = region.getBounds(); in testGetTransparentRegion()
222 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion()
223 assertNotNull(region); in testGetTransparentRegion()
224 regionBounds = region.getBounds(); in testGetTransparentRegion()
234 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion()
235 assertNotNull(region); in testGetTransparentRegion()
[all …]
DBitmapRegionDecoderTest.java455 Bitmap region = decoder.decodeRegion( in testOutColorType() local
460 assertSame(opts.outConfig, region.getConfig()); in testOutColorType()
461 region.recycle(); in testOutColorType()
478 Bitmap region = decoder.decodeRegion( in testOutColorSpace() local
484 assertSame(expected, region.getColorSpace()); in testOutColorSpace()
485 region.recycle(); in testOutColorSpace()
502 Bitmap region = decoder.decodeRegion( in testReusedColorSpace() local
506 assertEquals(ColorSpace.get(ColorSpace.Named.SRGB), region.getColorSpace()); in testReusedColorSpace()
510 region = decoder.decodeRegion(new Rect(0, 0, SMALL_TILE_SIZE, SMALL_TILE_SIZE), opts); in testReusedColorSpace()
513 assertEquals(ColorSpace.get(ColorSpace.Named.DISPLAY_P3), region.getColorSpace()); in testReusedColorSpace()
[all …]
/cts/apps/CameraITS/tests/inprog/
Dtest_crop_region.py42 for i,region in enumerate(regions):
45 "left": int(region[0] * w),
46 "top": int(region[1] * h),
47 "right": int((region[0]+region[2])*w),
48 "bottom": int((region[1]+region[3])*h)}
/cts/tests/tests/view/src/android/view/cts/
DSurfaceViewTest.java100 Region region = new Region(); in testSurfaceView() local
101 region.set(left, top, right, bottom); in testSurfaceView()
102 assertTrue(mMockSurfaceView.gatherTransparentRegion(region)); in testSurfaceView()
105 assertFalse(mMockSurfaceView.gatherTransparentRegion(region)); in testSurfaceView()
DViewGroupTest.java825 Region region = new Region(); in testGatherTransparentRegion() local
831 assertTrue(mMockViewGroup.gatherTransparentRegion(region)); in testGatherTransparentRegion()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java145 @NonNull Rect region, @ColorInt int color, int allowedComponentVariance, in assertRegionPixelsOfColor() argument
158 assertAllPixelsOfColor(failMessagePrefix, bitmap, region, in assertRegionPixelsOfColor()
212 @NonNull Rect region, @ColorInt int color, int allowedComponentVariance, in assertAllPixelsOfColor() argument
218 final int startRow = region.top; in assertAllPixelsOfColor()
219 final int endRow = region.bottom; in assertAllPixelsOfColor()
220 final int startColumn = region.left; in assertAllPixelsOfColor()
221 final int endColumn = region.right; in assertAllPixelsOfColor()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconDrawableTest.java193 Region region = new Region(new Rect(0, 0, width, height)); in testDrawSetBounds() local
198 region.setPath(circle, region); in testDrawSetBounds()
199 if (!equalBitmaps(bm_test, bm_org, region)) { in testDrawSetBounds()
337 boolean equalBitmaps(Bitmap a, Bitmap b, Region region) { in equalBitmaps() argument
345 if (region != null) { in equalBitmaps()
354 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j) ) { in equalBitmaps()
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java1265 for (Rect region : regions) { in testOpticalBlackRegions()
1267 " shouldn't be empty!", !region.isEmpty()); in testOpticalBlackRegions()
1269 region.left/*actual*/); in testOpticalBlackRegions()
1271 region.top/*actual*/); in testOpticalBlackRegions()
1275 region.left % 2 == 0 && region.top % 2 == 0 && in testOpticalBlackRegions()
1276 region.width() % 2 == 0 && region.height() % 2 == 0); in testOpticalBlackRegions()
1278 region.top/*actual*/); in testOpticalBlackRegions()
1282 size.getWidth()/*expected*/, region.width()); in testOpticalBlackRegions()
1284 size.getHeight()/*expected*/, region.height()); in testOpticalBlackRegions()
1287 mCollector.expectTrue("Optical black region" + region + " should be outside of" in testOpticalBlackRegions()
[all …]
DCaptureRequestTest.java764 for (Rect region : opticalBlackRegions) { in dynamicBlackWhiteLevelTestByCamera()
765 if (region.width() * region.height() > maxRegion.width() * maxRegion.height()) { in dynamicBlackWhiteLevelTestByCamera()
766 maxRegion = region; in dynamicBlackWhiteLevelTestByCamera()
/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayoutTest.java151 Region region = new Region(foreground.getBounds()); in testGatherTransparentRegion() local
152 assertTrue(mFrameLayout.gatherTransparentRegion(region)); in testGatherTransparentRegion()
157 region = new Region(foreground.getBounds()); in testGatherTransparentRegion()
158 assertTrue(mFrameLayout.gatherTransparentRegion(region)); in testGatherTransparentRegion()
/cts/tools/dex-tools/dex/
Dclasses.out.dex77221 private static java.lang.String region(
77412 private static java.lang.String region(
Dclasses0.out.dex58601 public java.util.regex.Matcher region(