Lines Matching refs:res
79 status_t res; in initialize() local
81 res = mDevice->initialize(module); in initialize()
82 if (res != OK) { in initialize()
84 __FUNCTION__, mCameraId, strerror(-res), res); in initialize()
88 res = mDevice->setNotifyCallback(this); in initialize()
92 res = l.mParameters.initialize(&(mDevice->info())); in initialize()
93 if (res != OK) { in initialize()
95 __FUNCTION__, mCameraId, strerror(-res), res); in initialize()
357 status_t res = mDevice->dump(fd, args); in dump() local
358 if (res != OK) { in dump()
360 strerror(-res), res); in dump()
373 status_t res; in disconnect() local
491 status_t res; in setPreviewDisplay() local
492 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setPreviewDisplay()
509 status_t res; in setPreviewTexture() local
510 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setPreviewTexture()
524 status_t res; in setPreviewWindowL() local
558 res = mStreamingProcessor->setPreviewWindow(window); in setPreviewWindowL()
559 if (res != OK) { in setPreviewWindowL()
561 __FUNCTION__, strerror(-res), res); in setPreviewWindowL()
562 return res; in setPreviewWindowL()
578 status_t res; in setPreviewCallbackFlag() local
586 status_t res = OK; in setPreviewCallbackFlagL() local
595 res = startPreviewL(params, true); in setPreviewCallbackFlagL()
599 res = startRecordingL(params, true); in setPreviewCallbackFlagL()
604 if (res != OK) { in setPreviewCallbackFlagL()
617 status_t res; in startPreview() local
618 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in startPreview()
625 status_t res; in startPreviewL() local
651 res = mStreamingProcessor->updatePreviewStream(params); in startPreviewL()
652 if (res != OK) { in startPreviewL()
654 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
655 return res; in startPreviewL()
662 res = mCallbackProcessor->updateStream(params); in startPreviewL()
663 if (res != OK) { in startPreviewL()
665 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
666 return res; in startPreviewL()
671 res = mZslProcessor->updateStream(params); in startPreviewL()
672 if (res != OK) { in startPreviewL()
674 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
675 return res; in startPreviewL()
684 res = mStreamingProcessor->updatePreviewRequest(params); in startPreviewL()
685 if (res != OK) { in startPreviewL()
688 strerror(-res), res); in startPreviewL()
689 return res; in startPreviewL()
692 res = mStreamingProcessor->startStream(StreamingProcessor::PREVIEW, in startPreviewL()
699 res = mJpegProcessor->updateStream(params); in startPreviewL()
700 if (res != OK) { in startPreviewL()
703 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
704 return res; in startPreviewL()
708 res = mStreamingProcessor->updateRecordingRequest(params); in startPreviewL()
709 if (res != OK) { in startPreviewL()
712 strerror(-res), res); in startPreviewL()
713 return res; in startPreviewL()
716 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD, in startPreviewL()
719 if (res != OK) { in startPreviewL()
721 __FUNCTION__, mCameraId, strerror(-res), res); in startPreviewL()
722 return res; in startPreviewL()
733 status_t res; in stopPreview() local
734 if ( (res = checkPid(__FUNCTION__) ) != OK) return; in stopPreview()
740 status_t res; in stopPreviewL() local
761 res = mDevice->waitUntilDrained(); in stopPreviewL()
762 if (res != OK) { in stopPreviewL()
764 __FUNCTION__, mCameraId, strerror(-res), res); in stopPreviewL()
782 status_t res; in previewEnabled() local
783 if ( (res = checkPid(__FUNCTION__) ) != OK) return false; in previewEnabled()
792 status_t res; in storeMetaDataInBuffers() local
793 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in storeMetaDataInBuffers()
817 status_t res; in startRecording() local
818 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in startRecording()
825 status_t res; in startRecordingL() local
831 res = startPreviewL(params, false); in startRecordingL()
832 if (res != OK) return res; in startRecordingL()
860 if (res != OK) { in startRecordingL()
862 __FUNCTION__, mCameraId, strerror(-res), res); in startRecordingL()
863 return res; in startRecordingL()
867 res = mStreamingProcessor->updateRecordingStream(params); in startRecordingL()
868 if (res != OK) { in startRecordingL()
870 __FUNCTION__, mCameraId, strerror(-res), res); in startRecordingL()
871 return res; in startRecordingL()
878 res = mCallbackProcessor->updateStream(params); in startRecordingL()
879 if (res != OK) { in startRecordingL()
881 __FUNCTION__, mCameraId, strerror(-res), res); in startRecordingL()
882 return res; in startRecordingL()
889 res = mStreamingProcessor->startStream(StreamingProcessor::RECORD, in startRecordingL()
891 if (res != OK) { in startRecordingL()
893 __FUNCTION__, mCameraId, strerror(-res), res); in startRecordingL()
894 return res; in startRecordingL()
910 status_t res; in stopRecording() local
911 if ( (res = checkPid(__FUNCTION__) ) != OK) return; in stopRecording()
930 res = startPreviewL(l.mParameters, true); in stopRecording()
931 if (res != OK) { in stopRecording()
966 status_t res; in autoFocus() local
967 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in autoFocus()
1037 status_t res; in cancelAutoFocus() local
1038 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in cancelAutoFocus()
1068 status_t res; in takePicture() local
1069 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in takePicture()
1082 res = commandStopFaceDetectionL(l.mParameters); in takePicture()
1083 if (res != OK) { in takePicture()
1086 return res; in takePicture()
1103 res = mJpegProcessor->updateStream(l.mParameters); in takePicture()
1104 if (res != OK) { in takePicture()
1106 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1107 return res; in takePicture()
1114 res = mCaptureSequencer->startCapture(msgType); in takePicture()
1115 if (res != OK) { in takePicture()
1117 __FUNCTION__, mCameraId, strerror(-res), res); in takePicture()
1120 return res; in takePicture()
1127 status_t res; in setParameters() local
1128 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in setParameters()
1132 res = l.mParameters.set(params); in setParameters()
1133 if (res != OK) return res; in setParameters()
1135 res = updateRequests(l.mParameters); in setParameters()
1137 return res; in setParameters()
1154 status_t res; in sendCommand() local
1155 if ( (res = checkPid(__FUNCTION__) ) != OK) return res; in sendCommand()
1250 status_t res; in commandStartFaceDetectionL() local
1277 res = updateRequests(l.mParameters); in commandStartFaceDetectionL()
1279 return res; in commandStartFaceDetectionL()
1283 status_t res = OK; in commandStopFaceDetectionL() local
1294 res = updateRequests(params); in commandStopFaceDetectionL()
1297 return res; in commandStopFaceDetectionL()
1545 status_t res; in updateRequests() local
1549 res = mStreamingProcessor->incrementStreamingIds(); in updateRequests()
1550 if (res != OK) { in updateRequests()
1552 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
1553 return res; in updateRequests()
1556 res = mStreamingProcessor->updatePreviewRequest(params); in updateRequests()
1557 if (res != OK) { in updateRequests()
1559 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
1560 return res; in updateRequests()
1562 res = mStreamingProcessor->updateRecordingRequest(params); in updateRequests()
1563 if (res != OK) { in updateRequests()
1565 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
1566 return res; in updateRequests()
1570 res = startPreviewL(params, true); in updateRequests()
1571 if (res != OK) { in updateRequests()
1573 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
1574 return res; in updateRequests()
1578 res = startRecordingL(params, true); in updateRequests()
1579 if (res != OK) { in updateRequests()
1581 __FUNCTION__, mCameraId, strerror(-res), res); in updateRequests()
1582 return res; in updateRequests()
1585 return res; in updateRequests()
1620 status_t res; in syncWithDevice() local
1625 res = mDevice->waitUntilRequestReceived(activeRequestId, kMaxSyncTimeout); in syncWithDevice()
1626 if (res == TIMED_OUT) { in syncWithDevice()
1629 } else if (res != OK) { in syncWithDevice()
1633 return res; in syncWithDevice()