Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewExtensionPreviewTest.java75 BlockingExtensionSessionCallback sessionListener = in testExtensionPreview() local
80 new HandlerExecutor(mHandler), sessionListener); in testExtensionPreview()
89 sessionListener.waitAndGetSession( in testExtensionPreview()
127 sessionListener.getStateWaiter().waitForState( in testExtensionPreview()
DCameraExtensionSessionTest.java223 BlockingExtensionSessionCallback sessionListener = in testBasicExtensionLifecycle() local
228 new HandlerExecutor(mTestRule.getHandler()), sessionListener); in testBasicExtensionLifecycle()
234 CameraExtensionSession extensionSession = sessionListener.waitAndGetSession( in testBasicExtensionLifecycle()
238 sessionListener.getStateWaiter().waitForState( in testBasicExtensionLifecycle()
277 BlockingExtensionSessionCallback sessionListener = in testCloseCaptureSession() local
282 new HandlerExecutor(mTestRule.getHandler()), sessionListener); in testCloseCaptureSession()
295 CameraExtensionSession extensionSession = sessionListener.waitAndGetSession( in testCloseCaptureSession()
304 sessionListener.getStateWaiter().waitForState( in testCloseCaptureSession()
343 BlockingExtensionSessionCallback sessionListener = in testCloseExtensionSession() local
348 new HandlerExecutor(mTestRule.getHandler()), sessionListener); in testCloseExtensionSession()
[all …]
DSurfaceViewPreviewTest.java361 BlockingSessionCallback sessionListener = in surfaceEqualityTestByCamera() local
364 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
365 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in surfaceEqualityTestByCamera()
380 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in surfaceEqualityTestByCamera()
397 sessionListener = new BlockingSessionCallback(); in surfaceEqualityTestByCamera()
399 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
502 BlockingSessionCallback sessionListener = in testDeferredSurfacesByCamera() local
505 mSession = configureCameraSessionWithConfig(mCamera, outputSurfaces, sessionListener, in testDeferredSurfacesByCamera()
507 sessionListener.getStateWaiter().waitForState(BlockingSessionCallback.SESSION_READY, in testDeferredSurfacesByCamera()
DCameraDeviceSetupTest.java228 CameraCaptureSession.StateCallback sessionListener = new BlockingSessionCallback(); in testSessionCharacteristics() local
235 new CameraTestUtils.HandlerExecutor(mHandler), sessionListener); in testSessionCharacteristics()
334 CameraCaptureSession.StateCallback sessionListener = new BlockingSessionCallback(); in checkSessionCharacteristicsForNoCallbackConfig() local
336 sessionConfigNoCallback.setStateCallback(executor, sessionListener); in checkSessionCharacteristicsForNoCallbackConfig()
340 sessionListener, sessionConfigNoCallback.getStateCallback()); in checkSessionCharacteristicsForNoCallbackConfig()
DRobustnessTest.java170 CameraCaptureSession.StateCallback sessionListener = in testBadSurfaceDimensions() local
173 surfaces, sessionListener, mHandler); in testBadSurfaceDimensions()
175 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testBadSurfaceDimensions()
177 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testBadSurfaceDimensions()
179 verify(sessionListener, never()).onConfigureFailed(any(CameraCaptureSession.class)); in testBadSurfaceDimensions()
180 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testBadSurfaceDimensions()
181 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testBadSurfaceDimensions()
1013 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in testMandatoryReprocessableStreamCombination() local
1015 inputConfig, allOutputSurfaces, sessionListener, mHandler); in testMandatoryReprocessableStreamCombination()
1883 CameraCaptureSession.StateCallback sessionListener = in testConfigureAbandonedSurface() local
[all …]
DLogicalCameraDeviceTest.java147 CameraCaptureSession.StateCallback sessionListener = in testInvalidPhysicalCameraIdInOutputConfiguration() local
170 sessionListener, mHandler); in testInvalidPhysicalCameraIdInOutputConfiguration()
171 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()). in testInvalidPhysicalCameraIdInOutputConfiguration()
173 verify(sessionListener, never()).onConfigured(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
174 verify(sessionListener, never()).onReady(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
175 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
176 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testInvalidPhysicalCameraIdInOutputConfiguration()
DOfflineSessionTest.java819 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in camera2UnsupportedOfflineOutputTest() local
820 mCamera.createCaptureSessionByOutputConfigurations(outputList, sessionListener, mHandler); in camera2UnsupportedOfflineOutputTest()
821 CameraCaptureSession session = sessionListener.waitAndGetSession( in camera2UnsupportedOfflineOutputTest()
DCameraDeviceTest.java1010 OnReadyCaptureStateCallback sessionListener = new OnReadyCaptureStateCallback(); in testSessionParametersStateLeakByCamera() local
1013 mSessionMockListener = spy(new BlockingSessionCallback(sessionListener)); in testSessionParametersStateLeakByCamera()
1030 sessionListener.waitForOnReady(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera()
1081 sessionListener.waitForOnReady(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera()
1256 MultipleSessionCallback sessionListener = in testCreateSessionsByCamera() local
1261 mCamera.createCaptureSession(outputs, sessionListener, mHandler); in testCreateSessionsByCamera()
1265 allSessions = sessionListener.getAllSessions(NUM_SESSIONS, in testCreateSessionsByCamera()
1272 sessionListener.waitForSessionClose(allSessions.get(i), SESSION_TIMEOUT_MS); in testCreateSessionsByCamera()
DPerformanceTest.java598 final MultipleCaptureStateCallback sessionListener = new MultipleCaptureStateCallback(); in testMultipleCapture() local
656 sessionListener, NUM_MAX_IMAGES, imageListener, in testMultipleCapture()
688 sessionListener.waitForCaptureQueueEmpty( in testMultipleCapture()
1887 CaptureCallback resultListener, CameraCaptureSession.StateCallback sessionListener,
1909 if (sessionListener == null) {
1912 mTestRule.setCameraSessionListener(new BlockingSessionCallback(sessionListener));
DMultiResolutionReprocessCaptureTest.java385 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in testMultiResolutionMandatoryStreamCombination() local
387 mCamera, inputConfig, outputConfigs, sessionListener, mHandler); in testMultiResolutionMandatoryStreamCombination()
DExtendedCameraCharacteristicsTest.java570 CameraCaptureSession.StateCallback sessionListener = in testSPerfClassJpegSizesByCamera() local
573 camera, outputConfigs, sessionListener, mHandler); in testSPerfClassJpegSizesByCamera()
575 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()) in testSPerfClassJpegSizesByCamera()
577 verify(sessionListener, timeout(CONFIGURE_TIMEOUT).atLeastOnce()) in testSPerfClassJpegSizesByCamera()
579 verify(sessionListener, never()).onConfigureFailed(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera()
580 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera()
581 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera()
DRecordingTest.java589 BlockingSessionCallback sessionListener = in testBasic10BitRecording() local
610 new HandlerExecutor(mHandler), sessionListener); in testBasic10BitRecording()
613 CameraCaptureSession session = sessionListener.waitAndGetSession( in testBasic10BitRecording()
DDngCreatorTest.java991 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in captureReprocessedRawShot() local
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInstallerArchiveTest.java485 SessionListener sessionListener = new SessionListener(); in unarchiveApp() local
486 mPackageInstaller.registerSessionCallback(sessionListener, in unarchiveApp()
497 int draftSessionId = sessionListener.mSessionIdCreated.get(5, TimeUnit.SECONDS); in unarchiveApp()
582 SessionListener sessionListener = new SessionListener(); in reportUnarchivalState_success() local
583 mPackageInstaller.registerSessionCallback(sessionListener, in reportUnarchivalState_success()
619 SessionListener sessionListener = new SessionListener(); in reportUnarchivalState_error() local
620 mPackageInstaller.registerSessionCallback(sessionListener, in reportUnarchivalState_error()
629 int draftSessionId = sessionListener.mSessionIdCreated.get(10, TimeUnit.MILLISECONDS); in reportUnarchivalState_error()
642 assertThat(sessionListener.mSessionIdFinished.get(5, TimeUnit.SECONDS)).isEqualTo( in reportUnarchivalState_error()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1487 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in configureCameraSession() local
1490 sessionListener, handler); in configureCameraSession()
1492 camera.createCaptureSession(outputSurfaces, sessionListener, handler); in configureCameraSession()
1495 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in configureCameraSession()
1518 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in buildConstrainedCameraSession() local
1526 new HandlerExecutor(handler), sessionListener); in buildConstrainedCameraSession()
1531 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in buildConstrainedCameraSession()
1552 BlockingSessionCallback sessionListener = new BlockingSessionCallback(listener); in configureCameraSessionWithConfig() local
1553 camera.createCaptureSessionByOutputConfigurations(outputs, sessionListener, handler); in configureCameraSessionWithConfig()
1555 sessionListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in configureCameraSessionWithConfig()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java517 BlockingSessionCallback sessionListener = new BlockingSessionCallback(); in verifyCreateSessionWithConfigsFailure() local
519 mCamera, configs, sessionListener, mHandler); in verifyCreateSessionWithConfigsFailure()
523 int state = sessionListener.getStateWaiter().waitForAnyOfStates( in verifyCreateSessionWithConfigsFailure()
DCamera2SurfaceViewTestCase.java773 CaptureCallback resultListener, CameraCaptureSession.StateCallback sessionListener, in prepareCaptureAndStartPreview() argument
790 if (sessionListener == null) { in prepareCaptureAndStartPreview()
793 mSessionListener = new BlockingSessionCallback(sessionListener); in prepareCaptureAndStartPreview()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java3110 BlockingSessionCallback sessionListener = new BlockingSessionCallback();
3130 sessionListener, zoomRatio, aeTargetFpsMin, aeTargetFpsMax,
3157 sessionListener.getStateWaiter().waitForState(
3293 BlockingSessionCallback sessionListener = new BlockingSessionCallback();
3301 sessionListener.onConfigured(session);
3306 sessionListener.onReady(session);
3312 sessionListener.onConfigureFailed(session);
3317 sessionListener.onClosed(session);
3324 sessionListener.getStateWaiter().waitForState(
3384 sessionListener.getStateWaiter().waitForState(
[all …]
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp2660 CaptureSessionListener* sessionListener = testCase.getSessionListener(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local
2661 if (sessionListener == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2676 if (!sessionListener->isIdle()) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2685 if (!sessionListener->isClosed() || sessionListener->onClosedCount() != 1) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2688 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2691 sessionListener->reset(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2703 if (!sessionListener->isClosed() || sessionListener->onClosedCount() != 1) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2706 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DArchiveTest.java261 SessionListener sessionListener = new SessionListener(); in unarchiveApp_weakPermissions() local
262 mPackageInstaller.registerSessionCallback(sessionListener, in unarchiveApp_weakPermissions()