Lines Matching refs:ret

188         camera_status_t ret = ACameraCaptureSession_getDevice(session, &device);  in onReady()  local
190 if (ret != ACAMERA_OK && !thiz->mIsClosed) { in onReady()
208 camera_status_t ret = ACameraCaptureSession_getDevice(session, &device); in onActive() local
209 if (ret != ACAMERA_OK) { in onActive()
296 auto ret = ACameraMetadata_getConstEntry(result, ACAMERA_SYNC_FRAME_NUMBER, &entry); in onCaptureCompleted() local
297 if (ret != ACAMERA_OK) { in onCaptureCompleted()
304 ret = ACameraMetadata_getConstEntry(copy, ACAMERA_SYNC_FRAME_NUMBER, &entryCopy); in onCaptureCompleted()
305 if (ret != ACAMERA_OK) { in onCaptureCompleted()
336 auto ret = ACameraMetadata_getConstEntry(result, ACAMERA_SYNC_FRAME_NUMBER, &entry); in onLogicalCameraCaptureCompleted() local
337 if (ret != ACAMERA_OK) { in onLogicalCameraCaptureCompleted()
344 ret = ACameraMetadata_getConstEntry(copy, ACAMERA_SYNC_FRAME_NUMBER, &entryCopy); in onLogicalCameraCaptureCompleted()
345 if (ret != ACAMERA_OK) { in onLogicalCameraCaptureCompleted()
372 auto ret = ACameraMetadata_getConstEntry(physicalResults[i], ACAMERA_SYNC_FRAME_NUMBER, in onLogicalCameraCaptureCompleted() local
374 if (ret != ACAMERA_OK) { in onLogicalCameraCaptureCompleted()
461 int64_t ret = -1; in getCaptureSequenceLastFrameNumber() local
473 ret = mLastSequenceFrameNumber; in getCaptureSequenceLastFrameNumber()
476 return ret; in getCaptureSequenceLastFrameNumber()
480 bool ret = false; in waitForFrameNumber() local
494 ret = true; in waitForFrameNumber()
497 return ret; in waitForFrameNumber()
580 media_status_t ret = AImageReader_acquireNextImage(reader, &img); in validateImageCb() local
581 if (ret != AMEDIA_OK || img == nullptr) { in validateImageCb()
583 __FUNCTION__, reader, ret, img); in validateImageCb()
589 ret = AImage_getFormat(img, &format); in validateImageCb()
590 if (ret != AMEDIA_OK || format == -1) { in validateImageCb()
592 __FUNCTION__, img, ret, format); in validateImageCb()
598 ret = AImage_getNumberOfPlanes(img, &numPlanes); in validateImageCb()
599 if (ret != AMEDIA_OK || numPlanes != 1) { in validateImageCb()
601 __FUNCTION__, img, ret, numPlanes); in validateImageCb()
607 ret = AImage_getWidth(img, &width); in validateImageCb()
608 if (ret != AMEDIA_OK || width <= 0) { in validateImageCb()
610 __FUNCTION__, img, ret, width); in validateImageCb()
615 ret = AImage_getHeight(img, &height); in validateImageCb()
616 if (ret != AMEDIA_OK || height <= 0) { in validateImageCb()
618 __FUNCTION__, img, ret, height); in validateImageCb()
625 ret = AImage_getPlaneData(img, /*planeIdx*/0, &data, &dataLength); in validateImageCb()
626 if (ret != AMEDIA_OK || data == nullptr || dataLength <= 0) { in validateImageCb()
628 __FUNCTION__, img, ret, data, dataLength); in validateImageCb()
662 media_status_t ret = AImageReader_acquireNextImage(reader, &img); in acquireImageCb() local
663 if (ret != AMEDIA_OK || img == nullptr) { in acquireImageCb()
665 __FUNCTION__, reader, ret, img); in acquireImageCb()
787 auto ret = ACameraMetadata_getConstEntry(mChars, streamConfigTag, &entry); in isSizeSupportedForFormat() local
788 if (ret != ACAMERA_OK) { in isSizeSupportedForFormat()
899 camera_status_t ret = ACameraManager_getCameraIdList( in initWithErrorLog() local
901 if (ret != ACAMERA_OK) { in initWithErrorLog()
902 LOG_ERROR(errorString, "Get camera id list failed: ret %d", ret); in initWithErrorLog()
903 return ret; in initWithErrorLog()
905 ret = ACameraManager_registerAvailabilityCallback(mCameraManager, &mServiceCb); in initWithErrorLog()
906 if (ret != ACAMERA_OK) { in initWithErrorLog()
907 LOG_ERROR(errorString, "Register availability callback failed: ret %d", ret); in initWithErrorLog()
908 return ret; in initWithErrorLog()
919 camera_status_t ret = ACameraManager_unregisterAvailabilityCallback( in deInit() local
921 if (ret != ACAMERA_OK) { in deInit()
922 ALOGE("Unregister availability callback failed: ret %d", ret); in deInit()
923 return ret; in deInit()
955 camera_status_t ret = ACameraManager_getCameraCharacteristics( in getCameraChars() local
957 if (ret != ACAMERA_OK) { in getCameraChars()
958 LOG_ERROR(errorString, "Get camera characteristics failed: ret %d", ret); in getCameraChars()
971 camera_status_t ret = ACameraManager_getCameraCharacteristics(mCameraManager, id, &chars); in getCameraChars() local
972 if (ret != ACAMERA_OK) { in getCameraChars()
973 LOG_ERROR(errorString, "Get camera characteristics failed: ret %d", ret); in getCameraChars()
999 camera_status_t ret = ACameraDevice_close(mDevice); in closeCamera() local
1001 return ret; in closeCamera()
1019 media_status_t ret = initImageReaderWithErrorLog( in initImageReaderWithErrorLog() local
1022 if (ret != AMEDIA_OK) { in initImageReaderWithErrorLog()
1023 return ret; in initImageReaderWithErrorLog()
1035 media_status_t ret = AImageReader_new( in initImageReaderWithErrorLog() local
1038 if (ret != AMEDIA_OK) { in initImageReaderWithErrorLog()
1039 LOG_ERROR(errorString, "Create image reader. ret %d", ret); in initImageReaderWithErrorLog()
1040 return ret; in initImageReaderWithErrorLog()
1047 ret = AImageReader_setImageListener(*imgReader, listener); in initImageReaderWithErrorLog()
1048 if (ret != AMEDIA_OK) { in initImageReaderWithErrorLog()
1049 LOG_ERROR(errorString, "Set AImageReader listener failed. ret %d", ret); in initImageReaderWithErrorLog()
1050 return ret; in initImageReaderWithErrorLog()
1053 ret = AImageReader_getWindow(*imgReader, imgReaderAnw); in initImageReaderWithErrorLog()
1054 if (ret != AMEDIA_OK) { in initImageReaderWithErrorLog()
1055 LOG_ERROR(errorString, "AImageReader_getWindow failed. ret %d", ret); in initImageReaderWithErrorLog()
1056 return ret; in initImageReaderWithErrorLog()
1092 camera_status_t ret = ACaptureSessionOutputContainer_create(outputs); in createCaptureSessionOutputContainer() local
1093 if (ret != ACAMERA_OK) { in createCaptureSessionOutputContainer()
1094 LOG_ERROR(errorString, "Create capture session output container failed. ret %d", ret); in createCaptureSessionOutputContainer()
1095 return ret; in createCaptureSessionOutputContainer()
1099 ret = ACaptureSessionOutput_create(mImgReaderAnw, &mImgReaderOutput); in createCaptureSessionOutputContainer()
1100 if (ret != ACAMERA_OK || mImgReaderOutput == nullptr) { in createCaptureSessionOutputContainer()
1103 ret, mImgReaderOutput); in createCaptureSessionOutputContainer()
1104 if (ret == ACAMERA_OK) { in createCaptureSessionOutputContainer()
1105 ret = ACAMERA_ERROR_UNKNOWN; // ret OK but output is null in createCaptureSessionOutputContainer()
1107 return ret; in createCaptureSessionOutputContainer()
1110 ret = ACaptureSessionOutputContainer_add(*outputs, mImgReaderOutput); in createCaptureSessionOutputContainer()
1111 if (ret != ACAMERA_OK) { in createCaptureSessionOutputContainer()
1112 LOG_ERROR(errorString, "Session image reader output add failed! ret %d", ret); in createCaptureSessionOutputContainer()
1113 return ret; in createCaptureSessionOutputContainer()
1118 ret = ACaptureSessionOutputContainer_add(*outputs, extraOutput); in createCaptureSessionOutputContainer()
1119 if (ret != ACAMERA_OK) { in createCaptureSessionOutputContainer()
1120 LOG_ERROR(errorString, "Session image reader output add failed! ret %d", ret); in createCaptureSessionOutputContainer()
1121 return ret; in createCaptureSessionOutputContainer()
1127 ret = ACaptureSessionSharedOutput_create(mPreviewAnw, &mPreviewOutput); in createCaptureSessionOutputContainer()
1129 ret = ACaptureSessionOutput_create(mPreviewAnw, &mPreviewOutput); in createCaptureSessionOutputContainer()
1131 if (ret != ACAMERA_OK || mPreviewOutput == nullptr) { in createCaptureSessionOutputContainer()
1134 ret, mPreviewOutput); in createCaptureSessionOutputContainer()
1135 if (ret == ACAMERA_OK) { in createCaptureSessionOutputContainer()
1136 ret = ACAMERA_ERROR_UNKNOWN; // ret OK but output is null in createCaptureSessionOutputContainer()
1138 return ret; in createCaptureSessionOutputContainer()
1141 ret = ACaptureSessionOutputContainer_add(*outputs, mPreviewOutput); in createCaptureSessionOutputContainer()
1142 if (ret != ACAMERA_OK) { in createCaptureSessionOutputContainer()
1143 LOG_ERROR(errorString, "Session preview output add failed! ret %d", ret); in createCaptureSessionOutputContainer()
1144 return ret; in createCaptureSessionOutputContainer()
1147 return ret; in createCaptureSessionOutputContainer()
1159 camera_status_t ret = createCaptureSessionOutputContainer( in createCaptureSessionWithLog() local
1161 if (ret != ACAMERA_OK) { in createCaptureSessionWithLog()
1162 LOG_ERROR(errorString, "Failed to create session output container! ret %d", ret); in createCaptureSessionWithLog()
1163 return ret; in createCaptureSessionWithLog()
1166 ret = ACameraDevice_isSessionConfigurationSupported(mDevice, mOutputs); in createCaptureSessionWithLog()
1167 if (ret != ACAMERA_OK && ret != ACAMERA_ERROR_UNSUPPORTED_OPERATION && in createCaptureSessionWithLog()
1168 ret != ACAMERA_ERROR_STREAM_CONFIGURE_FAIL) { in createCaptureSessionWithLog()
1170 ", UNSUPPORTED_OPERATION, or STREAM_CONFIGURE_FAIL, but returns %d", ret); in createCaptureSessionWithLog()
1171 return ret; in createCaptureSessionWithLog()
1176 if (ret != ACAMERA_OK && !sessionConfigurationDefault) { in createCaptureSessionWithLog()
1177 return ret; in createCaptureSessionWithLog()
1180 ret = ACameraDevice_createCaptureSessionWithSessionParameters( in createCaptureSessionWithLog()
1182 if (ret != ACAMERA_OK || mSession == nullptr) { in createCaptureSessionWithLog()
1184 mCameraId, ret, mSession); in createCaptureSessionWithLog()
1185 if (ret == ACAMERA_OK) { in createCaptureSessionWithLog()
1186 ret = ACAMERA_ERROR_UNKNOWN; // ret OK but session is null in createCaptureSessionWithLog()
1188 return ret; in createCaptureSessionWithLog()
1233 camera_status_t ret; in createRequestsWithErrorLog() local
1237 ret = ACameraDevice_createCaptureRequest( in createRequestsWithErrorLog()
1240 ret = ACameraDevice_createCaptureRequest_withPhysicalIds( in createRequestsWithErrorLog()
1243 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1245 mCameraId, ret); in createRequestsWithErrorLog()
1246 return ret; in createRequestsWithErrorLog()
1253 ret = ACaptureRequest_setEntry_physicalCamera_u8(mPreviewRequest, in createRequestsWithErrorLog()
1256 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1259 physicalCameraIdList->cameraIds[i], ret); in createRequestsWithErrorLog()
1260 return ret; in createRequestsWithErrorLog()
1264 ret = ACaptureRequest_getConstEntry_physicalCamera(mPreviewRequest, in createRequestsWithErrorLog()
1267 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1269 " ret %d", physicalCameraIdList->cameraIds[i], ret); in createRequestsWithErrorLog()
1270 return ret; in createRequestsWithErrorLog()
1281 ret = ACameraOutputTarget_create(mPreviewAnw, &mReqPreviewOutput); in createRequestsWithErrorLog()
1282 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1285 mCameraId, ret); in createRequestsWithErrorLog()
1286 return ret; in createRequestsWithErrorLog()
1289 ret = ACaptureRequest_addTarget(mPreviewRequest, mReqPreviewOutput); in createRequestsWithErrorLog()
1290 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1292 mCameraId, ret); in createRequestsWithErrorLog()
1293 return ret; in createRequestsWithErrorLog()
1298 ret = ACaptureRequest_addTarget(mPreviewRequest, extraOutput); in createRequestsWithErrorLog()
1299 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1301 mCameraId, ret); in createRequestsWithErrorLog()
1302 return ret; in createRequestsWithErrorLog()
1310 ret = ACameraDevice_createCaptureRequest( in createRequestsWithErrorLog()
1312 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1314 mCameraId, ret); in createRequestsWithErrorLog()
1315 return ret; in createRequestsWithErrorLog()
1318 ret = ACameraOutputTarget_create(mImgReaderAnw, &mReqImgReaderOutput); in createRequestsWithErrorLog()
1319 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1322 mCameraId, ret); in createRequestsWithErrorLog()
1323 return ret; in createRequestsWithErrorLog()
1326 ret = ACaptureRequest_addTarget(mStillRequest, mReqImgReaderOutput); in createRequestsWithErrorLog()
1327 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1329 mCameraId, ret); in createRequestsWithErrorLog()
1330 return ret; in createRequestsWithErrorLog()
1334 ret = ACaptureRequest_addTarget(mStillRequest, mReqPreviewOutput); in createRequestsWithErrorLog()
1335 if (ret != ACAMERA_OK) { in createRequestsWithErrorLog()
1338 mCameraId, ret); in createRequestsWithErrorLog()
1339 return ret; in createRequestsWithErrorLog()
1376 camera_status_t ret; in startPreview() local
1378 ret = ACameraCaptureSession_setRepeatingRequest( in startPreview()
1381 ret = ACameraCaptureSession_setRepeatingRequest( in startPreview()
1391 ret = ACameraCaptureSession_logicalCamera_setRepeatingRequest( in startPreview()
1394 return ret; in startPreview()
1426 camera_status_t ret; in updateRepeatingRequest() local
1428 ret = ACameraCaptureSession_setRepeatingRequest( in updateRepeatingRequest()
1431 ret = ACameraCaptureSession_setRepeatingRequest( in updateRepeatingRequest()
1434 return ret; in updateRepeatingRequest()
1469 camera_status_t ret; in resetWithErrorLog() local
1490 ret = closeCamera(); in resetWithErrorLog()
1491 if (ret != ACAMERA_OK) { in resetWithErrorLog()
1492 LOG_ERROR(errorString, "Close camera device %s failure. ret %d", mCameraId, ret); in resetWithErrorLog()
1493 return ret; in resetWithErrorLog()
1606 camera_status_t ret = ACAMERA_OK; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative() local
1658 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative() local
1659 if (ret != ACAMERA_OK || cameraIdList == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative()
1661 ret, cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative()
1694 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative() local
1701 ret = ACameraManager_registerAvailabilityCallback(mgr, &cbs); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1702 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1703 LOG_ERROR(errorString, "Register availability callback failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1715 ret = ACameraManager_unregisterAvailabilityCallback(mgr, &cbs); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1716 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1717 LOG_ERROR(errorString, "Unregister availability callback failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1746 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative() local
1747 if (ret != ACAMERA_OK || cameraIdList == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1749 ret, cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1755 ret = ACameraManager_getCameraCharacteristics( in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1757 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1758 LOG_ERROR(errorString, "Get camera characteristics failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1764 ret = ACameraMetadata_getAllTags(chars, &numTags, &tags); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1765 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1766 LOG_ERROR(errorString, "Get camera characteristics tags failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1781 ret = ACameraMetadata_getConstEntry(chars, ACAMERA_REQUEST_AVAILABLE_CAPABILITIES, &entry); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1782 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1783 LOG_ERROR(errorString, "Get const available capabilities key failed. ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1818 ret = ACameraMetadata_getConstEntry( in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1820 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1821 LOG_ERROR(errorString, "Get const available capabilities key failed. ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1835 ret = ACameraMetadata_getConstEntry(chars, badTag, &entry); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1836 if (ret == ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerCharacteristicsNative()
1873 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() local
1874 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1892 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1893 if (ret != ACAMERA_OK) { 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()
1905 ret = testCase.closeCamera(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1906 if (ret != ACAMERA_OK) { 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()
1919 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1920 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1921 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1945 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); 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()
1957 if (ret != ACAMERA_OK) { 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()
1963 if (ret != ACAMERA_OK || chars == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1965 cameraId, ret, chars); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1973 ret = ACameraDevice_createCaptureRequest(device, templateId, &request); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1974 if (ret == ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1979 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1980 LOG_ERROR(errorString, "Create capture request failed!: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1986 ret = ACaptureRequest_getAllTags(request, &numTags, &tags); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1987 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
1988 LOG_ERROR(errorString, "Get capture request tags failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2003 ret = ACaptureRequest_getUserContext(request, &context); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2004 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2005 LOG_ERROR(errorString, "Get capture request context failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2014 ret = ACaptureRequest_setUserContext(request, (void*) magic_num); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2015 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2016 LOG_ERROR(errorString, "Set capture request context failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2020 ret = ACaptureRequest_getUserContext(request, &context); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2021 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2022 LOG_ERROR(errorString, "Get capture request context failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2032 ret = ACaptureRequest_getConstEntry_physicalCamera(request, nullptr, in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2034 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2036 ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2039 ret = ACaptureRequest_getConstEntry_physicalCamera(request, cameraId, in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2041 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2043 ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2046 ret = ACaptureRequest_getConstEntry(request, ACAMERA_CONTROL_AE_MODE, &entry); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2047 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2048 LOG_ERROR(errorString, "Get AE mode key failed. ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2069 ret = ACaptureRequest_setEntry_physicalCamera_u8( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2071 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2073 "fail. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2076 ret = ACaptureRequest_setEntry_physicalCamera_u8( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2078 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2080 "fail. ret %d", cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2083 ret = ACaptureRequest_setEntry_u8( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2085 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2088 cameraId, t, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2091 ret = ACaptureRequest_getConstEntry( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2093 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2094 LOG_ERROR(errorString, "Get AE mode key failed. ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2115 ret = ACaptureRequest_setEntry_u8( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2117 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2120 cameraId, t, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2123 ret = ACaptureRequest_getConstEntry( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2125 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2126 LOG_ERROR(errorString, "Get AE mode key failed. ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCreateCaptureRequestNative()
2181 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local
2182 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2212 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2213 if (ret != ACAMERA_OK) { 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()
2239 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2240 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2266 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2267 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2269 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2281 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2282 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2295 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2296 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2297 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative()
2330 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate() local
2331 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2361 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2362 if (ret != ACAMERA_OK) { 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()
2380 ret = testCase.createCaptureSessionWithLog(true); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2381 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2386 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2387 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2392 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2393 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2402 ret = ACaptureSessionSharedOutput_add(previewOutput, previewAnw); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2403 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2405 "parameter! %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2409 ret = ACaptureSessionSharedOutput_remove(previewOutput, previewAnw); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2410 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2412 "parameter! %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2417 ret = ACaptureSessionSharedOutput_add(previewOutput, sharedAnw); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2418 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2423 ret = testCase.updateOutput(env, previewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2424 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2429 ret = ACameraDevice_createCaptureRequest( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2431 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2433 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2437 ret = ACameraOutputTarget_create(previewAnw, &reqPreviewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2438 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2441 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2445 ret = ACaptureRequest_addTarget(updatedRequest, reqPreviewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2446 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2448 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2452 ret = ACameraOutputTarget_create(sharedAnw, &reqSharedOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2453 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2456 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2460 ret = ACaptureRequest_addTarget(updatedRequest, reqSharedOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2461 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2463 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2467 ret = testCase.updateRepeatingRequest(updatedRequest, &sequenceId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2468 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2470 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2476 ret = ACaptureSessionSharedOutput_remove(previewOutput, sharedAnw); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2477 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2483 ret = testCase.updateOutput(env, previewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2484 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2491 ret = ACaptureRequest_removeTarget(updatedRequest, reqSharedOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2492 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2494 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2498 ret = testCase.updateRepeatingRequest(updatedRequest); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2499 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2501 cameraId, ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2520 ret = testCase.updateOutput(env, previewOutput); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2521 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2528 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2529 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2542 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2543 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2544 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSharedOutputUpdate()
2588 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative() local
2589 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2619 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2620 if (ret != ACAMERA_OK) { 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()
2638 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2639 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2644 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2645 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2650 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2651 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2658 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2659 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2672 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2673 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2674 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSimplePreviewNative()
2698 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative() local
2699 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2717 ret = ACameraManager_getCameraCharacteristics( in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2719 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2720 LOG_ERROR(errorString, "Get camera characteristics failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2726 ret = ACameraMetadata_getConstEntry(chars, ACAMERA_REQUEST_AVAILABLE_SESSION_KEYS, in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2728 if ((ret != ACAMERA_OK) || (sessionParamKeys.count == 0) || in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2735 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2736 if (ret != ACAMERA_OK) { 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()
2754 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2755 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2761 ret = testCase.getPreviewRequest(&previewRequest); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2762 if ((ret != ACAMERA_OK) || (previewRequest == nullptr)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2767 ret = testCase.createCaptureSessionWithLog(/*isPreviewShared*/ false, previewRequest); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2768 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2773 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2774 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2781 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2782 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2798 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2799 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2800 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDevicePreviewWithSessionParametersNative()
2834 camera_status_t ret = testCase.initWithErrorLog(); in nativeCameraDeviceLogicalPhysicalStreaming() local
2835 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
2913 ret = testCase.openCamera(cameraId); in nativeCameraDeviceLogicalPhysicalStreaming()
2914 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
2915 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in nativeCameraDeviceLogicalPhysicalStreaming()
2951 camera_status_t ret = ACaptureSessionPhysicalOutput_create(readerAnw, in nativeCameraDeviceLogicalPhysicalStreaming() local
2953 if (ret != ACAMERA_OK || readerSessionOutput == nullptr) { in nativeCameraDeviceLogicalPhysicalStreaming()
2954 if (ret == ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
2955 ret = ACAMERA_ERROR_UNKNOWN; // ret OK but output is null in nativeCameraDeviceLogicalPhysicalStreaming()
2961 ret = ACameraOutputTarget_create(readerAnw, &readerOutput); in nativeCameraDeviceLogicalPhysicalStreaming()
2962 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
2979 ret = testCase.createCaptureSessionWithLog(readerSessionOutputs, false /*isPreviewShared*/, in nativeCameraDeviceLogicalPhysicalStreaming()
2981 if (ret == ACAMERA_ERROR_UNSUPPORTED_OPERATION || in nativeCameraDeviceLogicalPhysicalStreaming()
2982 ret == ACAMERA_ERROR_STREAM_CONFIGURE_FAIL) { in nativeCameraDeviceLogicalPhysicalStreaming()
2988 } else if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
2996 ret = testCase.createRequestsWithErrorLog(readerOutputs, &nullCameraIdList); in nativeCameraDeviceLogicalPhysicalStreaming()
2997 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in nativeCameraDeviceLogicalPhysicalStreaming()
2999 "ret %d", ret); in nativeCameraDeviceLogicalPhysicalStreaming()
3006 ret = testCase.createRequestsWithErrorLog(readerOutputs, &invalidCameraIdList); in nativeCameraDeviceLogicalPhysicalStreaming()
3007 if (ret != ACAMERA_ERROR_INVALID_PARAMETER) { in nativeCameraDeviceLogicalPhysicalStreaming()
3009 "createCaptureRequest. ret %d", ret); in nativeCameraDeviceLogicalPhysicalStreaming()
3014 ret = testCase.createRequestsWithErrorLog(readerOutputs, &physicalCameraIdList); in nativeCameraDeviceLogicalPhysicalStreaming()
3016 ret = testCase.createRequestsWithErrorLog(readerOutputs); in nativeCameraDeviceLogicalPhysicalStreaming()
3018 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
3024 ret = testCase.getPreviewRequest(&previewRequest); in nativeCameraDeviceLogicalPhysicalStreaming()
3025 if ((ret != ACAMERA_OK) || (previewRequest == nullptr)) { in nativeCameraDeviceLogicalPhysicalStreaming()
3031 ret = testCase.startPreview(&sequenceId, 2, candidateIds.data()); in nativeCameraDeviceLogicalPhysicalStreaming()
3032 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
3039 ret = testCase.stopPreview(); in nativeCameraDeviceLogicalPhysicalStreaming()
3040 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
3061 ret = testCase.resetWithErrorLog(); in nativeCameraDeviceLogicalPhysicalStreaming()
3062 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
3075 ret = testCase.deInit(); in nativeCameraDeviceLogicalPhysicalStreaming()
3076 if (ret != ACAMERA_OK) { in nativeCameraDeviceLogicalPhysicalStreaming()
3077 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in nativeCameraDeviceLogicalPhysicalStreaming()
3128 camera_status_t ret = testCase.initWithErrorLog(); in nativeImageReaderTestBase() local
3129 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3159 ret = testCase.openCamera(cameraId); in nativeImageReaderTestBase()
3160 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3161 LOG_ERROR(errorString, "Open camera device %s failure. ret %d", cameraId, ret); in nativeImageReaderTestBase()
3196 ret = testCase.closeCamera(); in nativeImageReaderTestBase()
3197 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3198 LOG_ERROR(errorString, "Camera %s failed to close. ret %d ", cameraId, ret); in nativeImageReaderTestBase()
3217 ret = testCase.createCaptureSessionWithLog(); in nativeImageReaderTestBase()
3218 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3223 ret = testCase.createRequestsWithErrorLog(); in nativeImageReaderTestBase()
3224 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3242 ret = testCase.getStillRequest(&requestTemplate); in nativeImageReaderTestBase()
3243 if (ret != ACAMERA_OK || requestTemplate == nullptr) { in nativeImageReaderTestBase()
3254 ret = testCase.capture(req, &resultCb, &seqId); in nativeImageReaderTestBase()
3255 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3257 cameraId, capture, ret); in nativeImageReaderTestBase()
3280 ret = ACaptureRequest_getUserContext(completedRequests[i], (void**) &userContext); in nativeImageReaderTestBase()
3281 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3332 ret = testCase.resetWithErrorLog(); in nativeImageReaderTestBase()
3333 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3346 ret = testCase.deInit(); in nativeImageReaderTestBase()
3347 if (ret != ACAMERA_OK) { in nativeImageReaderTestBase()
3348 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in nativeImageReaderTestBase()
3389 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative() local
3390 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3419 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3420 if (ret != ACAMERA_OK) { 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()
3440 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3441 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3446 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3447 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3464 ret = testCase.getStillRequest(&requestTemplate); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3465 if (ret != ACAMERA_OK || requestTemplate == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3471 ret = testCase.startRepeatingRequest(&seqId, requestTemplate, &resultCb); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3472 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3501 ret = testCase.stopPreview(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3502 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3507 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3508 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3527 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3528 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3529 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3641 auto ret = mServiceListener->getCameraAccessPrioritiesChangedCount(); in getAcessCallbackCountAndReset() local
3643 return ret; in getAcessCallbackCountAndReset()
3648 camera_status_t ret = ACameraManager_unregisterExtendedAvailabilityCallback( in ~AvailabilityContext() local
3650 if (ret != ACAMERA_OK) { in ~AvailabilityContext()
3651 ALOGE("Unregister availability callback failed: ret %d", ret); in ~AvailabilityContext()
3719 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative() local
3720 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3750 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3751 if (ret != ACAMERA_OK) { 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()
3790 ret = testCase.createCaptureSessionWithLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3791 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3796 ret = testCase.createRequestsWithErrorLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3797 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3802 ret = testCase.startPreview(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3803 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3813 ret = testCase.takePicture(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3814 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3816 cameraId, capture, ret); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3860 ret = testCase.resetWithErrorLog(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3861 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3874 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3875 if (ret != ACAMERA_OK) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()
3876 LOG_ERROR(errorString, "Testcase deInit failed: ret %d", ret); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()