Lines Matching refs:res

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