Home
last modified time | relevance | path

Searched refs:sessionListener (Results 1 – 10 of 10) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java388 BlockingSessionCallback sessionListener = in surfaceEqualityTestByCamera() local
391 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
392 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in surfaceEqualityTestByCamera()
407 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in surfaceEqualityTestByCamera()
424 sessionListener = new BlockingSessionCallback(); in surfaceEqualityTestByCamera()
426 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
542 BlockingSessionCallback sessionListener = in testDeferredSurfacesByCamera() local
545 mSession = configureCameraSessionWithConfig(mCamera, outputSurfaces, sessionListener, in testDeferredSurfacesByCamera()
547 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in testDeferredSurfacesByCamera()
DRobustnessTest.java123 CameraCaptureSession.StateCallback sessionListener = in testBadSurfaceDimensions() local
126 surfaces, sessionListener, mHandler); in testBadSurfaceDimensions()
128 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testBadSurfaceDimensions()
130 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testBadSurfaceDimensions()
132 verify(sessionListener, never()).onConfigureFailed(any(CameraCaptureSession.class)); in testBadSurfaceDimensions()
133 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testBadSurfaceDimensions()
134 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testBadSurfaceDimensions()
628 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in testMandatoryReprocessableStreamCombination() local
630 inputConfig, outputSurfaces, sessionListener, mHandler); in testMandatoryReprocessableStreamCombination()
1477 CameraCaptureSession.StateCallback sessionListener = in testConfigureAbandonedSurface() local
[all …]
DLogicalCameraDeviceTest.java128 CameraCaptureSession.StateCallback sessionListener = in testInvalidPhysicalCameraIdInOutputConfiguration() local
151 sessionListener, mHandler); in testInvalidPhysicalCameraIdInOutputConfiguration()
152 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testInvalidPhysicalCameraIdInOutputConfiguration()
154 verify(sessionListener, never()).onConfigured(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
155 verify(sessionListener, never()).onReady(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
156 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
157 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
DPerformanceTest.java520 final MultipleCaptureStateCallback sessionListener = new MultipleCaptureStateCallback(); in testMultipleCapture() local
572 sessionListener, NUM_MAX_IMAGES, imageListener); in testMultipleCapture()
602 sessionListener.waitForCaptureQueueEmpty( in testMultipleCapture()
1215 CaptureCallback resultListener, CameraCaptureSession.StateCallback sessionListener, in prepareCaptureAndStartPreview() argument
1236 if (sessionListener == null) { in prepareCaptureAndStartPreview()
1239 mCameraSessionListener = new BlockingSessionCallback(sessionListener); in prepareCaptureAndStartPreview()
DCameraDeviceTest.java975 OnReadyCaptureStateCallback sessionListener = new OnReadyCaptureStateCallback(); in testSessionParametersStateLeakByCamera() local
978 mSessionMockListener = spy(new BlockingSessionCallback(sessionListener)); in testSessionParametersStateLeakByCamera()
995 sessionListener.waitForOnReady(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera()
1046 sessionListener.waitForOnReady(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera()
1224 MultipleSessionCallback sessionListener = in testCreateSessionsByCamera() local
1229 mCamera.createCaptureSession(outputs, sessionListener, mHandler); in testCreateSessionsByCamera()
1233 allSessions = sessionListener.getAllSessions(NUM_SESSIONS, in testCreateSessionsByCamera()
1240 sessionListener.waitForSessionClose(allSessions.get(i), SESSION_TIMEOUT_MS); in testCreateSessionsByCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java773 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in configureCameraSession() local
776 sessionListener, handler); in configureCameraSession()
778 camera.createCaptureSession(outputSurfaces, sessionListener, handler); in configureCameraSession()
781 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in configureCameraSession()
804 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in buildConstrainedCameraSession() local
812 new HandlerExecutor(handler), sessionListener); in buildConstrainedCameraSession()
817 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in buildConstrainedCameraSession()
838 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in configureCameraSessionWithConfig() local
839 camera.createCaptureSessionByOutputConfigurations(outputs, sessionListener, handler); in configureCameraSessionWithConfig()
841 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in configureCameraSessionWithConfig()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java1008 BlockingSessionCallback sessionListener = new BlockingSessionCallback();
1011 new HandlerExecutor(mCameraHandler), sessionListener);
1098 BlockingSessionCallback sessionListener = new BlockingSessionCallback();
1100 outputConfigs, sessionListener, mCameraHandler);
1101 mSession = sessionListener.waitAndGetSession(TIMEOUT_IDLE_MS);
1476 BlockingSessionCallback sessionListener = new BlockingSessionCallback();
1506 sessionListener, mCameraHandler);
1507 mSession = sessionListener.waitAndGetSession(TIMEOUT_IDLE_MS);
1576 sessionListener.getStateWaiter().waitForState(
1657 BlockingSessionCallback sessionListener = new BlockingSessionCallback();
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java534 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in verifyCreateSessionWithConfigsFailure() local
536 mCamera, configs, sessionListener, mHandler); in verifyCreateSessionWithConfigsFailure()
540 int state = sessionListener.getStateWaiter().waitForAnyOfStates( in verifyCreateSessionWithConfigsFailure()
DCamera2SurfaceViewTestCase.java784 CaptureCallback resultListener, CameraCaptureSession.StateCallback sessionListener, in prepareCaptureAndStartPreview() argument
801 if (sessionListener == null) { in prepareCaptureAndStartPreview()
804 mSessionListener = new BlockingSessionCallback(sessionListener); in prepareCaptureAndStartPreview()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp2231 CaptureSessionListener* sessionListener = testCase.getSessionListener(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local
2232 if (sessionListener == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2247 if (!sessionListener->isIdle()) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2256 if (!sessionListener->isClosed() || sessionListener->onClosedCount() != 1) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2259 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2262 sessionListener->reset(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2274 if (!sessionListener->isClosed() || sessionListener->onClosedCount() != 1) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2277 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()