summaryrefslogtreecommitdiffstats
path: root/core/jni
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-12-20 16:23:08 +0000
committerSteve Block <steveblock@google.com>2012-01-03 22:38:27 +0000
commit5baa3a62a97544669fba6d65a11c07f252e654dd (patch)
tree109755e1595b438873d34b981e31f84ea64bd2a5 /core/jni
parent173ab4d61077c49f115b82eff34f97fda5a7273a (diff)
downloadframeworks_base-5baa3a62a97544669fba6d65a11c07f252e654dd.zip
frameworks_base-5baa3a62a97544669fba6d65a11c07f252e654dd.tar.gz
frameworks_base-5baa3a62a97544669fba6d65a11c07f252e654dd.tar.bz2
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
Diffstat (limited to 'core/jni')
-rw-r--r--core/jni/ActivityManager.cpp2
-rw-r--r--core/jni/AndroidRuntime.cpp14
-rw-r--r--core/jni/android/graphics/Canvas.cpp2
-rw-r--r--core/jni/android/graphics/HarfbuzzSkia.cpp4
-rw-r--r--core/jni/android/graphics/TextLayout.cpp8
-rw-r--r--core/jni/android/graphics/TextLayoutCache.cpp148
-rw-r--r--core/jni/android_app_NativeActivity.cpp2
-rw-r--r--core/jni/android_backup_BackupDataInput.cpp4
-rw-r--r--core/jni/android_backup_BackupDataOutput.cpp2
-rw-r--r--core/jni/android_backup_BackupHelperDispatcher.cpp10
-rw-r--r--core/jni/android_bluetooth_BluetoothSocket.cpp4
-rw-r--r--core/jni/android_bluetooth_common.cpp2
-rw-r--r--core/jni/android_database_SQLiteDatabase.cpp4
-rw-r--r--core/jni/android_ddm_DdmHandleNativeHeap.cpp4
-rw-r--r--core/jni/android_hardware_UsbDeviceConnection.cpp2
-rw-r--r--core/jni/android_hardware_UsbRequest.cpp4
-rw-r--r--core/jni/android_net_NetUtils.cpp2
-rw-r--r--core/jni/android_net_wifi_Wifi.cpp6
-rw-r--r--core/jni/android_os_Debug.cpp4
-rw-r--r--core/jni/android_util_Binder.cpp2
-rw-r--r--core/jni/android_util_Process.cpp4
-rw-r--r--core/jni/android_view_GLES20Canvas.cpp2
-rw-r--r--core/jni/android_view_InputEventReceiver.cpp14
-rw-r--r--core/jni/com_android_internal_content_NativeLibraryHelper.cpp8
24 files changed, 129 insertions, 129 deletions
diff --git a/core/jni/ActivityManager.cpp b/core/jni/ActivityManager.cpp
index 0bd14fa..0f9d0bb 100644
--- a/core/jni/ActivityManager.cpp
+++ b/core/jni/ActivityManager.cpp
@@ -48,7 +48,7 @@ int openContentProviderFile(const String16& uri)
}
} else {
// An exception was thrown back; fall through to return failure
- LOGD("openContentUri(%s) caught exception %d\n",
+ ALOGD("openContentUri(%s) caught exception %d\n",
String8(uri).string(), exceptionCode);
}
}
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp
index af37454..e4d3aa8 100644
--- a/core/jni/AndroidRuntime.cpp
+++ b/core/jni/AndroidRuntime.cpp
@@ -285,7 +285,7 @@ status_t AndroidRuntime::callMain(const char* className,
JNIEnv* env;
jmethodID methodId;
- LOGD("Calling main entry %s", className);
+ ALOGD("Calling main entry %s", className);
env = getJNIEnv();
if (clazz == NULL || env == NULL) {
@@ -415,7 +415,7 @@ static void readLocale(char* language, char* region)
}
strncat(language, propLang, 2);
strncat(region, propRegn, 2);
- //LOGD("language=%s region=%s\n", language, region);
+ //ALOGD("language=%s region=%s\n", language, region);
}
/*
@@ -628,7 +628,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
"-agentlib:jdwp=transport=dt_android_adb,suspend=n,server=y";
mOptions.add(opt);
- LOGD("CheckJNI is %s\n", checkJni ? "ON" : "OFF");
+ ALOGD("CheckJNI is %s\n", checkJni ? "ON" : "OFF");
if (checkJni) {
/* extended JNI checking */
opt.optionString = "-Xcheck:jni";
@@ -797,7 +797,7 @@ char* AndroidRuntime::toSlashClassName(const char* className)
*/
void AndroidRuntime::start(const char* className, const char* options)
{
- LOGD("\n>>>>>> AndroidRuntime START %s <<<<<<\n",
+ ALOGD("\n>>>>>> AndroidRuntime START %s <<<<<<\n",
className != NULL ? className : "(unknown)");
blockSigpipe();
@@ -824,7 +824,7 @@ void AndroidRuntime::start(const char* className, const char* options)
}
//const char* kernelHack = getenv("LD_ASSUME_KERNEL");
- //LOGD("Found LD_ASSUME_KERNEL='%s'\n", kernelHack);
+ //ALOGD("Found LD_ASSUME_KERNEL='%s'\n", kernelHack);
/* start the virtual machine */
JNIEnv* env;
@@ -887,7 +887,7 @@ void AndroidRuntime::start(const char* className, const char* options)
}
free(slashClassName);
- LOGD("Shutting down VM\n");
+ ALOGD("Shutting down VM\n");
if (mJavaVM->DetachCurrentThread() != JNI_OK)
LOGW("Warning: unable to detach main thread\n");
if (mJavaVM->DestroyJavaVM() != 0)
@@ -1063,7 +1063,7 @@ static int register_jni_procs(const RegJNIRec array[], size_t count, JNIEnv* env
for (size_t i = 0; i < count; i++) {
if (array[i].mProc(env) < 0) {
#ifndef NDEBUG
- LOGD("----------!!! %s failed to load\n", array[i].mName);
+ ALOGD("----------!!! %s failed to load\n", array[i].mName);
#endif
return -1;
}
diff --git a/core/jni/android/graphics/Canvas.cpp b/core/jni/android/graphics/Canvas.cpp
index feba1e6..f118dc1 100644
--- a/core/jni/android/graphics/Canvas.cpp
+++ b/core/jni/android/graphics/Canvas.cpp
@@ -442,7 +442,7 @@ public:
#endif
canvas->drawPicture(*picture);
#ifdef TIME_DRAW
- LOGD("---- picture playback %d ms\n", get_thread_msec() - now);
+ ALOGD("---- picture playback %d ms\n", get_thread_msec() - now);
#endif
}
diff --git a/core/jni/android/graphics/HarfbuzzSkia.cpp b/core/jni/android/graphics/HarfbuzzSkia.cpp
index d78081e..7e08379 100644
--- a/core/jni/android/graphics/HarfbuzzSkia.cpp
+++ b/core/jni/android/graphics/HarfbuzzSkia.cpp
@@ -86,7 +86,7 @@ static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, hb_uint32 n
for (unsigned i = 0; i < numGlyphs; ++i) {
advances[i] = SkScalarToHBFixed(scalarAdvances[i]);
#if DEBUG_ADVANCES
- LOGD("glyphsToAdvances -- advances[%d]=%d", i, advances[i]);
+ ALOGD("glyphsToAdvances -- advances[%d]=%d", i, advances[i]);
#endif
}
delete glyphs16;
@@ -193,7 +193,7 @@ HB_Error harfbuzzSkiaGetTable(void* font, const HB_Tag tag, HB_Byte* buffer, HB_
SkTypeface* typeface = static_cast<SkTypeface*>(font);
if (!typeface) {
- LOGD("Typeface cannot be null");
+ ALOGD("Typeface cannot be null");
return HB_Err_Invalid_Argument;
}
const size_t tableSize = SkFontHost::GetTableSize(typeface->uniqueID(), tag);
diff --git a/core/jni/android/graphics/TextLayout.cpp b/core/jni/android/graphics/TextLayout.cpp
index bc30ace..f88dcd6 100644
--- a/core/jni/android/graphics/TextLayout.cpp
+++ b/core/jni/android/graphics/TextLayout.cpp
@@ -190,7 +190,7 @@ void TextLayout::computeAdvancesWithICU(SkPaint* paint, const UChar* chars,
jfloat totalAdvance = 0;
if (widths < count) {
#if DEBUG_ADVANCES
- LOGD("ICU -- count=%d", widths);
+ ALOGD("ICU -- count=%d", widths);
#endif
// Skia operates on code points, not code units, so surrogate pairs return only
// one value. Expand the result so we have one value per UTF-16 code unit.
@@ -207,17 +207,17 @@ void TextLayout::computeAdvancesWithICU(SkPaint* paint, const UChar* chars,
outAdvances[p++] = 0;
}
#if DEBUG_ADVANCES
- LOGD("icu-adv = %f - total = %f", outAdvances[i], totalAdvance);
+ ALOGD("icu-adv = %f - total = %f", outAdvances[i], totalAdvance);
#endif
}
} else {
#if DEBUG_ADVANCES
- LOGD("ICU -- count=%d", count);
+ ALOGD("ICU -- count=%d", count);
#endif
for (size_t i = 0; i < count; i++) {
totalAdvance += outAdvances[i] = SkScalarToFloat(scalarArray[i]);
#if DEBUG_ADVANCES
- LOGD("icu-adv = %f - total = %f", outAdvances[i], totalAdvance);
+ ALOGD("icu-adv = %f - total = %f", outAdvances[i], totalAdvance);
#endif
}
}
diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp
index ed6aaa1..44ba68e 100644
--- a/core/jni/android/graphics/TextLayoutCache.cpp
+++ b/core/jni/android/graphics/TextLayoutCache.cpp
@@ -61,12 +61,12 @@ void TextLayoutCache::init() {
mDebugLevel = readRtlDebugLevel();
mDebugEnabled = mDebugLevel & kRtlDebugCaches;
- LOGD("Using debug level = %d - Debug Enabled = %d", mDebugLevel, mDebugEnabled);
+ ALOGD("Using debug level = %d - Debug Enabled = %d", mDebugLevel, mDebugEnabled);
mCacheStartTime = systemTime(SYSTEM_TIME_MONOTONIC);
if (mDebugEnabled) {
- LOGD("Initialization is done - Start time = %lld", mCacheStartTime);
+ ALOGD("Initialization is done - Start time = %lld", mCacheStartTime);
}
mInitialized = true;
@@ -79,7 +79,7 @@ void TextLayoutCache::operator()(TextLayoutCacheKey& text, sp<TextLayoutCacheVal
size_t totalSizeToDelete = text.getSize() + desc->getSize();
mSize -= totalSizeToDelete;
if (mDebugEnabled) {
- LOGD("Cache value %p deleted, size = %d", desc.get(), totalSizeToDelete);
+ ALOGD("Cache value %p deleted, size = %d", desc.get(), totalSizeToDelete);
}
}
@@ -130,7 +130,7 @@ sp<TextLayoutCacheValue> TextLayoutCache::getValue(SkPaint* paint,
// Cleanup to make some room if needed
if (mSize + size > mMaxSize) {
if (mDebugEnabled) {
- LOGD("Need to clean some entries for making some room for a new entry");
+ ALOGD("Need to clean some entries for making some room for a new entry");
}
while (mSize + size > mMaxSize) {
// This will call the callback
@@ -157,7 +157,7 @@ sp<TextLayoutCacheValue> TextLayoutCache::getValue(SkPaint* paint,
if (mDebugEnabled) {
nsecs_t totalTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime;
- LOGD("CACHE MISS: Added entry %p "
+ ALOGD("CACHE MISS: Added entry %p "
"with start = %d, count = %d, contextCount = %d, "
"entry size %d bytes, remaining space %d bytes"
" - Compute time %0.6f ms - Put time %0.6f ms - Text = '%s'",
@@ -168,7 +168,7 @@ sp<TextLayoutCacheValue> TextLayoutCache::getValue(SkPaint* paint,
}
} else {
if (mDebugEnabled) {
- LOGD("CACHE MISS: Calculated but not storing entry because it is too big "
+ ALOGD("CACHE MISS: Calculated but not storing entry because it is too big "
"with start = %d, count = %d, contextCount = %d, "
"entry size %d bytes, remaining space %d bytes"
" - Compute time %0.6f ms - Text = '%s'",
@@ -188,7 +188,7 @@ sp<TextLayoutCacheValue> TextLayoutCache::getValue(SkPaint* paint,
if (value->getElapsedTime() > 0) {
float deltaPercent = 100 * ((value->getElapsedTime() - elapsedTimeThruCacheGet)
/ ((float)value->getElapsedTime()));
- LOGD("CACHE HIT #%d with start = %d, count = %d, contextCount = %d"
+ ALOGD("CACHE HIT #%d with start = %d, count = %d, contextCount = %d"
"- Compute time %0.6f ms - "
"Cache get time %0.6f ms - Gain in percent: %2.2f - Text = '%s'",
mCacheHitCount, start, count, contextCount,
@@ -215,18 +215,18 @@ void TextLayoutCache::dumpCacheStats() {
bytes += mCache.getKeyAt(i).getSize() + mCache.getValueAt(i)->getSize();
}
- LOGD("------------------------------------------------");
- LOGD("Cache stats");
- LOGD("------------------------------------------------");
- LOGD("pid : %d", getpid());
- LOGD("running : %.0f seconds", timeRunningInSec);
- LOGD("entries : %d", cacheSize);
- LOGD("max size : %d bytes", mMaxSize);
- LOGD("used : %d bytes according to mSize, %d bytes actual", mSize, bytes);
- LOGD("remaining : %d bytes or %2.2f percent", mMaxSize - mSize, remainingPercent);
- LOGD("hits : %d", mCacheHitCount);
- LOGD("saved : %0.6f ms", mNanosecondsSaved * 0.000001f);
- LOGD("------------------------------------------------");
+ ALOGD("------------------------------------------------");
+ ALOGD("Cache stats");
+ ALOGD("------------------------------------------------");
+ ALOGD("pid : %d", getpid());
+ ALOGD("running : %.0f seconds", timeRunningInSec);
+ ALOGD("entries : %d", cacheSize);
+ ALOGD("max size : %d bytes", mMaxSize);
+ ALOGD("used : %d bytes according to mSize, %d bytes actual", mSize, bytes);
+ ALOGD("remaining : %d bytes or %2.2f percent", mMaxSize - mSize, remainingPercent);
+ ALOGD("hits : %d", mCacheHitCount);
+ ALOGD("saved : %0.6f ms", mNanosecondsSaved * 0.000001f);
+ ALOGD("------------------------------------------------");
}
/**
@@ -367,7 +367,7 @@ void TextLayoutEngine::computeValues(TextLayoutCacheValue* value, SkPaint* paint
computeValues(paint, chars, start, count, contextCount, dirFlags,
&value->mAdvances, &value->mTotalAdvance, &value->mGlyphs);
#if DEBUG_ADVANCES
- LOGD("Advances - start = %d, count = %d, contextCount = %d, totalAdvance = %f", start, count,
+ ALOGD("Advances - start = %d, count = %d, contextCount = %d, totalAdvance = %f", start, count,
contextCount, value->mTotalAdvance);
#endif
}
@@ -403,21 +403,21 @@ void TextLayoutEngine::computeValues(SkPaint* paint, const UChar* chars,
if (bidi) {
UErrorCode status = U_ZERO_ERROR;
#if DEBUG_GLYPHS
- LOGD("******** ComputeValues -- start");
- LOGD(" -- string = '%s'", String8(chars + start, count).string());
- LOGD(" -- start = %d", start);
- LOGD(" -- count = %d", count);
- LOGD(" -- contextCount = %d", contextCount);
- LOGD(" -- bidiReq = %d", bidiReq);
+ ALOGD("******** ComputeValues -- start");
+ ALOGD(" -- string = '%s'", String8(chars + start, count).string());
+ ALOGD(" -- start = %d", start);
+ ALOGD(" -- count = %d", count);
+ ALOGD(" -- contextCount = %d", contextCount);
+ ALOGD(" -- bidiReq = %d", bidiReq);
#endif
ubidi_setPara(bidi, chars, contextCount, bidiReq, NULL, &status);
if (U_SUCCESS(status)) {
int paraDir = ubidi_getParaLevel(bidi) & kDirection_Mask; // 0 if ltr, 1 if rtl
ssize_t rc = ubidi_countRuns(bidi, &status);
#if DEBUG_GLYPHS
- LOGD(" -- dirFlags = %d", dirFlags);
- LOGD(" -- paraDir = %d", paraDir);
- LOGD(" -- run-count = %d", int(rc));
+ ALOGD(" -- dirFlags = %d", dirFlags);
+ ALOGD(" -- paraDir = %d", paraDir);
+ ALOGD(" -- run-count = %d", int(rc));
#endif
if (U_SUCCESS(status) && rc == 1) {
// Normal case: one run, status is ok
@@ -466,7 +466,7 @@ void TextLayoutEngine::computeValues(SkPaint* paint, const UChar* chars,
isRTL = (runDir == UBIDI_RTL);
jfloat runTotalAdvance = 0;
#if DEBUG_GLYPHS
- LOGD("Processing Bidi Run = %d -- run-start = %d, run-len = %d, isRTL = %d",
+ ALOGD("Processing Bidi Run = %d -- run-start = %d, run-len = %d, isRTL = %d",
i, startRun, lengthRun, isRTL);
#endif
computeRunValues(paint, chars + startRun, lengthRun, isRTL,
@@ -491,7 +491,7 @@ void TextLayoutEngine::computeValues(SkPaint* paint, const UChar* chars,
// Default single run case
if (useSingleRun){
#if DEBUG_GLYPHS
- LOGD("Using a SINGLE BiDi Run "
+ ALOGD("Using a SINGLE BiDi Run "
"-- run-start = %d, run-len = %d, isRTL = %d", start, count, isRTL);
#endif
computeRunValues(paint, chars + start, count, isRTL,
@@ -499,15 +499,15 @@ void TextLayoutEngine::computeValues(SkPaint* paint, const UChar* chars,
}
#if DEBUG_GLYPHS
- LOGD(" -- Total returned glyphs-count = %d", outGlyphs->size());
- LOGD("******** ComputeValues -- end");
+ ALOGD(" -- Total returned glyphs-count = %d", outGlyphs->size());
+ ALOGD("******** ComputeValues -- end");
#endif
}
static void logGlyphs(HB_ShaperItem shaperItem) {
- LOGD(" -- glyphs count=%d", shaperItem.num_glyphs);
+ ALOGD(" -- glyphs count=%d", shaperItem.num_glyphs);
for (size_t i = 0; i < shaperItem.num_glyphs; i++) {
- LOGD(" -- glyph[%d] = %d, offset.x = %0.2f, offset.y = %0.2f", i,
+ ALOGD(" -- glyph[%d] = %d, offset.x = %0.2f, offset.y = %0.2f", i,
shaperItem.glyphs[i],
HBFixedToFloat(shaperItem.offsets[i].x),
HBFixedToFloat(shaperItem.offsets[i].y));
@@ -532,7 +532,7 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
// So we have found a diacritic, let's get now the main code point which is paired
// with it. As we can have several diacritics in a row, we need to iterate back again
#if DEBUG_GLYPHS
- LOGD("The BiDi run '%s' is containing a Diacritic at position %d",
+ ALOGD("The BiDi run '%s' is containing a Diacritic at position %d",
String8(chars, count).string(), int(i));
#endif
ssize_t j = i - 1;
@@ -549,7 +549,7 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
}
#if DEBUG_GLYPHS
- LOGD("Found main code point at index %d", int(j));
+ ALOGD("Found main code point at index %d", int(j));
#endif
// We found the main code point, so we can normalize the "chunck" and fill
// the remaining with ZWSP so that the Paint.getTextWidth() APIs will still be able
@@ -578,12 +578,12 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
#if DEBUG_GLYPHS
if (useNormalizedString) {
- LOGD("Will use normalized string '%s', length = %d",
+ ALOGD("Will use normalized string '%s', length = %d",
String8(mNormalizedString.getTerminatedBuffer(),
mNormalizedString.length()).string(),
mNormalizedString.length());
} else {
- LOGD("Normalization is not needed or cannot be done, using initial string");
+ ALOGD("Normalization is not needed or cannot be done, using initial string");
}
#endif
@@ -616,15 +616,15 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
ssize_t endScriptRun = startScriptRun + countScriptRun;
#if DEBUG_GLYPHS
- LOGD("-------- Start of Script Run --------");
- LOGD("Shaping Script Run with");
- LOGD(" -- isRTL = %d", isRTL);
- LOGD(" -- HB script = %d", mShaperItem.item.script);
- LOGD(" -- startFontRun = %d", int(startScriptRun));
- LOGD(" -- endFontRun = %d", int(endScriptRun));
- LOGD(" -- countFontRun = %d", countScriptRun);
- LOGD(" -- run = '%s'", String8(chars + startScriptRun, countScriptRun).string());
- LOGD(" -- string = '%s'", String8(chars, count).string());
+ ALOGD("-------- Start of Script Run --------");
+ ALOGD("Shaping Script Run with");
+ ALOGD(" -- isRTL = %d", isRTL);
+ ALOGD(" -- HB script = %d", mShaperItem.item.script);
+ ALOGD(" -- startFontRun = %d", int(startScriptRun));
+ ALOGD(" -- endFontRun = %d", int(endScriptRun));
+ ALOGD(" -- countFontRun = %d", countScriptRun);
+ ALOGD(" -- run = '%s'", String8(chars + startScriptRun, countScriptRun).string());
+ ALOGD(" -- string = '%s'", String8(chars, count).string());
#endif
// Initialize Harfbuzz Shaper and get the base glyph count for offsetting the glyphIDs
@@ -632,29 +632,29 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
size_t glyphBaseCount = shapeFontRun(paint, isRTL);
#if DEBUG_GLYPHS
- LOGD("Got from Harfbuzz");
- LOGD(" -- glyphBaseCount = %d", glyphBaseCount);
- LOGD(" -- num_glypth = %d", mShaperItem.num_glyphs);
- LOGD(" -- kerning_applied = %d", mShaperItem.kerning_applied);
- LOGD(" -- isDevKernText = %d", paint->isDevKernText());
+ ALOGD("Got from Harfbuzz");
+ ALOGD(" -- glyphBaseCount = %d", glyphBaseCount);
+ ALOGD(" -- num_glypth = %d", mShaperItem.num_glyphs);
+ ALOGD(" -- kerning_applied = %d", mShaperItem.kerning_applied);
+ ALOGD(" -- isDevKernText = %d", paint->isDevKernText());
logGlyphs(mShaperItem);
#endif
if (isRTL) {
endScriptRun = startScriptRun;
#if DEBUG_GLYPHS
- LOGD("Updated endScriptRun = %d", int(endScriptRun));
+ ALOGD("Updated endScriptRun = %d", int(endScriptRun));
#endif
} else {
startScriptRun = endScriptRun;
#if DEBUG_GLYPHS
- LOGD("Updated startScriptRun = %d", int(startScriptRun));
+ ALOGD("Updated startScriptRun = %d", int(startScriptRun));
#endif
}
if (mShaperItem.advances == NULL || mShaperItem.num_glyphs == 0) {
#if DEBUG_GLYPHS
- LOGD("Advances array is empty or num_glypth = 0");
+ ALOGD("Advances array is empty or num_glypth = 0");
#endif
outAdvances->insertAt(0, outAdvances->size(), countScriptRun);
continue;
@@ -679,9 +679,9 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
totalAdvance += totalFontRunAdvance;
#if DEBUG_ADVANCES
- LOGD("Returned advances");
+ ALOGD("Returned advances");
for (size_t i = 0; i < countScriptRun; i++) {
- LOGD(" -- hb-adv[%d] = %0.2f, log_clusters = %d, total = %0.2f", i,
+ ALOGD(" -- hb-adv[%d] = %0.2f, log_clusters = %d, total = %0.2f", i,
(*outAdvances)[i], mShaperItem.log_clusters[i], totalFontRunAdvance);
}
#endif
@@ -690,13 +690,13 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
if (outGlyphs) {
size_t countGlyphs = mShaperItem.num_glyphs;
#if DEBUG_GLYPHS
- LOGD("Returned script run glyphs -- count = %d", countGlyphs);
+ ALOGD("Returned script run glyphs -- count = %d", countGlyphs);
#endif
for (size_t i = 0; i < countGlyphs; i++) {
jchar glyph = glyphBaseCount +
(jchar) mShaperItem.glyphs[(!isRTL) ? i : countGlyphs - 1 - i];
#if DEBUG_GLYPHS
- LOGD(" -- glyph[%d] = %d", i, glyph);
+ ALOGD(" -- glyph[%d] = %d", i, glyph);
#endif
outGlyphs->add(glyph);
}
@@ -706,7 +706,7 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
*outTotalAdvance = totalAdvance;
#if DEBUG_GLYPHS
- LOGD("-------- End of Script Run --------");
+ ALOGD("-------- End of Script Run --------");
#endif
}
@@ -725,7 +725,7 @@ size_t TextLayoutEngine::shapeFontRun(SkPaint* paint, bool isRTL) {
case HB_Script_Arabic:
typeface = getCachedTypeface(&mArabicTypeface, TYPEFACE_ARABIC);
#if DEBUG_GLYPHS
- LOGD("Using Arabic Typeface");
+ ALOGD("Using Arabic Typeface");
#endif
break;
@@ -736,7 +736,7 @@ size_t TextLayoutEngine::shapeFontRun(SkPaint* paint, bool isRTL) {
case SkTypeface::kBoldItalic:
typeface = getCachedTypeface(&mHebrewBoldTypeface, TYPE_FACE_HEBREW_BOLD);
#if DEBUG_GLYPHS
- LOGD("Using Hebrew Bold/BoldItalic Typeface");
+ ALOGD("Using Hebrew Bold/BoldItalic Typeface");
#endif
break;
@@ -745,14 +745,14 @@ size_t TextLayoutEngine::shapeFontRun(SkPaint* paint, bool isRTL) {
default:
typeface = getCachedTypeface(&mHebrewRegularTypeface, TYPE_FACE_HEBREW_REGULAR);
#if DEBUG_GLYPHS
- LOGD("Using Hebrew Regular/Italic Typeface");
+ ALOGD("Using Hebrew Regular/Italic Typeface");
#endif
break;
}
} else {
typeface = getCachedTypeface(&mHebrewRegularTypeface, TYPE_FACE_HEBREW_REGULAR);
#if DEBUG_GLYPHS
- LOGD("Using Hebrew Regular Typeface");
+ ALOGD("Using Hebrew Regular Typeface");
#endif
}
break;
@@ -760,14 +760,14 @@ size_t TextLayoutEngine::shapeFontRun(SkPaint* paint, bool isRTL) {
case HB_Script_Bengali:
typeface = getCachedTypeface(&mBengaliTypeface, TYPEFACE_BENGALI);
#if DEBUG_GLYPHS
- LOGD("Using Bengali Typeface");
+ ALOGD("Using Bengali Typeface");
#endif
break;
case HB_Script_Thai:
typeface = getCachedTypeface(&mThaiTypeface, TYPEFACE_THAI);
#if DEBUG_GLYPHS
- LOGD("Using Thai Typeface");
+ ALOGD("Using Thai Typeface");
#endif
break;
@@ -775,11 +775,11 @@ size_t TextLayoutEngine::shapeFontRun(SkPaint* paint, bool isRTL) {
if (!typeface) {
typeface = mDefaultTypeface;
#if DEBUG_GLYPHS
- LOGD("Using Default Typeface");
+ ALOGD("Using Default Typeface");
#endif
} else {
#if DEBUG_GLYPHS
- LOGD("Using Paint Typeface");
+ ALOGD("Using Paint Typeface");
#endif
}
break;
@@ -789,7 +789,7 @@ size_t TextLayoutEngine::shapeFontRun(SkPaint* paint, bool isRTL) {
mShaperItem.face = getCachedHBFace(typeface);
#if DEBUG_GLYPHS
- LOGD("Run typeface = %p, uniqueID = %d, hb_face = %p",
+ ALOGD("Run typeface = %p, uniqueID = %d, hb_face = %p",
typeface, typeface->uniqueID(), mShaperItem.face);
#endif
@@ -834,7 +834,7 @@ void TextLayoutEngine::ensureShaperItemGlyphArrays(size_t size) {
void TextLayoutEngine::createShaperItemGlyphArrays(size_t size) {
#if DEBUG_GLYPHS
- LOGD("Creating Glyph Arrays with size = %d", size);
+ ALOGD("Creating Glyph Arrays with size = %d", size);
#endif
mShaperItemGlyphArraySize = size;
@@ -864,13 +864,13 @@ SkTypeface* TextLayoutEngine::getCachedTypeface(SkTypeface** typeface, const cha
// CreateFromFile(path) can return NULL if the path is non existing
if (!*typeface) {
#if DEBUG_GLYPHS
- LOGD("Font path '%s' is not valid, will use default font", path);
+ ALOGD("Font path '%s' is not valid, will use default font", path);
#endif
return mDefaultTypeface;
}
(*typeface)->ref();
#if DEBUG_GLYPHS
- LOGD("Created SkTypeface from file '%s' with uniqueID = %d", path, (*typeface)->uniqueID());
+ ALOGD("Created SkTypeface from file '%s' with uniqueID = %d", path, (*typeface)->uniqueID());
#endif
}
return *typeface;
@@ -885,7 +885,7 @@ HB_Face TextLayoutEngine::getCachedHBFace(SkTypeface* typeface) {
HB_Face face = HB_NewFace(typeface, harfbuzzSkiaGetTable);
if (face) {
#if DEBUG_GLYPHS
- LOGD("Created HB_NewFace %p from paint typeface = %p", face, typeface);
+ ALOGD("Created HB_NewFace %p from paint typeface = %p", face, typeface);
#endif
mCachedHBFaces.add(fontId, face);
}
diff --git a/core/jni/android_app_NativeActivity.cpp b/core/jni/android_app_NativeActivity.cpp
index c43e7e7..15bb543 100644
--- a/core/jni/android_app_NativeActivity.cpp
+++ b/core/jni/android_app_NativeActivity.cpp
@@ -1060,7 +1060,7 @@ static const char* const kNativeActivityPathName = "android/app/NativeActivity";
int register_android_app_NativeActivity(JNIEnv* env)
{
- //LOGD("register_android_app_NativeActivity");
+ //ALOGD("register_android_app_NativeActivity");
jclass clazz;
FIND_CLASS(clazz, kNativeActivityPathName);
diff --git a/core/jni/android_backup_BackupDataInput.cpp b/core/jni/android_backup_BackupDataInput.cpp
index c174a41..2fb0076 100644
--- a/core/jni/android_backup_BackupDataInput.cpp
+++ b/core/jni/android_backup_BackupDataInput.cpp
@@ -80,7 +80,7 @@ readNextHeader_native(JNIEnv* env, jobject clazz, int r, jobject entity)
return 0;
}
default:
- LOGD("Unknown header type: 0x%08x\n", type);
+ ALOGD("Unknown header type: 0x%08x\n", type);
return -1;
}
@@ -133,7 +133,7 @@ static const JNINativeMethod g_methods[] = {
int register_android_backup_BackupDataInput(JNIEnv* env)
{
- //LOGD("register_android_backup_BackupDataInput");
+ //ALOGD("register_android_backup_BackupDataInput");
jclass clazz = env->FindClass("android/app/backup/BackupDataInput$EntityHeader");
LOG_FATAL_IF(clazz == NULL, "Unable to find class android.app.backup.BackupDataInput.EntityHeader");
diff --git a/core/jni/android_backup_BackupDataOutput.cpp b/core/jni/android_backup_BackupDataOutput.cpp
index 144a10c..f4b5dca 100644
--- a/core/jni/android_backup_BackupDataOutput.cpp
+++ b/core/jni/android_backup_BackupDataOutput.cpp
@@ -107,7 +107,7 @@ static const JNINativeMethod g_methods[] = {
int register_android_backup_BackupDataOutput(JNIEnv* env)
{
- //LOGD("register_android_backup_BackupDataOutput");
+ //ALOGD("register_android_backup_BackupDataOutput");
return AndroidRuntime::registerNativeMethods(env, "android/app/backup/BackupDataOutput",
g_methods, NELEM(g_methods));
}
diff --git a/core/jni/android_backup_BackupHelperDispatcher.cpp b/core/jni/android_backup_BackupHelperDispatcher.cpp
index 49f1cd4..1f188ff 100644
--- a/core/jni/android_backup_BackupHelperDispatcher.cpp
+++ b/core/jni/android_backup_BackupHelperDispatcher.cpp
@@ -85,11 +85,11 @@ readHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj)
}
#if 0
- LOGD("chunk header:");
- LOGD(" headerSize=%d", flattenedHeader.headerSize);
- LOGD(" version=0x%08x", flattenedHeader.version);
- LOGD(" dataSize=%d", flattenedHeader.dataSize);
- LOGD(" nameLength=%d", flattenedHeader.nameLength);
+ ALOGD("chunk header:");
+ ALOGD(" headerSize=%d", flattenedHeader.headerSize);
+ ALOGD(" version=0x%08x", flattenedHeader.version);
+ ALOGD(" dataSize=%d", flattenedHeader.dataSize);
+ ALOGD(" nameLength=%d", flattenedHeader.nameLength);
#endif
if (flattenedHeader.dataSize < 0 || flattenedHeader.nameLength < 0 ||
diff --git a/core/jni/android_bluetooth_BluetoothSocket.cpp b/core/jni/android_bluetooth_BluetoothSocket.cpp
index 32ceb2c..d9ff36a 100644
--- a/core/jni/android_bluetooth_BluetoothSocket.cpp
+++ b/core/jni/android_bluetooth_BluetoothSocket.cpp
@@ -240,7 +240,7 @@ connect:
* retry the connect. Unfortunately we have to create a new fd.
* It's not ideal to switch the fd underneath the object, but
* is currently safe */
- LOGD("Hit bug 5082381 (EALREADY on ACL collision), trying workaround");
+ ALOGD("Hit bug 5082381 (EALREADY on ACL collision), trying workaround");
usleep(100000);
retry++;
abortNative(env, obj);
@@ -252,7 +252,7 @@ connect:
goto connect;
}
if (!ret && retry > 0)
- LOGD("...workaround ok");
+ ALOGD("...workaround ok");
if (ret)
jniThrowIOException(env, errno);
diff --git a/core/jni/android_bluetooth_common.cpp b/core/jni/android_bluetooth_common.cpp
index a3e99cb..c8dc9c2 100644
--- a/core/jni/android_bluetooth_common.cpp
+++ b/core/jni/android_bluetooth_common.cpp
@@ -855,7 +855,7 @@ bool debug_no_encrypt() {
property_get("debug.bt.no_encrypt", value, "");
if (!strncmp("true", value, PROPERTY_VALUE_MAX) ||
!strncmp("1", value, PROPERTY_VALUE_MAX)) {
- LOGD("mandatory bluetooth encryption disabled");
+ ALOGD("mandatory bluetooth encryption disabled");
return true;
} else {
return false;
diff --git a/core/jni/android_database_SQLiteDatabase.cpp b/core/jni/android_database_SQLiteDatabase.cpp
index 605a11c..2966a71 100644
--- a/core/jni/android_database_SQLiteDatabase.cpp
+++ b/core/jni/android_database_SQLiteDatabase.cpp
@@ -439,7 +439,7 @@ static jint native_addCustomFunction(JNIEnv* env, jobject object,
sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle);
char const *nameStr = env->GetStringUTFChars(name, NULL);
jobject ref = env->NewGlobalRef(function);
- LOGD_IF(DEBUG_JNI, "native_addCustomFunction %s ref: %p", nameStr, ref);
+ ALOGD_IF(DEBUG_JNI, "native_addCustomFunction %s ref: %p", nameStr, ref);
int err = sqlite3_create_function(handle, nameStr, numArgs, SQLITE_UTF8,
(void *)ref, custom_function_callback, NULL, NULL);
env->ReleaseStringUTFChars(name, nameStr);
@@ -456,7 +456,7 @@ static jint native_addCustomFunction(JNIEnv* env, jobject object,
static void native_releaseCustomFunction(JNIEnv* env, jobject object, jint ref)
{
- LOGD_IF(DEBUG_JNI, "native_releaseCustomFunction %d", ref);
+ ALOGD_IF(DEBUG_JNI, "native_releaseCustomFunction %d", ref);
env->DeleteGlobalRef((jobject)ref);
}
diff --git a/core/jni/android_ddm_DdmHandleNativeHeap.cpp b/core/jni/android_ddm_DdmHandleNativeHeap.cpp
index c3b4e3c..42d408d 100644
--- a/core/jni/android_ddm_DdmHandleNativeHeap.cpp
+++ b/core/jni/android_ddm_DdmHandleNativeHeap.cpp
@@ -87,7 +87,7 @@ static jbyteArray getLeakInfo(JNIEnv *env, jobject clazz)
header.mapSize += amount;
} while (header.mapSize < MAPS_FILE_SIZE);
- LOGD("**** read %d bytes from '%s'", (int) header.mapSize, path);
+ ALOGD("**** read %d bytes from '%s'", (int) header.mapSize, path);
}
}
@@ -105,7 +105,7 @@ static jbyteArray getLeakInfo(JNIEnv *env, jobject clazz)
bytes = env->GetByteArrayElements(array, NULL);
ptr = bytes;
-// LOGD("*** mapSize: %d allocSize: %d allocInfoSize: %d totalMemory: %d",
+// ALOGD("*** mapSize: %d allocSize: %d allocInfoSize: %d totalMemory: %d",
// header.mapSize, header.allocSize, header.allocInfoSize, header.totalMemory);
memcpy(ptr, &header, sizeof(header));
diff --git a/core/jni/android_hardware_UsbDeviceConnection.cpp b/core/jni/android_hardware_UsbDeviceConnection.cpp
index 68be9e1..f53e2f7 100644
--- a/core/jni/android_hardware_UsbDeviceConnection.cpp
+++ b/core/jni/android_hardware_UsbDeviceConnection.cpp
@@ -64,7 +64,7 @@ android_hardware_UsbDeviceConnection_open(JNIEnv *env, jobject thiz, jstring dev
static void
android_hardware_UsbDeviceConnection_close(JNIEnv *env, jobject thiz)
{
- LOGD("close\n");
+ ALOGD("close\n");
struct usb_device* device = get_device_from_object(env, thiz);
if (device) {
usb_device_close(device);
diff --git a/core/jni/android_hardware_UsbRequest.cpp b/core/jni/android_hardware_UsbRequest.cpp
index 6bd67d1..6e1d443 100644
--- a/core/jni/android_hardware_UsbRequest.cpp
+++ b/core/jni/android_hardware_UsbRequest.cpp
@@ -42,7 +42,7 @@ static jboolean
android_hardware_UsbRequest_init(JNIEnv *env, jobject thiz, jobject java_device,
jint ep_address, jint ep_attributes, jint ep_max_packet_size, jint ep_interval)
{
- LOGD("init\n");
+ ALOGD("init\n");
struct usb_device* device = get_device_from_object(env, java_device);
if (!device) {
@@ -68,7 +68,7 @@ android_hardware_UsbRequest_init(JNIEnv *env, jobject thiz, jobject java_device,
static void
android_hardware_UsbRequest_close(JNIEnv *env, jobject thiz)
{
- LOGD("close\n");
+ ALOGD("close\n");
struct usb_request* request = get_request_from_object(env, thiz);
if (request) {
usb_request_free(request);
diff --git a/core/jni/android_net_NetUtils.cpp b/core/jni/android_net_NetUtils.cpp
index d9bd50e..724d9fb 100644
--- a/core/jni/android_net_NetUtils.cpp
+++ b/core/jni/android_net_NetUtils.cpp
@@ -97,7 +97,7 @@ static jint android_net_utils_resetConnections(JNIEnv* env, jobject clazz,
const char *nameStr = env->GetStringUTFChars(ifname, NULL);
- LOGD("android_net_utils_resetConnections in env=%p clazz=%p iface=%s mask=0x%x\n",
+ ALOGD("android_net_utils_resetConnections in env=%p clazz=%p iface=%s mask=0x%x\n",
env, clazz, nameStr, mask);
result = ::ifc_reset_connections(nameStr, mask);
diff --git a/core/jni/android_net_wifi_Wifi.cpp b/core/jni/android_net_wifi_Wifi.cpp
index 25115a0..2ac3ca8 100644
--- a/core/jni/android_net_wifi_Wifi.cpp
+++ b/core/jni/android_net_wifi_Wifi.cpp
@@ -164,7 +164,7 @@ static jboolean android_net_wifi_doBooleanCommand(JNIEnv* env, jobject, jstring
if (command.c_str() == NULL) {
return JNI_FALSE;
}
- if (DBG) LOGD("doBoolean: %s", command.c_str());
+ if (DBG) ALOGD("doBoolean: %s", command.c_str());
return doBooleanCommand(ifname.c_str(), "OK", "%s", command.c_str());
}
@@ -177,7 +177,7 @@ static jint android_net_wifi_doIntCommand(JNIEnv* env, jobject, jstring jIface,
if (command.c_str() == NULL) {
return -1;
}
- if (DBG) LOGD("doInt: %s", command.c_str());
+ if (DBG) ALOGD("doInt: %s", command.c_str());
return doIntCommand(ifname.c_str(), "%s", command.c_str());
}
@@ -190,7 +190,7 @@ static jstring android_net_wifi_doStringCommand(JNIEnv* env, jobject, jstring jI
if (command.c_str() == NULL) {
return NULL;
}
- if (DBG) LOGD("doString: %s", command.c_str());
+ if (DBG) ALOGD("doString: %s", command.c_str());
return doStringCommand(env, ifname.c_str(), "%s", command.c_str());
}
diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp
index 85fac5f..f8dc618 100644
--- a/core/jni/android_os_Debug.cpp
+++ b/core/jni/android_os_Debug.cpp
@@ -530,9 +530,9 @@ static void android_os_Debug_dumpNativeHeap(JNIEnv* env, jobject clazz,
return;
}
- LOGD("Native heap dump starting...\n");
+ ALOGD("Native heap dump starting...\n");
dumpNativeHeap(fp);
- LOGD("Native heap dump complete.\n");
+ ALOGD("Native heap dump complete.\n");
fclose(fp);
}
diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp
index bd62268..9e3d04a 100644
--- a/core/jni/android_util_Binder.cpp
+++ b/core/jni/android_util_Binder.cpp
@@ -50,7 +50,7 @@
#define DEBUG_DEATH 0
#if DEBUG_DEATH
-#define LOGDEATH LOGD
+#define LOGDEATH ALOGD
#else
#define LOGDEATH ALOGV
#endif
diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp
index e7626bc..bc7e47c 100644
--- a/core/jni/android_util_Process.cpp
+++ b/core/jni/android_util_Process.cpp
@@ -205,9 +205,9 @@ void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jin
}
if (grp == ANDROID_TGROUP_BG_NONINTERACT) {
- LOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline);
+ ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline);
} else {
- LOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline);
+ ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline);
}
#endif
sprintf(proc_path, "/proc/%d/task", pid);
diff --git a/core/jni/android_view_GLES20Canvas.cpp b/core/jni/android_view_GLES20Canvas.cpp
index 5860658..383d5ae 100644
--- a/core/jni/android_view_GLES20Canvas.cpp
+++ b/core/jni/android_view_GLES20Canvas.cpp
@@ -66,7 +66,7 @@ using namespace uirenderer;
// Debug
#if DEBUG_RENDERER
- #define RENDERER_LOGD(...) LOGD(__VA_ARGS__)
+ #define RENDERER_LOGD(...) ALOGD(__VA_ARGS__)
#else
#define RENDERER_LOGD(...)
#endif
diff --git a/core/jni/android_view_InputEventReceiver.cpp b/core/jni/android_view_InputEventReceiver.cpp
index 523baf1..c8f1f51 100644
--- a/core/jni/android_view_InputEventReceiver.cpp
+++ b/core/jni/android_view_InputEventReceiver.cpp
@@ -74,13 +74,13 @@ NativeInputEventReceiver::NativeInputEventReceiver(JNIEnv* env,
mReceiverObjGlobal(env->NewGlobalRef(receiverObj)),
mInputConsumer(inputChannel), mLooper(looper), mEventInProgress(false) {
#if DEBUG_DISPATCH_CYCLE
- LOGD("channel '%s' ~ Initializing input event receiver.", getInputChannelName());
+ ALOGD("channel '%s' ~ Initializing input event receiver.", getInputChannelName());
#endif
}
NativeInputEventReceiver::~NativeInputEventReceiver() {
#if DEBUG_DISPATCH_CYCLE
- LOGD("channel '%s' ~ Disposing input event receiver.", getInputChannelName());
+ ALOGD("channel '%s' ~ Disposing input event receiver.", getInputChannelName());
#endif
mLooper->removeFd(mInputConsumer.getChannel()->getReceivePipeFd());
@@ -108,7 +108,7 @@ status_t NativeInputEventReceiver::initialize() {
status_t NativeInputEventReceiver::finishInputEvent(bool handled) {
if (mEventInProgress) {
#if DEBUG_DISPATCH_CYCLE
- LOGD("channel '%s' ~ Finished input event.", getInputChannelName());
+ ALOGD("channel '%s' ~ Finished input event.", getInputChannelName());
#endif
mEventInProgress = false;
@@ -166,7 +166,7 @@ int NativeInputEventReceiver::handleReceiveCallback(int receiveFd, int events, v
switch (inputEvent->getType()) {
case AINPUT_EVENT_TYPE_KEY:
#if DEBUG_DISPATCH_CYCLE
- LOGD("channel '%s' ~ Received key event.",
+ ALOGD("channel '%s' ~ Received key event.",
r->getInputChannelName());
#endif
inputEventObj = android_view_KeyEvent_fromNative(env,
@@ -175,7 +175,7 @@ int NativeInputEventReceiver::handleReceiveCallback(int receiveFd, int events, v
case AINPUT_EVENT_TYPE_MOTION:
#if DEBUG_DISPATCH_CYCLE
- LOGD("channel '%s' ~ Received motion event.",
+ ALOGD("channel '%s' ~ Received motion event.",
r->getInputChannelName());
#endif
inputEventObj = android_view_MotionEvent_obtainAsCopy(env,
@@ -197,12 +197,12 @@ int NativeInputEventReceiver::handleReceiveCallback(int receiveFd, int events, v
r->mEventInProgress = true;
#if DEBUG_DISPATCH_CYCLE
- LOGD("channel '%s' ~ Invoking input handler.", r->getInputChannelName());
+ ALOGD("channel '%s' ~ Invoking input handler.", r->getInputChannelName());
#endif
env->CallVoidMethod(r->mReceiverObjGlobal,
gInputEventReceiverClassInfo.dispatchInputEvent, inputEventObj);
#if DEBUG_DISPATCH_CYCLE
- LOGD("channel '%s' ~ Returned from input handler.", r->getInputChannelName());
+ ALOGD("channel '%s' ~ Returned from input handler.", r->getInputChannelName());
#endif
if (env->ExceptionCheck()) {
diff --git a/core/jni/com_android_internal_content_NativeLibraryHelper.cpp b/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
index 9d2ab28..62ea277 100644
--- a/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
+++ b/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
@@ -174,7 +174,7 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr
time_t modTime;
if (!zipFile->getEntryInfo(zipEntry, NULL, &uncompLen, NULL, NULL, &when, &crc)) {
- LOGD("Couldn't read zip entry info\n");
+ ALOGD("Couldn't read zip entry info\n");
return INSTALL_FAILED_INVALID_APK;
} else {
struct tm t;
@@ -187,7 +187,7 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr
char localFileName[nativeLibPath.size() + fileNameLen + 2];
if (strlcpy(localFileName, nativeLibPath.c_str(), sizeof(localFileName)) != nativeLibPath.size()) {
- LOGD("Couldn't allocate local file name for library");
+ ALOGD("Couldn't allocate local file name for library");
return INSTALL_FAILED_INTERNAL_ERROR;
}
@@ -195,7 +195,7 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr
if (strlcpy(localFileName + nativeLibPath.size() + 1, fileName, sizeof(localFileName)
- nativeLibPath.size() - 1) != fileNameLen) {
- LOGD("Couldn't allocate local file name for library");
+ ALOGD("Couldn't allocate local file name for library");
return INSTALL_FAILED_INTERNAL_ERROR;
}
@@ -208,7 +208,7 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr
char localTmpFileName[nativeLibPath.size() + TMP_FILE_PATTERN_LEN + 2];
if (strlcpy(localTmpFileName, nativeLibPath.c_str(), sizeof(localTmpFileName))
!= nativeLibPath.size()) {
- LOGD("Couldn't allocate local file name for library");
+ ALOGD("Couldn't allocate local file name for library");
return INSTALL_FAILED_INTERNAL_ERROR;
}