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.java218 Rect rect1 = new Rect(); in testUnion() local
230 assertTrue(mRegion.union(rect1)); in testUnion()
313 Rect rect1 = new Rect(1, 2, 3, 4); in testGetBounds() local
314 mRegion = new Region(rect1); in testGetBounds()
315 assertTrue(mRegion.getBounds(rect1)); in testGetBounds()
324 Rect rect1 = new Rect(); in testOp1() local
330 assertNullRegionOp1(rect1); in testOp1()
331 assertDifferenceOp1(rect1, rect2, rect3, rect4, rect5); in testOp1()
332 assertIntersectOp1(rect1, rect2, rect3, rect4, rect5); in testOp1()
333 assertUnionOp1(rect1, rect2, rect3, rect4, rect5); in testOp1()
[all …]
DRectTest.java91 Rect rect1; in testIntersects2() local
94 rect1 = new Rect(0, 0, 10, 10); in testIntersects2()
96 assertTrue(Rect.intersects(rect1, rect2)); in testIntersects2()
98 rect1 = new Rect(0, 0, 10, 10); in testIntersects2()
100 assertFalse(Rect.intersects(rect1, rect2)); in testIntersects2()
122 Rect rect1 = new Rect(0, 0, 10, 10); in testSetIntersect() local
127 assertTrue(mRect.setIntersect(rect1, rect2)); in testSetIntersect()
135 assertTrue(mRect.setIntersect(rect1, rect2)); in testSetIntersect()
DBitmapRegionDecoderTest.java319 Rect rect1 = new Rect(i * TILE_SIZE, j * TILE_SIZE, in compareRegionByRegion() local
321 rect1.intersect(rect); in compareRegionByRegion()
322 actual = decoder.decodeRegion(rect1, opts); in compareRegionByRegion()
323 int left = rect1.left / opts.inSampleSize; in compareRegionByRegion()
324 int top = rect1.top / opts.inSampleSize; in compareRegionByRegion()
328 int currentWidth = rect1.width() / opts.inSampleSize; in compareRegionByRegion()
329 int currentHeight = rect1.height() / opts.inSampleSize; in compareRegionByRegion()
DYuvImageTest.java257 Rect rect1, Rect rect2) { in compressRects() argument
260 boolean sameRect = rect1.equals(rect2) ? true : false; in compressRects()
265 Rect expectedRect = sameRect ? actualRect : rect1; in compressRects()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java74 Rect rect1 = mockDrawable.copyBounds(); in testCopyBounds() local
77 assertEquals(0, rect1.bottom); in testCopyBounds()
78 assertEquals(0, rect1.left); in testCopyBounds()
79 assertEquals(0, rect1.right); in testCopyBounds()
80 assertEquals(0, rect1.top); in testCopyBounds()
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
DCtsUiAutomatorTest.java709 Rect rect1 = getObjectByText("Button 1").getVisibleBounds(); in testGetVisibleBounds() local
714 rect1.left < rect2.left && rect2.right < rect3.right); in testGetVisibleBounds()
716 rect1.top == rect2.top && rect2.bottom == rect3.bottom); in testGetVisibleBounds()