Home
last modified time | relevance | path

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

/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.java232 float centerX = drawRect.left + dstWidth / 2; in drawContents() local
233 canvas.drawLine(centerX, drawRect.top, centerX, drawRect.bottom, paint); in drawContents()
/cts/tests/tests/media/src/android/media/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()
DMediaMetadataRetrieverTest.java684 bitmap.getPixel(r.centerX(), r.centerY())))); in testGetImage()
690 bitmap.getPixel(r.centerX(), height - r.centerY())))); in testGetImage()
699 bitmap.getPixel(r.centerX(), height - r.centerY())))); in testGetImage()
708 bitmap.getPixel(r.centerX(), height - r.centerY())))); in testGetImage()
DHeifWriterTest.java621 Color.valueOf(bitmap.getPixel(r.centerX(), r.centerY())))); in verifyResult()
626 Color.valueOf(bitmap.getPixel(r.centerX(), height - r.centerY())))); in verifyResult()
DImageReaderDecoderTest.java668 area.offset(crop.centerX() - area.left, 2 * (crop.centerY() - area.centerY())); in validateSwirl()
/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/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java272 float centerX; in testSetGradientCenter() local
275 centerX = 0.5f; in testSetGradientCenter()
277 assertEquals(centerX, gradientDrawable.getGradientCenterX(), 0.01f); in testSetGradientCenter()
280 centerX = -0.5f; in testSetGradientCenter()
282 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
283 assertEquals(centerX, gradientDrawable.getGradientCenterX(), 0.01f); in testSetGradientCenter()
286 centerX = 0.0f; in testSetGradientCenter()
288 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
289 assertEquals(centerX, gradientDrawable.getGradientCenterX(), 0.01f); in testSetGradientCenter()
/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/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java195 float centerX = viewRect.centerX(); in updatePreviewDisplayRotation() local
197 bufRect.offset(centerX - bufRect.centerX(), centerY - bufRect.centerY()); in updatePreviewDisplayRotation()
203 transformMatrix.postRotate((360 - rotationDegrees) % 360, centerX, centerY); in updatePreviewDisplayRotation()
213 transformMatrix.postScale(scale, scale, centerX, centerY); in updatePreviewDisplayRotation()
/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/openglperf2/test/
DMatrixTest.cpp144 float centerX = 0.0f; in TEST() local
154 Matrix* m = Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, in TEST()
/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/tests/graphics/src/android/graphics/cts/
DRectTest.java404 assertEquals(15, mRect.centerX()); in testCenterX()
406 assertEquals(15, mRect.centerX()); in testCenterX()
408 assertEquals(16, mRect.centerX()); in testCenterX()
DRectFTest.java419 assertEquals(15.0f, mRectF.centerX(), 0.0f); in testCenterX()
421 assertEquals(15.25f, mRectF.centerX(), 0.0f); in testCenterX()
423 assertEquals(15.2f, mRectF.centerX(), 0.0f); in testCenterX()
/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/accessibilityservice/src/android/accessibilityservice/cts/
DMagnificationGestureHandlerTest.java115 (controller, region, scale, centerX, centerY) -> { in setUp()
117 mCurrentZoomCenter = isZoomed() ? new PointF(centerX, centerY) : null; in setUp()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java583 jpegIntermediate.offset(jpegRect.centerX() - jpegIntermediate.centerX(), in validateRawJpegImagePair()
587 rawIntermediate.offset(rawRect.centerX() - rawIntermediate.centerX(), in validateRawJpegImagePair()
DImageReaderTest.java475 tempPatch.offset(yuvDimens.centerX() - tempPatch.centerX(), in testAllOutputYUVResolutions()
481 tempPatch.offset(jpegDimens.centerX() - tempPatch.centerX(), in testAllOutputYUVResolutions()
DStillCaptureTest.java1432 int centerX = activeArraySize.width() / 2; in get3ARegionTestCasesForCamera() local
1441 centerX - regionWidth / 2, // x in get3ARegionTestCasesForCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java507 formattedMsg, "too right", "too left", actual.centerX(), expected.centerX(), in expectRectsAreSimilar()
567 formattedMsg, "too right", "too left", actual.centerX(), centerBoundX, in expectRectCentered()