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;
776 res = updateProcessorStream(mJpegProcessor, params);
777 if (res != OK) {
780 __FUNCTION__, mCameraId, strerror(-res), res);
781 return res;
797 res = mStreamingProcessor->stopStream();
798 if (res != OK) {
801 return res;
803 res = mStreamingProcessor->deleteRecordingStream();
804 if (res != OK) {
807 strerror(-res), res);
808 return res;
812 res = mCallbackProcessor->updateStream(params);
813 if (res != OK) {
815 __FUNCTION__, mCameraId, strerror(-res), res);
816 return res;
826 res = mCallbackProcessor->deleteStream();
827 if (res != OK) {
829 __FUNCTION__, mCameraId, strerror(-res), res);
830 return res;
836 res = updateProcessorStream(mZslProcessor, params);
837 if (res != OK) {
839 __FUNCTION__, mCameraId, strerror(-res), res);
840 return res;
857 res = mStreamingProcessor->updatePreviewRequest(params);
858 if (res != OK) {
861 strerror(-res), res);
862 return res;
865 res = mStreamingProcessor->startStream(StreamingProcessor::PREVIEW,
869 res = mStreamingProcessor->updateRecordingRequest(params);
870 if (res != OK) {
873 strerror(-res), res);
874 return res;
877 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
880 if (res != OK) {
882 __FUNCTION__, mCameraId, strerror(-res), res);
883 return res;
894 status_t res;
895 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
901 status_t res;
921 res = stopStream();
922 if (res != OK) {
924 __FUNCTION__, mCameraId, strerror(-res), res);
929 res = mDevice->flush();
930 if (res != OK) {
932 __FUNCTION__, mCameraId, strerror(-res), res);
935 res = mDevice->waitUntilDrained();
936 if (res != OK) {
938 __FUNCTION__, mCameraId, strerror(-res), res);
941 res = mStreamingProcessor->deleteRecordingStream();
942 if (res != OK) {
945 __FUNCTION__, mCameraId, strerror(-res), res);
963 status_t res;
964 if ( (res = checkPid(__FUNCTION__) ) != OK) return false;
973 status_t res;
974 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
998 status_t res;
999 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1006 status_t res;
1012 res = startPreviewL(params, false);
1013 if (res != OK) return res;
1045 if (res != OK) {
1047 __FUNCTION__, mCameraId, strerror(-res), res);
1048 return res;
1057 res = mStreamingProcessor->stopStream();
1058 if (res != OK) {
1061 return res;
1063 res = mCallbackProcessor->deleteStream();
1064 if (res != OK) {
1067 strerror(-res), res);
1068 return res;
1077 res = mStreamingProcessor->stopStream();
1078 if (res != OK) {
1081 return res;
1083 res = mDevice->waitUntilDrained();
1084 if (res != OK) {
1086 __FUNCTION__, mCameraId, strerror(-res), res);
1088 res = mZslProcessor->clearZslQueue();
1089 if (res != OK) {
1092 return res;
1094 res = mZslProcessor->deleteStream();
1095 if (res != OK) {
1098 strerror(-res), res);
1099 return res;
1113 res = mStreamingProcessor->recordingStreamNeedsUpdate(params, &recordingStreamNeedsUpdate);
1114 if (res != OK) {
1117 return res;
1124 res = mStreamingProcessor->stopStream();
1125 if (res != OK) {
1128 return res;
1130 res = mDevice->waitUntilDrained();
1131 if (res != OK) {
1134 strerror(-res), res);
1137 res = updateProcessorStream<
1142 if (res != OK) {
1145 strerror(-res), res);
1146 return res;
1151 res = updateProcessorStream<
1155 if (res != OK) {
1157 __FUNCTION__, mCameraId, strerror(-res), res);
1158 return res;
1166 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1172 if (res == BAD_VALUE) {
1174 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1178 if (res != OK) {
1180 __FUNCTION__, mCameraId, strerror(-res), res);
1181 return res;
1197 status_t res;
1198 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
1219 res = stopStream();
1220 if (res != OK) {
1222 __FUNCTION__, mCameraId, strerror(-res), res);
1224 res = mDevice->waitUntilDrained();
1225 if (res != OK) {
1227 __FUNCTION__, mCameraId, strerror(-res), res);
1230 res = mStreamingProcessor->deleteRecordingStream();
1231 if (res != OK) {
1234 __FUNCTION__, mCameraId, strerror(-res), res);
1239 res = startPreviewL(l.mParameters, true);
1240 if (res != OK) {
1275 status_t res;
1276 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1354 status_t res;
1355 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1399 status_t res;
1400 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1414 res = commandStopFaceDetectionL(l.mParameters);
1415 if (res != OK) {
1418 return res;
1425 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
1426 if (res != OK) {
1428 __FUNCTION__, mCameraId, strerror(-res), res);
1430 res = mDevice->waitUntilDrained();
1431 if (res != OK) {
1433 __FUNCTION__, mCameraId, strerror(-res), res);
1436 res = mStreamingProcessor->deleteRecordingStream();
1437 if (res != OK) {
1440 __FUNCTION__, mCameraId, strerror(-res), res);
1442 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
1443 if (res != OK) {
1445 __FUNCTION__, mCameraId, strerror(-res), res);
1465 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1470 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) {
1472 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1474 if (res != OK) {
1476 __FUNCTION__, mCameraId, strerror(-res), res);
1477 return res;
1495 res = mCaptureSequencer->startCapture(msgType);
1496 if (res != OK) {
1498 __FUNCTION__, mCameraId, strerror(-res), res);
1501 return res;
1508 status_t res;
1509 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1514 res = l.mParameters.set(params);
1515 if (res != OK) return res;
1522 res = updateRequests(l.mParameters);
1524 return res;
1542 status_t res;
1543 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1648 status_t res;
1675 res = updateRequests(l.mParameters);
1677 return res;
1681 status_t res = OK;
1692 res = updateRequests(params);
1695 return res;
1956 status_t res = OK;
1962 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
1963 if (res != OK) {
1965 __FUNCTION__, mCameraId, strerror(-res), res);
1966 return res;
1969 res = mDevice->flush();
1970 if (res != OK) {
1972 __FUNCTION__, mCameraId, strerror(-res), res);
1973 return res;
1978 res = mDevice->waitUntilDrained();
1979 if (res != OK) {
1981 __FUNCTION__, mCameraId, strerror(-res), res);
1984 res = updateProcessorStream(mJpegProcessor, params);
1985 return res;
1998 status_t res;
2002 res = mStreamingProcessor->incrementStreamingIds();
2003 if (res != OK) {
2005 __FUNCTION__, mCameraId, strerror(-res), res);
2006 return res;
2009 res = mStreamingProcessor->updatePreviewRequest(params);
2010 if (res != OK) {
2012 __FUNCTION__, mCameraId, strerror(-res), res);
2013 return res;
2015 res = mStreamingProcessor->updateRecordingRequest(params);
2016 if (res != OK) {
2018 __FUNCTION__, mCameraId, strerror(-res), res);
2019 return res;
2023 res = startPreviewL(params, true);
2024 if (res != OK) {
2026 __FUNCTION__, mCameraId, strerror(-res), res);
2027 return res;
2031 res = startRecordingL(params, true);
2032 if (res != OK) {
2034 __FUNCTION__, mCameraId, strerror(-res), res);
2035 return res;
2038 return res;
2073 status_t res;
2078 res = mDevice->waitUntilRequestReceived(activeRequestId, kMaxSyncTimeout);
2079 if (res == TIMED_OUT) {
2082 } else if (res != OK) {
2086 return res;
2101 status_t res;
2105 res = (processorPtr->*updateStreamF)(params);
2113 if (res == -EBUSY) {
2116 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
2117 if (res != OK) {
2119 __FUNCTION__, mCameraId, strerror(-res), res);
2122 res = mDevice->waitUntilDrained();
2123 if (res != OK) {
2125 __FUNCTION__, mCameraId, strerror(-res), res);
2128 res = (processorPtr->*updateStreamF)(params);
2129 if (res != OK) {
2132 __FUNCTION__, mCameraId, strerror(-res), res);
2135 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
2136 if (res != OK) {
2138 __FUNCTION__, mCameraId, strerror(-res), res);
2142 return res;
2149 status_t res = updateProcessorStream(mJpegProcessor, params);
2150 if (res != OK) {
2152 __FUNCTION__, mCameraId, strerror(-res), res);
2154 return res;