summaryrefslogtreecommitdiffstats
path: root/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-06 19:10:34 +0000
committerSteve Block <steveblock@google.com>2012-01-06 19:10:34 +0000
commit31a809cefabaafd5b82574df08615855f1019a43 (patch)
treec70b5f95b671c270573913518ca0d8736847bf45 /pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
parent659851c7b5a2d0023266bf34634179ff8d08e3ba (diff)
downloadexternal_svox-31a809cefabaafd5b82574df08615855f1019a43.zip
external_svox-31a809cefabaafd5b82574df08615855f1019a43.tar.gz
external_svox-31a809cefabaafd5b82574df08615855f1019a43.tar.bz2
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: I24cb51849561ed5ebe3d8f87bd62deb034b86244
Diffstat (limited to 'pico/compat/jni/com_android_tts_compat_SynthProxy.cpp')
-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);