/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraExtensionSessionTest.java | 151 BlockingExtensionSessionCallback sessionListener = in testBasicExtensionLifecycle() local 156 new HandlerExecutor(mTestRule.getHandler()), sessionListener); in testBasicExtensionLifecycle() 162 CameraExtensionSession extensionSession = sessionListener.waitAndGetSession( in testBasicExtensionLifecycle() 166 sessionListener.getStateWaiter().waitForState( in testBasicExtensionLifecycle() 206 BlockingExtensionSessionCallback sessionListener = in testCloseCaptureSession() local 211 new HandlerExecutor(mTestRule.getHandler()), sessionListener); in testCloseCaptureSession() 224 CameraExtensionSession extensionSession = sessionListener.waitAndGetSession( in testCloseCaptureSession() 233 sessionListener.getStateWaiter().waitForState( in testCloseCaptureSession() 273 BlockingExtensionSessionCallback sessionListener = in testCloseExtensionSession() local 278 new HandlerExecutor(mTestRule.getHandler()), sessionListener); in testCloseExtensionSession() [all …]
|
D | SurfaceViewPreviewTest.java | 360 BlockingSessionCallback sessionListener = in surfaceEqualityTestByCamera() local 363 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera() 364 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in surfaceEqualityTestByCamera() 379 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in surfaceEqualityTestByCamera() 396 sessionListener = new BlockingSessionCallback(); in surfaceEqualityTestByCamera() 398 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera() 514 BlockingSessionCallback sessionListener = in testDeferredSurfacesByCamera() local 517 mSession = configureCameraSessionWithConfig(mCamera, outputSurfaces, sessionListener, in testDeferredSurfacesByCamera() 519 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in testDeferredSurfacesByCamera()
|
D | RobustnessTest.java | 138 CameraCaptureSession.StateCallback sessionListener = in testBadSurfaceDimensions() local 141 surfaces, sessionListener, mHandler); in testBadSurfaceDimensions() 143 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testBadSurfaceDimensions() 145 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testBadSurfaceDimensions() 147 verify(sessionListener, never()).onConfigureFailed(any(CameraCaptureSession.class)); in testBadSurfaceDimensions() 148 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testBadSurfaceDimensions() 149 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testBadSurfaceDimensions() 647 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in testMandatoryReprocessableStreamCombination() local 649 inputConfig, allOutputSurfaces, sessionListener, mHandler); in testMandatoryReprocessableStreamCombination() 1515 CameraCaptureSession.StateCallback sessionListener = in testConfigureAbandonedSurface() local [all …]
|
D | LogicalCameraDeviceTest.java | 138 CameraCaptureSession.StateCallback sessionListener = in testInvalidPhysicalCameraIdInOutputConfiguration() local 161 sessionListener, mHandler); in testInvalidPhysicalCameraIdInOutputConfiguration() 162 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testInvalidPhysicalCameraIdInOutputConfiguration() 164 verify(sessionListener, never()).onConfigured(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration() 165 verify(sessionListener, never()).onReady(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration() 166 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration() 167 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
|
D | CameraDeviceTest.java | 996 OnReadyCaptureStateCallback sessionListener = new OnReadyCaptureStateCallback(); in testSessionParametersStateLeakByCamera() local 999 mSessionMockListener = spy(new BlockingSessionCallback(sessionListener)); in testSessionParametersStateLeakByCamera() 1016 sessionListener.waitForOnReady(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera() 1067 sessionListener.waitForOnReady(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera() 1246 MultipleSessionCallback sessionListener = in testCreateSessionsByCamera() local 1251 mCamera.createCaptureSession(outputs, sessionListener, mHandler); in testCreateSessionsByCamera() 1255 allSessions = sessionListener.getAllSessions(NUM_SESSIONS, in testCreateSessionsByCamera() 1262 sessionListener.waitForSessionClose(allSessions.get(i), SESSION_TIMEOUT_MS); in testCreateSessionsByCamera()
|
D | MultiResolutionReprocessCaptureTest.java | 385 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in testMultiResolutionMandatoryStreamCombination() local 387 mCamera, inputConfig, outputConfigs, sessionListener, mHandler); in testMultiResolutionMandatoryStreamCombination()
|
D | DngCreatorTest.java | 1000 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in captureReprocessedRawShot() local
|
/cts/tests/camera/api31test/src/android/camera/cts/api31test/ |
D | SPerfClassTest.java | 163 CameraCaptureSession.StateCallback sessionListener = in testSPerfClassJpegSizesByCamera() local 166 camera, outputConfigs, sessionListener, mHandler); in testSPerfClassJpegSizesByCamera() 168 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testSPerfClassJpegSizesByCamera() 170 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testSPerfClassJpegSizesByCamera() 172 verify(sessionListener, never()).onConfigureFailed(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera() 173 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera() 174 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1246 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in configureCameraSession() local 1249 sessionListener, handler); in configureCameraSession() 1251 camera.createCaptureSession(outputSurfaces, sessionListener, handler); in configureCameraSession() 1254 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in configureCameraSession() 1277 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in buildConstrainedCameraSession() local 1285 new HandlerExecutor(handler), sessionListener); in buildConstrainedCameraSession() 1290 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in buildConstrainedCameraSession() 1311 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in configureCameraSessionWithConfig() local 1312 camera.createCaptureSessionByOutputConfigurations(outputs, sessionListener, handler); in configureCameraSessionWithConfig() 1314 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in configureCameraSessionWithConfig() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 497 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in verifyCreateSessionWithConfigsFailure() local 499 mCamera, configs, sessionListener, mHandler); in verifyCreateSessionWithConfigsFailure() 503 int state = sessionListener.getStateWaiter().waitForAnyOfStates( in verifyCreateSessionWithConfigsFailure()
|
D | Camera2SurfaceViewTestCase.java | 772 CaptureCallback resultListener, CameraCaptureSession.StateCallback sessionListener, in prepareCaptureAndStartPreview() argument 789 if (sessionListener == null) { in prepareCaptureAndStartPreview() 792 mSessionListener = new BlockingSessionCallback(sessionListener); in prepareCaptureAndStartPreview()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsService.java | 1060 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); 1063 new HandlerExecutor(mCameraHandler), sessionListener); 1245 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); 1247 outputConfigs, sessionListener, mCameraHandler); 1248 mSession = sessionListener.waitAndGetSession(TIMEOUT_IDLE_MS); 1645 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); 1675 sessionListener, mCameraHandler); 1676 mSession = sessionListener.waitAndGetSession(TIMEOUT_IDLE_MS); 1745 sessionListener.getStateWaiter().waitForState( 1826 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); [all …]
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 2503 CaptureSessionListener* sessionListener = testCase.getSessionListener(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local 2504 if (sessionListener == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() 2519 if (!sessionListener->isIdle()) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() 2528 if (!sessionListener->isClosed() || sessionListener->onClosedCount() != 1) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() 2531 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() 2534 sessionListener->reset(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() 2546 if (!sessionListener->isClosed() || sessionListener->onClosedCount() != 1) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() 2549 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
|