Lines Matching refs:res

74     status_t res;
76 res = Camera2ClientBase::initialize(module);
77 if (res != OK) {
78 return res;
84 res = l.mParameters.initialize(&(mDevice->info()), mDeviceVersion);
85 if (res != OK) {
87 __FUNCTION__, mCameraId, strerror(-res), res);
528 status_t res;
529 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
546 status_t res;
574 res = stopStream();
575 if (res != OK) {
577 __FUNCTION__, strerror(-res), res);
578 return res;
585 res = mStreamingProcessor->setPreviewWindow(window);
586 if (res != OK) {
588 __FUNCTION__, strerror(-res), res);
589 return res;
613 status_t res = OK;
639 res = mCallbackProcessor->setCallbackWindow(NULL);
640 if (res != OK) {
642 " %s (%d)", __FUNCTION__, mCameraId, strerror(-res), res);
651 res = startPreviewL(params, true);
652 if (res != OK) {
666 status_t res;
667 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
674 res = mCallbackProcessor->setCallbackWindow(window);
675 if (res != OK) {
677 __FUNCTION__, mCameraId, strerror(-res), res);
678 return res;
695 res = startPreviewL(l.mParameters, true);
699 res = startRecordingL(l.mParameters, true);
704 if (res != OK) {
718 status_t res;
719 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
726 status_t res;
753 res = mStreamingProcessor->updatePreviewStream(params);
754 if (res != OK) {
756 __FUNCTION__, mCameraId, strerror(-res), res);
757 return res;
771 res = updateProcessorStream(mJpegProcessor, params);
772 if (res != OK) {
775 __FUNCTION__, mCameraId, strerror(-res), res);
776 return res;
791 res = mStreamingProcessor->stopStream();
792 if (res != OK) {
795 return res;
797 res = mStreamingProcessor->deleteRecordingStream();
798 if (res != OK) {
801 strerror(-res), res);
802 return res;
806 res = mCallbackProcessor->updateStream(params);
807 if (res != OK) {
809 __FUNCTION__, mCameraId, strerror(-res), res);
810 return res;
820 res = mCallbackProcessor->deleteStream();
821 if (res != OK) {
823 __FUNCTION__, mCameraId, strerror(-res), res);
824 return res;
830 res = updateProcessorStream(mZslProcessor, params);
831 if (res != OK) {
833 __FUNCTION__, mCameraId, strerror(-res), res);
834 return res;
851 res = mStreamingProcessor->updatePreviewRequest(params);
852 if (res != OK) {
855 strerror(-res), res);
856 return res;
859 res = mStreamingProcessor->startStream(StreamingProcessor::PREVIEW,
863 res = mStreamingProcessor->updateRecordingRequest(params);
864 if (res != OK) {
867 strerror(-res), res);
868 return res;
871 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
874 if (res != OK) {
876 __FUNCTION__, mCameraId, strerror(-res), res);
877 return res;
888 status_t res;
889 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
895 status_t res;
915 res = stopStream();
916 if (res != OK) {
918 __FUNCTION__, mCameraId, strerror(-res), res);
923 res = mDevice->flush();
924 if (res != OK) {
926 __FUNCTION__, mCameraId, strerror(-res), res);
929 res = mDevice->waitUntilDrained();
930 if (res != OK) {
932 __FUNCTION__, mCameraId, strerror(-res), res);
935 res = mStreamingProcessor->deleteRecordingStream();
936 if (res != OK) {
939 __FUNCTION__, mCameraId, strerror(-res), res);
957 status_t res;
958 if ( (res = checkPid(__FUNCTION__) ) != OK) return false;
967 status_t res;
968 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
992 status_t res;
993 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1000 status_t res;
1006 res = startPreviewL(params, false);
1007 if (res != OK) return res;
1039 if (res != OK) {
1041 __FUNCTION__, mCameraId, strerror(-res), res);
1042 return res;
1051 res = mStreamingProcessor->stopStream();
1052 if (res != OK) {
1055 return res;
1057 res = mCallbackProcessor->deleteStream();
1058 if (res != OK) {
1061 strerror(-res), res);
1062 return res;
1071 res = mStreamingProcessor->stopStream();
1072 if (res != OK) {
1075 return res;
1077 res = mDevice->waitUntilDrained();
1078 if (res != OK) {
1080 __FUNCTION__, mCameraId, strerror(-res), res);
1082 res = mZslProcessor->clearZslQueue();
1083 if (res != OK) {
1086 return res;
1088 res = mZslProcessor->deleteStream();
1089 if (res != OK) {
1092 strerror(-res), res);
1093 return res;
1107 res = mStreamingProcessor->recordingStreamNeedsUpdate(params, &recordingStreamNeedsUpdate);
1108 if (res != OK) {
1111 return res;
1118 res = mStreamingProcessor->stopStream();
1119 if (res != OK) {
1122 return res;
1124 res = mDevice->waitUntilDrained();
1125 if (res != OK) {
1128 strerror(-res), res);
1131 res = updateProcessorStream<
1136 if (res != OK) {
1139 strerror(-res), res);
1140 return res;
1145 res = updateProcessorStream<
1149 if (res != OK) {
1151 __FUNCTION__, mCameraId, strerror(-res), res);
1152 return res;
1160 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1166 if (res == BAD_VALUE) {
1168 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1172 if (res != OK) {
1174 __FUNCTION__, mCameraId, strerror(-res), res);
1175 return res;
1191 status_t res;
1192 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
1213 res = stopStream();
1214 if (res != OK) {
1216 __FUNCTION__, mCameraId, strerror(-res), res);
1218 res = mDevice->waitUntilDrained();
1219 if (res != OK) {
1221 __FUNCTION__, mCameraId, strerror(-res), res);
1224 res = mStreamingProcessor->deleteRecordingStream();
1225 if (res != OK) {
1228 __FUNCTION__, mCameraId, strerror(-res), res);
1233 res = startPreviewL(l.mParameters, true);
1234 if (res != OK) {
1269 status_t res;
1270 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1348 status_t res;
1349 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1393 status_t res;
1394 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1408 res = commandStopFaceDetectionL(l.mParameters);
1409 if (res != OK) {
1412 return res;
1419 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
1420 if (res != OK) {
1422 __FUNCTION__, mCameraId, strerror(-res), res);
1424 res = mDevice->waitUntilDrained();
1425 if (res != OK) {
1427 __FUNCTION__, mCameraId, strerror(-res), res);
1430 res = mStreamingProcessor->deleteRecordingStream();
1431 if (res != OK) {
1434 __FUNCTION__, mCameraId, strerror(-res), res);
1436 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
1437 if (res != OK) {
1439 __FUNCTION__, mCameraId, strerror(-res), res);
1458 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1461 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) {
1463 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1465 if (res != OK) {
1467 __FUNCTION__, mCameraId, strerror(-res), res);
1468 return res;
1486 res = mCaptureSequencer->startCapture(msgType);
1487 if (res != OK) {
1489 __FUNCTION__, mCameraId, strerror(-res), res);
1492 return res;
1499 status_t res;
1500 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1505 res = l.mParameters.set(params);
1506 if (res != OK) return res;
1513 res = updateRequests(l.mParameters);
1515 return res;
1533 status_t res;
1534 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1636 status_t res;
1663 res = updateRequests(l.mParameters);
1665 return res;
1669 status_t res = OK;
1680 res = updateRequests(params);
1683 return res;
1898 status_t res;
1902 res = mStreamingProcessor->incrementStreamingIds();
1903 if (res != OK) {
1905 __FUNCTION__, mCameraId, strerror(-res), res);
1906 return res;
1909 res = mStreamingProcessor->updatePreviewRequest(params);
1910 if (res != OK) {
1912 __FUNCTION__, mCameraId, strerror(-res), res);
1913 return res;
1915 res = mStreamingProcessor->updateRecordingRequest(params);
1916 if (res != OK) {
1918 __FUNCTION__, mCameraId, strerror(-res), res);
1919 return res;
1923 res = startPreviewL(params, true);
1924 if (res != OK) {
1926 __FUNCTION__, mCameraId, strerror(-res), res);
1927 return res;
1931 res = startRecordingL(params, true);
1932 if (res != OK) {
1934 __FUNCTION__, mCameraId, strerror(-res), res);
1935 return res;
1938 return res;
1973 status_t res;
1978 res = mDevice->waitUntilRequestReceived(activeRequestId, kMaxSyncTimeout);
1979 if (res == TIMED_OUT) {
1982 } else if (res != OK) {
1986 return res;
2001 status_t res;
2005 res = (processorPtr->*updateStreamF)(params);
2013 if (res == -EBUSY) {
2016 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
2017 if (res != OK) {
2019 __FUNCTION__, mCameraId, strerror(-res), res);
2022 res = mDevice->waitUntilDrained();
2023 if (res != OK) {
2025 __FUNCTION__, mCameraId, strerror(-res), res);
2028 res = (processorPtr->*updateStreamF)(params);
2029 if (res != OK) {
2032 __FUNCTION__, mCameraId, strerror(-res), res);
2035 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
2036 if (res != OK) {
2038 __FUNCTION__, mCameraId, strerror(-res), res);
2042 return res;
2049 status_t res = updateProcessorStream(mJpegProcessor, params);
2050 if (res != OK) {
2052 __FUNCTION__, mCameraId, strerror(-res), res);
2054 return res;