diff options
Diffstat (limited to 'core/jni/android_util_Process.cpp')
-rw-r--r-- | core/jni/android_util_Process.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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); } } |