• Home
  • Raw
  • Download

Lines Matching refs:res

95     status_t res = mDevice->createDefaultRequest(  in isZslEnabledInStillTemplate()  local
97 if (res == OK) { in isZslEnabledInStillTemplate()
112 status_t res; in initializeImpl() local
114 res = Camera2ClientBase::initialize(providerPtr, monitorTags); in initializeImpl()
115 if (res != OK) { in initializeImpl()
116 return res; in initializeImpl()
122 res = l.mParameters.initialize(mDevice.get()); in initializeImpl()
123 if (res != OK) { in initializeImpl()
125 __FUNCTION__, mCameraId, strerror(-res), res); in initializeImpl()
149 res = mFrameProcessor->run(threadName.string()); in initializeImpl()
150 if (res != OK) { in initializeImpl()
152 __FUNCTION__, strerror(-res), res); in initializeImpl()
153 return res; in initializeImpl()
159 res = mCaptureSequencer->run(threadName.string()); in initializeImpl()
160 if (res != OK) { in initializeImpl()
162 __FUNCTION__, strerror(-res), res); in initializeImpl()
163 return res; in initializeImpl()
169 res = mJpegProcessor->run(threadName.string()); in initializeImpl()
170 if (res != OK) { in initializeImpl()
172 __FUNCTION__, strerror(-res), res); in initializeImpl()
173 return res; in initializeImpl()
180 res = mZslProcessor->run(threadName.string()); in initializeImpl()
181 if (res != OK) { in initializeImpl()
183 __FUNCTION__, strerror(-res), res); in initializeImpl()
184 return res; in initializeImpl()
190 res = mCallbackProcessor->run(threadName.string()); in initializeImpl()
191 if (res != OK) { in initializeImpl()
193 __FUNCTION__, strerror(-res), res); in initializeImpl()
194 return res; in initializeImpl()
453 binder::Status res = binder::Status::ok(); in disconnect() local
456 if (callingPid != mClientPid && callingPid != mServicePid) return res; in disconnect()
458 if (mDevice == 0) return res; in disconnect()
472 if (l.mParameters.state == Parameters::DISCONNECTED) return res; in disconnect()
516 return res; in disconnect()
590 status_t res; in setPreviewTarget() local
591 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setPreviewTarget()
608 status_t res; in setPreviewWindowL() local
636 res = stopStream(); in setPreviewWindowL()
637 if (res != OK) { in setPreviewWindowL()
639 __FUNCTION__, strerror(-res), res); in setPreviewWindowL()
640 return res; in setPreviewWindowL()
647 res = mStreamingProcessor->setPreviewWindow(window); in setPreviewWindowL()
648 if (res != OK) { in setPreviewWindowL()
650 __FUNCTION__, strerror(-res), res); in setPreviewWindowL()
651 return res; in setPreviewWindowL()
675 status_t res = OK; in setPreviewCallbackFlagL() local
701 res = mCallbackProcessor->setCallbackWindow(NULL); in setPreviewCallbackFlagL()
702 if (res != OK) { in setPreviewCallbackFlagL()
704 " %s (%d)", __FUNCTION__, mCameraId, strerror(-res), res); in setPreviewCallbackFlagL()
713 res = startPreviewL(params, true); in setPreviewCallbackFlagL()
714 if (res != OK) { in setPreviewCallbackFlagL()
728 status_t res; in setPreviewCallbackTarget() local
729 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setPreviewCallbackTarget()
736 res = mCallbackProcessor->setCallbackWindow(window); in setPreviewCallbackTarget()
737 if (res != OK) { in setPreviewCallbackTarget()
739 __FUNCTION__, mCameraId, strerror(-res), res); in setPreviewCallbackTarget()
740 return res; in setPreviewCallbackTarget()
757 res = startPreviewL(l.mParameters, true); in setPreviewCallbackTarget()
761 res = startRecordingL(l.mParameters, true); in setPreviewCallbackTarget()
766 if (res != OK) { in setPreviewCallbackTarget()
780 status_t res; in startPreview() local
781 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in startPreview()
788 status_t res; in startPreviewL() local
819 res = mStreamingProcessor->updatePreviewStream(params); in startPreviewL()
820 if (res != OK) { in startPreviewL()
822 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
823 return res; in startPreviewL()
844 res = mStreamingProcessor->togglePauseStream(/*pause*/true); in startPreviewL()
845 if (res != OK) { in startPreviewL()
847 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
849 res = mDevice->waitUntilDrained(); in startPreviewL()
850 if (res != OK) { in startPreviewL()
852 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
856 res = mJpegProcessor->deleteStream(); in startPreviewL()
858 if (res != OK) { in startPreviewL()
860 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
864 res = mStreamingProcessor->togglePauseStream(/*pause*/false); in startPreviewL()
865 if (res != OK) { in startPreviewL()
867 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
872 res = updateProcessorStream(mJpegProcessor, params); in startPreviewL()
873 if (res != OK) { in startPreviewL()
876 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
877 return res; in startPreviewL()
893 res = mStreamingProcessor->stopStream(); in startPreviewL()
894 if (res != OK) { in startPreviewL()
897 return res; in startPreviewL()
899 res = mStreamingProcessor->deleteRecordingStream(); in startPreviewL()
900 if (res != OK) { in startPreviewL()
903 strerror(-res), res); in startPreviewL()
904 return res; in startPreviewL()
908 res = mCallbackProcessor->updateStream(params); in startPreviewL()
909 if (res != OK) { in startPreviewL()
911 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
912 return res; in startPreviewL()
922 res = mCallbackProcessor->deleteStream(); in startPreviewL()
923 if (res != OK) { in startPreviewL()
925 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
926 return res; in startPreviewL()
932 res = updateProcessorStream(mZslProcessor, params); in startPreviewL()
933 if (res != OK) { in startPreviewL()
935 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
936 return res; in startPreviewL()
959 res = mStreamingProcessor->updatePreviewRequest(params); in startPreviewL()
960 if (res != OK) { in startPreviewL()
963 strerror(-res), res); in startPreviewL()
964 return res; in startPreviewL()
967 res = mStreamingProcessor->startStream(StreamingProcessor::PREVIEW, in startPreviewL()
971 res = mStreamingProcessor->updateRecordingRequest(params); in startPreviewL()
972 if (res != OK) { in startPreviewL()
975 strerror(-res), res); in startPreviewL()
976 return res; in startPreviewL()
979 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD, in startPreviewL()
982 if (res != OK) { in startPreviewL()
984 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
985 return res; in startPreviewL()
997 status_t res; in stopPreview() local
998 if ( (res = checkPid(__FUNCTION__) ) != OK) return; in stopPreview()
1004 status_t res; in stopPreviewL() local
1030 res = stopStream(); in stopPreviewL()
1031 if (res != OK) { in stopPreviewL()
1033 __FUNCTION__, mCameraId, strerror(-res), res); in stopPreviewL()
1038 res = mDevice->flush(); in stopPreviewL()
1039 if (res != OK) { in stopPreviewL()
1041 __FUNCTION__, mCameraId, strerror(-res), res); in stopPreviewL()
1044 res = mDevice->waitUntilDrained(); in stopPreviewL()
1045 if (res != OK) { in stopPreviewL()
1047 __FUNCTION__, mCameraId, strerror(-res), res); in stopPreviewL()
1050 res = mStreamingProcessor->deleteRecordingStream(); in stopPreviewL()
1051 if (res != OK) { in stopPreviewL()
1054 __FUNCTION__, mCameraId, strerror(-res), res); in stopPreviewL()
1072 status_t res; in previewEnabled() local
1073 if ( (res = checkPid(__FUNCTION__) ) != OK) return false; in previewEnabled()
1082 status_t res; in setVideoBufferMode() local
1083 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setVideoBufferMode()
1112 status_t res; in startRecording() local
1113 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in startRecording()
1120 status_t res = OK; in startRecordingL() local
1126 res = startPreviewL(params, false); in startRecordingL()
1127 if (res != OK) return res; in startRecordingL()
1163 if (res != OK) { in startRecordingL()
1165 __FUNCTION__, mCameraId, strerror(-res), res); in startRecordingL()
1166 return res; in startRecordingL()
1175 res = mStreamingProcessor->stopStream(); in startRecordingL()
1176 if (res != OK) { in startRecordingL()
1179 return res; in startRecordingL()
1181 res = mCallbackProcessor->deleteStream(); in startRecordingL()
1182 if (res != OK) { in startRecordingL()
1185 strerror(-res), res); in startRecordingL()
1186 return res; in startRecordingL()
1194 res = mStreamingProcessor->stopStream(); in startRecordingL()
1195 if (res != OK) { in startRecordingL()
1198 return res; in startRecordingL()
1200 res = mDevice->waitUntilDrained(); in startRecordingL()
1201 if (res != OK) { in startRecordingL()
1203 __FUNCTION__, mCameraId, strerror(-res), res); in startRecordingL()
1205 res = mZslProcessor->clearZslQueue(); in startRecordingL()
1206 if (res != OK) { in startRecordingL()
1209 return res; in startRecordingL()
1211 res = mZslProcessor->deleteStream(); in startRecordingL()
1212 if (res != OK) { in startRecordingL()
1215 strerror(-res), res); in startRecordingL()
1216 return res; in startRecordingL()
1228 res = mStreamingProcessor->recordingStreamNeedsUpdate(params, &recordingStreamNeedsUpdate); in startRecordingL()
1229 if (res != OK) { in startRecordingL()
1232 return res; in startRecordingL()
1239 res = mStreamingProcessor->stopStream(); in startRecordingL()
1240 if (res != OK) { in startRecordingL()
1243 return res; in startRecordingL()
1245 res = mDevice->waitUntilDrained(); in startRecordingL()
1246 if (res != OK) { in startRecordingL()
1249 strerror(-res), res); in startRecordingL()
1252 res = updateProcessorStream< in startRecordingL()
1257 if (res != OK) { in startRecordingL()
1260 strerror(-res), res); in startRecordingL()
1261 return res; in startRecordingL()
1269 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD, in startRecordingL()
1275 if (res == BAD_VALUE) { in startRecordingL()
1277 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD, in startRecordingL()
1281 if (res != OK) { in startRecordingL()
1283 __FUNCTION__, mCameraId, strerror(-res), res); in startRecordingL()
1284 return res; in startRecordingL()
1300 status_t res; in stopRecording() local
1301 if ( (res = checkPid(__FUNCTION__) ) != OK) return; in stopRecording()
1321 res = stopStream(); in stopRecording()
1322 if (res != OK) { in stopRecording()
1324 __FUNCTION__, mCameraId, strerror(-res), res); in stopRecording()
1327 res = mDevice->waitUntilDrained(); in stopRecording()
1328 if (res != OK) { in stopRecording()
1330 __FUNCTION__, mCameraId, strerror(-res), res); in stopRecording()
1333 res = mStreamingProcessor->deleteRecordingStream(); in stopRecording()
1334 if (res != OK) { in stopRecording()
1337 __FUNCTION__, mCameraId, strerror(-res), res); in stopRecording()
1342 res = startPreviewL(l.mParameters, true); in stopRecording()
1343 if (res != OK) { in stopRecording()
1386 status_t res; in autoFocus() local
1387 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in autoFocus()
1465 status_t res; in cancelAutoFocus() local
1466 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in cancelAutoFocus()
1510 status_t res; in takePicture() local
1511 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in takePicture()
1526 res = commandStopFaceDetectionL(l.mParameters); in takePicture()
1527 if (res != OK) { in takePicture()
1530 return res; in takePicture()
1537 res = mStreamingProcessor->togglePauseStream(/*pause*/true); in takePicture()
1538 if (res != OK) { in takePicture()
1540 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1542 res = mDevice->waitUntilDrained(); in takePicture()
1543 if (res != OK) { in takePicture()
1545 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1548 res = mStreamingProcessor->deleteRecordingStream(); in takePicture()
1549 if (res != OK) { in takePicture()
1552 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1554 res = mStreamingProcessor->togglePauseStream(/*pause*/false); in takePicture()
1555 if (res != OK) { in takePicture()
1557 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1577 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1582 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) { in takePicture()
1584 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1586 if (res != OK) { in takePicture()
1588 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1589 return res; in takePicture()
1618 res = mCaptureSequencer->startCapture(); in takePicture()
1619 if (res != OK) { in takePicture()
1621 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1624 return res; in takePicture()
1631 status_t res; in setParameters() local
1632 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setParameters()
1637 res = l.mParameters.set(params); in setParameters()
1638 if (res != OK) return res; in setParameters()
1645 res = updateRequests(l.mParameters); in setParameters()
1647 return res; in setParameters()
1665 status_t res; in sendCommand() local
1666 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in sendCommand()
1758 status_t res; in commandStartFaceDetectionL() local
1785 res = updateRequests(l.mParameters); in commandStartFaceDetectionL()
1787 return res; in commandStartFaceDetectionL()
1791 status_t res = OK; in commandStopFaceDetectionL() local
1802 res = updateRequests(params); in commandStopFaceDetectionL()
1805 return res; in commandStopFaceDetectionL()
2058 status_t res = OK; in createJpegStreamL() local
2064 res = mStreamingProcessor->togglePauseStream(/*pause*/true); in createJpegStreamL()
2065 if (res != OK) { in createJpegStreamL()
2067 __FUNCTION__, mCameraId, strerror(-res), res); in createJpegStreamL()
2068 return res; in createJpegStreamL()
2071 res = mDevice->flush(); in createJpegStreamL()
2072 if (res != OK) { in createJpegStreamL()
2074 __FUNCTION__, mCameraId, strerror(-res), res); in createJpegStreamL()
2075 return res; in createJpegStreamL()
2080 res = mDevice->waitUntilDrained(); in createJpegStreamL()
2081 if (res != OK) { in createJpegStreamL()
2083 __FUNCTION__, mCameraId, strerror(-res), res); in createJpegStreamL()
2086 res = updateProcessorStream(mJpegProcessor, params); in createJpegStreamL()
2087 return res; in createJpegStreamL()
2100 status_t res; in updateRequests() local
2104 res = mStreamingProcessor->incrementStreamingIds(); in updateRequests()
2105 if (res != OK) { in updateRequests()
2107 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
2108 return res; in updateRequests()
2111 res = mStreamingProcessor->updatePreviewRequest(params); in updateRequests()
2112 if (res != OK) { in updateRequests()
2114 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
2115 return res; in updateRequests()
2117 res = mStreamingProcessor->updateRecordingRequest(params); in updateRequests()
2118 if (res != OK) { in updateRequests()
2120 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
2121 return res; in updateRequests()
2125 res = startPreviewL(params, true); in updateRequests()
2126 if (res != OK) { in updateRequests()
2128 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
2129 return res; in updateRequests()
2133 res = startRecordingL(params, true); in updateRequests()
2134 if (res != OK) { in updateRequests()
2136 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
2137 return res; in updateRequests()
2140 return res; in updateRequests()
2175 status_t res; in syncWithDevice() local
2180 res = mDevice->waitUntilRequestReceived(activeRequestId, kMaxSyncTimeout); in syncWithDevice()
2181 if (res == TIMED_OUT) { in syncWithDevice()
2184 } else if (res != OK) { in syncWithDevice()
2188 return res; in syncWithDevice()
2203 status_t res; in updateProcessorStream() local
2207 res = (processorPtr->*updateStreamF)(params); in updateProcessorStream()
2215 if (res == -EBUSY) { in updateProcessorStream()
2218 res = mStreamingProcessor->togglePauseStream(/*pause*/true); in updateProcessorStream()
2219 if (res != OK) { in updateProcessorStream()
2221 __FUNCTION__, mCameraId, strerror(-res), res); in updateProcessorStream()
2224 res = mDevice->waitUntilDrained(); in updateProcessorStream()
2225 if (res != OK) { in updateProcessorStream()
2227 __FUNCTION__, mCameraId, strerror(-res), res); in updateProcessorStream()
2230 res = (processorPtr->*updateStreamF)(params); in updateProcessorStream()
2231 if (res != OK) { in updateProcessorStream()
2234 __FUNCTION__, mCameraId, strerror(-res), res); in updateProcessorStream()
2237 res = mStreamingProcessor->togglePauseStream(/*pause*/false); in updateProcessorStream()
2238 if (res != OK) { in updateProcessorStream()
2240 __FUNCTION__, mCameraId, strerror(-res), res); in updateProcessorStream()
2244 return res; in updateProcessorStream()
2251 status_t res = updateProcessorStream(mJpegProcessor, params); in overrideVideoSnapshotSize() local
2252 if (res != OK) { in overrideVideoSnapshotSize()
2254 __FUNCTION__, mCameraId, strerror(-res), res); in overrideVideoSnapshotSize()
2256 return res; in overrideVideoSnapshotSize()
2263 status_t res; in setVideoTarget() local
2264 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setVideoTarget()
2285 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in setVideoTarget()
2287 return res; in setVideoTarget()
2290 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in setVideoTarget()
2293 return res; in setVideoTarget()
2321 res = mStreamingProcessor->setRecordingWindow(window); in setVideoTarget()
2322 if (res != OK) { in setVideoTarget()
2324 __FUNCTION__, strerror(-res), res); in setVideoTarget()
2325 return res; in setVideoTarget()
2405 auto res = waitUntilRequestIdApplied(activeRequestId, in waitUntilCurrentRequestIdLocked() local
2407 if (res == TIMED_OUT) { in waitUntilCurrentRequestIdLocked()
2410 return res; in waitUntilCurrentRequestIdLocked()
2411 } else if (res != OK) { in waitUntilCurrentRequestIdLocked()
2414 return res; in waitUntilCurrentRequestIdLocked()
2429 auto res = mLatestRequestSignal.waitRelative(mLatestRequestMutex, timeout); in waitUntilRequestIdApplied() local
2430 if (res != OK) return res; in waitUntilRequestIdApplied()