diff options
Diffstat (limited to 'services/camera/libcameraservice')
-rw-r--r-- | services/camera/libcameraservice/CameraHardwareInterface.h | 52 | ||||
-rw-r--r-- | services/camera/libcameraservice/CameraHardwareStub.cpp | 2 | ||||
-rw-r--r-- | services/camera/libcameraservice/CameraService.cpp | 2 |
3 files changed, 28 insertions, 28 deletions
diff --git a/services/camera/libcameraservice/CameraHardwareInterface.h b/services/camera/libcameraservice/CameraHardwareInterface.h index c3ced4c..658e25e 100644 --- a/services/camera/libcameraservice/CameraHardwareInterface.h +++ b/services/camera/libcameraservice/CameraHardwareInterface.h @@ -112,12 +112,12 @@ public: /** Set the ANativeWindow to which preview frames are sent */ status_t setPreviewWindow(const sp<ANativeWindow>& buf) { - LOGV("%s(%s) buf %p", __FUNCTION__, mName.string(), buf.get()); + ALOGV("%s(%s) buf %p", __FUNCTION__, mName.string(), buf.get()); if (mDevice->ops->set_preview_window) { mPreviewWindow = buf; mHalPreviewWindow.user = this; - LOGV("%s &mHalPreviewWindow %p mHalPreviewWindow.user %p", __FUNCTION__, + ALOGV("%s &mHalPreviewWindow %p mHalPreviewWindow.user %p", __FUNCTION__, &mHalPreviewWindow, mHalPreviewWindow.user); return mDevice->ops->set_preview_window(mDevice, buf.get() ? &mHalPreviewWindow.nw : 0); @@ -136,7 +136,7 @@ public: mDataCbTimestamp = data_cb_timestamp; mCbUser = user; - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->set_callbacks) { mDevice->ops->set_callbacks(mDevice, @@ -159,7 +159,7 @@ public: */ void enableMsgType(int32_t msgType) { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->enable_msg_type) mDevice->ops->enable_msg_type(mDevice, msgType); } @@ -176,7 +176,7 @@ public: */ void disableMsgType(int32_t msgType) { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->disable_msg_type) mDevice->ops->disable_msg_type(mDevice, msgType); } @@ -188,7 +188,7 @@ public: */ int msgTypeEnabled(int32_t msgType) { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->msg_type_enabled) return mDevice->ops->msg_type_enabled(mDevice, msgType); return false; @@ -199,7 +199,7 @@ public: */ status_t startPreview() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->start_preview) return mDevice->ops->start_preview(mDevice); return INVALID_OPERATION; @@ -210,7 +210,7 @@ public: */ void stopPreview() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->stop_preview) mDevice->ops->stop_preview(mDevice); } @@ -220,7 +220,7 @@ public: */ int previewEnabled() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->preview_enabled) return mDevice->ops->preview_enabled(mDevice); return false; @@ -260,7 +260,7 @@ public: status_t storeMetaDataInBuffers(int enable) { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->store_meta_data_in_buffers) return mDevice->ops->store_meta_data_in_buffers(mDevice, enable); return enable ? INVALID_OPERATION: OK; @@ -277,7 +277,7 @@ public: */ status_t startRecording() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->start_recording) return mDevice->ops->start_recording(mDevice); return INVALID_OPERATION; @@ -288,7 +288,7 @@ public: */ void stopRecording() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->stop_recording) mDevice->ops->stop_recording(mDevice); } @@ -298,7 +298,7 @@ public: */ int recordingEnabled() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->recording_enabled) return mDevice->ops->recording_enabled(mDevice); return false; @@ -316,7 +316,7 @@ public: */ void releaseRecordingFrame(const sp<IMemory>& mem) { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->release_recording_frame) { ssize_t offset; size_t size; @@ -333,7 +333,7 @@ public: */ status_t autoFocus() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->auto_focus) return mDevice->ops->auto_focus(mDevice); return INVALID_OPERATION; @@ -347,7 +347,7 @@ public: */ status_t cancelAutoFocus() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->cancel_auto_focus) return mDevice->ops->cancel_auto_focus(mDevice); return INVALID_OPERATION; @@ -358,7 +358,7 @@ public: */ status_t takePicture() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->take_picture) return mDevice->ops->take_picture(mDevice); return INVALID_OPERATION; @@ -370,7 +370,7 @@ public: */ status_t cancelPicture() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->cancel_picture) return mDevice->ops->cancel_picture(mDevice); return INVALID_OPERATION; @@ -381,7 +381,7 @@ public: * invalid or not supported. */ status_t setParameters(const CameraParameters ¶ms) { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->set_parameters) return mDevice->ops->set_parameters(mDevice, params.flatten().string()); @@ -391,7 +391,7 @@ public: /** Return the camera parameters. */ CameraParameters getParameters() const { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); CameraParameters parms; if (mDevice->ops->get_parameters) { char *temp = mDevice->ops->get_parameters(mDevice); @@ -410,7 +410,7 @@ public: */ status_t sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->send_command) return mDevice->ops->send_command(mDevice, cmd, arg1, arg2); return INVALID_OPERATION; @@ -421,7 +421,7 @@ public: * *not* done in the destructor. */ void release() { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->release) mDevice->ops->release(mDevice); } @@ -431,7 +431,7 @@ public: */ status_t dump(int fd, const Vector<String16>& args) const { - LOGV("%s(%s)", __FUNCTION__, mName.string()); + ALOGV("%s(%s)", __FUNCTION__, mName.string()); if (mDevice->ops->dump) return mDevice->ops->dump(mDevice, fd); return OK; // It's fine if the HAL doesn't implement dump() @@ -444,7 +444,7 @@ private: static void __notify_cb(int32_t msg_type, int32_t ext1, int32_t ext2, void *user) { - LOGV("%s", __FUNCTION__); + ALOGV("%s", __FUNCTION__); CameraHardwareInterface *__this = static_cast<CameraHardwareInterface *>(user); __this->mNotifyCb(msg_type, ext1, ext2, __this->mCbUser); @@ -455,7 +455,7 @@ private: camera_frame_metadata_t *metadata, void *user) { - LOGV("%s", __FUNCTION__); + ALOGV("%s", __FUNCTION__); CameraHardwareInterface *__this = static_cast<CameraHardwareInterface *>(user); sp<CameraHeapMemory> mem(static_cast<CameraHeapMemory *>(data->handle)); @@ -471,7 +471,7 @@ private: const camera_memory_t *data, unsigned index, void *user) { - LOGV("%s", __FUNCTION__); + ALOGV("%s", __FUNCTION__); CameraHardwareInterface *__this = static_cast<CameraHardwareInterface *>(user); // Start refcounting the heap object from here on. When the clients diff --git a/services/camera/libcameraservice/CameraHardwareStub.cpp b/services/camera/libcameraservice/CameraHardwareStub.cpp index 863f19e..8558fdd 100644 --- a/services/camera/libcameraservice/CameraHardwareStub.cpp +++ b/services/camera/libcameraservice/CameraHardwareStub.cpp @@ -176,7 +176,7 @@ int CameraHardwareStub::previewThread() uint8_t *frame = ((uint8_t *)base) + offset; fakeCamera->getNextFrameAsYuv420(frame); - //LOGV("previewThread: generated frame to buffer %d", mCurrentPreviewFrame); + //ALOGV("previewThread: generated frame to buffer %d", mCurrentPreviewFrame); // Notify the client of a new frame. if (mMsgEnabled & CAMERA_MSG_PREVIEW_FRAME) diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp index bb0e664..4760f07 100644 --- a/services/camera/libcameraservice/CameraService.cpp +++ b/services/camera/libcameraservice/CameraService.cpp @@ -361,7 +361,7 @@ CameraService::Client::Client(const sp<CameraService>& cameraService, // Enable zoom, error, focus, and metadata messages by default enableMsgType(CAMERA_MSG_ERROR | CAMERA_MSG_ZOOM | CAMERA_MSG_FOCUS | - CAMERA_MSG_PREVIEW_METADATA); + CAMERA_MSG_PREVIEW_METADATA | CAMERA_MSG_FOCUS_MOVE); // Callback is disabled by default mPreviewCallbackFlag = CAMERA_FRAME_CALLBACK_FLAG_NOOP; |