summaryrefslogtreecommitdiffstats
path: root/core/jni
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-01-19 17:26:03 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-19 17:26:03 -0800
commit08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff (patch)
tree5aab08b8e1ace52c002db2c56c1c16607f684af3 /core/jni
parent7ae84204c14b4abff70fcc19c3c33de2591df34b (diff)
parent4f367f3387887c538c81c34cc8becaea6fa5e430 (diff)
downloadframeworks_base-08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff.zip
frameworks_base-08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff.tar.gz
frameworks_base-08d3c6e5ba5c3e5fcc386b07efa709325d45b9ff.tar.bz2
am 4f367f33: Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)"
* commit '4f367f3387887c538c81c34cc8becaea6fa5e430': Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)
Diffstat (limited to 'core/jni')
-rw-r--r--core/jni/AndroidRuntime.cpp6
-rw-r--r--core/jni/android/graphics/NinePatchImpl.cpp2
-rw-r--r--core/jni/android/opengl/util.cpp4
-rwxr-xr-xcore/jni/android_bluetooth_BluetoothAudioGateway.cpp34
-rw-r--r--core/jni/android_bluetooth_HeadsetBase.cpp18
-rw-r--r--core/jni/android_database_SQLiteDatabase.cpp6
-rw-r--r--core/jni/android_debug_JNITest.cpp10
-rw-r--r--core/jni/android_os_Debug.cpp2
-rw-r--r--core/jni/android_server_BluetoothEventLoop.cpp2
-rw-r--r--core/jni/android_server_Watchdog.cpp2
-rw-r--r--core/jni/android_util_Binder.cpp16
-rw-r--r--core/jni/android_util_Process.cpp24
-rw-r--r--core/jni/android_view_InputQueue.cpp6
-rw-r--r--core/jni/com_android_internal_content_NativeLibraryHelper.cpp14
14 files changed, 73 insertions, 73 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp
index 23d36a6..f88456a 100644
--- a/core/jni/AndroidRuntime.cpp
+++ b/core/jni/AndroidRuntime.cpp
@@ -704,7 +704,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
/* accept "all" to mean "all classes and packages" */
if (strcmp(enableAssertBuf+4, "all") == 0)
enableAssertBuf[3] = '\0';
- LOGI("Assertions enabled: '%s'\n", enableAssertBuf);
+ ALOGI("Assertions enabled: '%s'\n", enableAssertBuf);
opt.optionString = enableAssertBuf;
mOptions.add(opt);
} else {
@@ -712,7 +712,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
}
if (jniOptsBuf[10] != '\0') {
- LOGI("JNI options: '%s'\n", jniOptsBuf);
+ ALOGI("JNI options: '%s'\n", jniOptsBuf);
opt.optionString = jniOptsBuf;
mOptions.add(opt);
}
@@ -943,7 +943,7 @@ static int javaAttachThread(const char* threadName, JNIEnv** pEnv)
result = vm->AttachCurrentThread(pEnv, (void*) &args);
if (result != JNI_OK)
- LOGI("NOTE: attach of thread '%s' failed\n", threadName);
+ ALOGI("NOTE: attach of thread '%s' failed\n", threadName);
return result;
}
diff --git a/core/jni/android/graphics/NinePatchImpl.cpp b/core/jni/android/graphics/NinePatchImpl.cpp
index 7aaca8a..1d0bb50 100644
--- a/core/jni/android/graphics/NinePatchImpl.cpp
+++ b/core/jni/android/graphics/NinePatchImpl.cpp
@@ -297,7 +297,7 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds,
}
SkIRect idst;
dst.round(&idst);
- //LOGI("Adding trans rect: (%d,%d)-(%d,%d)\n",
+ //ALOGI("Adding trans rect: (%d,%d)-(%d,%d)\n",
// idst.fLeft, idst.fTop, idst.fRight, idst.fBottom);
(*outRegion)->op(idst, SkRegion::kUnion_Op);
}
diff --git a/core/jni/android/opengl/util.cpp b/core/jni/android/opengl/util.cpp
index 6a049e0..93717f3 100644
--- a/core/jni/android/opengl/util.cpp
+++ b/core/jni/android/opengl/util.cpp
@@ -73,10 +73,10 @@ private:
static
void
print_poly(const char* label, Poly* pPoly) {
- LOGI("%s: %d verts", label, pPoly->n);
+ ALOGI("%s: %d verts", label, pPoly->n);
for(int i = 0; i < pPoly->n; i++) {
Poly_vert* pV = & pPoly->vert[i];
- LOGI("[%d] %g, %g, %g %g", i, pV->sx, pV->sy, pV->sz, pV->sw);
+ ALOGI("[%d] %g, %g, %g %g", i, pV->sx, pV->sy, pV->sz, pV->sw);
}
}
#endif
diff --git a/core/jni/android_bluetooth_BluetoothAudioGateway.cpp b/core/jni/android_bluetooth_BluetoothAudioGateway.cpp
index 5aef2ad..3a1a13a 100755
--- a/core/jni/android_bluetooth_BluetoothAudioGateway.cpp
+++ b/core/jni/android_bluetooth_BluetoothAudioGateway.cpp
@@ -215,7 +215,7 @@ static int do_accept(JNIEnv* env, jobject object, int ag_fd,
get_bdaddr_as_string(&raddr.rc_bdaddr, addr);
env->SetObjectField(object, out_address, env->NewStringUTF(addr));
- LOGI("Successful accept() on AG socket %d: new socket %d, address %s, RFCOMM channel %d",
+ ALOGI("Successful accept() on AG socket %d: new socket %d, address %s, RFCOMM channel %d",
ag_fd,
nsk,
addr,
@@ -240,7 +240,7 @@ static inline int on_accept_set_fields(JNIEnv* env, jobject object,
out_fd, out_address, out_channel);
}
else {
- LOGI("fd = %d, FD_ISSET() = %d",
+ ALOGI("fd = %d, FD_ISSET() = %d",
ag_fd,
FD_ISSET(ag_fd, &rset));
if (ag_fd >= 0 && !FD_ISSET(ag_fd, &rset)) {
@@ -265,7 +265,7 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
native_data_t *nat = get_native_data(env, object);
#if USE_ACCEPT_DIRECTLY
if (nat->hf_ag_rfcomm_channel > 0) {
- LOGI("Setting HF AG server socket to RFCOMM port %d!",
+ ALOGI("Setting HF AG server socket to RFCOMM port %d!",
nat->hf_ag_rfcomm_channel);
struct timeval tv;
int len = sizeof(tv);
@@ -277,7 +277,7 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
errno);
return JNI_FALSE;
}
- LOGI("Current HF AG server socket RCVTIMEO is (%d(s), %d(us))!",
+ ALOGI("Current HF AG server socket RCVTIMEO is (%d(s), %d(us))!",
(int)tv.tv_sec, (int)tv.tv_usec);
if (timeout_ms >= 0) {
tv.tv_sec = timeout_ms / 1000;
@@ -290,7 +290,7 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
errno);
return JNI_FALSE;
}
- LOGI("Changed HF AG server socket RCVTIMEO to (%d(s), %d(us))!",
+ ALOGI("Changed HF AG server socket RCVTIMEO to (%d(s), %d(us))!",
(int)tv.tv_sec, (int)tv.tv_usec);
}
@@ -310,13 +310,13 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
FD_ZERO(&rset);
int cnt = 0;
if (nat->hf_ag_rfcomm_channel > 0) {
- LOGI("Setting HF AG server socket to RFCOMM port %d!",
+ ALOGI("Setting HF AG server socket to RFCOMM port %d!",
nat->hf_ag_rfcomm_channel);
cnt++;
FD_SET(nat->hf_ag_rfcomm_sock, &rset);
}
if (nat->hs_ag_rfcomm_channel > 0) {
- LOGI("Setting HS AG server socket to RFCOMM port %d!",
+ ALOGI("Setting HS AG server socket to RFCOMM port %d!",
nat->hs_ag_rfcomm_channel);
cnt++;
FD_SET(nat->hs_ag_rfcomm_sock, &rset);
@@ -339,12 +339,12 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
(timeout_ms < 0 ? NULL : &to));
if (timeout_ms > 0) {
jint remaining = to.tv_sec*1000 + to.tv_usec/1000;
- LOGI("Remaining time %ldms", (long)remaining);
+ ALOGI("Remaining time %ldms", (long)remaining);
env->SetIntField(object, field_mTimeoutRemainingMs,
remaining);
}
- LOGI("listening select() returned %d", n);
+ ALOGI("listening select() returned %d", n);
if (n <= 0) {
if (n < 0) {
@@ -372,7 +372,7 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
struct pollfd fds[2];
int cnt = 0;
if (nat->hf_ag_rfcomm_channel > 0) {
-// LOGI("Setting HF AG server socket %d to RFCOMM port %d!",
+// ALOGI("Setting HF AG server socket %d to RFCOMM port %d!",
// nat->hf_ag_rfcomm_sock,
// nat->hf_ag_rfcomm_channel);
fds[cnt].fd = nat->hf_ag_rfcomm_sock;
@@ -380,7 +380,7 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
cnt++;
}
if (nat->hs_ag_rfcomm_channel > 0) {
-// LOGI("Setting HS AG server socket %d to RFCOMM port %d!",
+// ALOGI("Setting HS AG server socket %d to RFCOMM port %d!",
// nat->hs_ag_rfcomm_sock,
// nat->hs_ag_rfcomm_channel);
fds[cnt].fd = nat->hs_ag_rfcomm_sock;
@@ -400,18 +400,18 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
}
else {
env->SetIntField(object, field_mTimeoutRemainingMs, 0);
-// LOGI("listening poll() on RFCOMM socket timed out");
+// ALOGI("listening poll() on RFCOMM socket timed out");
}
return JNI_FALSE;
}
- //LOGI("listening poll() on RFCOMM socket returned %d", n);
+ //ALOGI("listening poll() on RFCOMM socket returned %d", n);
int err = 0;
for (cnt = 0; cnt < (int)(sizeof(fds)/sizeof(fds[0])); cnt++) {
- //LOGI("Poll on fd %d revent = %d.", fds[cnt].fd, fds[cnt].revents);
+ //ALOGI("Poll on fd %d revent = %d.", fds[cnt].fd, fds[cnt].revents);
if (fds[cnt].fd == nat->hf_ag_rfcomm_sock) {
if (fds[cnt].revents & (POLLIN | POLLPRI | POLLOUT)) {
- LOGI("Accepting HF connection.\n");
+ ALOGI("Accepting HF connection.\n");
err += do_accept(env, object, fds[cnt].fd,
field_mConnectingHandsfreeSocketFd,
field_mConnectingHandsfreeAddress,
@@ -421,7 +421,7 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
}
else if (fds[cnt].fd == nat->hs_ag_rfcomm_sock) {
if (fds[cnt].revents & (POLLIN | POLLPRI | POLLOUT)) {
- LOGI("Accepting HS connection.\n");
+ ALOGI("Accepting HS connection.\n");
err += do_accept(env, object, fds[cnt].fd,
field_mConnectingHeadsetSocketFd,
field_mConnectingHeadsetAddress,
@@ -432,7 +432,7 @@ static jboolean waitForHandsfreeConnectNative(JNIEnv* env, jobject object,
} /* for */
if (n != 0) {
- LOGI("Bogus poll(): %d fake pollfd entrie(s)!", n);
+ ALOGI("Bogus poll(): %d fake pollfd entrie(s)!", n);
return JNI_FALSE;
}
diff --git a/core/jni/android_bluetooth_HeadsetBase.cpp b/core/jni/android_bluetooth_HeadsetBase.cpp
index 71697a7..8dd3116 100644
--- a/core/jni/android_bluetooth_HeadsetBase.cpp
+++ b/core/jni/android_bluetooth_HeadsetBase.cpp
@@ -143,7 +143,7 @@ again:
if (rc < 0) {
if (errno == EBUSY) {
- LOGI("read() error %s (%d): repeating read()...",
+ ALOGI("read() error %s (%d): repeating read()...",
strerror(errno), errno);
goto again;
}
@@ -208,7 +208,7 @@ static void initializeNativeDataNative(JNIEnv* env, jobject object,
nat->rfcomm_sock = socketFd;
nat->rfcomm_connected = socketFd >= 0;
if (nat->rfcomm_connected)
- LOGI("%s: ALREADY CONNECTED!", __FUNCTION__);
+ ALOGI("%s: ALREADY CONNECTED!", __FUNCTION__);
#endif
}
@@ -310,7 +310,7 @@ static jint connectAsyncNative(JNIEnv *env, jobject obj) {
close(nat->rfcomm_sock);
return -1;
}
- LOGI("Created RFCOMM socket fd %d.", nat->rfcomm_sock);
+ ALOGI("Created RFCOMM socket fd %d.", nat->rfcomm_sock);
}
memset(&addr, 0, sizeof(struct sockaddr_rc));
@@ -330,13 +330,13 @@ static jint connectAsyncNative(JNIEnv *env, jobject obj) {
if (rc >= 0) {
nat->rfcomm_connected = 1;
- LOGI("async connect successful");
+ ALOGI("async connect successful");
return 0;
}
else if (rc < 0) {
if (errno == EINPROGRESS || errno == EAGAIN)
{
- LOGI("async connect is in progress (%s)",
+ ALOGI("async connect is in progress (%s)",
strerror(errno));
nat->rfcomm_connected = -1;
return 0;
@@ -365,19 +365,19 @@ static jint waitForAsyncConnectNative(JNIEnv *env, jobject obj,
env->SetIntField(obj, field_mTimeoutRemainingMs, timeout_ms);
if (nat->rfcomm_connected > 0) {
- LOGI("RFCOMM is already connected!");
+ ALOGI("RFCOMM is already connected!");
return 1;
}
if (nat->rfcomm_sock >= 0 && nat->rfcomm_connected == 0) {
- LOGI("Re-opening RFCOMM socket.");
+ ALOGI("Re-opening RFCOMM socket.");
close(nat->rfcomm_sock);
nat->rfcomm_sock = -1;
}
int ret = connectAsyncNative(env, obj);
if (ret < 0) {
- LOGI("Failed to re-open RFCOMM socket!");
+ ALOGI("Failed to re-open RFCOMM socket!");
return ret;
}
@@ -451,7 +451,7 @@ static jint waitForAsyncConnectNative(JNIEnv *env, jobject obj,
}
/* Restore the blocking properties of the socket. */
fcntl(nat->rfcomm_sock, F_SETFL, nat->rfcomm_sock_flags);
- LOGI("Successful RFCOMM socket connect.");
+ ALOGI("Successful RFCOMM socket connect.");
nat->rfcomm_connected = 1;
return 1;
}
diff --git a/core/jni/android_database_SQLiteDatabase.cpp b/core/jni/android_database_SQLiteDatabase.cpp
index 2966a71..cf4cbb8 100644
--- a/core/jni/android_database_SQLiteDatabase.cpp
+++ b/core/jni/android_database_SQLiteDatabase.cpp
@@ -79,7 +79,7 @@ static void sqlLogger(void *databaseName, int iErrCode, const char *zMsg) {
// skip printing this message if it is due to certain types of errors
if (iErrCode == 0 || iErrCode == SQLITE_CONSTRAINT) return;
// print databasename, errorcode and msg
- LOGI("sqlite returned: error code = %d, msg = %s, db=%s\n", iErrCode, zMsg, databaseName);
+ ALOGI("sqlite returned: error code = %d, msg = %s, db=%s\n", iErrCode, zMsg, databaseName);
}
// register the logging func on sqlite. needs to be done BEFORE any sqlite3 func is called.
@@ -197,7 +197,7 @@ static char *getDatabaseName(JNIEnv* env, sqlite3 * handle, jstring databaseName
}
static void sqlTrace(void *databaseName, const char *sql) {
- LOGI("sql_statement|%s|%s\n", (char *)databaseName, sql);
+ ALOGI("sql_statement|%s|%s\n", (char *)databaseName, sql);
}
/* public native void enableSqlTracing(); */
@@ -209,7 +209,7 @@ static void enableSqlTracing(JNIEnv* env, jobject object, jstring databaseName,
static void sqlProfile(void *databaseName, const char *sql, sqlite3_uint64 tm) {
double d = tm/1000000.0;
- LOGI("elapsedTime4Sql|%s|%.3f ms|%s\n", (char *)databaseName, d, sql);
+ ALOGI("elapsedTime4Sql|%s|%.3f ms|%s\n", (char *)databaseName, d, sql);
}
/* public native void enableSqlProfiling(); */
diff --git a/core/jni/android_debug_JNITest.cpp b/core/jni/android_debug_JNITest.cpp
index f14201e..e0f61fb 100644
--- a/core/jni/android_debug_JNITest.cpp
+++ b/core/jni/android_debug_JNITest.cpp
@@ -39,7 +39,7 @@ static jint android_debug_JNITest_part1(JNIEnv* env, jobject object,
jint arrayVal;
int result = -2;
- LOGI("JNI test: in part1, intArg=%d, doubleArg=%.3f\n", intArg, doubleArg);
+ ALOGI("JNI test: in part1, intArg=%d, doubleArg=%.3f\n", intArg, doubleArg);
/* find "int part2(double doubleArg, int fromArray, String stringArg)" */
clazz = env->GetObjectClass(object);
@@ -52,7 +52,7 @@ static jint android_debug_JNITest_part1(JNIEnv* env, jobject object,
/* get the length of the array */
arrayLen = env->GetArrayLength(arrayArg);
- LOGI(" array size is %d\n", arrayLen);
+ ALOGI(" array size is %d\n", arrayLen);
/*
* Get the last element in the array.
@@ -60,7 +60,7 @@ static jint android_debug_JNITest_part1(JNIEnv* env, jobject object,
* to multiple elements.
*/
arrayVal = (int) env->GetObjectArrayElement(arrayArg, arrayLen-1);
- LOGI(" array val is %d\n", arrayVal);
+ ALOGI(" array val is %d\n", arrayVal);
/* call this->part2 */
result = env->CallIntMethod(object, part2id,
@@ -79,11 +79,11 @@ static jint android_debug_JNITest_part3(JNIEnv* env, jclass clazz,
const char* utfChars;
jboolean isCopy;
- LOGI("JNI test: in part3\n");
+ ALOGI("JNI test: in part3\n");
utfChars = env->GetStringUTFChars(stringArg, &isCopy);
- LOGI(" String is '%s', isCopy=%d\n", (const char*) utfChars, isCopy);
+ ALOGI(" String is '%s', isCopy=%d\n", (const char*) utfChars, isCopy);
env->ReleaseStringUTFChars(stringArg, utfChars);
diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp
index f8dc618..d9908ce 100644
--- a/core/jni/android_os_Debug.cpp
+++ b/core/jni/android_os_Debug.cpp
@@ -184,7 +184,7 @@ static void read_mapinfo(FILE *fp, stats_t* stats)
}
}
- //LOGI("native=%d dalvik=%d sqlite=%d: %s\n", isNativeHeap, isDalvikHeap,
+ //ALOGI("native=%d dalvik=%d sqlite=%d: %s\n", isNativeHeap, isDalvikHeap,
// isSqliteHeap, line);
while (true) {
diff --git a/core/jni/android_server_BluetoothEventLoop.cpp b/core/jni/android_server_BluetoothEventLoop.cpp
index 100fca4..d146e27 100644
--- a/core/jni/android_server_BluetoothEventLoop.cpp
+++ b/core/jni/android_server_BluetoothEventLoop.cpp
@@ -1097,7 +1097,7 @@ DBusHandlerResult agent_event_filter(DBusConnection *conn,
ALOGV("%s: not interested (not a method call).", __FUNCTION__);
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
- LOGI("%s: Received method %s:%s", __FUNCTION__,
+ ALOGI("%s: Received method %s:%s", __FUNCTION__,
dbus_message_get_interface(msg), dbus_message_get_member(msg));
if (nat == NULL) return DBUS_HANDLER_RESULT_HANDLED;
diff --git a/core/jni/android_server_Watchdog.cpp b/core/jni/android_server_Watchdog.cpp
index 9e0ed47..cf52833 100644
--- a/core/jni/android_server_Watchdog.cpp
+++ b/core/jni/android_server_Watchdog.cpp
@@ -56,7 +56,7 @@ static void dumpKernelStacks(JNIEnv* env, jobject clazz, jstring pathStr) {
char buf[128];
DIR* taskdir;
- LOGI("dumpKernelStacks");
+ ALOGI("dumpKernelStacks");
if (!pathStr) {
jniThrowException(env, "java/lang/IllegalArgumentException", "Null path");
return;
diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp
index 9e3d04a..b2ecf62 100644
--- a/core/jni/android_util_Binder.cpp
+++ b/core/jni/android_util_Binder.cpp
@@ -476,7 +476,7 @@ public:
protected:
virtual ~JavaDeathRecipient()
{
- //LOGI("Removing death ref: recipient=%p\n", mObject);
+ //ALOGI("Removing death ref: recipient=%p\n", mObject);
android_atomic_dec(&gNumDeathRefs);
JNIEnv* env = javavm_to_jnienv(mVM);
if (mObject != NULL) {
@@ -1635,7 +1635,7 @@ static void android_os_Parcel_closeFileDescriptor(JNIEnv* env, jobject clazz, jo
int fd = jniGetFDFromFileDescriptor(env, object);
if (fd >= 0) {
jniSetFileDescriptorOfFD(env, object, -1);
- //LOGI("Closing ParcelFileDescriptor %d\n", fd);
+ //ALOGI("Closing ParcelFileDescriptor %d\n", fd);
close(fd);
}
}
@@ -1658,7 +1658,7 @@ static void android_os_Parcel_freeBuffer(JNIEnv* env, jobject clazz)
if (own) {
Parcel* parcel = parcelForJavaObject(env, clazz);
if (parcel != NULL) {
- //LOGI("Parcel.freeBuffer() called for C++ Parcel %p\n", parcel);
+ //ALOGI("Parcel.freeBuffer() called for C++ Parcel %p\n", parcel);
parcel->freeData();
}
}
@@ -1669,17 +1669,17 @@ static void android_os_Parcel_init(JNIEnv* env, jobject clazz, jint parcelInt)
Parcel* parcel = (Parcel*)parcelInt;
int own = 0;
if (!parcel) {
- //LOGI("Initializing obj %p: creating new Parcel\n", clazz);
+ //ALOGI("Initializing obj %p: creating new Parcel\n", clazz);
own = 1;
parcel = new Parcel;
} else {
- //LOGI("Initializing obj %p: given existing Parcel %p\n", clazz, parcel);
+ //ALOGI("Initializing obj %p: given existing Parcel %p\n", clazz, parcel);
}
if (parcel == NULL) {
jniThrowException(env, "java/lang/OutOfMemoryError", NULL);
return;
}
- //LOGI("Initializing obj %p from C++ Parcel %p, own=%d\n", clazz, parcel, own);
+ //ALOGI("Initializing obj %p from C++ Parcel %p, own=%d\n", clazz, parcel, own);
env->SetIntField(clazz, gParcelOffsets.mOwnObject, own);
env->SetIntField(clazz, gParcelOffsets.mObject, (int)parcel);
}
@@ -1690,11 +1690,11 @@ static void android_os_Parcel_destroy(JNIEnv* env, jobject clazz)
if (own) {
Parcel* parcel = parcelForJavaObject(env, clazz);
env->SetIntField(clazz, gParcelOffsets.mObject, 0);
- //LOGI("Destroying obj %p: deleting C++ Parcel %p\n", clazz, parcel);
+ //ALOGI("Destroying obj %p: deleting C++ Parcel %p\n", clazz, parcel);
delete parcel;
} else {
env->SetIntField(clazz, gParcelOffsets.mObject, 0);
- //LOGI("Destroying obj %p: leaving C++ Parcel %p\n", clazz);
+ //ALOGI("Destroying obj %p: leaving C++ Parcel %p\n", clazz);
}
}
diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp
index bc7e47c..8660668 100644
--- a/core/jni/android_util_Process.cpp
+++ b/core/jni/android_util_Process.cpp
@@ -291,7 +291,7 @@ void android_os_Process_setThreadPriority(JNIEnv* env, jobject clazz,
}
}
- //LOGI("Setting priority of %d: %d, getpriority returns %d\n",
+ //ALOGI("Setting priority of %d: %d, getpriority returns %d\n",
// pid, pri, getpriority(PRIO_PROCESS, pid));
}
@@ -310,7 +310,7 @@ jint android_os_Process_getThreadPriority(JNIEnv* env, jobject clazz,
if (errno != 0) {
signalExceptionForPriorityError(env, clazz, errno);
}
- //LOGI("Returning priority of %d: %d\n", pid, pri);
+ //ALOGI("Returning priority of %d: %d\n", pid, pri);
return pri;
}
@@ -362,7 +362,7 @@ jint android_os_Process_setGid(JNIEnv* env, jobject clazz, jint uid)
static int pid_compare(const void* v1, const void* v2)
{
- //LOGI("Compare %d vs %d\n", *((const jint*)v1), *((const jint*)v2));
+ //ALOGI("Compare %d vs %d\n", *((const jint*)v1), *((const jint*)v2));
return *((const jint*)v1) - *((const jint*)v2);
}
@@ -420,7 +420,7 @@ static jlong android_os_Process_getFreeMemory(JNIEnv* env, jobject clazz)
void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileStr,
jobjectArray reqFields, jlongArray outFields)
{
- //LOGI("getMemInfo: %p %p", reqFields, outFields);
+ //ALOGI("getMemInfo: %p %p", reqFields, outFields);
if (fileStr == NULL || reqFields == NULL || outFields == NULL) {
jniThrowNullPointerException(env, NULL);
@@ -447,7 +447,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt
jobject obj = env->GetObjectArrayElement(reqFields, i);
if (obj != NULL) {
const char* str8 = env->GetStringUTFChars((jstring)obj, NULL);
- //LOGI("String at %d: %p = %s", i, obj, str8);
+ //ALOGI("String at %d: %p = %s", i, obj, str8);
if (str8 == NULL) {
jniThrowNullPointerException(env, "Element in reqFields");
return;
@@ -465,7 +465,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt
return;
}
- //LOGI("Clearing %d sizes", count);
+ //ALOGI("Clearing %d sizes", count);
for (i=0; i<count; i++) {
sizesArray[i] = 0;
}
@@ -489,7 +489,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt
char* p = buffer;
while (*p && foundCount < count) {
bool skipToEol = true;
- //LOGI("Parsing at: %s", p);
+ //ALOGI("Parsing at: %s", p);
for (i=0; i<count; i++) {
const String8& field = fields[i];
if (strncmp(p, field.string(), field.length()) == 0) {
@@ -504,7 +504,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt
}
char* end;
sizesArray[i] = strtoll(num, &end, 10);
- //LOGI("Field %s = %d", field.string(), sizesArray[i]);
+ //ALOGI("Field %s = %d", field.string(), sizesArray[i]);
foundCount++;
break;
}
@@ -524,7 +524,7 @@ void android_os_Process_readProcLines(JNIEnv* env, jobject clazz, jstring fileSt
LOGW("Unable to open %s", file.string());
}
- //LOGI("Done!");
+ //ALOGI("Done!");
env->ReleaseLongArrayElements(outFields, sizesArray, 0);
}
@@ -570,7 +570,7 @@ jintArray android_os_Process_getPids(JNIEnv* env, jobject clazz,
char* end;
int pid = strtol(entry->d_name, &end, 10);
- //LOGI("File %s pid=%d\n", entry->d_name, pid);
+ //ALOGI("File %s pid=%d\n", entry->d_name, pid);
if (curPos >= curCount) {
jsize newCount = (curCount == 0) ? 10 : (curCount*2);
jintArray newArray = env->NewIntArray(newCount);
@@ -693,7 +693,7 @@ jboolean android_os_Process_parseProcLineArray(JNIEnv* env, jobject clazz,
}
}
- //LOGI("Field %d: %d-%d dest=%d mode=0x%x\n", i, start, end, di, mode);
+ //ALOGI("Field %d: %d-%d dest=%d mode=0x%x\n", i, start, end, di, mode);
if ((mode&(PROC_OUT_FLOAT|PROC_OUT_LONG|PROC_OUT_STRING)) != 0) {
char c = buffer[end];
@@ -792,7 +792,7 @@ void android_os_Process_setApplicationObject(JNIEnv* env, jobject clazz,
void android_os_Process_sendSignal(JNIEnv* env, jobject clazz, jint pid, jint sig)
{
if (pid > 0) {
- LOGI("Sending signal. PID: %d SIG: %d", pid, sig);
+ ALOGI("Sending signal. PID: %d SIG: %d", pid, sig);
kill(pid, sig);
}
}
diff --git a/core/jni/android_view_InputQueue.cpp b/core/jni/android_view_InputQueue.cpp
index d44dbc0..adf81b4 100644
--- a/core/jni/android_view_InputQueue.cpp
+++ b/core/jni/android_view_InputQueue.cpp
@@ -207,7 +207,7 @@ status_t NativeInputQueue::unregisterInputChannel(JNIEnv* env, jobject inputChan
connection->inputHandlerObjGlobal = NULL;
if (connection->messageInProgress) {
- LOGI("Sending finished signal for input channel '%s' since it is being unregistered "
+ ALOGI("Sending finished signal for input channel '%s' since it is being unregistered "
"while an input message is still in progress.",
connection->getInputChannelName());
connection->messageInProgress = false;
@@ -244,7 +244,7 @@ status_t NativeInputQueue::finished(JNIEnv* env, jlong finishedToken,
ssize_t connectionIndex = mConnectionsByReceiveFd.indexOfKey(receiveFd);
if (connectionIndex < 0) {
if (! ignoreSpuriousFinish) {
- LOGI("Ignoring finish signal on channel that is no longer registered.");
+ ALOGI("Ignoring finish signal on channel that is no longer registered.");
}
return DEAD_OBJECT;
}
@@ -252,7 +252,7 @@ status_t NativeInputQueue::finished(JNIEnv* env, jlong finishedToken,
sp<Connection> connection = mConnectionsByReceiveFd.valueAt(connectionIndex);
if (connectionId != connection->id) {
if (! ignoreSpuriousFinish) {
- LOGI("Ignoring finish signal on channel that is no longer registered.");
+ ALOGI("Ignoring finish signal on channel that is no longer registered.");
}
return DEAD_OBJECT;
}
diff --git a/core/jni/com_android_internal_content_NativeLibraryHelper.cpp b/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
index ae8cae9..8db9621 100644
--- a/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
+++ b/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
@@ -216,18 +216,18 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr
if (strlcpy(localTmpFileName + nativeLibPath.size(), TMP_FILE_PATTERN,
TMP_FILE_PATTERN_LEN - nativeLibPath.size()) != TMP_FILE_PATTERN_LEN) {
- LOGI("Couldn't allocate temporary file name for library");
+ ALOGI("Couldn't allocate temporary file name for library");
return INSTALL_FAILED_INTERNAL_ERROR;
}
int fd = mkstemp(localTmpFileName);
if (fd < 0) {
- LOGI("Couldn't open temporary file name: %s: %s\n", localTmpFileName, strerror(errno));
+ ALOGI("Couldn't open temporary file name: %s: %s\n", localTmpFileName, strerror(errno));
return INSTALL_FAILED_CONTAINER_ERROR;
}
if (!zipFile->uncompressEntry(zipEntry, fd)) {
- LOGI("Failed uncompressing %s to %s\n", fileName, localTmpFileName);
+ ALOGI("Failed uncompressing %s to %s\n", fileName, localTmpFileName);
close(fd);
unlink(localTmpFileName);
return INSTALL_FAILED_CONTAINER_ERROR;
@@ -241,7 +241,7 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr
times[1].tv_sec = modTime;
times[0].tv_usec = times[1].tv_usec = 0;
if (utimes(localTmpFileName, times) < 0) {
- LOGI("Couldn't change modification time on %s: %s\n", localTmpFileName, strerror(errno));
+ ALOGI("Couldn't change modification time on %s: %s\n", localTmpFileName, strerror(errno));
unlink(localTmpFileName);
return INSTALL_FAILED_CONTAINER_ERROR;
}
@@ -249,14 +249,14 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr
// Set the mode to 755
static const mode_t mode = S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
if (chmod(localTmpFileName, mode) < 0) {
- LOGI("Couldn't change permissions on %s: %s\n", localTmpFileName, strerror(errno));
+ ALOGI("Couldn't change permissions on %s: %s\n", localTmpFileName, strerror(errno));
unlink(localTmpFileName);
return INSTALL_FAILED_CONTAINER_ERROR;
}
// Finally, rename it to the final name.
if (rename(localTmpFileName, localFileName) < 0) {
- LOGI("Couldn't rename %s to %s: %s\n", localTmpFileName, localFileName, strerror(errno));
+ ALOGI("Couldn't rename %s to %s: %s\n", localTmpFileName, localFileName, strerror(errno));
unlink(localTmpFileName);
return INSTALL_FAILED_CONTAINER_ERROR;
}
@@ -276,7 +276,7 @@ iterateOverNativeFiles(JNIEnv *env, jstring javaFilePath, jstring javaCpuAbi, js
ZipFileRO zipFile;
if (zipFile.open(filePath.c_str()) != NO_ERROR) {
- LOGI("Couldn't open APK %s\n", filePath.c_str());
+ ALOGI("Couldn't open APK %s\n", filePath.c_str());
return INSTALL_FAILED_INVALID_APK;
}