Home
last modified time | relevance | path

Searched refs:centerY (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DGradientTests.java80 float centerY = height / 2f; in testRadialGradientWithFocalPoint() local
84 centerY - 10f, in testRadialGradientWithFocalPoint()
87 centerY, in testRadialGradientWithFocalPoint()
119 float centerY = height / 2f; in testRadialGradientSameStartEndCircles() local
124 centerY, in testRadialGradientSameStartEndCircles()
127 centerY, in testRadialGradientSameStartEndCircles()
274 float centerY = TEST_HEIGHT / 2f; in testMatrixTransformation() local
280 centerY, in testMatrixTransformation()
283 centerY, in testMatrixTransformation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DCameraPreviewView.java44 float centerY = canvas.getHeight() / 2.0f; in onDraw() local
55 int y = (int) centerY - i * GRID_WIDTH; in onDraw()
57 y = (int) centerY + i * GRID_WIDTH; in onDraw()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DFaceView.java86 float centerY = eyesMP.y * scale; in onDraw() local
89 canvas.drawCircle(centerX, centerY, eyesDistance / 2, mPOuterBullsEye); in onDraw()
90 canvas.drawCircle(centerX, centerY, eyesDistance / 6, mPInnerBullsEye); in onDraw()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java267 final float y = rect.centerY(); in testSetMagnificationConfig_expectedConfig()
310 final float y = bounds.centerY(); in testSetConfigWithDefaultModeAndCenter_expectedConfig()
352 final float y = bounds.centerY(); in testSetConfigWithActivatedFalse_expectedConfig()
414 final float y = bounds.centerY(); in testSetFullScreenConfigWithDefaultValues_windowModeEnabled_expectedConfig()
471 final float y = bounds.centerY(); in testResetCurrentMagnification_fullScreenEnabled_expectedConfig()
533 final float y = bounds.centerY(); in testSetWindowModeConfig_connectionReset_expectedResult()
708 (controller1, region, scale, centerX, centerY) -> in testListener()
710 centerY); in testListener()
777 final float y = bounds.centerY(); in testListener_magnificationConfigChangedWithoutAnimation_notifyConfigChanged()
870 final float y = bounds.centerY(); in testListener_transitionFromFullScreenToWindow_notifyConfigChanged()
[all …]
DFullScreenMagnificationControllerTest.java132 final float y = rect.centerY(); in zoomIn()
/cts/tests/openglperf2/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp121 float centerY = 0.0f; in setUp() local
130 mViewMatrix = Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); in setUp()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DTextBoundsInfoMethodTest.java279 final float lastCharCenterY = lastCharRect.centerY(); in testGetOffsetForPosition_LTR()
302 final float lastCharCenterY = lastCharRect.centerY(); in testGetOffsetForPosition_RTL()
934 final float centerY = getCharacterCenterY(textBoundsInfo, index); in assertGetOffsetForCharacterLeft() local
936 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.left, centerY)) in assertGetOffsetForCharacterLeft()
938 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.left + 1f, centerY)) in assertGetOffsetForCharacterLeft()
940 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.left - 1f, centerY)) in assertGetOffsetForCharacterLeft()
954 final float centerY = characterBounds.centerY(); in assertGetOffsetForCharacterRight() local
956 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.right, centerY)) in assertGetOffsetForCharacterRight()
958 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.right + 1f, centerY)) in assertGetOffsetForCharacterRight()
960 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.right - 1f, centerY)) in assertGetOffsetForCharacterRight()
[all …]
/cts/tests/openglperf2/jni/graphics/
DMatrix.h42 float centerY, float centerZ, float upX, float upY, float upZ);
DMatrix.cpp133 float centerY, float centerZ, float upX, float upY, float upZ) { in newLookAt() argument
140 float fy = centerY - eyeY; in newLookAt()
/cts/tests/openglperf2/jni/reference/scene/glowing/
DGlowingScene.cpp88 float centerY = 0.0f; in setUpViewMatrix() local
97 return Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); in setUpViewMatrix()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUiAutomatorUtils.java195 getUiDevice().drag(scrollableBounds.centerX(), scrollableBounds.centerY(), in scrollPastCollapsibleToolbar()
196 scrollableBounds.centerX(), scrollableBounds.centerY() - distanceToSwipe, in scrollPastCollapsibleToolbar()
DUiAutomatorUtils2.java224 getUiDevice().swipe(scrollableBounds.centerX(), scrollableBounds.centerY(), in scrollPastCollapsibleToolbar()
225 scrollableBounds.centerX(), scrollableBounds.centerY() - distanceToSwipe, in scrollPastCollapsibleToolbar()
/cts/tests/openglperf2/jni/reference/scene/flocking/
DFlockingScene.cpp83 float centerY = 0.0f; in setUpViewMatrix() local
92 return Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); in setUpViewMatrix()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java281 float centerY; in testSetGradientCenter() local
284 centerY = 0.5f; in testSetGradientCenter()
286 assertEquals(centerY, gradientDrawable.getGradientCenterY(), 0.01f); in testSetGradientCenter()
289 centerY = -0.5f; in testSetGradientCenter()
290 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
292 assertEquals(centerY, gradientDrawable.getGradientCenterY(), 0.01f); in testSetGradientCenter()
295 centerY = 0.0f; in testSetGradientCenter()
296 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
298 assertEquals(centerY, gradientDrawable.getGradientCenterY(), 0.01f); in testSetGradientCenter()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java198 float centerY = viewRect.centerY(); in updatePreviewDisplayRotation() local
199 bufRect.offset(centerX - bufRect.centerX(), centerY - bufRect.centerY()); in updatePreviewDisplayRotation()
205 transformMatrix.postRotate((360 - rotationDegrees) % 360, centerX, centerY); in updatePreviewDisplayRotation()
215 transformMatrix.postScale(scale, scale, centerX, centerY); in updatePreviewDisplayRotation()
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureStrokeTest.java114 assertEquals(LineGestureStrokeHelper.LINE_MIDWAY_POINT, box.centerY); in testComputeOrientedBoundingBox()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DMathsUtils.java88 float centerX, float centerY, float centerZ, in setLookAtM() argument
94 float zAxisY = eyeY - centerY; in setLookAtM()
/cts/tests/input/src/android/input/cts/
DInputInjectionTest.kt226 bounds.centerX().toFloat(), bounds.centerY().toFloat(), 0)) in <lambda>()
230 bounds.centerX().toFloat(), bounds.centerY().toFloat(), 0)) in <lambda>()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java258 final int centerY = bitmap.getHeight() / 2; in assertCenterPixelOfColor() local
259 final @ColorInt int colorAtCenterPixel = bitmap.getPixel(centerX, centerY); in assertCenterPixelOfColor()
265 + " but at position (" + centerX + "," + centerY + ") out of (" in assertCenterPixelOfColor()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java430 assertEquals(15.0f, mRectF.centerY(), 0.0f); in testCenterY()
432 assertEquals(15.25f, mRectF.centerY(), 0.0f); in testCenterY()
434 assertEquals(15.2f, mRectF.centerY(), 0.0f); in testCenterY()
DRectTest.java370 assertEquals(15, mRect.centerY()); in testCenterY()
372 assertEquals(15, mRect.centerY()); in testCenterY()
374 assertEquals(16, mRect.centerY()); in testCenterY()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java147 mIsAutomated = (mCoordinateX == rect.centerX()) && (mCoornidateY == rect.centerY()); in onListItemClick()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowLoginActivityTest.java163 tapPointAndExpectWindowEvent(emptyActivityBounds.centerX(), emptyActivityBounds.centerY());
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java544 new Point(i, viewBoundary.centerY())); in swipeAllOfVerticalLinesFromTopToBottom()
551 new Point(theRightestLine, viewBoundary.centerY())); in swipeAllOfVerticalLinesFromTopToBottom()
569 new Point(i, viewBoundary.centerY())); in swipeAllOfVerticalLinesFromBottomToTop()
576 new Point(theRightestLine, viewBoundary.centerY())); in swipeAllOfVerticalLinesFromBottomToTop()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java182 areaOfActivityWindowOnDisplay.centerY(); in touchDisplay()

12