Loading cmds/incidentd/src/Section.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -512,8 +512,8 @@ status_t LogSection::BlockingCall(int pipeWriteFd) const { // Open log buffer and getting logs since last retrieved time if any. // Open log buffer and getting logs since last retrieved time if any. unique_ptr<logger_list, void (*)(logger_list*)> loggers( unique_ptr<logger_list, void (*)(logger_list*)> loggers( gLastLogsRetrieved.find(mLogID) == gLastLogsRetrieved.end() gLastLogsRetrieved.find(mLogID) == gLastLogsRetrieved.end() ? android_logger_list_alloc(ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 0, 0) ? android_logger_list_alloc(ANDROID_LOG_NONBLOCK, 0, 0) : android_logger_list_alloc_time(ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, : android_logger_list_alloc_time(ANDROID_LOG_NONBLOCK, gLastLogsRetrieved[mLogID], 0), gLastLogsRetrieved[mLogID], 0), android_logger_list_free); android_logger_list_free); Loading core/jni/android_app_admin_SecurityLog.cpp +4 −5 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,7 @@ static void android_app_admin_SecurityLog_readEvents(JNIEnv* env, jobject /* cla jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 0, out); SLog::readEvents(env, ANDROID_LOG_NONBLOCK, 0, out); } } static void android_app_admin_SecurityLog_readEventsSince(JNIEnv* env, jobject /* clazz */, static void android_app_admin_SecurityLog_readEventsSince(JNIEnv* env, jobject /* clazz */, Loading @@ -52,7 +52,7 @@ static void android_app_admin_SecurityLog_readEventsSince(JNIEnv* env, jobject / jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, timestamp, out); SLog::readEvents(env, ANDROID_LOG_NONBLOCK, timestamp, out); } } static void android_app_admin_SecurityLog_readPreviousEvents(JNIEnv* env, jobject /* clazz */, static void android_app_admin_SecurityLog_readPreviousEvents(JNIEnv* env, jobject /* clazz */, Loading @@ -62,7 +62,7 @@ static void android_app_admin_SecurityLog_readPreviousEvents(JNIEnv* env, jobjec jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK | ANDROID_LOG_PSTORE, 0, out); SLog::readEvents(env, ANDROID_LOG_NONBLOCK | ANDROID_LOG_PSTORE, 0, out); } } static void android_app_admin_SecurityLog_readEventsOnWrapping(JNIEnv* env, jobject /* clazz */, static void android_app_admin_SecurityLog_readEventsOnWrapping(JNIEnv* env, jobject /* clazz */, Loading @@ -72,8 +72,7 @@ static void android_app_admin_SecurityLog_readEventsOnWrapping(JNIEnv* env, jobj jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, timestamp, SLog::readEvents(env, ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, timestamp, out); out); } } /* /* Loading core/jni/android_util_EventLog.cpp +2 −3 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz ATTRIBUT return; return; } } ELog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, tags, 0, out); ELog::readEvents(env, ANDROID_LOG_NONBLOCK, tags, 0, out); } } /* /* * In class android.util.EventLog: * In class android.util.EventLog: Loading @@ -60,8 +60,7 @@ static void android_util_EventLog_readEventsOnWrapping(JNIEnv* env, jobject claz jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } ELog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, tags, ELog::readEvents(env, ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, tags, timestamp, out); timestamp, out); } } /* /* Loading Loading
cmds/incidentd/src/Section.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -512,8 +512,8 @@ status_t LogSection::BlockingCall(int pipeWriteFd) const { // Open log buffer and getting logs since last retrieved time if any. // Open log buffer and getting logs since last retrieved time if any. unique_ptr<logger_list, void (*)(logger_list*)> loggers( unique_ptr<logger_list, void (*)(logger_list*)> loggers( gLastLogsRetrieved.find(mLogID) == gLastLogsRetrieved.end() gLastLogsRetrieved.find(mLogID) == gLastLogsRetrieved.end() ? android_logger_list_alloc(ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 0, 0) ? android_logger_list_alloc(ANDROID_LOG_NONBLOCK, 0, 0) : android_logger_list_alloc_time(ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, : android_logger_list_alloc_time(ANDROID_LOG_NONBLOCK, gLastLogsRetrieved[mLogID], 0), gLastLogsRetrieved[mLogID], 0), android_logger_list_free); android_logger_list_free); Loading
core/jni/android_app_admin_SecurityLog.cpp +4 −5 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,7 @@ static void android_app_admin_SecurityLog_readEvents(JNIEnv* env, jobject /* cla jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 0, out); SLog::readEvents(env, ANDROID_LOG_NONBLOCK, 0, out); } } static void android_app_admin_SecurityLog_readEventsSince(JNIEnv* env, jobject /* clazz */, static void android_app_admin_SecurityLog_readEventsSince(JNIEnv* env, jobject /* clazz */, Loading @@ -52,7 +52,7 @@ static void android_app_admin_SecurityLog_readEventsSince(JNIEnv* env, jobject / jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, timestamp, out); SLog::readEvents(env, ANDROID_LOG_NONBLOCK, timestamp, out); } } static void android_app_admin_SecurityLog_readPreviousEvents(JNIEnv* env, jobject /* clazz */, static void android_app_admin_SecurityLog_readPreviousEvents(JNIEnv* env, jobject /* clazz */, Loading @@ -62,7 +62,7 @@ static void android_app_admin_SecurityLog_readPreviousEvents(JNIEnv* env, jobjec jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK | ANDROID_LOG_PSTORE, 0, out); SLog::readEvents(env, ANDROID_LOG_NONBLOCK | ANDROID_LOG_PSTORE, 0, out); } } static void android_app_admin_SecurityLog_readEventsOnWrapping(JNIEnv* env, jobject /* clazz */, static void android_app_admin_SecurityLog_readEventsOnWrapping(JNIEnv* env, jobject /* clazz */, Loading @@ -72,8 +72,7 @@ static void android_app_admin_SecurityLog_readEventsOnWrapping(JNIEnv* env, jobj jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } SLog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, timestamp, SLog::readEvents(env, ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, timestamp, out); out); } } /* /* Loading
core/jni/android_util_EventLog.cpp +2 −3 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz ATTRIBUT return; return; } } ELog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, tags, 0, out); ELog::readEvents(env, ANDROID_LOG_NONBLOCK, tags, 0, out); } } /* /* * In class android.util.EventLog: * In class android.util.EventLog: Loading @@ -60,8 +60,7 @@ static void android_util_EventLog_readEventsOnWrapping(JNIEnv* env, jobject claz jniThrowNullPointerException(env, NULL); jniThrowNullPointerException(env, NULL); return; return; } } ELog::readEvents(env, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, tags, ELog::readEvents(env, ANDROID_LOG_NONBLOCK | ANDROID_LOG_WRAP, tags, timestamp, out); timestamp, out); } } /* /* Loading