Home
last modified time | relevance | path

Searched refs:centerX (Results 1 – 25 of 48) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DCameraPreviewView.java43 float centerX = canvas.getWidth() / 2.0f; in onDraw() local
48 canvas.drawLine(centerX, 0, centerX, canvas.getHeight(), mPaint); in onDraw()
61 int x = (int) centerX - i * GRID_WIDTH; in onDraw()
63 x = (int) centerX + i * GRID_WIDTH; in onDraw()
DDetermineFovActivity.java256 float centerX = drawRect.left + dstWidth / 2; in drawContents() local
257 canvas.drawLine(centerX, drawRect.top, centerX, drawRect.bottom, paint); in drawContents()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DGradientTests.java79 float centerX = width / 2f; in testRadialGradientWithFocalPoint() local
83 centerX - 10f, in testRadialGradientWithFocalPoint()
86 centerX, in testRadialGradientWithFocalPoint()
118 float centerX = width / 2f; in testRadialGradientSameStartEndCircles() local
123 centerX, in testRadialGradientSameStartEndCircles()
126 centerX, in testRadialGradientSameStartEndCircles()
273 float centerX = TEST_WIDTH / 2f; in testMatrixTransformation() local
279 centerX, in testMatrixTransformation()
282 centerX, in testMatrixTransformation()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DFaceView.java85 float centerX = eyesMP.x * 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.java266 final float x = rect.centerX(); in testSetMagnificationConfig_expectedConfig()
309 final float x = bounds.centerX(); in testSetConfigWithDefaultModeAndCenter_expectedConfig()
351 final float x = bounds.centerX(); in testSetConfigWithActivatedFalse_expectedConfig()
413 final float x = bounds.centerX(); in testSetFullScreenConfigWithDefaultValues_windowModeEnabled_expectedConfig()
470 final float x = bounds.centerX(); in testResetCurrentMagnification_fullScreenEnabled_expectedConfig()
532 final float x = bounds.centerX(); in testSetWindowModeConfig_connectionReset_expectedResult()
708 (controller1, region, scale, centerX, centerY) -> in testListener()
709 spyListener.onMagnificationChanged(controller1, region, scale, centerX, in testListener()
776 final float x = bounds.centerX(); in testListener_magnificationConfigChangedWithoutAnimation_notifyConfigChanged()
869 final float x = bounds.centerX(); in testListener_transitionFromFullScreenToWindow_notifyConfigChanged()
[all …]
DFullScreenMagnificationControllerTest.java131 final float x = rect.centerX(); in zoomIn()
/cts/tests/openglperf2/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp120 float centerX = 0.0f; in setUp() local
130 mViewMatrix = Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); in setUp()
/cts/tests/openglperf2/jni/graphics/
DMatrix.h41 static Matrix* newLookAt(float eyeX, float eyeY, float eyeZ, float centerX,
DMatrix.cpp132 Matrix* Matrix::newLookAt(float eyeX, float eyeY, float eyeZ, float centerX, in newLookAt() argument
139 float fx = centerX - eyeX; in newLookAt()
/cts/tests/openglperf2/jni/reference/scene/glowing/
DGlowingScene.cpp87 float centerX = 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.cpp82 float centerX = 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.java280 float centerX; in testSetGradientCenter() local
283 centerX = 0.5f; in testSetGradientCenter()
285 assertEquals(centerX, gradientDrawable.getGradientCenterX(), 0.01f); in testSetGradientCenter()
288 centerX = -0.5f; in testSetGradientCenter()
290 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
291 assertEquals(centerX, gradientDrawable.getGradientCenterX(), 0.01f); in testSetGradientCenter()
294 centerX = 0.0f; in testSetGradientCenter()
296 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
297 assertEquals(centerX, gradientDrawable.getGradientCenterX(), 0.01f); in testSetGradientCenter()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java197 float centerX = viewRect.centerX(); 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.java113 assertEquals(LineGestureStrokeHelper.LINE_MIDWAY_POINT, box.centerX); in testComputeOrientedBoundingBox()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DMathsUtils.java88 float centerX, float centerY, float centerZ, in setLookAtM() argument
93 float zAxisX = eyeX - centerX; 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.java257 final int centerX = bitmap.getWidth() / 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/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/
DUserRestrictionInstallTest.kt480 val centerX = uiDevice.displayWidth / 2 in <lambda>() constant
482 uiDevice.swipe(centerX, centerY, centerX, 0, 10) in <lambda>()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java420 assertEquals(15.0f, mRectF.centerX(), 0.0f); in testCenterX()
422 assertEquals(15.25f, mRectF.centerX(), 0.0f); in testCenterX()
424 assertEquals(15.2f, mRectF.centerX(), 0.0f); in testCenterX()
DRectTest.java406 assertEquals(15, mRect.centerX()); in testCenterX()
408 assertEquals(15, mRect.centerX()); in testCenterX()
410 assertEquals(16, mRect.centerX()); in testCenterX()
/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.java485 new Point(viewBoundary.centerX(), i)); in swipeAllOfHorizontalLinesFromLeftToRight()
492 new Point(viewBoundary.centerX(), theBottomestLine)); in swipeAllOfHorizontalLinesFromLeftToRight()
510 new Point(viewBoundary.centerX(), i)); in swipeAllOfHorizontalLinesFromRightToLeft()
517 new Point(viewBoundary.centerX(), theBottomestLine)); in swipeAllOfHorizontalLinesFromRightToLeft()

12