From 2f008d0cd6ffa84071fe2f5c343ef19328cc83ae Mon Sep 17 00:00:00 2001 From: dhewg Date: Mon, 28 Feb 2011 19:48:41 +0100 Subject: ANDROID: Don't use warning() in JNI functions --- backends/platform/android/jni.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'backends/platform/android/jni.cpp') diff --git a/backends/platform/android/jni.cpp b/backends/platform/android/jni.cpp index 69d1083320..99934fb640 100644 --- a/backends/platform/android/jni.cpp +++ b/backends/platform/android/jni.cpp @@ -212,7 +212,7 @@ void JNI::getPluginDirectories(Common::FSList &dirs) { (jobjectArray)env->CallObjectMethod(_jobj, _MID_getPluginDirectories); if (env->ExceptionCheck()) { - warning("Error finding plugin directories"); + LOGE("Error finding plugin directories"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -230,7 +230,7 @@ void JNI::getPluginDirectories(Common::FSList &dirs) { const char *path = env->GetStringUTFChars(path_obj, 0); if (path == 0) { - warning("Error getting string characters from plugin directory"); + LOGE("Error getting string characters from plugin directory"); env->ExceptionClear(); env->DeleteLocalRef(path_obj); @@ -252,7 +252,7 @@ void JNI::setWindowCaption(const char *caption) { env->CallVoidMethod(_jobj, _MID_setWindowCaption, java_caption); if (env->ExceptionCheck()) { - warning("Failed to set window caption"); + LOGE("Failed to set window caption"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -268,7 +268,7 @@ void JNI::displayMessageOnOSD(const char *msg) { env->CallVoidMethod(_jobj, _MID_displayMessageOnOSD, java_msg); if (env->ExceptionCheck()) { - warning("Failed to display OSD message"); + LOGE("Failed to display OSD message"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -283,7 +283,7 @@ void JNI::showVirtualKeyboard(bool enable) { env->CallVoidMethod(_jobj, _MID_showVirtualKeyboard, enable); if (env->ExceptionCheck()) { - error("Error trying to show virtual keyboard"); + LOGE("Error trying to show virtual keyboard"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -299,7 +299,7 @@ void JNI::addSysArchivesToSearchSet(Common::SearchSet &s, int priority) { (jobjectArray)env->CallObjectMethod(_jobj, _MID_getSysArchives); if (env->ExceptionCheck()) { - warning("Error finding system archive path"); + LOGE("Error finding system archive path"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -327,7 +327,7 @@ void JNI::setAudioPause() { env->CallVoidMethod(_jobj_audio_track, _MID_AudioTrack_flush); if (env->ExceptionCheck()) { - warning("Error flushing AudioTrack"); + LOGE("Error flushing AudioTrack"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -336,7 +336,7 @@ void JNI::setAudioPause() { env->CallVoidMethod(_jobj_audio_track, _MID_AudioTrack_pause); if (env->ExceptionCheck()) { - warning("Error setting AudioTrack: pause"); + LOGE("Error setting AudioTrack: pause"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -349,7 +349,7 @@ void JNI::setAudioPlay() { env->CallVoidMethod(_jobj_audio_track, _MID_AudioTrack_play); if (env->ExceptionCheck()) { - warning("Error setting AudioTrack: play"); + LOGE("Error setting AudioTrack: play"); env->ExceptionDescribe(); env->ExceptionClear(); @@ -362,7 +362,7 @@ void JNI::setAudioStop() { env->CallVoidMethod(_jobj_audio_track, _MID_AudioTrack_stop); if (env->ExceptionCheck()) { - warning("Error setting AudioTrack: stop"); + LOGE("Error setting AudioTrack: stop"); env->ExceptionDescribe(); env->ExceptionClear(); -- cgit v1.2.3