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);
375 binder::Status res = binder::Status::ok();
378 if (callingPid != mClientPid && callingPid != mServicePid) return res;
380 if (mDevice == 0) return res;
394 if (l.mParameters.state == Parameters::DISCONNECTED) return res;
436 return res;
510 status_t res;
511 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
528 status_t res;
556 res = stopStream();
557 if (res != OK) {
559 __FUNCTION__, strerror(-res), res);
560 return res;
567 res = mStreamingProcessor->setPreviewWindow(window);
568 if (res != OK) {
570 __FUNCTION__, strerror(-res), res);
571 return res;
595 status_t res = OK;
621 res = mCallbackProcessor->setCallbackWindow(NULL);
622 if (res != OK) {
624 " %s (%d)", __FUNCTION__, mCameraId, strerror(-res), res);
633 res = startPreviewL(params, true);
634 if (res != OK) {
648 status_t res;
649 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
656 res = mCallbackProcessor->setCallbackWindow(window);
657 if (res != OK) {
659 __FUNCTION__, mCameraId, strerror(-res), res);
660 return res;
677 res = startPreviewL(l.mParameters, true);
681 res = startRecordingL(l.mParameters, true);
686 if (res != OK) {
700 status_t res;
701 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
708 status_t res;
735 res = mStreamingProcessor->updatePreviewStream(params);
736 if (res != OK) {
738 __FUNCTION__, mCameraId, strerror(-res), res);
739 return res;
758 res = updateProcessorStream(mJpegProcessor, params);
759 if (res != OK) {
762 __FUNCTION__, mCameraId, strerror(-res), res);
763 return res;
779 res = mStreamingProcessor->stopStream();
780 if (res != OK) {
783 return res;
785 res = mStreamingProcessor->deleteRecordingStream();
786 if (res != OK) {
789 strerror(-res), res);
790 return res;
794 res = mCallbackProcessor->updateStream(params);
795 if (res != OK) {
797 __FUNCTION__, mCameraId, strerror(-res), res);
798 return res;
808 res = mCallbackProcessor->deleteStream();
809 if (res != OK) {
811 __FUNCTION__, mCameraId, strerror(-res), res);
812 return res;
818 res = updateProcessorStream(mZslProcessor, params);
819 if (res != OK) {
821 __FUNCTION__, mCameraId, strerror(-res), res);
822 return res;
839 res = mStreamingProcessor->updatePreviewRequest(params);
840 if (res != OK) {
843 strerror(-res), res);
844 return res;
847 res = mStreamingProcessor->startStream(StreamingProcessor::PREVIEW,
851 res = mStreamingProcessor->updateRecordingRequest(params);
852 if (res != OK) {
855 strerror(-res), res);
856 return res;
859 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
862 if (res != OK) {
864 __FUNCTION__, mCameraId, strerror(-res), res);
865 return res;
876 status_t res;
877 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
883 status_t res;
903 res = stopStream();
904 if (res != OK) {
906 __FUNCTION__, mCameraId, strerror(-res), res);
911 res = mDevice->flush();
912 if (res != OK) {
914 __FUNCTION__, mCameraId, strerror(-res), res);
917 res = mDevice->waitUntilDrained();
918 if (res != OK) {
920 __FUNCTION__, mCameraId, strerror(-res), res);
923 res = mStreamingProcessor->deleteRecordingStream();
924 if (res != OK) {
927 __FUNCTION__, mCameraId, strerror(-res), res);
945 status_t res;
946 if ( (res = checkPid(__FUNCTION__) ) != OK) return false;
955 status_t res;
956 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
985 status_t res;
986 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
993 status_t res;
999 res = startPreviewL(params, false);
1000 if (res != OK) return res;
1036 if (res != OK) {
1038 __FUNCTION__, mCameraId, strerror(-res), res);
1039 return res;
1048 res = mStreamingProcessor->stopStream();
1049 if (res != OK) {
1052 return res;
1054 res = mCallbackProcessor->deleteStream();
1055 if (res != OK) {
1058 strerror(-res), res);
1059 return res;
1067 res = mStreamingProcessor->stopStream();
1068 if (res != OK) {
1071 return res;
1073 res = mDevice->waitUntilDrained();
1074 if (res != OK) {
1076 __FUNCTION__, mCameraId, strerror(-res), res);
1078 res = mZslProcessor->clearZslQueue();
1079 if (res != OK) {
1082 return res;
1084 res = mZslProcessor->deleteStream();
1085 if (res != OK) {
1088 strerror(-res), res);
1089 return res;
1101 res = mStreamingProcessor->recordingStreamNeedsUpdate(params, &recordingStreamNeedsUpdate);
1102 if (res != OK) {
1105 return res;
1112 res = mStreamingProcessor->stopStream();
1113 if (res != OK) {
1116 return res;
1118 res = mDevice->waitUntilDrained();
1119 if (res != OK) {
1122 strerror(-res), res);
1125 res = updateProcessorStream<
1130 if (res != OK) {
1133 strerror(-res), res);
1134 return res;
1142 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1148 if (res == BAD_VALUE) {
1150 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1154 if (res != OK) {
1156 __FUNCTION__, mCameraId, strerror(-res), res);
1157 return res;
1173 status_t res;
1174 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
1194 res = stopStream();
1195 if (res != OK) {
1197 __FUNCTION__, mCameraId, strerror(-res), res);
1200 res = mDevice->waitUntilDrained();
1201 if (res != OK) {
1203 __FUNCTION__, mCameraId, strerror(-res), res);
1206 res = mStreamingProcessor->deleteRecordingStream();
1207 if (res != OK) {
1210 __FUNCTION__, mCameraId, strerror(-res), res);
1215 res = startPreviewL(l.mParameters, true);
1216 if (res != OK) {
1255 status_t res;
1256 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1334 status_t res;
1335 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1379 status_t res;
1380 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1394 res = commandStopFaceDetectionL(l.mParameters);
1395 if (res != OK) {
1398 return res;
1405 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
1406 if (res != OK) {
1408 __FUNCTION__, mCameraId, strerror(-res), res);
1410 res = mDevice->waitUntilDrained();
1411 if (res != OK) {
1413 __FUNCTION__, mCameraId, strerror(-res), res);
1416 res = mStreamingProcessor->deleteRecordingStream();
1417 if (res != OK) {
1420 __FUNCTION__, mCameraId, strerror(-res), res);
1422 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
1423 if (res != OK) {
1425 __FUNCTION__, mCameraId, strerror(-res), res);
1445 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1450 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) {
1452 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1454 if (res != OK) {
1456 __FUNCTION__, mCameraId, strerror(-res), res);
1457 return res;
1475 res = mCaptureSequencer->startCapture(msgType);
1476 if (res != OK) {
1478 __FUNCTION__, mCameraId, strerror(-res), res);
1481 return res;
1488 status_t res;
1489 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1494 res = l.mParameters.set(params);
1495 if (res != OK) return res;
1502 res = updateRequests(l.mParameters);
1504 return res;
1522 status_t res;
1523 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1628 status_t res;
1655 res = updateRequests(l.mParameters);
1657 return res;
1661 status_t res = OK;
1672 res = updateRequests(params);
1675 return res;
1917 status_t res = OK;
1923 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
1924 if (res != OK) {
1926 __FUNCTION__, mCameraId, strerror(-res), res);
1927 return res;
1930 res = mDevice->flush();
1931 if (res != OK) {
1933 __FUNCTION__, mCameraId, strerror(-res), res);
1934 return res;
1939 res = mDevice->waitUntilDrained();
1940 if (res != OK) {
1942 __FUNCTION__, mCameraId, strerror(-res), res);
1945 res = updateProcessorStream(mJpegProcessor, params);
1946 return res;
1959 status_t res;
1963 res = mStreamingProcessor->incrementStreamingIds();
1964 if (res != OK) {
1966 __FUNCTION__, mCameraId, strerror(-res), res);
1967 return res;
1970 res = mStreamingProcessor->updatePreviewRequest(params);
1971 if (res != OK) {
1973 __FUNCTION__, mCameraId, strerror(-res), res);
1974 return res;
1976 res = mStreamingProcessor->updateRecordingRequest(params);
1977 if (res != OK) {
1979 __FUNCTION__, mCameraId, strerror(-res), res);
1980 return res;
1984 res = startPreviewL(params, true);
1985 if (res != OK) {
1987 __FUNCTION__, mCameraId, strerror(-res), res);
1988 return res;
1992 res = startRecordingL(params, true);
1993 if (res != OK) {
1995 __FUNCTION__, mCameraId, strerror(-res), res);
1996 return res;
1999 return res;
2034 status_t res;
2039 res = mDevice->waitUntilRequestReceived(activeRequestId, kMaxSyncTimeout);
2040 if (res == TIMED_OUT) {
2043 } else if (res != OK) {
2047 return res;
2062 status_t res;
2066 res = (processorPtr->*updateStreamF)(params);
2074 if (res == -EBUSY) {
2077 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
2078 if (res != OK) {
2080 __FUNCTION__, mCameraId, strerror(-res), res);
2083 res = mDevice->waitUntilDrained();
2084 if (res != OK) {
2086 __FUNCTION__, mCameraId, strerror(-res), res);
2089 res = (processorPtr->*updateStreamF)(params);
2090 if (res != OK) {
2093 __FUNCTION__, mCameraId, strerror(-res), res);
2096 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
2097 if (res != OK) {
2099 __FUNCTION__, mCameraId, strerror(-res), res);
2103 return res;
2110 status_t res = updateProcessorStream(mJpegProcessor, params);
2111 if (res != OK) {
2113 __FUNCTION__, mCameraId, strerror(-res), res);
2115 return res;
2122 status_t res;
2123 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
2144 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) {
2146 return res;
2149 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
2152 return res;
2180 res = mStreamingProcessor->setRecordingWindow(window);
2181 if (res != OK) {
2183 __FUNCTION__, strerror(-res), res);
2184 return res;