summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-06 19:15:50 +0000
committerSteve Block <steveblock@google.com>2012-01-06 19:15:50 +0000
commit040dcc36996cded4371cc59dfc3a9e53247a61f5 (patch)
tree8eb5a2dccf6c6c0320e7bf0394314ee3131f7884
parent8f5babd6d78f4d72c21eefe6c16a67f3fbbeced6 (diff)
downloadsrec-040dcc36996cded4371cc59dfc3a9e53247a61f5.tar.gz
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I3719a243181c92dc8cc3fc5d3aa3da4c14e990df
-rw-r--r--portable/src/plog.c2
-rw-r--r--srec_jni/android_speech_srec_MicrophoneInputStream.cpp10
-rw-r--r--srec_jni/android_speech_srec_Recognizer.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/portable/src/plog.c b/portable/src/plog.c
index 3812e72..b5f07ae 100644
--- a/portable/src/plog.c
+++ b/portable/src/plog.c
@@ -492,7 +492,7 @@ ESR_ReturnCode PLogError(const char* msg, ...)
if ( ( strncmp ( log_text, FILTER_MSG_1, FILTER_MSG_1_SIZE ) != 0 ) &&
( strncmp ( log_text, FILTER_MSG_2, FILTER_MSG_2_SIZE ) != 0 ) )
{
- LOGE ("%s", log_text );
+ ALOGE ("%s", log_text );
}
rc = 0;
#else
diff --git a/srec_jni/android_speech_srec_MicrophoneInputStream.cpp b/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
index c22a3cc..9c164d7 100644
--- a/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
+++ b/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
@@ -61,14 +61,14 @@ static JNIEXPORT jint JNICALL Java_android_speech_srec_Recognizer_AudioRecordNew
AUDIO_FORMAT_PCM_16_BIT, AUDIO_CHANNEL_IN_MONO,
fifoFrames, 0);
if (ar == NULL) {
- LOGE("Error creating AudioRecord");
+ ALOGE("Error creating AudioRecord");
}
else {
status_t s = ar->initCheck();
if (s != NO_ERROR) {
delete ar;
ar = NULL;
- LOGE("initCheck error %d ", s);
+ ALOGE("initCheck error %d ", s);
}
}
return (int)ar;
@@ -129,19 +129,19 @@ jint register_android_speech_srec_MicrophoneInputStream(JavaVM* vm, void* reserv
const char* className = "android/speech/srec/MicrophoneInputStream";
if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
- LOGE("ERROR: GetEnv failed\n");
+ ALOGE("ERROR: GetEnv failed\n");
return -1;
}
assert(env != NULL);
clazz = env->FindClass(className);
if (clazz == NULL) {
- LOGE("Native registration unable to find class '%s'\n", className);
+ ALOGE("Native registration unable to find class '%s'\n", className);
return -1;
}
if (env->RegisterNatives(clazz, gMethods,
sizeof(gMethods) / sizeof(gMethods[0])) < 0) {
- LOGE("RegisterNatives failed for '%s'\n", className);
+ ALOGE("RegisterNatives failed for '%s'\n", className);
return -1;
}
diff --git a/srec_jni/android_speech_srec_Recognizer.cpp b/srec_jni/android_speech_srec_Recognizer.cpp
index e0cd0f6..5662714 100644
--- a/srec_jni/android_speech_srec_Recognizer.cpp
+++ b/srec_jni/android_speech_srec_Recognizer.cpp
@@ -616,19 +616,19 @@ jint register_android_speech_srec_Recognizer(JavaVM* vm, void* reserved)
const char* className = "android/speech/srec/Recognizer";
if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
- LOGE("ERROR: GetEnv failed\n");
+ ALOGE("ERROR: GetEnv failed\n");
return -1;
}
assert(env != NULL);
clazz = env->FindClass(className);
if (clazz == NULL) {
- LOGE("Native registration unable to find class '%s'\n", className);
+ ALOGE("Native registration unable to find class '%s'\n", className);
return -1;
}
if (env->RegisterNatives(clazz, gMethods,
sizeof(gMethods) / sizeof(gMethods[0])) < 0) {
- LOGE("RegisterNatives failed for '%s'\n", className);
+ ALOGE("RegisterNatives failed for '%s'\n", className);
return -1;
}