/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RegionIteratorTest.java | 44 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 …]
|
D | NinePatchTest.java | 207 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 …]
|
D | BitmapRegionDecoderTest.java | 458 Bitmap region = decoder.decodeRegion( in testOutColorType() local 463 assertSame(opts.outConfig, region.getConfig()); in testOutColorType() 464 region.recycle(); in testOutColorType() 481 Bitmap region = decoder.decodeRegion( in testOutColorSpace() local 487 assertSame(expected, region.getColorSpace()); in testOutColorSpace() 488 region.recycle(); in testOutColorSpace() 505 Bitmap region = decoder.decodeRegion( in testReusedColorSpace() local 509 assertEquals(ColorSpace.get(ColorSpace.Named.SRGB), region.getColorSpace()); in testReusedColorSpace() 513 region = decoder.decodeRegion(new Rect(0, 0, SMALL_TILE_SIZE, SMALL_TILE_SIZE), opts); in testReusedColorSpace() 516 assertEquals(ColorSpace.get(ColorSpace.Named.DISPLAY_P3), region.getColorSpace()); in testReusedColorSpace() [all …]
|
/cts/apps/CameraITS/tests/inprog/ |
D | test_crop_region.py | 42 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/ |
D | RegionVerifier.java | 30 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/ |
D | SurfaceViewTest.java | 102 Region region = new Region(); in testSurfaceView() local 103 region.set(left, top, right, bottom); in testSurfaceView() 104 assertTrue(mMockSurfaceView.gatherTransparentRegion(region)); in testSurfaceView() 107 assertFalse(mMockSurfaceView.gatherTransparentRegion(region)); in testSurfaceView()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 145 @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/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityWindowInfoTest.java | 99 Region region = new Region(); in testDefaultValues() local 100 w.getRegionInScreen(region); in testDefaultValues() 101 assertTrue(region.isEmpty()); in testDefaultValues()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AdaptiveIconDrawableTest.java | 207 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/accessibilityservice/src/android/accessibilityservice/cts/ |
D | TouchExplorerTest.java | 628 Region region = getRightSideOfActivityWindowRegion(); in setRightSideOfActivityWindowGestureDetectionPassthrough() local 631 mService.setGestureDetectionPassthroughRegion(Display.DEFAULT_DISPLAY, region); in setRightSideOfActivityWindowGestureDetectionPassthrough() 636 Region region = getRightSideOfActivityWindowRegion(); in setRightSideOfActivityWindowTouchExplorationPassthrough() local 639 mService.setTouchExplorationPassthroughRegion(Display.DEFAULT_DISPLAY, region); in setRightSideOfActivityWindowTouchExplorationPassthrough() 661 Region region = new Region(left, top, right, bottom); in getRightSideOfActivityWindowRegion() local 662 return region; in getRightSideOfActivityWindowRegion()
|
D | AccessibilityMagnificationTest.java | 134 final Region region = controller.getMagnificationRegion(); in testSetScaleAndCenter() local 135 final Rect bounds = region.getBounds(); in testSetScaleAndCenter() 335 final OnMagnificationChangedListener listener = (c, region, scale, centerX, centerY) -> { in waitOnMagnificationChanged()
|
D | FullScreenMagnificationGestureHandlerTest.java | 133 (controller, region, scale, centerX, centerY) -> { in setUp()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | AttachedSurfaceControlSyncTest.java | 112 public boolean gatherTransparentRegion(Region region) { in gatherTransparentRegion() argument 120 region.op(l, t, l+w, t+h, Region.Op.UNION); in gatherTransparentRegion()
|
D | ViewGroupTest.java | 823 Region region = new Region(); in testGatherTransparentRegion() local 829 assertTrue(mMockViewGroup.gatherTransparentRegion(region)); in testGatherTransparentRegion()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | FrameLayoutTest.java | 150 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/ |
D | ExtendedCameraCharacteristicsTest.java | 2241 for (Rect region : regions) { in testOpticalBlackRegions() 2243 " shouldn't be empty!", !region.isEmpty()); in testOpticalBlackRegions() 2245 region.left/*actual*/); in testOpticalBlackRegions() 2247 region.top/*actual*/); in testOpticalBlackRegions() 2251 region.left % 2 == 0 && region.top % 2 == 0 && in testOpticalBlackRegions() 2252 region.width() % 2 == 0 && region.height() % 2 == 0); in testOpticalBlackRegions() 2254 region.top/*actual*/); in testOpticalBlackRegions() 2258 size.getWidth()/*expected*/, region.width()); in testOpticalBlackRegions() 2260 size.getHeight()/*expected*/, region.height()); in testOpticalBlackRegions() 2263 mCollector.expectTrue("Optical black region" + region + " should be outside of" in testOpticalBlackRegions() [all …]
|
D | CaptureRequestTest.java | 975 for (Rect region : opticalBlackRegions) { in dynamicBlackWhiteLevelTestByCamera() 976 if (region.width() * region.height() > maxRegion.width() * maxRegion.height()) { in dynamicBlackWhiteLevelTestByCamera() 977 maxRegion = region; in dynamicBlackWhiteLevelTestByCamera()
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 366 final String region = tm.getSimCountryIso().toUpperCase(Locale.US); in testAddLinksPhoneNumbers() local 370 if ("US".equals(region)) { in testAddLinksPhoneNumbers()
|