diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-01-19 17:26:08 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-01-19 17:26:08 -0800 |
commit | f3f650db96d40014a0203393c585c368b0dd7a9a (patch) | |
tree | 7a70859dd347a8240ee02e950ea2eb1a1dad76e5 /core | |
parent | 08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff (diff) | |
parent | a826f9e2c4f6329d8d48c927f6e942e78ffaf92f (diff) | |
download | frameworks_base-f3f650db96d40014a0203393c585c368b0dd7a9a.zip frameworks_base-f3f650db96d40014a0203393c585c368b0dd7a9a.tar.gz frameworks_base-f3f650db96d40014a0203393c585c368b0dd7a9a.tar.bz2 |
am a826f9e2: Merge "Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)"
* commit 'a826f9e2c4f6329d8d48c927f6e942e78ffaf92f':
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)
Diffstat (limited to 'core')
20 files changed, 74 insertions, 74 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index f88456a..f52df1f 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -397,7 +397,7 @@ static void blockSigpipe() sigemptyset(&mask); sigaddset(&mask, SIGPIPE); if (sigprocmask(SIG_BLOCK, &mask, NULL) != 0) - LOGW("WARNING: SIGPIPE not blocked\n"); + ALOGW("WARNING: SIGPIPE not blocked\n"); } /* @@ -890,9 +890,9 @@ void AndroidRuntime::start(const char* className, const char* options) ALOGD("Shutting down VM\n"); if (mJavaVM->DetachCurrentThread() != JNI_OK) - LOGW("Warning: unable to detach main thread\n"); + ALOGW("Warning: unable to detach main thread\n"); if (mJavaVM->DestroyJavaVM() != 0) - LOGW("Warning: VM did not shut down cleanly\n"); + ALOGW("Warning: VM did not shut down cleanly\n"); } void AndroidRuntime::onExit(int code) diff --git a/core/jni/android/graphics/SurfaceTexture.cpp b/core/jni/android/graphics/SurfaceTexture.cpp index de2d8c4..9e697b4 100644 --- a/core/jni/android/graphics/SurfaceTexture.cpp +++ b/core/jni/android/graphics/SurfaceTexture.cpp @@ -136,7 +136,7 @@ JNISurfaceTextureContext::~JNISurfaceTextureContext() env->DeleteGlobalRef(mWeakThiz); env->DeleteGlobalRef(mClazz); } else { - LOGW("leaking JNI object references"); + ALOGW("leaking JNI object references"); } if (needsDetach) { detachJNI(); @@ -150,7 +150,7 @@ void JNISurfaceTextureContext::onFrameAvailable() if (env != NULL) { env->CallStaticVoidMethod(mClazz, fields.postEvent, mWeakThiz); } else { - LOGW("onFrameAvailable event will not posted"); + ALOGW("onFrameAvailable event will not posted"); } if (needsDetach) { detachJNI(); diff --git a/core/jni/android/graphics/TextLayout.cpp b/core/jni/android/graphics/TextLayout.cpp index 1705768..4b0006a 100644 --- a/core/jni/android/graphics/TextLayout.cpp +++ b/core/jni/android/graphics/TextLayout.cpp @@ -228,7 +228,7 @@ bool TextLayout::prepareRtlTextRun(const jchar* context, jsize start, jsize& cou if (U_SUCCESS(status)) { return true; } else { - LOGW("drawTextRun error %d\n", status); + ALOGW("drawTextRun error %d\n", status); } return false; } diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp index 6a81ea2..fdedb24 100644 --- a/core/jni/android/graphics/TextLayoutCache.cpp +++ b/core/jni/android/graphics/TextLayoutCache.cpp @@ -449,7 +449,7 @@ void TextLayoutCacheValue::computeValuesWithHarfbuzz(SkPaint* paint, const UChar isRTL = (paraDir == 1); useSingleRun = true; } else if (!U_SUCCESS(status) || rc < 1) { - LOGW("computeValuesWithHarfbuzz -- need to force to single run"); + ALOGW("computeValuesWithHarfbuzz -- need to force to single run"); isRTL = (paraDir == 1); useSingleRun = true; } else { @@ -462,7 +462,7 @@ void TextLayoutCacheValue::computeValuesWithHarfbuzz(SkPaint* paint, const UChar if (startRun == -1 || lengthRun == -1) { // Something went wrong when getting the visual run, need to clear // already computed data before doing a single run pass - LOGW("computeValuesWithHarfbuzz -- visual run is not valid"); + ALOGW("computeValuesWithHarfbuzz -- visual run is not valid"); outGlyphs->clear(); outAdvances->clear(); *outTotalAdvance = 0; @@ -500,13 +500,13 @@ void TextLayoutCacheValue::computeValuesWithHarfbuzz(SkPaint* paint, const UChar } } } else { - LOGW("computeValuesWithHarfbuzz -- cannot set Para"); + ALOGW("computeValuesWithHarfbuzz -- cannot set Para"); useSingleRun = true; isRTL = (bidiReq = 1) || (bidiReq = UBIDI_DEFAULT_RTL); } ubidi_close(bidi); } else { - LOGW("computeValuesWithHarfbuzz -- cannot ubidi_open()"); + ALOGW("computeValuesWithHarfbuzz -- cannot ubidi_open()"); useSingleRun = true; isRTL = (bidiReq = 1) || (bidiReq = UBIDI_DEFAULT_RTL); } diff --git a/core/jni/android_app_NativeActivity.cpp b/core/jni/android_app_NativeActivity.cpp index 15bb543..7f5ba85 100644 --- a/core/jni/android_app_NativeActivity.cpp +++ b/core/jni/android_app_NativeActivity.cpp @@ -84,8 +84,8 @@ restart: if (res == sizeof(work)) return; - if (res < 0) LOGW("Failed writing to work fd: %s", strerror(errno)); - else LOGW("Truncated writing to work fd: %d", res); + if (res < 0) ALOGW("Failed writing to work fd: %s", strerror(errno)); + else ALOGW("Truncated writing to work fd: %d", res); } static bool read_work(int fd, ActivityWork* outWork) { @@ -93,8 +93,8 @@ static bool read_work(int fd, ActivityWork* outWork) { // no need to worry about EINTR, poll loop will just come back again. if (res == sizeof(ActivityWork)) return true; - if (res < 0) LOGW("Failed reading work fd: %s", strerror(errno)); - else LOGW("Truncated reading work fd: %d", res); + if (res < 0) ALOGW("Failed reading work fd: %s", strerror(errno)); + else ALOGW("Truncated reading work fd: %d", res); return false; } @@ -108,7 +108,7 @@ AInputQueue::AInputQueue(const sp<InputChannel>& channel, int workWrite) : mWorkWrite(workWrite), mConsumer(channel), mSeq(0) { int msgpipe[2]; if (pipe(msgpipe)) { - LOGW("could not create pipe: %s", strerror(errno)); + ALOGW("could not create pipe: %s", strerror(errno)); mDispatchKeyRead = mDispatchKeyWrite = -1; } else { mDispatchKeyRead = msgpipe[0]; @@ -187,7 +187,7 @@ int32_t AInputQueue::getEvent(AInputEvent** outEvent) { } } if (*outEvent == NULL) { - LOGW("getEvent couldn't find inflight for seq %d", finish.seq); + ALOGW("getEvent couldn't find inflight for seq %d", finish.seq); } } mLock.unlock(); @@ -211,7 +211,7 @@ int32_t AInputQueue::getEvent(AInputEvent** outEvent) { InputEvent* myEvent = NULL; res = mConsumer.consume(this, &myEvent); if (res != android::OK) { - LOGW("channel '%s' ~ Failed to consume input event. status=%d", + ALOGW("channel '%s' ~ Failed to consume input event. status=%d", mConsumer.getChannel()->getName().string(), res); mConsumer.sendFinishedSignal(false); return -1; @@ -265,7 +265,7 @@ void AInputQueue::finishEvent(AInputEvent* event, bool handled, bool didDefaultH if (inflight.doFinish) { int32_t res = mConsumer.sendFinishedSignal(handled); if (res != android::OK) { - LOGW("Failed to send finished signal on channel '%s'. status=%d", + ALOGW("Failed to send finished signal on channel '%s'. status=%d", mConsumer.getChannel()->getName().string(), res); } } @@ -281,7 +281,7 @@ void AInputQueue::finishEvent(AInputEvent* event, bool handled, bool didDefaultH } mLock.unlock(); - LOGW("finishEvent called for unknown event: %p", event); + ALOGW("finishEvent called for unknown event: %p", event); } void AInputQueue::dispatchEvent(android::KeyEvent* event) { @@ -398,7 +398,7 @@ bool AInputQueue::preDispatchKey(KeyEvent* keyEvent) { } } - LOGW("preDispatchKey called for unknown event: %p", keyEvent); + ALOGW("preDispatchKey called for unknown event: %p", keyEvent); return false; } @@ -412,8 +412,8 @@ restart: if (res == sizeof(dummy)) return; - if (res < 0) LOGW("Failed writing to dispatch fd: %s", strerror(errno)); - else LOGW("Truncated writing to dispatch fd: %d", res); + if (res < 0) ALOGW("Failed writing to dispatch fd: %s", strerror(errno)); + else ALOGW("Truncated writing to dispatch fd: %d", res); } namespace android { @@ -629,7 +629,7 @@ static int mainWorkCallback(int fd, int events, void* data) { checkAndClearExceptionFromCallback(code->env, "hideIme"); } break; default: - LOGW("Unknown work command: %d", work.cmd); + ALOGW("Unknown work command: %d", work.cmd); break; } @@ -660,21 +660,21 @@ loadNativeCode_native(JNIEnv* env, jobject clazz, jstring path, jstring funcName env->ReleaseStringUTFChars(funcName, funcStr); if (code->createActivityFunc == NULL) { - LOGW("ANativeActivity_onCreate not found"); + ALOGW("ANativeActivity_onCreate not found"); delete code; return 0; } code->looper = android_os_MessageQueue_getLooper(env, messageQueue); if (code->looper == NULL) { - LOGW("Unable to retrieve MessageQueue's Looper"); + ALOGW("Unable to retrieve MessageQueue's Looper"); delete code; return 0; } int msgpipe[2]; if (pipe(msgpipe)) { - LOGW("could not create pipe: %s", strerror(errno)); + ALOGW("could not create pipe: %s", strerror(errno)); delete code; return 0; } @@ -690,7 +690,7 @@ loadNativeCode_native(JNIEnv* env, jobject clazz, jstring path, jstring funcName code->ANativeActivity::callbacks = &code->callbacks; if (env->GetJavaVM(&code->vm) < 0) { - LOGW("NativeActivity GetJavaVM failed"); + ALOGW("NativeActivity GetJavaVM failed"); delete code; return 0; } diff --git a/core/jni/android_backup_BackupHelperDispatcher.cpp b/core/jni/android_backup_BackupHelperDispatcher.cpp index 1f188ff..3e36677 100644 --- a/core/jni/android_backup_BackupHelperDispatcher.cpp +++ b/core/jni/android_backup_BackupHelperDispatcher.cpp @@ -58,7 +58,7 @@ readHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj) int remainingHeader = flattenedHeader.headerSize - sizeof(flattenedHeader.headerSize); if (flattenedHeader.headerSize < (int)sizeof(chunk_header_v1)) { - LOGW("Skipping unknown header: %d bytes", flattenedHeader.headerSize); + ALOGW("Skipping unknown header: %d bytes", flattenedHeader.headerSize); if (remainingHeader > 0) { lseek(fd, remainingHeader, SEEK_CUR); // >0 means skip this chunk @@ -69,13 +69,13 @@ readHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj) amt = read(fd, &flattenedHeader.version, sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize)); if (amt <= 0) { - LOGW("Failed reading chunk header"); + ALOGW("Failed reading chunk header"); return -1; } remainingHeader -= sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize); if (flattenedHeader.version != VERSION_1_HEADER) { - LOGW("Skipping unknown header version: 0x%08x, %d bytes", flattenedHeader.version, + ALOGW("Skipping unknown header version: 0x%08x, %d bytes", flattenedHeader.version, flattenedHeader.headerSize); if (remainingHeader > 0) { lseek(fd, remainingHeader, SEEK_CUR); @@ -94,14 +94,14 @@ readHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj) if (flattenedHeader.dataSize < 0 || flattenedHeader.nameLength < 0 || remainingHeader < flattenedHeader.nameLength) { - LOGW("Malformed V1 header remainingHeader=%d dataSize=%d nameLength=%d", remainingHeader, + ALOGW("Malformed V1 header remainingHeader=%d dataSize=%d nameLength=%d", remainingHeader, flattenedHeader.dataSize, flattenedHeader.nameLength); return -1; } buf = keyPrefix.lockBuffer(flattenedHeader.nameLength); if (buf == NULL) { - LOGW("unable to allocate %d bytes", flattenedHeader.nameLength); + ALOGW("unable to allocate %d bytes", flattenedHeader.nameLength); return -1; } diff --git a/core/jni/android_bluetooth_HeadsetBase.cpp b/core/jni/android_bluetooth_HeadsetBase.cpp index 8dd3116..1f59937 100644 --- a/core/jni/android_bluetooth_HeadsetBase.cpp +++ b/core/jni/android_bluetooth_HeadsetBase.cpp @@ -126,7 +126,7 @@ again: } if (pfd.revents & (POLLHUP | POLLERR | POLLNVAL)) { - LOGW("RFCOMM poll() returned success (%d), " + ALOGW("RFCOMM poll() returned success (%d), " "but with an unexpected revents bitmask: %#x\n", ret, pfd.revents); errno = EIO; *err = errno; diff --git a/core/jni/android_database_SQLiteDatabase.cpp b/core/jni/android_database_SQLiteDatabase.cpp index cf4cbb8..d5a034a 100644 --- a/core/jni/android_database_SQLiteDatabase.cpp +++ b/core/jni/android_database_SQLiteDatabase.cpp @@ -92,7 +92,7 @@ static void registerLoggingFunc(const char *path) { ALOGV("Registering sqlite logging func \n"); int err = sqlite3_config(SQLITE_CONFIG_LOG, &sqlLogger, (void *)createStr(path, 0)); if (err != SQLITE_OK) { - LOGW("sqlite returned error = %d when trying to register logging func.\n", err); + ALOGW("sqlite returned error = %d when trying to register logging func.\n", err); return; } loggingFuncSet = true; diff --git a/core/jni/android_hardware_Camera.cpp b/core/jni/android_hardware_Camera.cpp index 25763ac..6d1fb70 100644 --- a/core/jni/android_hardware_Camera.cpp +++ b/core/jni/android_hardware_Camera.cpp @@ -173,7 +173,7 @@ void JNICameraContext::notify(int32_t msgType, int32_t ext1, int32_t ext2) // VM pointer will be NULL if object is released Mutex::Autolock _l(mLock); if (mCameraJObjectWeak == NULL) { - LOGW("callback on dead camera object"); + ALOGW("callback on dead camera object"); return; } JNIEnv *env = AndroidRuntime::getJNIEnv(); @@ -279,7 +279,7 @@ void JNICameraContext::postData(int32_t msgType, const sp<IMemory>& dataPtr, Mutex::Autolock _l(mLock); JNIEnv *env = AndroidRuntime::getJNIEnv(); if (mCameraJObjectWeak == NULL) { - LOGW("callback on dead camera object"); + ALOGW("callback on dead camera object"); return; } diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp index d9908ce..9586717 100644 --- a/core/jni/android_os_Debug.cpp +++ b/core/jni/android_os_Debug.cpp @@ -517,14 +517,14 @@ static void android_os_Debug_dumpNativeHeap(JNIEnv* env, jobject clazz, /* dup() the descriptor so we don't close the original with fclose() */ int fd = dup(origFd); if (fd < 0) { - LOGW("dup(%d) failed: %s\n", origFd, strerror(errno)); + ALOGW("dup(%d) failed: %s\n", origFd, strerror(errno)); jniThrowRuntimeException(env, "dup() failed"); return; } FILE* fp = fdopen(fd, "w"); if (fp == NULL) { - LOGW("fdopen(%d) failed: %s\n", fd, strerror(errno)); + ALOGW("fdopen(%d) failed: %s\n", fd, strerror(errno)); close(fd); jniThrowRuntimeException(env, "fdopen() failed"); return; diff --git a/core/jni/android_server_BluetoothEventLoop.cpp b/core/jni/android_server_BluetoothEventLoop.cpp index d146e27..1924dbf 100644 --- a/core/jni/android_server_BluetoothEventLoop.cpp +++ b/core/jni/android_server_BluetoothEventLoop.cpp @@ -629,7 +629,7 @@ static void handleWatchRemove(native_data_t *nat) { return; } } - LOGW("WatchRemove given with unknown watch"); + ALOGW("WatchRemove given with unknown watch"); } static void *eventLoopMain(void *ptr) { @@ -717,7 +717,7 @@ static jboolean startEventLoopNative(JNIEnv *env, jobject object) { nat->running = false; if (nat->pollData) { - LOGW("trying to start EventLoop a second time!"); + ALOGW("trying to start EventLoop a second time!"); pthread_mutex_unlock( &(nat->thread_mutex) ); return JNI_FALSE; } diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp index b2ecf62..4d6bfbc 100644 --- a/core/jni/android_util_Binder.cpp +++ b/core/jni/android_util_Binder.cpp @@ -203,7 +203,7 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg) gLogOffsets.mClass, gLogOffsets.mLogE, tagstr, msgstr, excep); if (env->ExceptionCheck()) { /* attempting to log the failure has failed */ - LOGW("Failed trying to log exception, msg='%s'\n", msg); + ALOGW("Failed trying to log exception, msg='%s'\n", msg); env->ExceptionClear(); } @@ -463,11 +463,11 @@ public: (jstring) env->CallObjectMethod(objClassRef.get(), gClassOffsets.mGetName)); ScopedUtfChars nameUtf(env, nameRef.get()); if (nameUtf.c_str() != NULL) { - LOGW("BinderProxy is being destroyed but the application did not call " + ALOGW("BinderProxy is being destroyed but the application did not call " "unlinkToDeath to unlink all of its death recipients beforehand. " "Releasing leaked death recipient: %s", nameUtf.c_str()); } else { - LOGW("BinderProxy being destroyed; unable to get DR object name"); + ALOGW("BinderProxy being destroyed; unable to get DR object name"); env->ExceptionClear(); } } @@ -630,7 +630,7 @@ sp<IBinder> ibinderForJavaObject(JNIEnv* env, jobject obj) env->GetIntField(obj, gBinderProxyOffsets.mObject); } - LOGW("ibinderForJavaObject: %p is not a Binder object", obj); + ALOGW("ibinderForJavaObject: %p is not a Binder object", obj); return NULL; } @@ -976,7 +976,7 @@ static bool push_eventlog_string(char** pos, const char* end, const char* str) { jint len = strlen(str); int space_needed = 1 + sizeof(len) + len; if (end - *pos < space_needed) { - LOGW("not enough space for string. remain=%d; needed=%d", + ALOGW("not enough space for string. remain=%d; needed=%d", (end - *pos), space_needed); return false; } @@ -992,7 +992,7 @@ static bool push_eventlog_string(char** pos, const char* end, const char* str) { static bool push_eventlog_int(char** pos, const char* end, jint val) { int space_needed = 1 + sizeof(val); if (end - *pos < space_needed) { - LOGW("not enough space for int. remain=%d; needed=%d", + ALOGW("not enough space for int. remain=%d; needed=%d", (end - *pos), space_needed); return false; } @@ -1117,7 +1117,7 @@ static void android_os_BinderProxy_linkToDeath(JNIEnv* env, jobject obj, IBinder* target = (IBinder*) env->GetIntField(obj, gBinderProxyOffsets.mObject); if (target == NULL) { - LOGW("Binder has been finalized when calling linkToDeath() with recip=%p)\n", recipient); + ALOGW("Binder has been finalized when calling linkToDeath() with recip=%p)\n", recipient); assert(false); } @@ -1149,7 +1149,7 @@ static jboolean android_os_BinderProxy_unlinkToDeath(JNIEnv* env, jobject obj, IBinder* target = (IBinder*) env->GetIntField(obj, gBinderProxyOffsets.mObject); if (target == NULL) { - LOGW("Binder has been finalized when calling linkToDeath() with recip=%p)\n", recipient); + ALOGW("Binder has been finalized when calling linkToDeath() with recip=%p)\n", recipient); return JNI_FALSE; } diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp index 8660668..9245d99 100644 --- a/core/jni/android_util_Process.cpp +++ b/core/jni/android_util_Process.cpp @@ -371,7 +371,7 @@ static jlong android_os_Process_getFreeMemory(JNIEnv* env, jobject clazz) int fd = open("/proc/meminfo", O_RDONLY); if (fd < 0) { - LOGW("Unable to open /proc/meminfo"); + ALOGW("Unable to open /proc/meminfo"); return -1; } @@ -380,7 +380,7 @@ static jlong android_os_Process_getFreeMemory(JNIEnv* env, jobject clazz) close(fd); if (len < 0) { - LOGW("Unable to read /proc/meminfo"); + ALOGW("Unable to read /proc/meminfo"); return -1; } buffer[len] = 0; @@ -479,7 +479,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt close(fd); if (len < 0) { - LOGW("Unable to read %s", file.string()); + ALOGW("Unable to read %s", file.string()); len = 0; } buffer[len] = 0; @@ -521,7 +521,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt free(buffer); } else { - LOGW("Unable to open %s", file.string()); + ALOGW("Unable to open %s", file.string()); } //ALOGI("Done!"); @@ -759,7 +759,7 @@ jboolean android_os_Process_readProcFile(JNIEnv* env, jobject clazz, env->ReleaseStringUTFChars(file, file8); if (fd < 0) { - //LOGW("Unable to open process file: %s\n", file8); + //ALOGW("Unable to open process file: %s\n", file8); return JNI_FALSE; } @@ -768,7 +768,7 @@ jboolean android_os_Process_readProcFile(JNIEnv* env, jobject clazz, close(fd); if (len < 0) { - //LOGW("Unable to open process file: %s fd=%d\n", file8, fd); + //ALOGW("Unable to open process file: %s fd=%d\n", file8, fd); return JNI_FALSE; } buffer[len] = 0; diff --git a/core/jni/android_view_GLES20Canvas.cpp b/core/jni/android_view_GLES20Canvas.cpp index d0c6be7..d4b9024 100644 --- a/core/jni/android_view_GLES20Canvas.cpp +++ b/core/jni/android_view_GLES20Canvas.cpp @@ -541,7 +541,7 @@ static void renderTextRun(OpenGLRenderer* renderer, const jchar* text, if (TextLayout::prepareRtlTextRun(text, start, count, contextCount, shaped)) { renderer->drawText((const char*) shaped, count << 1, count, x, y, paint); } else { - LOGW("drawTextRun error"); + ALOGW("drawTextRun error"); } } else { renderer->drawText((const char*) (text + start), count << 1, count, x, y, paint); diff --git a/core/jni/android_view_InputChannel.cpp b/core/jni/android_view_InputChannel.cpp index 5fcf8fa..e0976a1 100644 --- a/core/jni/android_view_InputChannel.cpp +++ b/core/jni/android_view_InputChannel.cpp @@ -101,7 +101,7 @@ void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobject inputChan NativeInputChannel* nativeInputChannel = android_view_InputChannel_getNativeInputChannel(env, inputChannelObj); if (nativeInputChannel == NULL) { - LOGW("Cannot set dispose callback because input channel object has not been initialized."); + ALOGW("Cannot set dispose callback because input channel object has not been initialized."); } else { nativeInputChannel->setDisposeCallback(callback, data); } @@ -161,7 +161,7 @@ static void android_view_InputChannel_nativeDispose(JNIEnv* env, jobject obj, jb android_view_InputChannel_getNativeInputChannel(env, obj); if (nativeInputChannel) { if (finalized) { - LOGW("Input channel object '%s' was finalized without being disposed!", + ALOGW("Input channel object '%s' was finalized without being disposed!", nativeInputChannel->getInputChannel()->getName().string()); } diff --git a/core/jni/android_view_InputQueue.cpp b/core/jni/android_view_InputQueue.cpp index adf81b4..f4955cd 100644 --- a/core/jni/android_view_InputQueue.cpp +++ b/core/jni/android_view_InputQueue.cpp @@ -133,7 +133,7 @@ status_t NativeInputQueue::registerInputChannel(JNIEnv* env, jobject inputChanne sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, inputChannelObj); if (inputChannel == NULL) { - LOGW("Input channel is not initialized."); + ALOGW("Input channel is not initialized."); return BAD_VALUE; } @@ -147,7 +147,7 @@ status_t NativeInputQueue::registerInputChannel(JNIEnv* env, jobject inputChanne AutoMutex _l(mLock); if (getConnectionIndex(inputChannel) >= 0) { - LOGW("Attempted to register already registered input channel '%s'", + ALOGW("Attempted to register already registered input channel '%s'", inputChannel->getName().string()); return BAD_VALUE; } @@ -156,7 +156,7 @@ status_t NativeInputQueue::registerInputChannel(JNIEnv* env, jobject inputChanne sp<Connection> connection = new Connection(connectionId, inputChannel, looper); status_t result = connection->inputConsumer.initialize(); if (result) { - LOGW("Failed to initialize input consumer for input channel '%s', status=%d", + ALOGW("Failed to initialize input consumer for input channel '%s', status=%d", inputChannel->getName().string(), result); return result; } @@ -178,7 +178,7 @@ status_t NativeInputQueue::unregisterInputChannel(JNIEnv* env, jobject inputChan sp<InputChannel> inputChannel = android_view_InputChannel_getInputChannel(env, inputChannelObj); if (inputChannel == NULL) { - LOGW("Input channel is not initialized."); + ALOGW("Input channel is not initialized."); return BAD_VALUE; } @@ -191,7 +191,7 @@ status_t NativeInputQueue::unregisterInputChannel(JNIEnv* env, jobject inputChan ssize_t connectionIndex = getConnectionIndex(inputChannel); if (connectionIndex < 0) { - LOGW("Attempted to unregister already unregistered input channel '%s'", + ALOGW("Attempted to unregister already unregistered input channel '%s'", inputChannel->getName().string()); return BAD_VALUE; } @@ -259,7 +259,7 @@ status_t NativeInputQueue::finished(JNIEnv* env, jlong finishedToken, if (messageSeqNum != connection->messageSeqNum || ! connection->messageInProgress) { if (! ignoreSpuriousFinish) { - LOGW("Attempted to finish input twice on channel '%s'. " + ALOGW("Attempted to finish input twice on channel '%s'. " "finished messageSeqNum=%d, current messageSeqNum=%d, messageInProgress=%d", connection->getInputChannelName(), messageSeqNum, connection->messageSeqNum, connection->messageInProgress); @@ -271,7 +271,7 @@ status_t NativeInputQueue::finished(JNIEnv* env, jlong finishedToken, status_t status = connection->inputConsumer.sendFinishedSignal(handled); if (status) { - LOGW("Failed to send finished signal on channel '%s'. status=%d", + ALOGW("Failed to send finished signal on channel '%s'. status=%d", connection->getInputChannelName(), status); return status; } @@ -287,7 +287,7 @@ status_t NativeInputQueue::finished(JNIEnv* env, jlong finishedToken, void NativeInputQueue::handleInputChannelDisposed(JNIEnv* env, jobject inputChannelObj, const sp<InputChannel>& inputChannel, void* data) { - LOGW("Input channel object '%s' was disposed without first being unregistered with " + ALOGW("Input channel object '%s' was disposed without first being unregistered with " "the input queue!", inputChannel->getName().string()); NativeInputQueue* q = static_cast<NativeInputQueue*>(data); @@ -320,7 +320,7 @@ int NativeInputQueue::handleReceiveCallback(int receiveFd, int events, void* dat } if (! (events & ALOOPER_EVENT_INPUT)) { - LOGW("channel '%s' ~ Received spurious callback for unhandled poll event. " + ALOGW("channel '%s' ~ Received spurious callback for unhandled poll event. " "events=0x%x", connection->getInputChannelName(), events); return 1; } @@ -333,14 +333,14 @@ int NativeInputQueue::handleReceiveCallback(int receiveFd, int events, void* dat } if (connection->messageInProgress) { - LOGW("channel '%s' ~ Publisher sent spurious dispatch signal.", + ALOGW("channel '%s' ~ Publisher sent spurious dispatch signal.", connection->getInputChannelName()); return 1; } status = connection->inputConsumer.consume(& connection->inputEventFactory, & inputEvent); if (status) { - LOGW("channel '%s' ~ Failed to consume input event. status=%d", + ALOGW("channel '%s' ~ Failed to consume input event. status=%d", connection->getInputChannelName(), status); connection->inputConsumer.sendFinishedSignal(false); return 1; @@ -391,7 +391,7 @@ int NativeInputQueue::handleReceiveCallback(int receiveFd, int events, void* dat } if (! inputEventObj) { - LOGW("channel '%s' ~ Failed to obtain DVM event object.", + ALOGW("channel '%s' ~ Failed to obtain DVM event object.", connection->getInputChannelName()); env->DeleteLocalRef(inputHandlerObjLocal); q->finished(env, finishedToken, false, false); diff --git a/core/jni/android_view_KeyEvent.cpp b/core/jni/android_view_KeyEvent.cpp index 4b04b8b..78951aa 100644 --- a/core/jni/android_view_KeyEvent.cpp +++ b/core/jni/android_view_KeyEvent.cpp @@ -93,7 +93,7 @@ status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj, status_t android_view_KeyEvent_recycle(JNIEnv* env, jobject eventObj) { env->CallVoidMethod(eventObj, gKeyEventClassInfo.recycle); if (env->ExceptionCheck()) { - LOGW("An exception occurred while recycling a key event."); + ALOGW("An exception occurred while recycling a key event."); LOGW_EX(env); env->ExceptionClear(); return UNKNOWN_ERROR; diff --git a/core/jni/android_view_MotionEvent.cpp b/core/jni/android_view_MotionEvent.cpp index fef06b2..fccc66e 100644 --- a/core/jni/android_view_MotionEvent.cpp +++ b/core/jni/android_view_MotionEvent.cpp @@ -99,7 +99,7 @@ jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* ev status_t android_view_MotionEvent_recycle(JNIEnv* env, jobject eventObj) { env->CallVoidMethod(eventObj, gMotionEventClassInfo.recycle); if (env->ExceptionCheck()) { - LOGW("An exception occurred while recycling a motion event."); + ALOGW("An exception occurred while recycling a motion event."); LOGW_EX(env); env->ExceptionClear(); return UNKNOWN_ERROR; diff --git a/core/jni/android_view_PointerIcon.cpp b/core/jni/android_view_PointerIcon.cpp index 091341a..8b6dc60 100644 --- a/core/jni/android_view_PointerIcon.cpp +++ b/core/jni/android_view_PointerIcon.cpp @@ -43,7 +43,7 @@ jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, jobject pointerIconObj = env->CallStaticObjectMethod(gPointerIconClassInfo.clazz, gPointerIconClassInfo.getSystemIcon, contextObj, style); if (env->ExceptionCheck()) { - LOGW("An exception occurred while getting a pointer icon with style %d.", style); + ALOGW("An exception occurred while getting a pointer icon with style %d.", style); LOGW_EX(env); env->ExceptionClear(); return NULL; @@ -62,7 +62,7 @@ status_t android_view_PointerIcon_load(JNIEnv* env, jobject pointerIconObj, jobj jobject loadedPointerIconObj = env->CallObjectMethod(pointerIconObj, gPointerIconClassInfo.load, contextObj); if (env->ExceptionCheck() || !loadedPointerIconObj) { - LOGW("An exception occurred while loading a pointer icon."); + ALOGW("An exception occurred while loading a pointer icon."); LOGW_EX(env); env->ExceptionClear(); return UNKNOWN_ERROR; diff --git a/core/jni/android_view_VelocityTracker.cpp b/core/jni/android_view_VelocityTracker.cpp index 516e421..0da90d7 100644 --- a/core/jni/android_view_VelocityTracker.cpp +++ b/core/jni/android_view_VelocityTracker.cpp @@ -154,7 +154,7 @@ static void android_view_VelocityTracker_nativeAddMovement(JNIEnv* env, jclass c jobject eventObj) { const MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); if (!event) { - LOGW("nativeAddMovement failed because MotionEvent was finalized."); + ALOGW("nativeAddMovement failed because MotionEvent was finalized."); return; } |