Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I03c41e20d8f5d7f3c7ef1f01506885e3e250e921
This commit is contained in:
Steve Block
2012-01-05 23:21:50 +00:00
parent 32bbde6c5d
commit 6aff44c27e
7 changed files with 20 additions and 20 deletions

View File

@@ -819,14 +819,14 @@ EGLBoolean eglReleaseThread()
EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list) EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list)
{ {
//TODO //TODO
LOGW("%s not implemented", __FUNCTION__); ALOGW("%s not implemented", __FUNCTION__);
return 0; return 0;
} }
EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value)
{ {
//TODO //TODO
LOGW("%s not implemented", __FUNCTION__); ALOGW("%s not implemented", __FUNCTION__);
return 0; return 0;
} }
@@ -864,7 +864,7 @@ EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface eglSurface, EGLint buffer)
EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
{ {
//TODO //TODO
LOGW("%s not implemented", __FUNCTION__); ALOGW("%s not implemented", __FUNCTION__);
return 0; return 0;
} }

View File

@@ -381,7 +381,7 @@ status_t EmulatedCamera::takePicture()
* enabled. */ * enabled. */
EmulatedCameraDevice* const camera_dev = getCameraDevice(); EmulatedCameraDevice* const camera_dev = getCameraDevice();
if (camera_dev->isStarted()) { if (camera_dev->isStarted()) {
LOGW("%s: Camera device is started", __FUNCTION__); ALOGW("%s: Camera device is started", __FUNCTION__);
camera_dev->stopDeliveringFrames(); camera_dev->stopDeliveringFrames();
camera_dev->stopDevice(); camera_dev->stopDevice();
} }
@@ -1035,7 +1035,7 @@ static void PrintParamDiff(const CameraParameters& current,
ALOGD("+++ New parameter: %s=%s", tmp, val); ALOGD("+++ New parameter: %s=%s", tmp, val);
} }
} else { } else {
LOGW("No value separator in %s", tmp); ALOGW("No value separator in %s", tmp);
} }
wrk = next + 1; wrk = next + 1;
next = strchr(wrk, ';'); next = strchr(wrk, ';');

View File

@@ -65,7 +65,7 @@ EmulatedCameraDevice::~EmulatedCameraDevice()
status_t EmulatedCameraDevice::Initialize() status_t EmulatedCameraDevice::Initialize()
{ {
if (isInitialized()) { if (isInitialized()) {
LOGW("%s: Emulated camera device is already initialized: mState = %d", ALOGW("%s: Emulated camera device is already initialized: mState = %d",
__FUNCTION__, mState); __FUNCTION__, mState);
return NO_ERROR; return NO_ERROR;
} }
@@ -102,7 +102,7 @@ status_t EmulatedCameraDevice::stopDeliveringFrames()
ALOGV("%s", __FUNCTION__); ALOGV("%s", __FUNCTION__);
if (!isStarted()) { if (!isStarted()) {
LOGW("%s: Device is not started", __FUNCTION__); ALOGW("%s: Device is not started", __FUNCTION__);
return NO_ERROR; return NO_ERROR;
} }
@@ -115,7 +115,7 @@ void EmulatedCameraDevice::setExposureCompensation(const float ev) {
ALOGV("%s", __FUNCTION__); ALOGV("%s", __FUNCTION__);
if (!isStarted()) { if (!isStarted()) {
LOGW("%s: Fake camera device is not started.", __FUNCTION__); ALOGW("%s: Fake camera device is not started.", __FUNCTION__);
} }
mExposureCompensation = std::pow(2.0f, ev / GAMMA_CORRECTION); mExposureCompensation = std::pow(2.0f, ev / GAMMA_CORRECTION);
@@ -287,7 +287,7 @@ status_t EmulatedCameraDevice::WorkerThread::readyToRun()
{ {
ALOGV("Starting emulated camera device worker thread..."); ALOGV("Starting emulated camera device worker thread...");
LOGW_IF(mThreadControl >= 0 || mControlFD >= 0, ALOGW_IF(mThreadControl >= 0 || mControlFD >= 0,
"%s: Thread control FDs are opened", __FUNCTION__); "%s: Thread control FDs are opened", __FUNCTION__);
/* Create a pair of FDs that would be used to control the thread. */ /* Create a pair of FDs that would be used to control the thread. */
int thread_fds[2]; int thread_fds[2];
@@ -388,7 +388,7 @@ EmulatedCameraDevice::WorkerThread::Select(int fd, int timeout)
} }
} else { } else {
/* Must be an FD. */ /* Must be an FD. */
LOGW_IF(fd < 0 || !FD_ISSET(fd, fds), "%s: Undefined 'select' result", ALOGW_IF(fd < 0 || !FD_ISSET(fd, fds), "%s: Undefined 'select' result",
__FUNCTION__); __FUNCTION__);
return READY; return READY;
} }

View File

@@ -372,7 +372,7 @@ protected:
inline ~WorkerThread() inline ~WorkerThread()
{ {
LOGW_IF(mThreadControl >= 0 || mControlFD >= 0, ALOGW_IF(mThreadControl >= 0 || mControlFD >= 0,
"%s: Control FDs are opened in the destructor", "%s: Control FDs are opened in the destructor",
__FUNCTION__); __FUNCTION__);
if (mThreadControl >= 0) { if (mThreadControl >= 0) {

View File

@@ -296,7 +296,7 @@ void EmulatedCameraFactory::createQemuCameras()
__FUNCTION__); __FUNCTION__);
} }
} else { } else {
LOGW("%s: Bad camera information: %s", __FUNCTION__, cur_entry); ALOGW("%s: Bad camera information: %s", __FUNCTION__, cur_entry);
} }
cur_entry = next_entry; cur_entry = next_entry;

