Lines Matching refs:cameraId

58     static void onAvailable(void* obj, const char* cameraId) {  in onAvailable()  argument
59 ALOGV("Camera %s onAvailable", cameraId); in onAvailable()
66 thiz->mAvailableMap[cameraId] = true; in onAvailable()
70 static void onUnavailable(void* obj, const char* cameraId) { in onUnavailable() argument
71 ALOGV("Camera %s onUnavailable", cameraId); in onUnavailable()
78 thiz->mAvailableMap[cameraId] = false; in onUnavailable()
117 bool isAvailable(const char* cameraId) { in isAvailable() argument
119 if (mAvailableMap.count(cameraId) == 0) { in isAvailable()
122 return mAvailableMap[cameraId]; in isAvailable()
989 camera_status_t openCamera(const char* cameraId) { in openCamera() argument
994 mCameraId = cameraId; in openCamera()
995 return ACameraManager_openCamera(mCameraManager, cameraId, &mDeviceCb, &mDevice); in openCamera()
1004 bool isCameraAvailable(const char* cameraId) { in isCameraAvailable() argument
1008 return mServiceListener.isAvailable(cameraId); in isCameraAvailable()
1886 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() local
1887 if (cameraId == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1892 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1894 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1900 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1901 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1907 LOG_ERROR(errorString, "Close camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1913 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1914 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1950 const char* cameraId = cameraIdList->cameraIds[i]; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative() local
1956 ret = ACameraManager_openCamera(mgr, cameraId, &deviceCb, &device); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1958 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1962 ret = ACameraManager_getCameraCharacteristics(mgr, cameraId, &chars); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1965 cameraId, ret, chars); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2039 ret = ACaptureRequest_getConstEntry_physicalCamera(request, cameraId, in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2073 "fail. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2077 request, cameraId, ACAMERA_CONTROL_AE_MODE, /*count*/ 1, &aeMode); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2080 "fail. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2088 cameraId, t, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2120 cameraId, t, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2194 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local
2195 if (cameraId == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2201 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2205 __FUNCTION__, cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2212 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2214 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2220 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2221 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2233 LOG_ERROR(errorString, "Session listener camera %s is null", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2249 cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2259 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2269 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2277 cameraId, sessionListener->isClosed(), sessionListener->onClosedCount()); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2289 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2290 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2343 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate() local
2344 if (cameraId == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2350 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2354 __FUNCTION__, cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2361 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2363 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2369 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2370 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2433 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2441 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2448 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2456 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2463 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2470 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2494 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2501 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2509 cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2516 cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2536 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2537 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2601 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative() local
2602 if (cameraId == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2608 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2612 __FUNCTION__, cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2619 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2621 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2627 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2628 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2666 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2667 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2711 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative() local
2712 if (cameraId == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2718 mgr, cameraId, &chars); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2735 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2737 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2743 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2744 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2789 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2790 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2847 const char* cameraId = testCase.getCameraId(i); in nativeCameraDeviceLogicalPhysicalStreaming() local
2848 if (cameraId == nullptr) { in nativeCameraDeviceLogicalPhysicalStreaming()
2859 LOG_ERROR(errorString, "Get camera %s characteristics failure", cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
2871 cameraId, physicalCameraCnt); in nativeCameraDeviceLogicalPhysicalStreaming()
2913 ret = testCase.openCamera(cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
2915 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in nativeCameraDeviceLogicalPhysicalStreaming()
2921 if (testCase.isCameraAvailable(cameraId)) { in nativeCameraDeviceLogicalPhysicalStreaming()
2922 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
3050 cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
3057 cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
3069 if (!testCase.isCameraAvailable(cameraId)) { in nativeCameraDeviceLogicalPhysicalStreaming()
3070 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
3141 const char* cameraId = testCase.getCameraId(i); in nativeImageReaderTestBase() local
3142 if (cameraId == nullptr) { in nativeImageReaderTestBase()
3148 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in nativeImageReaderTestBase()
3152 __FUNCTION__, cameraId); in nativeImageReaderTestBase()
3159 ret = testCase.openCamera(cameraId); in nativeImageReaderTestBase()
3161 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in nativeImageReaderTestBase()
3167 LOG_ERROR(errorString, "Get camera %s characteristics failure", cameraId); in nativeImageReaderTestBase()
3174 if (testCase.isCameraAvailable(cameraId)) { in nativeImageReaderTestBase()
3175 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in nativeImageReaderTestBase()
3198 LOG_ERROR(errorString, "Camera %s failed to close. ret %d ", cameraId, ret); in nativeImageReaderTestBase()
3257 cameraId, capture, ret); in nativeImageReaderTestBase()
3274 cameraId, NUM_TEST_IMAGES, completedRequests.size()); in nativeImageReaderTestBase()
3282 LOG_ERROR(errorString, "Camera %s fails to get request user context", cameraId); in nativeImageReaderTestBase()
3288 "Expect %" PRIdPTR ", got %" PRIdPTR, cameraId, i, userContext); in nativeImageReaderTestBase()
3296 LOG_ERROR(errorString, "Get camera %s minFrameDuration failed", cameraId); in nativeImageReaderTestBase()
3302 LOG_ERROR(errorString, "Get camera %s stallDuration failed", cameraId); in nativeImageReaderTestBase()
3328 cameraId, NUM_TEST_IMAGES, readerListener.onImageAvailableCount()); in nativeImageReaderTestBase()
3340 if (!testCase.isCameraAvailable(cameraId)) { in nativeImageReaderTestBase()
3341 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in nativeImageReaderTestBase()
3402 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative() local
3403 if (cameraId == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3410 LOG_ERROR(errorString, "Get camera %s characteristics failure", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3419 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3421 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3425 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3426 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3485 cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3515 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3516 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3732 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative() local
3733 if (cameraId == nullptr) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3739 ACameraMetadata* chars = testCase.getCameraChars(cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3743 __FUNCTION__, cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3750 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3752 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3758 LOG_ERROR(errorString, "Get camera %s characteristics failure", cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3765 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3766 LOG_ERROR(errorString, "Camera %s should be unavailable now", cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3816 cameraId, capture, ret); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3824 LOG_ERROR(errorString, "Get camera %s minFrameDuration failed", cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3830 LOG_ERROR(errorString, "Get camera %s stallDuration failed", cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3856 cameraId, NUM_TEST_IMAGES, readerListener.onImageAvailableCount()); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3868 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3869 LOG_ERROR(errorString, "Camera %s should be available now", cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()