Searched refs:region (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RegionIteratorTest.java | 31 Region region = new Region(); in testNext() local 32 region.set(1, 1, 10, 10); in testNext() 35 RegionIterator regionIterator = new RegionIterator(region); in testNext() 53 region.set(1, 1, 10, 10); in testNext() 55 region.op(rect, Region.Op.UNION); in testNext() 56 regionIterator = new RegionIterator(region); in testNext() 57 assertFalse(region.isRect()); in testNext() 80 region.set(1, 1, 10, 10); in testNext() 82 region.op(rect, Region.Op.DIFFERENCE); in testNext() 83 regionIterator = new RegionIterator(region); in testNext() [all …]
|
D | NinePatchTest.java | 166 Region region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() local 167 assertNull(region); in testGetTransparentRegion() 176 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() 177 assertNotNull(region); in testGetTransparentRegion() 178 Rect regionBounds = region.getBounds(); in testGetTransparentRegion() 182 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() 183 assertNotNull(region); in testGetTransparentRegion() 184 regionBounds = region.getBounds(); in testGetTransparentRegion() 194 region = mNinePatch.getTransparentRegion(location); in testGetTransparentRegion() 195 assertNotNull(region); in testGetTransparentRegion() [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/view/src/android/view/cts/ |
D | SurfaceViewTest.java | 90 Region region = new Region(); in testSurfaceView() local 91 region.set(left, top, right, bottom); in testSurfaceView() 92 assertTrue(mMockSurfaceView.gatherTransparentRegion(region)); in testSurfaceView() 95 assertFalse(mMockSurfaceView.gatherTransparentRegion(region)); in testSurfaceView()
|
D | ViewGroupTest.java | 705 Region region = new Region(); in testGatherTransparentRegion() local 713 assertTrue(vg.gatherTransparentRegion(region)); in testGatherTransparentRegion()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ExtendedCameraCharacteristicsTest.java | 1265 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 …]
|
D | CaptureRequestTest.java | 713 for (Rect region : opticalBlackRegions) { in dynamicBlackWhiteLevelTestByCamera() 714 if (region.width() * region.height() > maxRegion.width() * maxRegion.height()) { in dynamicBlackWhiteLevelTestByCamera() 715 maxRegion = region; in dynamicBlackWhiteLevelTestByCamera()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | FrameLayoutTest.java | 136 Region region = new Region(foreground.getBounds()); in testGatherTransparentRegion() local 137 assertTrue(mFrameLayout.gatherTransparentRegion(region)); in testGatherTransparentRegion() 142 region = new Region(foreground.getBounds()); in testGatherTransparentRegion() 143 assertTrue(mFrameLayout.gatherTransparentRegion(region)); in testGatherTransparentRegion()
|