Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/gesture/src/android/gesture/cts/
DLineGestureStrokeHelper.java61 RectF bounds = new RectF(); in assertLineBoundingBox() local
62 linePath.computeBounds(bounds, true); in assertLineBoundingBox()
66 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.bottom); in assertLineBoundingBox()
67 Assert.assertEquals(LINE_START_POINT, bounds.left); in assertLineBoundingBox()
68 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.right); in assertLineBoundingBox()
69 Assert.assertEquals(LINE_START_POINT, bounds.top); in assertLineBoundingBox()
77 void assertLineBoundingBox(RectF bounds) { in assertLineBoundingBox() argument
80 Assert.assertEquals(LINE_END_POINT, bounds.bottom); in assertLineBoundingBox()
81 Assert.assertEquals(LINE_START_POINT, bounds.left); in assertLineBoundingBox()
82 Assert.assertEquals(LINE_END_POINT, bounds.right); in assertLineBoundingBox()
[all …]
DGestureStrokeTest.java94 RectF bounds = new RectF(); in testToPath_boundedLine() local
95 linePath.computeBounds(bounds, true); in testToPath_boundedLine()
98 assertEquals(LineGestureStrokeHelper.LINE_QUARTER_POINT, bounds.bottom); in testToPath_boundedLine()
99 assertEquals(LineGestureStrokeHelper.LINE_START_POINT, bounds.left); in testToPath_boundedLine()
100 assertEquals(LineGestureStrokeHelper.LINE_QUARTER_POINT, bounds.right); in testToPath_boundedLine()
101 assertEquals(LineGestureStrokeHelper.LINE_START_POINT, bounds.top); in testToPath_boundedLine()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dfloat16_gen.c122 void getErrorBar(unsigned short value, int tolerance, unsigned short bounds[2]) { in getErrorBar()
135 bounds[0] = value; in getErrorBar()
136 bounds[1] = value; in getErrorBar()
170 bounds[0] = *(unsigned short *) &lb; in getErrorBar()
171 bounds[1] = *(unsigned short *) &ub; in getErrorBar()
175 if (!isFloat16Negative(bounds[0]) && isFloat16SubNormal(bounds[0])) in getErrorBar()
176 bounds[0] = 0x0; in getErrorBar()
178 if (isFloat16Negative(bounds[1]) && isFloat16SubNormal(bounds[1])) in getErrorBar()
179 bounds[1] = 0x0 | SIGN_MASK; in getErrorBar()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DScaleDrawableTest.java345 Rect bounds = new Rect(2, 2, 26, 32); in testOnBoundsChange() local
346 mockDrawable.setBounds(bounds); in testOnBoundsChange()
347 mockScaleDrawable.onBoundsChange(bounds); in testOnBoundsChange()
349 Gravity.apply(Gravity.LEFT, bounds.width() - (int) (bounds.width() * scaleWidth), in testOnBoundsChange()
350 bounds.height() - (int) (bounds.height() * scaleHeight), bounds, expected); in testOnBoundsChange()
361 mockDrawable.setBounds(bounds); in testOnBoundsChange()
363 mockScaleDrawable.onBoundsChange(bounds); in testOnBoundsChange()
365 bounds.width() - (int) (bounds.width() * scaleWidth * (10000 - level) / 10000), in testOnBoundsChange()
366 bounds.height() - (int) (bounds.height() * scaleHeight * (10000 - level) / 10000), in testOnBoundsChange()
367 bounds, expected); in testOnBoundsChange()
[all …]
DDrawableWrapperTest.java326 Rect bounds = new Rect(2, 2, 26, 32); in testOnBoundsChange() local
327 mockDrawable.setBounds(bounds); in testOnBoundsChange()
328 mockDrawableWrapper.onBoundsChange(bounds); in testOnBoundsChange()
331 mockDrawable.setBounds(bounds); in testOnBoundsChange()
332 mockDrawableWrapper.onBoundsChange(bounds); in testOnBoundsChange()
333 assertEquals(bounds.left, mockDrawable.getBounds().left); in testOnBoundsChange()
334 assertEquals(bounds.top, mockDrawable.getBounds().top); in testOnBoundsChange()
335 assertEquals(bounds.right, mockDrawable.getBounds().right); in testOnBoundsChange()
336 assertEquals(bounds.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
338 bounds = mockDrawable.getBounds(); in testOnBoundsChange()
[all …]
DInsetDrawableTest.java263 Rect bounds = d.getBounds(); in testOnBoundsChange() local
264 assertEquals(0, bounds.left); in testOnBoundsChange()
265 assertEquals(0, bounds.top); in testOnBoundsChange()
266 assertEquals(0, bounds.right); in testOnBoundsChange()
267 assertEquals(0, bounds.bottom); in testOnBoundsChange()
272 assertEquals(5, bounds.left); in testOnBoundsChange()
273 assertEquals(5, bounds.top); in testOnBoundsChange()
274 assertEquals(-5, bounds.right); in testOnBoundsChange()
275 assertEquals(-5, bounds.bottom); in testOnBoundsChange()
423 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
[all …]
DDrawableContainerTest.java225 Rect bounds = new Rect(10, 15, 100, 150); in testSetHotspotBounds() local
235 mDrawableContainer.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds()
238 assertEquals(bounds, outRect); in testSetHotspotBounds()
244 Rect bounds = new Rect(10, 15, 100, 150); in testGetHotspotBounds() local
254 mDrawableContainer.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds()
257 assertEquals(bounds, outRect); in testGetHotspotBounds()
851 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
852 super.onBoundsChange(bounds); in onBoundsChange()
1045 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
1046 super.onBoundsChange(bounds); in onBoundsChange()
DLayerDrawableTest.java531 Rect bounds = new Rect(10, 15, 100, 150); in testSetHotspotBounds() local
537 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds()
540 assertTrue(bounds.equals(outRect)); in testSetHotspotBounds()
544 Rect bounds = new Rect(10, 15, 100, 150); in testGetHotspotBounds() local
550 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds()
553 assertTrue(bounds.equals(outRect)); in testGetHotspotBounds()
753 Rect bounds = new Rect(10, 20, 30, 40); in testSetBounds() local
754 layerDrawable.setBounds(bounds); in testSetBounds()
757 assertEquals(bounds.left + inset1.left, mockDrawable1.getBounds().left); in testSetBounds()
758 assertEquals(bounds.top + inset1.top, mockDrawable1.getBounds().top); in testSetBounds()
[all …]
DClipDrawableTest.java353 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
354 super.onBoundsChange(bounds); in onBoundsChange()
397 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
398 super.onBoundsChange(bounds); in onBoundsChange()
DDrawableTest.java661 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
662 super.onBoundsChange(bounds); in onBoundsChange()
/cts/tests/tests/widget/src/android/widget/cts/
DCompoundButtonTest.java259 Rect bounds; in testOnDraw() local
278 bounds = drawable.copyBounds(); in testOnDraw()
279 assertEquals(0, bounds.left); in testOnDraw()
280 assertEquals(drawableWidth, bounds.right); in testOnDraw()
281 assertEquals(0, bounds.top); in testOnDraw()
282 assertEquals(drawableHeight, bounds.bottom); in testOnDraw()
287 bounds = drawable.copyBounds(); in testOnDraw()
288 assertEquals(0, bounds.left); in testOnDraw()
289 assertEquals(drawableWidth, bounds.right); in testOnDraw()
290 assertEquals(viewHeight - drawableHeight, bounds.top); in testOnDraw()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPathTest.java199 RectF bounds = new RectF(); in testComputeBounds1() local
200 path.computeBounds(bounds, true); in testComputeBounds1()
201 assertEquals(expected.width(), bounds.width()); in testComputeBounds1()
202 assertEquals(expected.height(), bounds.height()); in testComputeBounds1()
203 path.computeBounds(bounds, false); in testComputeBounds1()
204 assertEquals(expected.width(), bounds.width()); in testComputeBounds1()
205 assertEquals(expected.height(), bounds.height()); in testComputeBounds1()
214 RectF bounds = new RectF(LEFT, TOP, RIGHT, BOTTOM); in testComputeBounds2() local
215 path.addRect(bounds, Path.Direction.CW); in testComputeBounds2()
216 path.computeBounds(bounds, true); in testComputeBounds2()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLayoutTest.java155 Rect bounds = new Rect(); in testGetLineBounds() local
157 assertEquals(32, layout.getLineBounds(2, bounds)); in testGetLineBounds()
158 assertEquals(0, bounds.left); in testGetLineBounds()
159 assertEquals(mWidth, bounds.right); in testGetLineBounds()
160 assertEquals(24, bounds.top); in testGetLineBounds()
161 assertEquals(36, bounds.bottom); in testGetLineBounds()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java278 Rect bounds = new Rect(); in assertAccessibilityNodeInfoCleared() local
279 info.getBoundsInParent(bounds); in assertAccessibilityNodeInfoCleared()
280 assertTrue("boundsInParent not properly recycled", bounds.isEmpty()); in assertAccessibilityNodeInfoCleared()
281 info.getBoundsInScreen(bounds); in assertAccessibilityNodeInfoCleared()
282 assertTrue("boundsInScreen not properly recycled", bounds.isEmpty()); in assertAccessibilityNodeInfoCleared()
/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTest.java96 public MockTouchDelegate(Rect bounds, View delegateView) { in MockTouchDelegate() argument
97 super(bounds, delegateView); in MockTouchDelegate()
DViewTest.java4577 public MockTouchDelegate(Rect bounds, View delegateView) { in MockTouchDelegate() argument
4578 super(bounds, delegateView); in MockTouchDelegate()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java591 Rect bounds = new Rect(); in isDividerWindowPresent() local
592 window.getBoundsInScreen(bounds); in isDividerWindowPresent()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerTest.java1696 Rect bounds = text.getBounds();
1697 if (bounds != null) {
1698 Log.d(LOG_TAG, "bounds: " + bounds);
1701 assertEquals("wrong bounds", expected, bounds);
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java2960 Rect bounds = new Rect(-1000, -1000, 1000, 1000);
2971 bounds.contains(rect) || Rect.intersects(bounds, rect));
2988 assertTrue(bounds.contains(face.leftEye.x, face.leftEye.y));
2989 assertTrue(bounds.contains(face.rightEye.x, face.rightEye.y));
2990 assertTrue(bounds.contains(face.mouth.x, face.mouth.y));
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale216 upper bounds of the strings occuring in Dhrystone are part of the type
/cts/tools/dex-tools/dex/
Dclasses0.out.dex67801 private org.apache.harmony.luni.lang.reflect.ListOfTypes bounds