summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-16 08:37:35 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-16 08:37:35 -0700
commitc1c759ac12e821cf8b9b266da9ae66d1b7026bf5 (patch)
tree2464feee85165d8b55f34817a0b2eee922a08fce /camera
parent0cc76d2ab99bad2c63d353d069a97bee7a499095 (diff)
parentdf1f9c518dfcabde5ebb83ea1b45e5d7887e2b31 (diff)
downloadframeworks_native-c1c759ac12e821cf8b9b266da9ae66d1b7026bf5.zip
frameworks_native-c1c759ac12e821cf8b9b266da9ae66d1b7026bf5.tar.gz
frameworks_native-c1c759ac12e821cf8b9b266da9ae66d1b7026bf5.tar.bz2
am 7f148d65: Merge change 4316 into donut
Merge commit '7f148d65051e577cc4a002183ec55d625b51de85' * commit '7f148d65051e577cc4a002183ec55d625b51de85': Revert "dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash." Enable more debug message to debug the Camera startPreview bug.
Diffstat (limited to 'camera')
-rw-r--r--camera/libcameraservice/CameraService.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp
index df15e3b..81639ad 100644
--- a/camera/libcameraservice/CameraService.cpp
+++ b/camera/libcameraservice/CameraService.cpp
@@ -215,7 +215,7 @@ status_t CameraService::Client::unlock()
{
Mutex::Autolock _l(mLock);
// allow anyone to use camera
- LOGV("unlock (%p)", getCameraClient()->asBinder().get());
+ LOGD("unlock (%p)", getCameraClient()->asBinder().get());
status_t result = checkPid();
if (result == NO_ERROR) {
mClientPid = 0;
@@ -230,7 +230,7 @@ status_t CameraService::Client::unlock()
status_t CameraService::Client::connect(const sp<ICameraClient>& client)
{
// connect a new process to the camera
- LOGV("connect (%p)", client->asBinder().get());
+ LOGD("connect (%p)", client->asBinder().get());
// I hate this hack, but things get really ugly when the media recorder
// service is handing back the camera to the app. The ICameraClient
@@ -257,7 +257,7 @@ status_t CameraService::Client::connect(const sp<ICameraClient>& client)
mCameraClient = client;
mClientPid = -1;
mPreviewCallbackFlag = FRAME_CALLBACK_FLAG_NOOP;
- LOGV("connect new process (%d) to existing camera client", mClientPid);
+ LOGD("connect new process (%d) to existing camera client", mClientPid);
}
}
@@ -319,17 +319,17 @@ void CameraService::Client::disconnect()
IPCThreadState::self()->getCallingPid());
Mutex::Autolock lock(mLock);
if (mClientPid <= 0) {
- LOGV("camera is unlocked, don't tear down hardware");
+ LOGD("camera is unlocked, don't tear down hardware");
return;
}
if (checkPid() != NO_ERROR) {
- LOGV("Different client - don't disconnect");
+ LOGD("Different client - don't disconnect");
return;
}
mCameraService->removeClient(mCameraClient);
if (mHardware != 0) {
- LOGV("hardware teardown");
+ LOGD("hardware teardown");
// Before destroying mHardware, we must make sure it's in the
// idle state.
mHardware->stopPreview();