/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RectFTest.java | 44 RectF rectF = new RectF(1.5f, 2.5f, 20.3f, 40.9f); in testConstructor() local 45 mRectF = new RectF(rectF); in testConstructor() 78 RectF rectF = new RectF(1.0f, 2.0f, 3.0f, 4.0f); in testSet2() local 80 mRectF.set(rectF); in testSet2() 148 RectF rectF; in testIntersect2() local 151 rectF= new RectF(5, 5, 15, 15); in testIntersect2() 152 assertTrue(mRectF.intersect(rectF)); in testIntersect2() 159 rectF= new RectF(15, 15, 25, 25); in testIntersect2() 160 assertFalse(mRectF.intersect(rectF)); in testIntersect2() 218 RectF rectF; in testUnion2() local [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 453 for (RectF rectF : visibleLineBounds1) { in testEquality() 454 builder1.addVisibleLineBounds(rectF.left, rectF.top, rectF.right, rectF.bottom); in testEquality() 458 for (RectF rectF : visibleLineBounds1) { in testEquality() 459 builder2.addVisibleLineBounds(rectF.left, rectF.top, rectF.right, rectF.bottom); in testEquality() 466 for (RectF rectF : visibleLineBounds1) { in testEquality() 467 builder1.addVisibleLineBounds(rectF.left, rectF.top, rectF.right, rectF.bottom); in testEquality() 471 for (RectF rectF : visibleLineBounds2) { in testEquality() 472 builder2.addVisibleLineBounds(rectF.left, rectF.top, rectF.right, rectF.bottom); in testEquality() 588 for (RectF rectF: visibleLineBounds) { in testMatrixIsRequiredForVisibleLineBounds() 589 builder.addVisibleLineBounds(rectF.left, rectF.top, rectF.right, rectF.bottom); in testMatrixIsRequiredForVisibleLineBounds() [all …]
|
D | InputConnectionEndToEndTest.java | 1133 public void requestTextBoundsInfo(RectF rectF, Executor executor, in testRequestTextBoundsInfo() argument 1137 args.putParcelable("rectF", rectF); in testRequestTextBoundsInfo() 1152 final RectF rectF = new RectF(1f, 2f, 3f, 4f); in testRequestTextBoundsInfo() 1153 final ImeCommand command = session.callRequestTextBoundsInfo(rectF); in testRequestTextBoundsInfo() 1155 assertEquals(rectF, args.getParcelable("rectF", RectF.class)); in testRequestTextBoundsInfo() 1172 final RectF rectF = new RectF(1f, 2f, 3f, 4f); in testRequestTextBoundsInfo_unimplemented() local 1173 final ImeCommand command = session.callRequestTextBoundsInfo(rectF); in testRequestTextBoundsInfo_unimplemented()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTextBoundsInfoTest.java | 174 final RectF rectF = new RectF(0f, -5f, 1f, 0f); in testRequestTextBoundsInfo_topOfLayout() local 175 final TextBoundsInfoResult textBoundsInfoResult = getTextBoundsInfoResult(rectF); in testRequestTextBoundsInfo_topOfLayout() 190 final RectF rectF = new RectF(-2f, 0f, 0f, LINE_HEIGHT); in testRequestTextBoundsInfo_leftOfLayout() local 191 final TextBoundsInfoResult textBoundsInfoResult = getTextBoundsInfoResult(rectF); in testRequestTextBoundsInfo_leftOfLayout() 206 final RectF rectF = new RectF(TEXT_LAYOUT_WIDTH, 0f, TEXT_LAYOUT_WIDTH + 1f, LINE_HEIGHT); in testRequestTextBoundsInfo_rightOfLayout() local 207 final TextBoundsInfoResult textBoundsInfoResult = getTextBoundsInfoResult(rectF); in testRequestTextBoundsInfo_rightOfLayout() 222 final RectF rectF = new RectF(0f, 2 * LINE_HEIGHT, 1f, 2 * LINE_HEIGHT + 1f); in testRequestTextBoundsInfo_bottomOfLayout() local 223 final TextBoundsInfoResult textBoundsInfoResult = getTextBoundsInfoResult(rectF); in testRequestTextBoundsInfo_bottomOfLayout() 238 final RectF rectF = new RectF(0f, 0f, TEXT_LAYOUT_WIDTH, LINE_HEIGHT - 1f); in testRequestTextBoundsInfo_firstLine() local 239 final TextBoundsInfoResult textBoundsInfoResult = getTextBoundsInfoResult(rectF); in testRequestTextBoundsInfo_firstLine() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | CtsWindowInfoUtils.java | 514 RectF rectF = new RectF(windowInfo.bounds); in getWindowBoundsInWindowSpace() 515 windowInfo.transform.mapRect(rectF); in getWindowBoundsInWindowSpace() 516 bounds.set((int) rectF.left, (int) rectF.top, (int) rectF.right, in getWindowBoundsInWindowSpace() 517 (int) rectF.bottom); in getWindowBoundsInWindowSpace()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareBufferRendererTests.kt | 606 val rectF = Rect(childRect.left, in <lambda>() constant 612 rectF.applyBufferTransform( in <lambda>() 639 val rectF = RectF(this) in <lambda>() constant 665 matrix.mapRect(rectF) in <lambda>() 667 rectF.left.toInt(), in <lambda>() 668 rectF.top.toInt(), in <lambda>() 669 rectF.right.toInt(), in <lambda>() 670 rectF.bottom.toInt() in <lambda>()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MockImeSession.java | 1361 public ImeCommand callRequestTextBoundsInfo(RectF rectF) { in callRequestTextBoundsInfo() argument 1363 params.putParcelable("rectF", rectF); in callRequestTextBoundsInfo()
|
D | MockIme.java | 415 var rectF = command.getExtras().getParcelable("rectF", RectF.class); in onHandleCommand() 420 rectF, mMainHandler::post, consumer); in onHandleCommand()
|