/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_CameraVulkanGpuTest.cpp | 57 ImageReaderHelper imageReader(kTestImageWidth, kTestImageHeight, in loadCameraAndVerifyFrameImport() local 61 ASSERT(imageReader.initImageReader() >= 0, in loadCameraAndVerifyFrameImport() 63 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImport() 70 int ret = imageReader.getBufferFromCurrentImage(&buffer); in loadCameraAndVerifyFrameImport() 73 ret = imageReader.getBufferFromCurrentImage(&buffer); in loadCameraAndVerifyFrameImport() 103 ImageReaderHelper imageReader(kTestImageWidth, kTestImageHeight, in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() local 107 ASSERT(imageReader.initImageReader() >= 0, in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() 109 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() 116 int ret = imageReader.getBufferFromCurrentImage(&buffer); in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() 119 ret = imageReader.getBufferFromCurrentImage(&buffer); in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
|
D | android_graphics_cts_MediaVulkanGpuTest.cpp | 81 ImageReaderHelper imageReader(kTestImageWidth, kTestImageHeight, in loadMediaAndVerifyFrameImport() local 84 ASSERT(imageReader.initImageReader() >= 0, in loadMediaAndVerifyFrameImport() 87 ASSERT(media.init(env, assetMgr, jfilename, imageReader.getNativeWindow()), in loadMediaAndVerifyFrameImport() 94 int ret = imageReader.getBufferFromCurrentImage(&buffer); in loadMediaAndVerifyFrameImport() 97 ret = imageReader.getBufferFromCurrentImage(&buffer); in loadMediaAndVerifyFrameImport()
|
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/ |
D | VideoDecodingWrapper.java | 64 private final ImageReader imageReader; field in VideoDecodingWrapper 119 imageReader = in VideoDecodingWrapper() 121 imageReader.setOnImageAvailableListener( in VideoDecodingWrapper() 122 imageReader -> imageAvailableConditionVariable.open(), mainThreadHandler); in VideoDecodingWrapper() 140 mediaFormat, imageReader.getSurface(), /* crypto= */ null, /* flags= */ 0); in runUntilComparisonFrameOrEnded() 152 return imageReader.acquireLatestImage(); in runUntilComparisonFrameOrEnded() 223 imageReader.close(); in close()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraCaptureTest.java | 158 try (ImageReader imageReader = createImageReader(YUV_420_888)) { in virtualCamera_inputBuffer_doesntBlock() argument 159 Image image = captureImage(cameraId, imageReader, in virtualCamera_inputBuffer_doesntBlock() 188 try (ImageReader imageReader = createImageReader(outputPixelFormat)) { in virtualCamera_captureImage_succeeds() argument 189 Image image = captureImage(cameraId, imageReader, in virtualCamera_captureImage_succeeds() 210 try (ImageReader imageReader = createImageReader(outputPixelFormat)) { in virtualCamera_captureWithNoInput_capturesBlackImage() argument 211 Image image = captureImage(cameraId, imageReader, in virtualCamera_captureWithNoInput_capturesBlackImage() 234 try (ImageReader imageReader = createImageReader(outputPixelFormat, halfWidth, in virtualCamera_captureDownscaled_succeeds() argument 236 Image image = captureImage(cameraId, imageReader, in virtualCamera_captureDownscaled_succeeds() 255 try (ImageReader imageReader = ImageReader.newInstance(width, height, JPEG, in virtualCamera_renderFromMediaCodec() argument 258 Image image = captureImage(cameraId, imageReader, in virtualCamera_renderFromMediaCodec()
|
D | VirtualCameraTest.java | 698 try (ImageReader imageReader = createImageReader(YUV_420_888)) { in vdContext_legacyCameraPreview_withVirtualCamera() argument 703 camera.setPreviewSurface(imageReader.getSurface()); in vdContext_legacyCameraPreview_withVirtualCamera()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayManagerTest.java | 117 ImageReader imageReader = ImageReader.newInstance(displayBounds.width(), in testCreateVirtualDisplayFromShell() local 122 imageReader.setOnImageAvailableListener(new OnImageAvailableListener(image -> { in testCreateVirtualDisplayFromShell() 148 imageReader.setOnImageAvailableListener(null, null); in testCreateVirtualDisplayFromShell() 156 imageReader.getSurface()); in testCreateVirtualDisplayFromShell() 159 imageReader.close(); in testCreateVirtualDisplayFromShell()
|
/cts/tests/tests/media/projection/sdk33/src/android/media/projection/ |
D | MediaProjectionSDK33Test.java | 172 mImageReader.setOnImageAvailableListener((ImageReader imageReader) -> in testCreateVirtualDisplay_reusedResultData_reshowsPermissionDialog() 234 mSecondImageReader.setOnImageAvailableListener((ImageReader imageReader) -> in testCreateVirtualDisplay_reusedMediaProjection_reshowPermissionDialog() 280 private static void cleanupImageReader(ImageReader imageReader) { in cleanupImageReader() argument 281 if (imageReader != null) { in cleanupImageReader() 282 imageReader.close(); in cleanupImageReader() 283 imageReader = null; in cleanupImageReader()
|
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/ |
D | Utils.kt | 94 val imageReader = ImageReader.newInstance( in openCam() constant 98 builder.addTarget(imageReader.surface) in openCam() 102 listOf(OutputConfiguration(imageReader.surface)), in openCam()
|
/cts/tests/input/src/android/input/cts/ |
D | TouchModeTest.kt | 72 private var imageReader: ImageReader? = null in <lambda>() variable in android.input.cts.TouchModeTest 108 val reader = imageReader in <lambda>() 364 imageReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2) in <lambda>() 365 val reader = imageReader in <lambda>()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 787 ImageReader imageReader = ImageReader.newInstance(yuvSize.getWidth(), yuvSize.getHeight(), in testCreateCustomSessionByCamera() local 795 outputs.add(new OutputConfiguration(imageReader.getSurface())); in testCreateCustomSessionByCamera() 803 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testCreateCustomSessionByCamera() 807 builder.addTarget(imageReader.getSurface()); in testCreateCustomSessionByCamera() 834 imageReader.close(); in testCreateCustomSessionByCamera() 968 ImageReader imageReader = ImageReader.newInstance(outputSize.getWidth(), in testSessionParametersStateLeakByCamera() local 1016 outputs.add(new OutputConfiguration(imageReader.getSurface())); in testSessionParametersStateLeakByCamera() 1023 builder.addTarget(imageReader.getSurface()); in testSessionParametersStateLeakByCamera() 1034 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testSessionParametersStateLeakByCamera() 1077 requestBuilder.addTarget(imageReader.getSurface()); in testSessionParametersStateLeakByCamera() [all …]
|
D | LogicalCameraDeviceTest.java | 144 ImageReader imageReader = ImageReader.newInstance(yuvSize.getWidth(), in testInvalidPhysicalCameraIdInOutputConfiguration() local 151 imageReader.getSurface()); in testInvalidPhysicalCameraIdInOutputConfiguration() 153 new OutputConfiguration(imageReader.getSurface()); in testInvalidPhysicalCameraIdInOutputConfiguration() 637 ImageReader imageReader = CameraTestUtils.makeImageReader(yuvSize, in testLogicalCameraZoomSwitch() local 642 OutputConfiguration config = new OutputConfiguration(imageReader.getSurface()); in testLogicalCameraZoomSwitch() 659 requestBuilder.addTarget(imageReader.getSurface()); in testLogicalCameraZoomSwitch() 767 CameraTestUtils.closeImageReader(imageReader); in testLogicalCameraZoomSwitch()
|
D | MultiViewTest.java | 1210 String cameraId, List<TextureView> views, ImageReader imageReader) in startTextureViewPreview() argument 1232 if (imageReader != null) { in startTextureViewPreview() 1233 surfaces.add(imageReader.getSurface()); in startTextureViewPreview() 1311 ImageReader imageReader = makeImageReader(previewSize, ImageFormat.YUV_420_888, in testSharedSurfacesConfigByCamera() local 1317 configuration.addSurface(imageReader.getSurface()); in testSharedSurfacesConfigByCamera() 1338 configuration.addSurface(imageReader.getSurface()); in testSharedSurfacesConfigByCamera()
|
D | CameraDeviceSetupTest.java | 226 try (ImageReader imageReader = ImageReader.newInstance(outputSize.getWidth(), in testSessionCharacteristics() argument 231 outputs.add(new OutputConfiguration(imageReader.getSurface())); in testSessionCharacteristics() 239 builder.addTarget(imageReader.getSurface()); in testSessionCharacteristics()
|
D | RobustnessTest.java | 153 ImageReader imageReader = ImageReader.newInstance(weirdSize.getWidth(), in testBadSurfaceDimensions() local 158 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testBadSurfaceDimensions() 160 Surface surface = imageReader.getSurface(); in testBadSurfaceDimensions() 200 imageReader.close(); in testBadSurfaceDimensions()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpsLoggingTest.kt | 803 val imageReader = ImageReader.newInstance( in nativeNoteOp() constant 807 builder.addTarget(imageReader.surface) in nativeNoteOp() 811 listOf(OutputConfiguration(imageReader.surface)), in nativeNoteOp() 821 imageReader.setOnImageAvailableListener({ in nativeNoteOp()
|