Loading core/jni/android_util_EventLog.cpp +9 −4 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ #include "jni.h" #include "log/logger.h" #define UNUSED __attribute__((__unused__)) // The size of the tag number comes out of the payload size. #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t)) Loading @@ -44,7 +46,8 @@ static jclass gStringClass; * In class android.util.EventLog: * static native int writeEvent(int tag, int value) */ static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env UNUSED, jobject clazz UNUSED, jint tag, jint value) { return android_btWriteLog(tag, EVENT_TYPE_INT, &value, sizeof(value)); Loading @@ -54,7 +57,8 @@ static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, * In class android.util.EventLog: * static native int writeEvent(long tag, long value) */ static jint android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, static jint android_util_EventLog_writeEvent_Long(JNIEnv* env UNUSED, jobject clazz UNUSED, jint tag, jlong value) { return android_btWriteLog(tag, EVENT_TYPE_LONG, &value, sizeof(value)); Loading @@ -64,7 +68,8 @@ static jint android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, * In class android.util.EventLog: * static native int writeEvent(int tag, String value) */ static jint android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz, static jint android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz UNUSED, jint tag, jstring value) { uint8_t buf[MAX_EVENT_PAYLOAD]; Loading Loading @@ -144,7 +149,7 @@ static jint android_util_EventLog_writeEvent_Array(JNIEnv* env, jobject clazz, * * Reads events from the event log */ static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz, static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz UNUSED, jintArray tags, jobject out) { Loading Loading
core/jni/android_util_EventLog.cpp +9 −4 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ #include "jni.h" #include "log/logger.h" #define UNUSED __attribute__((__unused__)) // The size of the tag number comes out of the payload size. #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t)) Loading @@ -44,7 +46,8 @@ static jclass gStringClass; * In class android.util.EventLog: * static native int writeEvent(int tag, int value) */ static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env UNUSED, jobject clazz UNUSED, jint tag, jint value) { return android_btWriteLog(tag, EVENT_TYPE_INT, &value, sizeof(value)); Loading @@ -54,7 +57,8 @@ static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, * In class android.util.EventLog: * static native int writeEvent(long tag, long value) */ static jint android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, static jint android_util_EventLog_writeEvent_Long(JNIEnv* env UNUSED, jobject clazz UNUSED, jint tag, jlong value) { return android_btWriteLog(tag, EVENT_TYPE_LONG, &value, sizeof(value)); Loading @@ -64,7 +68,8 @@ static jint android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, * In class android.util.EventLog: * static native int writeEvent(int tag, String value) */ static jint android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz, static jint android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz UNUSED, jint tag, jstring value) { uint8_t buf[MAX_EVENT_PAYLOAD]; Loading Loading @@ -144,7 +149,7 @@ static jint android_util_EventLog_writeEvent_Array(JNIEnv* env, jobject clazz, * * Reads events from the event log */ static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz, static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz UNUSED, jintArray tags, jobject out) { Loading