Lines Matching refs:res

80     status_t res;
82 res = Camera2ClientBase::initialize(providerPtr);
83 if (res != OK) {
84 return res;
90 res = l.mParameters.initialize(&(mDevice->info()), mDeviceVersion);
91 if (res != OK) {
93 __FUNCTION__, mCameraId, strerror(-res), res);
384 binder::Status res = binder::Status::ok();
387 if (callingPid != mClientPid && callingPid != mServicePid) return res;
389 if (mDevice == 0) return res;
403 if (l.mParameters.state == Parameters::DISCONNECTED) return res;
445 return res;
519 status_t res;
520 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
537 status_t res;
565 res = stopStream();
566 if (res != OK) {
568 __FUNCTION__, strerror(-res), res);
569 return res;
576 res = mStreamingProcessor->setPreviewWindow(window);
577 if (res != OK) {
579 __FUNCTION__, strerror(-res), res);
580 return res;
604 status_t res = OK;
630 res = mCallbackProcessor->setCallbackWindow(NULL);
631 if (res != OK) {
633 " %s (%d)", __FUNCTION__, mCameraId, strerror(-res), res);
642 res = startPreviewL(params, true);
643 if (res != OK) {
657 status_t res;
658 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
665 res = mCallbackProcessor->setCallbackWindow(window);
666 if (res != OK) {
668 __FUNCTION__, mCameraId, strerror(-res), res);
669 return res;
686 res = startPreviewL(l.mParameters, true);
690 res = startRecordingL(l.mParameters, true);
695 if (res != OK) {
709 status_t res;
710 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
717 status_t res;
744 res = mStreamingProcessor->updatePreviewStream(params);
745 if (res != OK) {
747 __FUNCTION__, mCameraId, strerror(-res), res);
748 return res;
767 res = updateProcessorStream(mJpegProcessor, params);
768 if (res != OK) {
771 __FUNCTION__, mCameraId, strerror(-res), res);
772 return res;
788 res = mStreamingProcessor->stopStream();
789 if (res != OK) {
792 return res;
794 res = mStreamingProcessor->deleteRecordingStream();
795 if (res != OK) {
798 strerror(-res), res);
799 return res;
803 res = mCallbackProcessor->updateStream(params);
804 if (res != OK) {
806 __FUNCTION__, mCameraId, strerror(-res), res);
807 return res;
817 res = mCallbackProcessor->deleteStream();
818 if (res != OK) {
820 __FUNCTION__, mCameraId, strerror(-res), res);
821 return res;
827 res = updateProcessorStream(mZslProcessor, params);
828 if (res != OK) {
830 __FUNCTION__, mCameraId, strerror(-res), res);
831 return res;
848 res = mStreamingProcessor->updatePreviewRequest(params);
849 if (res != OK) {
852 strerror(-res), res);
853 return res;
856 res = mStreamingProcessor->startStream(StreamingProcessor::PREVIEW,
860 res = mStreamingProcessor->updateRecordingRequest(params);
861 if (res != OK) {
864 strerror(-res), res);
865 return res;
868 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
871 if (res != OK) {
873 __FUNCTION__, mCameraId, strerror(-res), res);
874 return res;
885 status_t res;
886 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
892 status_t res;
912 res = stopStream();
913 if (res != OK) {
915 __FUNCTION__, mCameraId, strerror(-res), res);
920 res = mDevice->flush();
921 if (res != OK) {
923 __FUNCTION__, mCameraId, strerror(-res), res);
926 res = mDevice->waitUntilDrained();
927 if (res != OK) {
929 __FUNCTION__, mCameraId, strerror(-res), res);
932 res = mStreamingProcessor->deleteRecordingStream();
933 if (res != OK) {
936 __FUNCTION__, mCameraId, strerror(-res), res);
954 status_t res;
955 if ( (res = checkPid(__FUNCTION__) ) != OK) return false;
964 status_t res;
965 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
994 status_t res;
995 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1002 status_t res = OK;
1008 res = startPreviewL(params, false);
1009 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;
1076 res = mStreamingProcessor->stopStream();
1077 if (res != OK) {
1080 return res;
1082 res = mDevice->waitUntilDrained();
1083 if (res != OK) {
1085 __FUNCTION__, mCameraId, strerror(-res), res);
1087 res = mZslProcessor->clearZslQueue();
1088 if (res != OK) {
1091 return res;
1093 res = mZslProcessor->deleteStream();
1094 if (res != OK) {
1097 strerror(-res), res);
1098 return res;
1110 res = mStreamingProcessor->recordingStreamNeedsUpdate(params, &recordingStreamNeedsUpdate);
1111 if (res != OK) {
1114 return res;
1121 res = mStreamingProcessor->stopStream();
1122 if (res != OK) {
1125 return res;
1127 res = mDevice->waitUntilDrained();
1128 if (res != OK) {
1131 strerror(-res), res);
1134 res = updateProcessorStream<
1139 if (res != OK) {
1142 strerror(-res), res);
1143 return res;
1151 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1157 if (res == BAD_VALUE) {
1159 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD,
1163 if (res != OK) {
1165 __FUNCTION__, mCameraId, strerror(-res), res);
1166 return res;
1182 status_t res;
1183 if ( (res = checkPid(__FUNCTION__) ) != OK) return;
1203 res = stopStream();
1204 if (res != OK) {
1206 __FUNCTION__, mCameraId, strerror(-res), res);
1209 res = mDevice->waitUntilDrained();
1210 if (res != OK) {
1212 __FUNCTION__, mCameraId, strerror(-res), res);
1215 res = mStreamingProcessor->deleteRecordingStream();
1216 if (res != OK) {
1219 __FUNCTION__, mCameraId, strerror(-res), res);
1224 res = startPreviewL(l.mParameters, true);
1225 if (res != OK) {
1271 status_t res;
1272 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1350 status_t res;
1351 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1395 status_t res;
1396 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1410 res = commandStopFaceDetectionL(l.mParameters);
1411 if (res != OK) {
1414 return res;
1421 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
1422 if (res != OK) {
1424 __FUNCTION__, mCameraId, strerror(-res), res);
1426 res = mDevice->waitUntilDrained();
1427 if (res != OK) {
1429 __FUNCTION__, mCameraId, strerror(-res), res);
1432 res = mStreamingProcessor->deleteRecordingStream();
1433 if (res != OK) {
1436 __FUNCTION__, mCameraId, strerror(-res), res);
1438 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
1439 if (res != OK) {
1441 __FUNCTION__, mCameraId, strerror(-res), res);
1461 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1466 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) {
1468 res = updateProcessorStream(mJpegProcessor, l.mParameters);
1470 if (res != OK) {
1472 __FUNCTION__, mCameraId, strerror(-res), res);
1473 return res;
1491 res = mCaptureSequencer->startCapture(msgType);
1492 if (res != OK) {
1494 __FUNCTION__, mCameraId, strerror(-res), res);
1497 return res;
1504 status_t res;
1505 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1510 res = l.mParameters.set(params);
1511 if (res != OK) return res;
1518 res = updateRequests(l.mParameters);
1520 return res;
1538 status_t res;
1539 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
1644 status_t res;
1671 res = updateRequests(l.mParameters);
1673 return res;
1677 status_t res = OK;
1688 res = updateRequests(params);
1691 return res;
1933 status_t res = OK;
1939 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
1940 if (res != OK) {
1942 __FUNCTION__, mCameraId, strerror(-res), res);
1943 return res;
1946 res = mDevice->flush();
1947 if (res != OK) {
1949 __FUNCTION__, mCameraId, strerror(-res), res);
1950 return res;
1955 res = mDevice->waitUntilDrained();
1956 if (res != OK) {
1958 __FUNCTION__, mCameraId, strerror(-res), res);
1961 res = updateProcessorStream(mJpegProcessor, params);
1962 return res;
1975 status_t res;
1979 res = mStreamingProcessor->incrementStreamingIds();
1980 if (res != OK) {
1982 __FUNCTION__, mCameraId, strerror(-res), res);
1983 return res;
1986 res = mStreamingProcessor->updatePreviewRequest(params);
1987 if (res != OK) {
1989 __FUNCTION__, mCameraId, strerror(-res), res);
1990 return res;
1992 res = mStreamingProcessor->updateRecordingRequest(params);
1993 if (res != OK) {
1995 __FUNCTION__, mCameraId, strerror(-res), res);
1996 return res;
2000 res = startPreviewL(params, true);
2001 if (res != OK) {
2003 __FUNCTION__, mCameraId, strerror(-res), res);
2004 return res;
2008 res = startRecordingL(params, true);
2009 if (res != OK) {
2011 __FUNCTION__, mCameraId, strerror(-res), res);
2012 return res;
2015 return res;
2050 status_t res;
2055 res = mDevice->waitUntilRequestReceived(activeRequestId, kMaxSyncTimeout);
2056 if (res == TIMED_OUT) {
2059 } else if (res != OK) {
2063 return res;
2078 status_t res;
2082 res = (processorPtr->*updateStreamF)(params);
2090 if (res == -EBUSY) {
2093 res = mStreamingProcessor->togglePauseStream(/*pause*/true);
2094 if (res != OK) {
2096 __FUNCTION__, mCameraId, strerror(-res), res);
2099 res = mDevice->waitUntilDrained();
2100 if (res != OK) {
2102 __FUNCTION__, mCameraId, strerror(-res), res);
2105 res = (processorPtr->*updateStreamF)(params);
2106 if (res != OK) {
2109 __FUNCTION__, mCameraId, strerror(-res), res);
2112 res = mStreamingProcessor->togglePauseStream(/*pause*/false);
2113 if (res != OK) {
2115 __FUNCTION__, mCameraId, strerror(-res), res);
2119 return res;
2126 status_t res = updateProcessorStream(mJpegProcessor, params);
2127 if (res != OK) {
2129 __FUNCTION__, mCameraId, strerror(-res), res);
2131 return res;
2138 status_t res;
2139 if ( (res = checkPid(__FUNCTION__) ) != OK) return res;
2160 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) {
2162 return res;
2165 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
2168 return res;
2196 res = mStreamingProcessor->setRecordingWindow(window);
2197 if (res != OK) {
2199 __FUNCTION__, strerror(-res), res);
2200 return res;