View File

@@ -71,7 +71,7 @@ status_t EmulatedFakeCameraDevice::connectDevice()
return EINVAL; return EINVAL;
} }
if (isConnected()) { if (isConnected()) {
LOGW("%s: Fake camera device is already connected.", __FUNCTION__); ALOGW("%s: Fake camera device is already connected.", __FUNCTION__);
return NO_ERROR; return NO_ERROR;
} }
@@ -87,7 +87,7 @@ status_t EmulatedFakeCameraDevice::disconnectDevice()
Mutex::Autolock locker(&mObjectLock); Mutex::Autolock locker(&mObjectLock);
if (!isConnected()) { if (!isConnected()) {
LOGW("%s: Fake camera device is already disconnected.", __FUNCTION__); ALOGW("%s: Fake camera device is already disconnected.", __FUNCTION__);
return NO_ERROR; return NO_ERROR;
} }
if (isStarted()) { if (isStarted()) {
@@ -174,7 +174,7 @@ status_t EmulatedFakeCameraDevice::stopDevice()
Mutex::Autolock locker(&mObjectLock); Mutex::Autolock locker(&mObjectLock);
if (!isStarted()) { if (!isStarted()) {
LOGW("%s: Fake camera device is not started.", __FUNCTION__); ALOGW("%s: Fake camera device is not started.", __FUNCTION__);
return NO_ERROR; return NO_ERROR;
} }

View File

@@ -82,7 +82,7 @@ status_t EmulatedQemuCameraDevice::connectDevice()
return EINVAL; return EINVAL;
} }
if (isConnected()) { if (isConnected()) {
LOGW("%s: Qemu camera device '%s' is already connected.", ALOGW("%s: Qemu camera device '%s' is already connected.",
__FUNCTION__, (const char*)mDeviceName); __FUNCTION__, (const char*)mDeviceName);
return NO_ERROR; return NO_ERROR;
} }
@@ -107,7 +107,7 @@ status_t EmulatedQemuCameraDevice::disconnectDevice()
Mutex::Autolock locker(&mObjectLock); Mutex::Autolock locker(&mObjectLock);
if (!isConnected()) { if (!isConnected()) {
LOGW("%s: Qemu camera device '%s' is already disconnected.", ALOGW("%s: Qemu camera device '%s' is already disconnected.",
__FUNCTION__, (const char*)mDeviceName); __FUNCTION__, (const char*)mDeviceName);
return NO_ERROR; return NO_ERROR;
} }
@@ -144,7 +144,7 @@ status_t EmulatedQemuCameraDevice::startDevice(int width,
return EINVAL; return EINVAL;
} }
if (isStarted()) { if (isStarted()) {
LOGW("%s: Qemu camera device '%s' is already started.", ALOGW("%s: Qemu camera device '%s' is already started.",
__FUNCTION__, (const char*)mDeviceName); __FUNCTION__, (const char*)mDeviceName);
return NO_ERROR; return NO_ERROR;
} }
@@ -188,7 +188,7 @@ status_t EmulatedQemuCameraDevice::stopDevice()
Mutex::Autolock locker(&mObjectLock); Mutex::Autolock locker(&mObjectLock);
if (!isStarted()) { if (!isStarted()) {
LOGW("%s: Qemu camera device '%s' is not started.", ALOGW("%s: Qemu camera device '%s' is not started.",
__FUNCTION__, (const char*)mDeviceName); __FUNCTION__, (const char*)mDeviceName);
return NO_ERROR; return NO_ERROR;
} }
@@ -218,7 +218,7 @@ status_t EmulatedQemuCameraDevice::stopDevice()
status_t EmulatedQemuCameraDevice::getCurrentPreviewFrame(void* buffer) status_t EmulatedQemuCameraDevice::getCurrentPreviewFrame(void* buffer)
{ {
LOGW_IF(mPreviewFrame == NULL, "%s: No preview frame", __FUNCTION__); ALOGW_IF(mPreviewFrame == NULL, "%s: No preview frame", __FUNCTION__);
if (mPreviewFrame != NULL) { if (mPreviewFrame != NULL) {
memcpy(buffer, mPreviewFrame, mTotalPixels * 4); memcpy(buffer, mPreviewFrame, mTotalPixels * 4);
return 0; return 0;