Home
last modified time | relevance | path

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

12

/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/src/android/media/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()
DMediaMetadataRetrieverTest.java750 bitmap.getPixel(r.centerX(), r.centerY())))); in testGetImage()
756 bitmap.getPixel(r.centerX(), height - r.centerY())))); in testGetImage()
765 bitmap.getPixel(r.centerX(), height - r.centerY())))); in testGetImage()
774 bitmap.getPixel(r.centerX(), height - r.centerY())))); in testGetImage()
DHeifWriterTest.java658 Color.valueOf(bitmap.getPixel(r.centerX(), r.centerY())))); in verifyResult()
663 Color.valueOf(bitmap.getPixel(r.centerX(), height - r.centerY())))); in verifyResult()
DImageReaderDecoderTest.java671 area.offset(crop.centerX() - area.left, 2 * (crop.centerY() - area.centerY())); in validateSwirl()
/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/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java278 float centerY; in testSetGradientCenter() local
281 centerY = 0.5f; in testSetGradientCenter()
283 assertEquals(centerY, gradientDrawable.getGradientCenterY(), 0.01f); in testSetGradientCenter()
286 centerY = -0.5f; in testSetGradientCenter()
287 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
289 assertEquals(centerY, gradientDrawable.getGradientCenterY(), 0.01f); in testSetGradientCenter()
292 centerY = 0.0f; in testSetGradientCenter()
293 gradientDrawable.setGradientCenter(centerX, centerY); in testSetGradientCenter()
295 assertEquals(centerY, gradientDrawable.getGradientCenterY(), 0.01f); in testSetGradientCenter()
/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/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java200 float centerY = viewRect.centerY(); in updatePreviewDisplayRotation() local
201 bufRect.offset(centerX - bufRect.centerX(), centerY - bufRect.centerY()); in updatePreviewDisplayRotation()
207 transformMatrix.postRotate((360 - rotationDegrees) % 360, centerX, centerY); in updatePreviewDisplayRotation()
217 transformMatrix.postScale(scale, scale, centerX, centerY); in updatePreviewDisplayRotation()
/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/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/test/
DMatrixTest.cpp145 float centerY = 0.0f; in TEST() local
154 Matrix* m = Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, in TEST()
/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/tests/gesture/src/android/gesture/cts/
DGestureStrokeTest.java114 assertEquals(LineGestureStrokeHelper.LINE_MIDWAY_POINT, box.centerY); in testComputeOrientedBoundingBox()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java468 new Point(i, viewBoundary.centerY())); in dragAllOfVerticalLinesFromTopToBottom()
475 new Point(theRightestLine, viewBoundary.centerY())); in dragAllOfVerticalLinesFromTopToBottom()
493 new Point(i, viewBoundary.centerY())); in dragAllOfVerticalLinesFromBottomToTop()
500 new Point(theRightestLine, viewBoundary.centerY())); in dragAllOfVerticalLinesFromBottomToTop()
/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/
DRectTest.java369 assertEquals(15, mRect.centerY()); in testCenterY()
371 assertEquals(15, mRect.centerY()); in testCenterY()
373 assertEquals(16, mRect.centerY()); in testCenterY()
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()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DMagnificationGestureHandlerTest.java118 (controller, region, scale, centerX, centerY) -> { in setUp()
120 mCurrentZoomCenter = isZoomed() ? new PointF(centerX, centerY) : null; in setUp()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java580 jpegRect.centerY() - jpegIntermediate.centerY()); in validateRawJpegImagePair()
584 rawRect.centerY() - rawIntermediate.centerY()); in validateRawJpegImagePair()
DImageReaderTest.java603 yuvDimens.centerY() - tempPatch.centerY()); in testAllOutputYUVResolutions()
609 jpegDimens.centerY() - tempPatch.centerY()); in testAllOutputYUVResolutions()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java503 formattedMsg, "too low", "too high", actual.centerY(), expected.centerY(), in expectRectsAreSimilar()
563 formattedMsg, "too low", "too high", actual.centerY(), centerBoundY, in expectRectCentered()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DCrossAppDragAndDropTests.java163 return new Point(bounds.centerX(), bounds.centerY()); in getWindowCenter()
DMultiDisplayTestBase.java244 tapOnDisplay(bounds.centerX(), bounds.centerY(), displayId); in tapOnDisplayCenter()

12