Lines Matching refs:testCase

1871     PreviewTestCase testCase;  in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()  local
1873 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1879 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1886 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1892 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1900 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1905 ret = testCase.closeCamera(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1913 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1919 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2179 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local
2181 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2187 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2194 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2201 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2212 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2220 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2225 ANativeWindow* previewAnw = testCase.initPreviewAnw(env, jPreviewSurface); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2231 CaptureSessionListener* sessionListener = testCase.getSessionListener(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2239 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2253 testCase.closeSession(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2266 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2272 testCase.closeSession(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2281 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2289 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2295 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2317 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate() local
2330 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2336 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2343 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2350 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2361 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2369 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2374 previewAnw = testCase.initPreviewAnw(env, jPreviewSurface); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2380 ret = testCase.createCaptureSessionWithLog(true); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2386 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2392 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2400 previewOutput = testCase.getPreviewOutput(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2423 ret = testCase.updateOutput(env, previewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2430 testCase.getCameraDevice(), TEMPLATE_PREVIEW, &updatedRequest); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2467 ret = testCase.updateRepeatingRequest(updatedRequest, &sequenceId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2483 ret = testCase.updateOutput(env, previewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2498 ret = testCase.updateRepeatingRequest(updatedRequest); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2506 lastFrameNumber = testCase.getCaptureSequenceLastFrameNumber(sequenceId, timeoutSec); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2513 frameArrived = testCase.waitForFrameNumber(lastFrameNumber, timeoutSec); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2520 ret = testCase.updateOutput(env, previewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2528 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2536 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2542 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2586 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative() local
2588 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2594 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2601 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2608 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2619 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2627 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2632 ANativeWindow* previewAnw = testCase.initPreviewAnw(env, jPreviewSurface); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2638 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2644 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2650 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2658 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2666 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2672 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2696 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative() local
2698 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2704 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2711 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2735 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2743 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2748 ANativeWindow* previewAnw = testCase.initPreviewAnw(env, jPreviewSurface); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2754 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2761 ret = testCase.getPreviewRequest(&previewRequest); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2767 ret = testCase.createCaptureSessionWithLog(/*isPreviewShared*/ false, previewRequest); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2773 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2781 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2789 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2798 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2828 PreviewTestCase testCase; in nativeCameraDeviceLogicalPhysicalStreaming() local
2834 camera_status_t ret = testCase.initWithErrorLog(); in nativeCameraDeviceLogicalPhysicalStreaming()
2840 numCameras = testCase.getNumCameras(); in nativeCameraDeviceLogicalPhysicalStreaming()
2847 const char* cameraId = testCase.getCameraId(i); in nativeCameraDeviceLogicalPhysicalStreaming()
2857 chars = testCase.getCameraChars(i); in nativeCameraDeviceLogicalPhysicalStreaming()
2877 ACameraMetadata* physicalChars = testCase.getCameraChars(physicalCameraIds[i]); in nativeCameraDeviceLogicalPhysicalStreaming()
2913 ret = testCase.openCamera(cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
2921 if (testCase.isCameraAvailable(cameraId)) { in nativeCameraDeviceLogicalPhysicalStreaming()
2943 mediaRet = testCase.initImageReaderWithErrorLog( in nativeCameraDeviceLogicalPhysicalStreaming()
2973 ANativeWindow* previewAnw = testCase.initPreviewAnw(env, jPreviewSurface); in nativeCameraDeviceLogicalPhysicalStreaming()
2979 ret = testCase.createCaptureSessionWithLog(readerSessionOutputs, false /*isPreviewShared*/, in nativeCameraDeviceLogicalPhysicalStreaming()
2985 testCase.closeCamera(); in nativeCameraDeviceLogicalPhysicalStreaming()
2986 testCase.resetCamera(); in nativeCameraDeviceLogicalPhysicalStreaming()
2996 ret = testCase.createRequestsWithErrorLog(readerOutputs, &nullCameraIdList); in nativeCameraDeviceLogicalPhysicalStreaming()
3006 ret = testCase.createRequestsWithErrorLog(readerOutputs, &invalidCameraIdList); in nativeCameraDeviceLogicalPhysicalStreaming()
3014 ret = testCase.createRequestsWithErrorLog(readerOutputs, &physicalCameraIdList); in nativeCameraDeviceLogicalPhysicalStreaming()
3016 ret = testCase.createRequestsWithErrorLog(readerOutputs); in nativeCameraDeviceLogicalPhysicalStreaming()
3024 ret = testCase.getPreviewRequest(&previewRequest); in nativeCameraDeviceLogicalPhysicalStreaming()
3031 ret = testCase.startPreview(&sequenceId, 2, candidateIds.data()); in nativeCameraDeviceLogicalPhysicalStreaming()
3039 ret = testCase.stopPreview(); in nativeCameraDeviceLogicalPhysicalStreaming()
3047 lastFrameNumber = testCase.getCaptureSequenceLastFrameNumber(sequenceId, timeoutSec); in nativeCameraDeviceLogicalPhysicalStreaming()
3054 frameArrived = testCase.waitForFrameNumber(lastFrameNumber, timeoutSec); in nativeCameraDeviceLogicalPhysicalStreaming()
3061 ret = testCase.resetWithErrorLog(); in nativeCameraDeviceLogicalPhysicalStreaming()
3069 if (!testCase.isCameraAvailable(cameraId)) { in nativeCameraDeviceLogicalPhysicalStreaming()
3075 ret = testCase.deInit(); in nativeCameraDeviceLogicalPhysicalStreaming()
3119 PreviewTestCase testCase; in nativeImageReaderTestBase() local
3128 camera_status_t ret = testCase.initWithErrorLog(); in nativeImageReaderTestBase()
3134 numCameras = testCase.getNumCameras(); in nativeImageReaderTestBase()
3141 const char* cameraId = testCase.getCameraId(i); in nativeImageReaderTestBase()
3148 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in nativeImageReaderTestBase()
3159 ret = testCase.openCamera(cameraId); in nativeImageReaderTestBase()
3165 chars = testCase.getCameraChars(i); in nativeImageReaderTestBase()
3174 if (testCase.isCameraAvailable(cameraId)) { in nativeImageReaderTestBase()
3196 ret = testCase.closeCamera(); in nativeImageReaderTestBase()
3209 mediaRet = testCase.initImageReaderWithErrorLog( in nativeImageReaderTestBase()
3217 ret = testCase.createCaptureSessionWithLog(); in nativeImageReaderTestBase()
3223 ret = testCase.createRequestsWithErrorLog(); in nativeImageReaderTestBase()
3242 ret = testCase.getStillRequest(&requestTemplate); in nativeImageReaderTestBase()
3254 ret = testCase.capture(req, &resultCb, &seqId); in nativeImageReaderTestBase()
3332 ret = testCase.resetWithErrorLog(); in nativeImageReaderTestBase()
3340 if (!testCase.isCameraAvailable(cameraId)) { in nativeImageReaderTestBase()
3346 ret = testCase.deInit(); in nativeImageReaderTestBase()
3385 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative() local
3389 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3395 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3402 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3408 std::unique_ptr<ACameraMetadata> chars(testCase.getCameraChars(i)); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3419 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3425 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3433 mediaRet = testCase.initImageReaderWithErrorLog(TEST_WIDTH, TEST_HEIGHT, in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3440 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3446 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3464 ret = testCase.getStillRequest(&requestTemplate); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3471 ret = testCase.startRepeatingRequest(&seqId, requestTemplate, &resultCb); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3501 ret = testCase.stopPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3507 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3515 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3527 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3713 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative() local
3719 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3725 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3732 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3739 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3750 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3756 chars = testCase.getCameraChars(i); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3765 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3776 mediaRet = testCase.initImageReaderWithErrorLog( in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3784 ANativeWindow* previewAnw = testCase.initPreviewAnw(env, jPreviewSurface); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3790 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3796 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3802 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3813 ret = testCase.takePicture(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3860 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3868 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3874 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()