Home
last modified time | relevance | path

Searched refs:rect1 (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionTest.java230 Rect rect1 = new Rect(); in testUnion() local
240 assertTrue(mRegion.union(rect1)); in testUnion()
318 Rect rect1 = new Rect(1, 2, 3, 4); in testGetBounds() local
319 mRegion = new Region(rect1); in testGetBounds()
320 assertTrue(mRegion.getBounds(rect1)); in testGetBounds()
329 Rect rect1 = new Rect(); in testOp1() local
335 verifyNullRegionOp1(rect1); in testOp1()
336 verifyDifferenceOp1(rect1, rect2, rect3, rect4, rect5); in testOp1()
337 verifyIntersectOp1(rect1, rect2, rect3, rect4, rect5); in testOp1()
338 verifyUnionOp1(rect1, rect2, rect3, rect4, rect5); in testOp1()
[all …]
DRectTest.java88 Rect rect1; in testIntersects2() local
91 rect1 = new Rect(0, 0, 10, 10); in testIntersects2()
93 assertTrue(Rect.intersects(rect1, rect2)); in testIntersects2()
95 rect1 = new Rect(0, 0, 10, 10); in testIntersects2()
97 assertFalse(Rect.intersects(rect1, rect2)); in testIntersects2()
118 Rect rect1 = new Rect(0, 0, 10, 10); in testSetIntersect() local
123 assertTrue(mRect.setIntersect(rect1, rect2)); in testSetIntersect()
131 assertTrue(mRect.setIntersect(rect1, rect2)); in testSetIntersect()
DBitmapRegionDecoderTest.java669 Rect rect1 = new Rect(i * TILE_SIZE, j * TILE_SIZE, in compareRegionByRegion() local
671 rect1.intersect(rect); in compareRegionByRegion()
672 actual = decoder.decodeRegion(rect1, opts); in compareRegionByRegion()
673 int left = rect1.left / opts.inSampleSize; in compareRegionByRegion()
674 int top = rect1.top / opts.inSampleSize; in compareRegionByRegion()
678 int currentWidth = rect1.width() / opts.inSampleSize; in compareRegionByRegion()
679 int currentHeight = rect1.height() / opts.inSampleSize; in compareRegionByRegion()
DYuvImageTest.java251 Rect rect1, Rect rect2) { in compressRects() argument
254 boolean sameRect = rect1.equals(rect2) ? true : false; in compressRects()
259 Rect expectedRect = sameRect ? actualRect : rect1; in compressRects()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java100 Rect rect1 = mockDrawable.copyBounds(); in testCopyBounds() local
103 assertEquals(0, rect1.bottom); in testCopyBounds()
104 assertEquals(0, rect1.left); in testCopyBounds()
105 assertEquals(0, rect1.right); in testCopyBounds()
106 assertEquals(0, rect1.top); in testCopyBounds()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java297 final Rect rect1 = new Rect(1, 1, 10, 10); in populateTouchDelegateTargetMap() local
300 targetMap.put(new Region(rect1), new View(getContext())); in populateTouchDelegateTargetMap()