Lines Matching refs:EmulatedCamera

61 EmulatedCamera::EmulatedCamera(int cameraId,  in EmulatedCamera()  function in android::EmulatedCamera
71 common.close = EmulatedCamera::close; in EmulatedCamera()
76 EmulatedCamera::~EmulatedCamera() in ~EmulatedCamera()
84 status_t EmulatedCamera::Initialize() in Initialize()
169 void EmulatedCamera::onNextFrameAvailable(const void* frame, in onNextFrameAvailable()
180 void EmulatedCamera::onCameraDeviceError(int err) in onCameraDeviceError()
190 status_t EmulatedCamera::connectCamera(hw_device_t** device) in connectCamera()
209 status_t EmulatedCamera::closeCamera() in closeCamera()
216 status_t EmulatedCamera::getCameraInfo(struct camera_info* info) in getCameraInfo()
222 valstr = mParameters.get(EmulatedCamera::FACING_KEY); in getCameraInfo()
224 if (strcmp(valstr, EmulatedCamera::FACING_FRONT) == 0) { in getCameraInfo()
227 else if (strcmp(valstr, EmulatedCamera::FACING_BACK) == 0) { in getCameraInfo()
234 valstr = mParameters.get(EmulatedCamera::ORIENTATION_KEY); in getCameraInfo()
244 status_t EmulatedCamera::setPreviewWindow(struct preview_stream_ops* window) in setPreviewWindow()
251 void EmulatedCamera::setCallbacks(camera_notify_callback notify_cb, in setCallbacks()
261 void EmulatedCamera::enableMsgType(int32_t msg_type) in enableMsgType()
266 void EmulatedCamera::disableMsgType(int32_t msg_type) in disableMsgType()
271 int EmulatedCamera::isMsgTypeEnabled(int32_t msg_type) in isMsgTypeEnabled()
276 status_t EmulatedCamera::startPreview() in startPreview()
282 void EmulatedCamera::stopPreview() in stopPreview()
287 int EmulatedCamera::isPreviewEnabled() in isPreviewEnabled()
292 status_t EmulatedCamera::storeMetaDataInBuffers(int enable) in storeMetaDataInBuffers()
298 status_t EmulatedCamera::startRecording() in startRecording()
304 void EmulatedCamera::stopRecording() in stopRecording()
309 int EmulatedCamera::isRecordingEnabled() in isRecordingEnabled()
314 void EmulatedCamera::releaseRecordingFrame(const void* opaque) in releaseRecordingFrame()
319 status_t EmulatedCamera::setAutoFocus() in setAutoFocus()
327 status_t EmulatedCamera::cancelAutoFocus() in cancelAutoFocus()
335 status_t EmulatedCamera::takePicture() in takePicture()
412 status_t EmulatedCamera::cancelPicture() in cancelPicture()
419 status_t EmulatedCamera::setParameters(const char* parms) in setParameters()
484 char* EmulatedCamera::getParameters() in getParameters()
500 void EmulatedCamera::putParameters(char* params) in putParameters()
508 status_t EmulatedCamera::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) in sendCommand()
516 void EmulatedCamera::releaseCamera() in releaseCamera()
523 status_t EmulatedCamera::dumpCamera(int fd) in dumpCamera()
535 status_t EmulatedCamera::doStartPreview() in doStartPreview()
574 const char* is_video = mParameters.get(EmulatedCamera::RECORDING_HINT_KEY); in doStartPreview()
623 status_t EmulatedCamera::doStopPreview() in doStopPreview()
648 status_t EmulatedCamera::cleanupCamera() in cleanupCamera()
688 int EmulatedCamera::set_preview_window(struct camera_device* dev, in set_preview_window()
691 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in set_preview_window()
699 void EmulatedCamera::set_callbacks( in set_callbacks()
707 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in set_callbacks()
715 void EmulatedCamera::enable_msg_type(struct camera_device* dev, int32_t msg_type) in enable_msg_type()
717 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in enable_msg_type()
725 void EmulatedCamera::disable_msg_type(struct camera_device* dev, int32_t msg_type) in disable_msg_type()
727 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in disable_msg_type()
735 int EmulatedCamera::msg_type_enabled(struct camera_device* dev, int32_t msg_type) in msg_type_enabled()
737 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in msg_type_enabled()
745 int EmulatedCamera::start_preview(struct camera_device* dev) in start_preview()
747 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in start_preview()
755 void EmulatedCamera::stop_preview(struct camera_device* dev) in stop_preview()
757 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in stop_preview()
765 int EmulatedCamera::preview_enabled(struct camera_device* dev) in preview_enabled()
767 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in preview_enabled()
775 int EmulatedCamera::store_meta_data_in_buffers(struct camera_device* dev, in store_meta_data_in_buffers()
778 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in store_meta_data_in_buffers()
786 int EmulatedCamera::start_recording(struct camera_device* dev) in start_recording()
788 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in start_recording()
796 void EmulatedCamera::stop_recording(struct camera_device* dev) in stop_recording()
798 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in stop_recording()
806 int EmulatedCamera::recording_enabled(struct camera_device* dev) in recording_enabled()
808 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in recording_enabled()
816 void EmulatedCamera::release_recording_frame(struct camera_device* dev, in release_recording_frame()
819 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in release_recording_frame()
827 int EmulatedCamera::auto_focus(struct camera_device* dev) in auto_focus()
829 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in auto_focus()
837 int EmulatedCamera::cancel_auto_focus(struct camera_device* dev) in cancel_auto_focus()
839 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in cancel_auto_focus()
847 int EmulatedCamera::take_picture(struct camera_device* dev) in take_picture()
849 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in take_picture()
857 int EmulatedCamera::cancel_picture(struct camera_device* dev) in cancel_picture()
859 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in cancel_picture()
867 int EmulatedCamera::set_parameters(struct camera_device* dev, const char* parms) in set_parameters()
869 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in set_parameters()
877 char* EmulatedCamera::get_parameters(struct camera_device* dev) in get_parameters()
879 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in get_parameters()
887 void EmulatedCamera::put_parameters(struct camera_device* dev, char* params) in put_parameters()
889 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in put_parameters()
897 int EmulatedCamera::send_command(struct camera_device* dev, in send_command()
902 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in send_command()
910 void EmulatedCamera::release(struct camera_device* dev) in release()
912 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in release()
920 int EmulatedCamera::dump(struct camera_device* dev, int fd) in dump()
922 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in dump()
930 int EmulatedCamera::close(struct hw_device_t* device) in close()
932 EmulatedCamera* ec = in close()
933 reinterpret_cast<EmulatedCamera*>(reinterpret_cast<struct camera_device*>(device)->priv); in close()
945 camera_device_ops_t EmulatedCamera::mDeviceOps = {
946 EmulatedCamera::set_preview_window,
947 EmulatedCamera::set_callbacks,
948 EmulatedCamera::enable_msg_type,
949 EmulatedCamera::disable_msg_type,
950 EmulatedCamera::msg_type_enabled,
951 EmulatedCamera::start_preview,
952 EmulatedCamera::stop_preview,
953 EmulatedCamera::preview_enabled,
954 EmulatedCamera::store_meta_data_in_buffers,
955 EmulatedCamera::start_recording,
956 EmulatedCamera::stop_recording,
957 EmulatedCamera::recording_enabled,
958 EmulatedCamera::release_recording_frame,
959 EmulatedCamera::auto_focus,
960 EmulatedCamera::cancel_auto_focus,
961 EmulatedCamera::take_picture,
962 EmulatedCamera::cancel_picture,
963 EmulatedCamera::set_parameters,
964 EmulatedCamera::get_parameters,
965 EmulatedCamera::put_parameters,
966 EmulatedCamera::send_command,
967 EmulatedCamera::release,
968 EmulatedCamera::dump
975 const char EmulatedCamera::FACING_KEY[] = "prop-facing";
976 const char EmulatedCamera::ORIENTATION_KEY[] = "prop-orientation";
977 const char EmulatedCamera::RECORDING_HINT_KEY[] = "recording-hint";
983 const char EmulatedCamera::FACING_BACK[] = "back";
984 const char EmulatedCamera::FACING_FRONT[] = "front";