Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionIteratorTest.java44 Region region = new Region(); in testNext() local
45 region.set(1, 1, 10, 10); in testNext()
48 RegionIterator regionIterator = new RegionIterator(region); in testNext()
66 region.set(1, 1, 10, 10); in testNext()
68 region.op(rect, Region.Op.UNION); in testNext()
69 regionIterator = new RegionIterator(region); in testNext()
70 assertFalse(region.isRect()); in testNext()
93 region.set(1, 1, 10, 10); in testNext()
95 region.op(rect, Region.Op.DIFFERENCE); in testNext()
96 regionIterator = new RegionIterator(region); in testNext()
[all …]
DNinePatchTest.java207 Region region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() local
208 assertNull(region); in testGetTransparentRegion()
217 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion()
218 assertNotNull(region); in testGetTransparentRegion()
219 Rect regionBounds = region.getBounds(); in testGetTransparentRegion()
223 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion()
224 assertNotNull(region); in testGetTransparentRegion()
225 regionBounds = region.getBounds(); in testGetTransparentRegion()
235 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion()
236 assertNotNull(region); in testGetTransparentRegion()
[all …]
DBitmapRegionDecoderTest.java460 Bitmap region = decoder.decodeRegion( in testOutColorType() local
465 assertSame(opts.outConfig, region.getConfig()); in testOutColorType()
466 region.recycle(); in testOutColorType()
483 Bitmap region = decoder.decodeRegion( in testOutColorSpace() local
489 assertSame(expected, region.getColorSpace()); in testOutColorSpace()
490 region.recycle(); in testOutColorSpace()
507 Bitmap region = decoder.decodeRegion( in testReusedColorSpace() local
511 assertEquals(ColorSpace.get(ColorSpace.Named.SRGB), region.getColorSpace()); in testReusedColorSpace()
515 region = decoder.decodeRegion(new Rect(0, 0, SMALL_TILE_SIZE, SMALL_TILE_SIZE), opts); in testReusedColorSpace()
518 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/uirendering/src/android/uirendering/cts/bitmapverifiers/
DRegionVerifier.java30 public Region region; field in RegionVerifier.SubRegionVerifiers
33 SubRegionVerifiers(Region region, BitmapVerifier verifier) { in SubRegionVerifiers() argument
34 this.region = region; in SubRegionVerifiers()
46 if (subRegionVerifier.region.isRect()) { in verify()
47 Rect area = subRegionVerifier.region.getBounds(); in verify()
51 RegionIterator iter = new RegionIterator(subRegionVerifier.region); in verify()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
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()
/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.java207 Region region = new Region(new Rect(0, 0, width, height)); in testDrawSetBounds() local
212 region.setPath(circle, region); in testDrawSetBounds()
213 if (!equalBitmaps(bm_test, bm_org, region)) { in testDrawSetBounds()
364 boolean equalBitmaps(Bitmap a, Bitmap b, Region region) { in equalBitmaps() argument
372 if (region != null) { in equalBitmaps()
381 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j) ) { in equalBitmaps()
/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayoutTest.java150 Region region = new Region(foreground.getBounds()); in testGatherTransparentRegion() local
151 assertTrue(mFrameLayout.gatherTransparentRegion(region)); in testGatherTransparentRegion()
155 region = new Region(foreground.getBounds()); in testGatherTransparentRegion()
156 assertTrue(mFrameLayout.gatherTransparentRegion(region)); in testGatherTransparentRegion()
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java2050 for (Rect region : regions) { in testOpticalBlackRegions()
2052 " shouldn't be empty!", !region.isEmpty()); in testOpticalBlackRegions()
2054 region.left/*actual*/); in testOpticalBlackRegions()
2056 region.top/*actual*/); in testOpticalBlackRegions()
2060 region.left % 2 == 0 && region.top % 2 == 0 && in testOpticalBlackRegions()
2061 region.width() % 2 == 0 && region.height() % 2 == 0); in testOpticalBlackRegions()
2063 region.top/*actual*/); in testOpticalBlackRegions()
2067 size.getWidth()/*expected*/, region.width()); in testOpticalBlackRegions()
2069 size.getHeight()/*expected*/, region.height()); in testOpticalBlackRegions()
2072 mCollector.expectTrue("Optical black region" + region + " should be outside of" in testOpticalBlackRegions()
[all …]
DCaptureRequestTest.java928 for (Rect region : opticalBlackRegions) { in dynamicBlackWhiteLevelTestByCamera()
929 if (region.width() * region.height() > maxRegion.width() * maxRegion.height()) { in dynamicBlackWhiteLevelTestByCamera()
930 maxRegion = region; in dynamicBlackWhiteLevelTestByCamera()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java91 final Region region = controller.getMagnificationRegion(); in testSetScaleAndCenter() local
92 final Rect bounds = region.getBounds(); in testSetScaleAndCenter()
DMagnificationGestureHandlerTest.java118 (controller, region, scale, centerX, centerY) -> { in setUp()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java365 final String region = tm.getSimCountryIso().toUpperCase(Locale.US); in testAddLinksPhoneNumbers() local
369 if ("US".equals(region)) { in testAddLinksPhoneNumbers()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java819 Region region = new Region(); in testGatherTransparentRegion() local
825 assertTrue(mMockViewGroup.gatherTransparentRegion(region)); in testGatherTransparentRegion()