Lines Matching refs:Status
39 Status CameraDevice::getHidlStatus(const int& status) { in getHidlStatus()
41 case 0: return Status::OK; in getHidlStatus()
42 case -ENOSYS: return Status::OPERATION_NOT_SUPPORTED; in getHidlStatus()
43 case -EBUSY : return Status::CAMERA_IN_USE; in getHidlStatus()
44 case -EUSERS: return Status::MAX_CAMERAS_IN_USE; in getHidlStatus()
45 case -ENODEV: return Status::INTERNAL_ERROR; in getHidlStatus()
46 case -EINVAL: return Status::ILLEGAL_ARGUMENT; in getHidlStatus()
49 return Status::INTERNAL_ERROR; in getHidlStatus()
53 status_t CameraDevice::getStatusT(const Status& s) { in getStatusT()
55 case Status::OK: in getStatusT()
57 case Status::ILLEGAL_ARGUMENT: in getStatusT()
59 case Status::CAMERA_IN_USE: in getStatusT()
61 case Status::MAX_CAMERAS_IN_USE: in getStatusT()
63 case Status::METHOD_NOT_SUPPORTED: in getStatusT()
65 case Status::OPERATION_NOT_SUPPORTED: in getStatusT()
67 case Status::CAMERA_DISCONNECTED: in getStatusT()
69 case Status::INTERNAL_ERROR: in getStatusT()
76 Status CameraDevice::initStatus() const { in initStatus()
78 Status status = Status::OK; in initStatus()
80 status = Status::INTERNAL_ERROR; in initStatus()
82 status = Status::CAMERA_DISCONNECTED; in initStatus()
160 Status s; in sDequeueBuffer()
164 if (s == Status::OK) { in sDequeueBuffer()
171 s = Status::INTERNAL_ERROR; in sDequeueBuffer()
288 Status s; in sGetMinUndequeuedBufferCount()
292 if (s == Status::OK) { in sGetMinUndequeuedBufferCount()
545 Status status = initStatus(); in getResourceCost()
547 if (status == Status::OK) { in getResourceCost()
566 status = Status::INTERNAL_ERROR; in getResourceCost()
570 if (status == Status::OK) { in getResourceCost()
585 Status status = initStatus(); in getCameraInfo()
587 if (status == Status::OK) { in getCameraInfo()
600 status = Status::INTERNAL_ERROR; in getCameraInfo()
607 Return<Status> CameraDevice::setTorchMode(TorchMode mode) { in setTorchMode()
609 return Status::METHOD_NOT_SUPPORTED; in setTorchMode()
612 Status status = initStatus(); in setTorchMode()
613 if (status == Status::OK) { in setTorchMode()
620 Return<Status> CameraDevice::dumpState(const hidl_handle& handle) { in dumpState()
624 return Status::ILLEGAL_ARGUMENT; in dumpState()
629 return Status::ILLEGAL_ARGUMENT; in dumpState()
638 return Status::OK; in dumpState()
641 Return<Status> CameraDevice::open(const sp<ICameraDeviceCallback>& callback) { in open()
679 Return<Status> CameraDevice::setPreviewWindow(const sp<ICameraDevicePreviewCallback>& window) { in setPreviewWindow()
684 return Status::OPERATION_NOT_SUPPORTED; in setPreviewWindow()
692 return Status::INTERNAL_ERROR; // HAL should provide set_preview_window in setPreviewWindow()
734 Return<Status> CameraDevice::startPreview() { in startPreview()
739 return Status::OPERATION_NOT_SUPPORTED; in startPreview()
744 return Status::INTERNAL_ERROR; // HAL should provide start_preview in startPreview()
773 Return<Status> CameraDevice::storeMetaDataInBuffers(bool enable) { in storeMetaDataInBuffers()
778 return Status::OPERATION_NOT_SUPPORTED; in storeMetaDataInBuffers()
787 return enable ? Status::ILLEGAL_ARGUMENT : Status::OK; in storeMetaDataInBuffers()
790 Return<Status> CameraDevice::startRecording() { in startRecording()
795 return Status::OPERATION_NOT_SUPPORTED; in startRecording()
800 return Status::ILLEGAL_ARGUMENT; in startRecording()
900 Return<Status> CameraDevice::autoFocus() { in autoFocus()
905 return Status::OPERATION_NOT_SUPPORTED; in autoFocus()
910 return Status::ILLEGAL_ARGUMENT; in autoFocus()
913 Return<Status> CameraDevice::cancelAutoFocus() { in cancelAutoFocus()
918 return Status::OPERATION_NOT_SUPPORTED; in cancelAutoFocus()
923 return Status::ILLEGAL_ARGUMENT; in cancelAutoFocus()
926 Return<Status> CameraDevice::takePicture() { in takePicture()
931 return Status::OPERATION_NOT_SUPPORTED; in takePicture()
936 return Status::ILLEGAL_ARGUMENT; in takePicture()
939 Return<Status> CameraDevice::cancelPicture() { in cancelPicture()
944 return Status::OPERATION_NOT_SUPPORTED; in cancelPicture()
949 return Status::ILLEGAL_ARGUMENT; in cancelPicture()
952 Return<Status> CameraDevice::setParameters(const hidl_string& params) { in setParameters()
957 return Status::OPERATION_NOT_SUPPORTED; in setParameters()
962 return Status::ILLEGAL_ARGUMENT; in setParameters()
987 Return<Status> CameraDevice::sendCommand(CommandType cmd, int32_t arg1, int32_t arg2) { in sendCommand()
992 return Status::OPERATION_NOT_SUPPORTED; in sendCommand()
997 return Status::ILLEGAL_ARGUMENT; in sendCommand()