Home
last modified time | relevance | path

Searched refs:halfHeight (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DUtility.cpp50 float *Utility::buildOrthographicMatrix(float *outMatrix, float halfHeight, float aspect, in buildOrthographicMatrix() argument
52 float halfWidth = halfHeight * aspect; in buildOrthographicMatrix()
62 outMatrix[5] = 1.f / halfHeight; in buildOrthographicMatrix()
DUtility.h41 static float *buildOrthographicMatrix(float *outMatrix, float halfHeight, float aspect,
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DASurfaceControlTest.java816 int halfHeight = DEFAULT_LAYOUT_HEIGHT / 2; in testSurfaceTransaction_setSourceRect()
817 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect()
819 } else if (x >= halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect()
821 } else if (x < halfWidth && y >= halfHeight) { in testSurfaceTransaction_setSourceRect()
918 int halfHeight = DEFAULT_LAYOUT_HEIGHT / 2; in testSurfaceTransaction_setSourceRect_extraLarge()
919 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect_extraLarge()
921 } else if (x >= halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect_extraLarge()
923 } else if (x < halfWidth && y >= halfHeight) { in testSurfaceTransaction_setSourceRect_extraLarge()
973 int halfHeight = DEFAULT_LAYOUT_HEIGHT / 2; in testSurfaceTransaction_setTransform_flipH()
974 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setTransform_flipH()
[all …]
DSurfaceSyncGroupTests.java201 int halfHeight = swBitmap.getHeight() / 2; in validateScreenshot() local
204 Rect bounds = new Rect(halfWidth, halfHeight, halfWidth + 10, halfHeight + 10); in validateScreenshot()
DSurfaceControlTest.java822 int halfHeight = DEFAULT_LAYOUT_HEIGHT / 2; in testSurfaceTransaction_setSourceRect()
823 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect()
825 } else if (x >= halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect()
827 } else if (x < halfWidth && y >= halfHeight) { in testSurfaceTransaction_setSourceRect()
877 int halfHeight = DEFAULT_LAYOUT_HEIGHT / 2; in testSurfaceTransaction_setSourceRect_smallCentered()
878 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect_smallCentered()
880 } else if (x >= halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect_smallCentered()
882 } else if (x < halfWidth && y >= halfHeight) { in testSurfaceTransaction_setSourceRect_smallCentered()
918 int halfHeight = DEFAULT_LAYOUT_HEIGHT / 2; in testSurfaceTransaction_setCropRect_extraLarge()
919 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setCropRect_extraLarge()
[all …]
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraCaptureTest.java229 int halfHeight = CAMERA_HEIGHT / 2; in virtualCamera_captureDownscaled_succeeds() local
235 halfHeight)) { in virtualCamera_captureDownscaled_succeeds() argument
241 assertThat(image.getHeight()).isEqualTo(halfHeight); in virtualCamera_captureDownscaled_succeeds()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java1416 float halfHeight = magnifyBounds.height() / (2.0f * scale); in getMagnifiedArea() local
1419 (int) (centerY - halfHeight), in getMagnifiedArea()
1421 (int) (centerY + halfHeight)); in getMagnifiedArea()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1013 int halfHeight = display.getHeight() /2; in testGetGlobalVisibleRectPoint() local
1016 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRectPoint()
1023 assertEquals(rect.top + halfHeight, rect.bottom); in testGetGlobalVisibleRectPoint()
1056 int halfHeight = display.getHeight() /2; in testGetGlobalVisibleRect() local
1059 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRect()
1066 assertEquals(rect.top + halfHeight, rect.bottom); in testGetGlobalVisibleRect()
2968 int halfHeight = display.getHeight() /2; in testGetLocalVisibleRect() local
2971 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetLocalVisibleRect()
2981 assertEquals(halfHeight - 30, rect.bottom); in testGetLocalVisibleRect()