Home
last modified time | relevance | path

Searched refs:halfWidth (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DUtility.cpp52 float halfWidth = halfHeight * aspect; in buildOrthographicMatrix() local
55 outMatrix[0] = 1.f / halfWidth; in buildOrthographicMatrix()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DASurfaceControlTest.java815 int halfWidth = DEFAULT_LAYOUT_WIDTH / 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()
917 int halfWidth = DEFAULT_LAYOUT_WIDTH / 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()
972 int halfWidth = DEFAULT_LAYOUT_WIDTH / 2; in testSurfaceTransaction_setTransform_flipH()
974 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setTransform_flipH()
[all …]
DSurfaceSyncGroupTests.java200 int halfWidth = swBitmap.getWidth() / 2; in validateScreenshot() local
204 Rect bounds = new Rect(halfWidth, halfHeight, halfWidth + 10, halfHeight + 10); in validateScreenshot()
DSurfaceControlTest.java821 int halfWidth = DEFAULT_LAYOUT_WIDTH / 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()
876 int halfWidth = DEFAULT_LAYOUT_WIDTH / 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()
917 int halfWidth = DEFAULT_LAYOUT_WIDTH / 2; in testSurfaceTransaction_setCropRect_extraLarge()
919 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setCropRect_extraLarge()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DPathClippingTests.java232 int halfWidth = width / 2; in testWebViewClipWithCircle() local
236 canvas.clipRect(0, 0, halfWidth, height); in testWebViewClipWithCircle()
242 canvas.clipRect(halfWidth, 0, width, height); in testWebViewClipWithCircle()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraCaptureTest.java228 int halfWidth = CAMERA_WIDTH / 2; in virtualCamera_captureDownscaled_succeeds() local
234 try (ImageReader imageReader = createImageReader(outputPixelFormat, halfWidth, in virtualCamera_captureDownscaled_succeeds() argument
240 assertThat(image.getWidth()).isEqualTo(halfWidth); in virtualCamera_captureDownscaled_succeeds()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeDecodeTest.java1079 int halfWidth = width / 2; in checkFrame() local
1124 … testU = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2)) & 0xff; in checkFrame()
1125 … testV = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2) + 1) & 0xff; in checkFrame()
1129 testU = frameData.get(off + width*height + (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame()
1130 testV = frameData.get(off + width*height + halfWidth * (height / 2) + in checkFrame()
1131 (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java1415 float halfWidth = magnifyBounds.width() / (2.0f * scale); in getMagnifiedArea() local
1418 (int) (centerX - halfWidth), in getMagnifiedArea()
1420 (int) (centerX + halfWidth), in getMagnifiedArea()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1012 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRectPoint() local
1016 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRectPoint()
1022 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRectPoint()
1055 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRect() local
1059 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRect()
1065 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRect()
2967 int halfWidth = display.getWidth() / 2; in testGetLocalVisibleRect() local
2971 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetLocalVisibleRect()
2980 assertEquals(halfWidth + 20, rect.right); in testGetLocalVisibleRect()