Lines Matching refs:mDevice

120     if (mDevice != nullptr) {  in ~CameraDevice()
131 if (mDevice == nullptr) { in setConnectionStatus()
391 mem->handle.mDevice = object; in sGetMemory()
400 CameraDevice* device = mem->handle.mDevice; in sPutMemory()
638 if (mDevice != nullptr) { in dumpState()
639 if (mDevice->ops->dump) { // It's fine if the HAL doesn't implement dump() in dumpState()
640 return getHidlStatus(mDevice->ops->dump(mDevice, fd)); in dumpState()
663 (hw_device_t **)&mDevice); in open()
665 rc = mModule->open(mCameraId.c_str(), (hw_device_t **)&mDevice); in open()
668 mDevice = nullptr; in open()
676 if (mDevice->ops->set_callbacks) { in open()
677 mDevice->ops->set_callbacks(mDevice, in open()
687 if (!mDevice) { in setPreviewWindow()
693 if (mDevice->ops->set_preview_window) { in setPreviewWindow()
694 return getHidlStatus(mDevice->ops->set_preview_window(mDevice, in setPreviewWindow()
703 if (!mDevice) { in enableMsgType()
707 if (mDevice->ops->enable_msg_type) { in enableMsgType()
708 mDevice->ops->enable_msg_type(mDevice, msgType); in enableMsgType()
716 if (!mDevice) { in disableMsgType()
720 if (mDevice->ops->disable_msg_type) { in disableMsgType()
721 mDevice->ops->disable_msg_type(mDevice, msgType); in disableMsgType()
729 if (!mDevice) { in msgTypeEnabled()
733 if (mDevice->ops->msg_type_enabled) { in msgTypeEnabled()
734 return mDevice->ops->msg_type_enabled(mDevice, msgType); in msgTypeEnabled()
742 if (!mDevice) { in startPreview()
746 if (mDevice->ops->start_preview) { in startPreview()
747 return getHidlStatus(mDevice->ops->start_preview(mDevice)); in startPreview()
755 if (!mDevice) { in stopPreview()
759 if (mDevice->ops->stop_preview) { in stopPreview()
760 mDevice->ops->stop_preview(mDevice); in stopPreview()
768 if (!mDevice) { in previewEnabled()
772 if (mDevice->ops->preview_enabled) { in previewEnabled()
773 return mDevice->ops->preview_enabled(mDevice); in previewEnabled()
781 if (!mDevice) { in storeMetaDataInBuffers()
785 if (mDevice->ops->store_meta_data_in_buffers) { in storeMetaDataInBuffers()
786 status_t s = mDevice->ops->store_meta_data_in_buffers(mDevice, enable); in storeMetaDataInBuffers()
798 if (!mDevice) { in startRecording()
802 if (mDevice->ops->start_recording) { in startRecording()
803 return getHidlStatus(mDevice->ops->start_recording(mDevice)); in startRecording()
811 if (!mDevice) { in stopRecording()
815 if (mDevice->ops->stop_recording) { in stopRecording()
816 mDevice->ops->stop_recording(mDevice); in stopRecording()
824 if (!mDevice) { in recordingEnabled()
828 if (mDevice->ops->recording_enabled) { in recordingEnabled()
829 return mDevice->ops->recording_enabled(mDevice); in recordingEnabled()
836 if (!mDevice) { in releaseRecordingFrameLocked()
840 if (mDevice->ops->release_recording_frame) { in releaseRecordingFrameLocked()
874 mDevice->ops->release_recording_frame(mDevice, data); in releaseRecordingFrameLocked()
908 if (!mDevice) { in autoFocus()
912 if (mDevice->ops->auto_focus) { in autoFocus()
913 return getHidlStatus(mDevice->ops->auto_focus(mDevice)); in autoFocus()
921 if (!mDevice) { in cancelAutoFocus()
925 if (mDevice->ops->cancel_auto_focus) { in cancelAutoFocus()
926 return getHidlStatus(mDevice->ops->cancel_auto_focus(mDevice)); in cancelAutoFocus()
934 if (!mDevice) { in takePicture()
938 if (mDevice->ops->take_picture) { in takePicture()
939 return getHidlStatus(mDevice->ops->take_picture(mDevice)); in takePicture()
947 if (!mDevice) { in cancelPicture()
951 if (mDevice->ops->cancel_picture) { in cancelPicture()
952 return getHidlStatus(mDevice->ops->cancel_picture(mDevice)); in cancelPicture()
960 if (!mDevice) { in setParameters()
964 if (mDevice->ops->set_parameters) { in setParameters()
965 return getHidlStatus(mDevice->ops->set_parameters(mDevice, params.c_str())); in setParameters()
974 if (!mDevice) { in getParameters()
979 if (mDevice->ops->get_parameters) { in getParameters()
980 char *temp = mDevice->ops->get_parameters(mDevice); in getParameters()
982 if (mDevice->ops->put_parameters) { in getParameters()
983 mDevice->ops->put_parameters(mDevice, temp); in getParameters()
995 if (!mDevice) { in sendCommand()
999 if (mDevice->ops->send_command) { in sendCommand()
1000 return getHidlStatus(mDevice->ops->send_command(mDevice, (int32_t) cmd, arg1, arg2)); in sendCommand()
1013 if(mDevice) { in closeLocked()
1014 int rc = mDevice->common.close(&mDevice->common); in closeLocked()
1018 mDevice = nullptr; in closeLocked()