summaryrefslogtreecommitdiffstats
path: root/pico/compat
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-09 10:11:47 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-09 10:11:47 -0800
commitf5a9c763464986a7b0102d933078e8545e8af24c (patch)
tree4244901912569d77b1bcde923eccaebd36c8b5b9 /pico/compat
parent72efad84dc951a6f620a3694f206106b23126f40 (diff)
parent31a809cefabaafd5b82574df08615855f1019a43 (diff)
downloadexternal_svox-f5a9c763464986a7b0102d933078e8545e8af24c.zip
external_svox-f5a9c763464986a7b0102d933078e8545e8af24c.tar.gz
external_svox-f5a9c763464986a7b0102d933078e8545e8af24c.tar.bz2
Merge "Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE"
Diffstat (limited to 'pico/compat')
-rw-r--r--pico/compat/jni/com_android_tts_compat_SynthProxy.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp b/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
index 01cceb0..27d79b7 100644
--- a/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
+++ b/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
@@ -158,7 +158,7 @@ class SynthProxyJniStorage {
}
if (mEngineLibHandle) {
int res = dlclose(mEngineLibHandle);
- LOGE_IF( res != 0, "~SynthProxyJniStorage(): dlclose returned %d", res);
+ ALOGE_IF( res != 0, "~SynthProxyJniStorage(): dlclose returned %d", res);
}
delete[] mBuffer;
}
@@ -208,7 +208,7 @@ static int callRequestStart(JNIEnv *env, jobject request,
encoding = AUDIO_FORMAT_ENCODING_PCM_16_BIT;
break;
default:
- LOGE("Can't play, bad format");
+ ALOGE("Can't play, bad format");
return ANDROID_TTS_FAILURE;
}
@@ -225,7 +225,7 @@ static int callRequestAudioAvailable(JNIEnv *env, jobject request, int8_t *buffe
// TODO: Not nice to have to copy the buffer. Use ByteBuffer?
jbyteArray javaBuffer = env->NewByteArray(length);
if (javaBuffer == NULL) {
- LOGE("Failed to allocate byte array");
+ ALOGE("Failed to allocate byte array");
return ANDROID_TTS_FAILURE;
}
@@ -263,7 +263,7 @@ __ttsSynthDoneCB(void **pUserdata, uint32_t rate,
android_tts_synth_status_t status)
{
if (*pUserdata == NULL){
- LOGE("userdata == NULL");
+ ALOGE("userdata == NULL");
return ANDROID_TTS_CALLBACK_HALT;
}
@@ -322,7 +322,7 @@ com_android_tts_compat_SynthProxy_setLowShelf(JNIEnv *env, jobject thiz, jboolea
if (fFilterShelfSlope != 0.0f) {
initializeEQ();
} else {
- LOGE("Invalid slope, can't be null");
+ ALOGE("Invalid slope, can't be null");
return ANDROID_TTS_FAILURE;
}
}
@@ -344,7 +344,7 @@ com_android_tts_compat_SynthProxy_native_setup(JNIEnv *env, jobject thiz,
void *engine_lib_handle = dlopen(nativeSoLibNativeString,
RTLD_NOW | RTLD_LOCAL);
if (engine_lib_handle == NULL) {
- LOGE("com_android_tts_compat_SynthProxy_native_setup(): engine_lib_handle == NULL");
+ ALOGE("com_android_tts_compat_SynthProxy_native_setup(): engine_lib_handle == NULL");
} else {
android_tts_entrypoint get_TtsEngine =
reinterpret_cast<android_tts_entrypoint>(dlsym(engine_lib_handle, "android_getTtsEngine"));
@@ -376,7 +376,7 @@ com_android_tts_compat_SynthProxy_native_setup(JNIEnv *env, jobject thiz,
static SynthProxyJniStorage *getSynthData(jint jniData)
{
if (jniData == 0) {
- LOGE("Engine not initialized");
+ ALOGE("Engine not initialized");
return NULL;
}
return reinterpret_cast<SynthProxyJniStorage *>(jniData);
@@ -672,7 +672,7 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
JNIEnv* env = NULL;
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);