Lines Matching defs:result

375     status_t result = checkPid();
376 if (result != NO_ERROR) return result;
405 status_t result = checkPid();
406 if (result == NO_ERROR) {
413 return result;
487 status_t result = checkPidAndHardware();
488 if (result != NO_ERROR) return result;
490 result = NO_ERROR;
495 return result;
515 result = setOverlay();
517 result = registerPreviewBuffers();
521 return result;
536 status_t result = mSurface->registerBuffers(buffers);
537 if (result != NO_ERROR) {
538 LOGE("registerBuffers failed with status %d", result);
540 return result;
556 status_t result = NO_ERROR;
558 result = mHardware->setOverlay(NULL);
578 result = mHardware->setOverlay(new Overlay(mOverlayRef));
581 if (result != NO_ERROR) {
582 LOGE("mHardware->setOverlay() failed with status %d\n", result);
583 return result;
589 return result;
629 status_t result = checkPidAndHardware();
630 if (result != NO_ERROR) return result;
652 status_t result = NO_ERROR;
662 result = setOverlay();
664 if (result != NO_ERROR) return result;
665 result = mHardware->startPreview();
668 result = mHardware->startPreview();
669 if (result != NO_ERROR) return result;
675 result = registerPreviewBuffers();
678 return result;
683 status_t result = NO_ERROR;
692 result = startPreviewMode();
693 if (result != NO_ERROR) {
694 return result;
701 result = mHardware->startRecording();
702 if (result != NO_ERROR) {
703 LOGE("mHardware->startRecording() failed with status %d", result);
705 return result;
764 status_t result = checkPidAndHardware();
765 if (result != NO_ERROR) return result;
774 status_t result = checkPidAndHardware();
775 if (result != NO_ERROR) return result;
785 status_t result = checkPidAndHardware();
786 if (result != NO_ERROR) return result;
801 status_t result = checkPidAndHardware();
802 if (result != NO_ERROR) return result;
822 status_t result = checkPidAndHardware();
823 if (result != NO_ERROR) return result;
1244 String8 result;
1250 result.append(buffer);
1251 write(fd, result.string(), result.size());
1256 String8 result(kDeadlockedString);
1257 write(fd, result.string(), result.size());
1269 result.append(buffer);
1270 write(fd, result.string(), result.size());
1274 result.append("No camera client yet.\n");
1275 write(fd, result.string(), result.size());
1287 result.append(buffer);