system/core Replace log/log.h with android/log.h am: ff2dcd9af9 am: cac331afd9

am: 0308b0eabd

Change-Id: I4d631d53b4fc27e1a02d412bae21fffad6635258
This commit is contained in:
Mark Salyzyn 2016-09-30 22:18:18 +00:00 committed by android-build-merger
commit 9f6b98dec0
35 changed files with 91 additions and 89 deletions

View file

@ -31,17 +31,17 @@
#include <unistd.h>
#include <utime.h>
#include <android/log.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <private/android_filesystem_config.h>
#include <selinux/android.h>
#include "adb.h"
#include "adb_io.h"
#include "adb_utils.h"
#include "private/android_filesystem_config.h"
#include "security_log_tags.h"
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <log/log.h>
#include <selinux/android.h>
static bool should_use_fs_config(const std::string& path) {
// TODO: use fs_config to configure permissions on /data.
return android::base::StartsWith(path, "/system/") ||

View file

@ -92,10 +92,10 @@
#include <unordered_map>
#include <vector>
#include <android/log.h>
#include <android-base/logging.h>
#include <android-base/stringprintf.h>
#include <paths.h>
#include <log/log.h>
#include "adb.h"
#include "adb_io.h"

View file

@ -43,18 +43,18 @@
#include <utility>
#include <vector>
#include "android-base/macros.h"
#include "android-base/strings.h"
// Headers for LogMessage::LogLine.
#ifdef __ANDROID__
#include <android/log.h>
#include <android/set_abort_message.h>
#include "log/log.h"
#else
#include <sys/types.h>
#include <unistd.h>
#endif
#include <android-base/macros.h>
#include <android-base/strings.h>
// For gettid.
#if defined(__APPLE__)
#include "AvailabilityMacros.h" // For MAC_OS_X_VERSION_MAX_ALLOWED

View file

@ -20,6 +20,7 @@
#include <getopt.h>
#include <unistd.h>
#include <cmath>
#include <cstddef>
#include <cstdio>
@ -27,12 +28,14 @@
#include <map>
#include <memory>
#include <string>
#include <android/log.h>
#include <android-base/logging.h>
#include <android-base/parseint.h>
#include <cutils/properties.h>
#include <log/log.h>
#include "boot_event_record_store.h"
#include "event_log_list_builder.h"
#include "event_log_list_builder.h" /* ToDo: switch to liblog implementation */
#include "histogram_logger.h"
#include "uptime_parser.h"

View file

@ -19,8 +19,9 @@
#include <cinttypes>
#include <memory>
#include <string>
#include <android/log.h>
#include <android-base/logging.h>
#include <log/log.h>
namespace {

View file

@ -17,9 +17,10 @@
#include "event_log_list_builder.h"
#include <inttypes.h>
#include <gtest/gtest.h>
#include <android/log.h>
#include <gmock/gmock.h>
#include <log/log.h>
#include <gtest/gtest.h>
using testing::ElementsAreArray;

View file

@ -18,8 +18,10 @@
#include <cstdlib>
#include <memory>
#include <android/log.h>
#include <android-base/logging.h>
#include <log/log.h>
#include "event_log_list_builder.h"
namespace bootstat {
@ -38,4 +40,4 @@ void LogHistogram(const std::string& event, int32_t data) {
android_bWriteLog(HISTOGRAM_LOG_TAG, log.get(), size);
}
} // namespace bootstat
} // namespace bootstat

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -24,8 +24,8 @@
#include <sys/ptrace.h>
#include <sys/uio.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -16,25 +16,24 @@
#define LOG_TAG "DEBUG"
#include <errno.h>
#include <dirent.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <limits.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <memory>
#include <string>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "backtrace.h"
#include "utility.h"

View file

@ -13,8 +13,8 @@
#include <sys/wait.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/sockets.h>
#include <log/log.h>
#if defined(STATIC_CRASHER)
#include "debuggerd/client.h"

View file

@ -23,9 +23,9 @@
#include <string>
#include <backtrace/Backtrace.h>
#include <android/log.h>
#include <android-base/stringprintf.h>
#include <log/log.h>
#include <backtrace/Backtrace.h>
#include "elf_utils.h"

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -19,8 +19,8 @@
#include <string>
#include <android/log.h>
#include <android-base/stringprintf.h>
#include <log/log.h>
#include <log/logger.h>
// Forward declarations.

View file

@ -25,23 +25,21 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/ptrace.h>
#include <sys/stat.h>
#include <time.h>
#include <memory>
#include <string>
#include <private/android_filesystem_config.h>
#include <android/log.h>
#include <android-base/stringprintf.h>
#include <cutils/properties.h>
#include <log/log.h>
#include <log/logger.h>
#include <log/logprint.h>
#include <backtrace/Backtrace.h>
#include <backtrace/BacktraceMap.h>
#include <cutils/properties.h>
#include <log/logger.h>
#include <log/logprint.h>
#include <private/android_filesystem_config.h>
#include <selinux/android.h>

View file

@ -21,15 +21,15 @@
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <sys/ptrace.h>
#include <sys/wait.h>
#include <unistd.h>
#include <string>
#include <android/log.h>
#include <android-base/stringprintf.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
// Whitelist output desired in the logcat output.
bool is_allowed_in_logcat(enum logtype ltype) {

View file

@ -21,8 +21,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <sys/user.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -17,11 +17,12 @@
#ifndef _LOGPRINT_H
#define _LOGPRINT_H
#include <android/log.h>
#include <log/logger.h>
#include <log/event_tag_map.h>
#include <pthread.h>
#include <android/log.h>
#include <log/event_tag_map.h>
#include <log/logger.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -19,7 +19,7 @@
#define LOG_TAG "libbacktrace"
#include <log/log.h>
#include <android/log.h>
// Macro to log the function name along with the warning message.
#define BACK_LOGW(format, ...) \

View file

@ -20,9 +20,9 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <backtrace/backtrace_constants.h>
#include <backtrace/BacktraceMap.h>
#include <log/log.h>
#include "thread_utils.h"

View file

@ -14,11 +14,10 @@
* limitations under the License.
*/
#include <cutils/sockets.h>
#include <sys/uio.h>
#include <android/log.h>
#include <cutils/sockets.h>
#if defined(__ANDROID__)
/* For the socket trust (credentials) check */

View file

@ -25,12 +25,12 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <android/log.h>
#include <cutils/compiler.h>
#include <cutils/properties.h>
#include <cutils/trace.h>
#include <android/log.h>
/**
* Maximum size of a message that can be logged to the trace buffer.
* Note this message includes a tag, the pid, and the string given as the name.

View file

@ -20,21 +20,19 @@
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <linux/fs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <linux/fs.h>
#include <android/log.h>
#include <cutils/config_utils.h>
#include <log/log.h>
#include <diskconfig/diskconfig.h>
static int
parse_len(const char *str, uint64_t *plen)
{

View file

@ -23,10 +23,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <unistd.h>
#include <log/log.h>
#include <android/log.h>
#include <diskconfig/diskconfig.h>

View file

@ -14,16 +14,15 @@
* limitations under the License.
*/
#include <memtrack/memtrack.h>
#define LOG_TAG "memtrack"
#include <log/log.h>
#include <memtrack/memtrack.h>
#include <errno.h>
#include <malloc.h>
#include <string.h>
#include <android/log.h>
#include <hardware/memtrack.h>
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))

View file

@ -19,6 +19,6 @@
#define LOG_TAG "libmemunreachable"
#include <log/log.h>
#include <android/log.h>
#endif // LIBMEMUNREACHABLE_LOG_H_

View file

@ -20,9 +20,9 @@
#include <dlfcn.h>
#ifdef __ANDROID__
#include "dlext_namespaces.h"
#include "cutils/properties.h"
#define LOG_TAG "libnativeloader"
#include "log/log.h"
#include "android/log.h"
#include "cutils/properties.h"
#endif
#include <algorithm>
@ -30,9 +30,9 @@
#include <string>
#include <mutex>
#include "android-base/file.h"
#include "android-base/macros.h"
#include "android-base/strings.h"
#include <android-base/file.h>
#include <android-base/macros.h>
#include <android-base/strings.h>
namespace android {

View file

@ -17,7 +17,7 @@
#include <stdlib.h>
#include <string.h>
#include <log/log.h>
#include <android/log.h>
#include "SharedBuffer.h"

View file

@ -14,12 +14,12 @@
* limitations under the License.
*/
#include <log/log.h>
#include <utils/Unicode.h>
#include <limits.h>
#include <stddef.h>
#include <android/log.h>
#include <utils/Unicode.h>
#if defined(_WIN32)
# undef nhtol
# undef htonl

View file

@ -30,13 +30,13 @@
#include <memory>
#include <vector>
#include "android-base/file.h"
#include "android-base/logging.h"
#include "android-base/macros.h" // TEMP_FAILURE_RETRY may or may not be in unistd
#include "android-base/memory.h"
#include "log/log.h"
#include "utils/Compat.h"
#include "utils/FileMap.h"
#include <android/log.h>
#include <android-base/file.h>
#include <android-base/logging.h>
#include <android-base/macros.h> // TEMP_FAILURE_RETRY may or may not be in unistd
#include <android-base/memory.h>
#include <utils/Compat.h>
#include <utils/FileMap.h>
#include "ziparchive/zip_archive.h"
#include "zlib.h"

View file

@ -14,6 +14,8 @@
* limitations under the License.
*/
#define LOG_TAG "ZIPARCHIVE"
// Read-only stream access to Zip Archive entries.
#include <errno.h>
#include <inttypes.h>
@ -24,9 +26,8 @@
#include <memory>
#include <vector>
#define LOG_TAG "ZIPARCHIVE"
#include <android/log.h>
#include <android-base/file.h>
#include <log/log.h>
#include <ziparchive/zip_archive.h>
#include <ziparchive/zip_archive_stream_entry.h>
#include <zlib.h>

View file

@ -30,8 +30,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/sockets.h>
#include <log/log.h>
#include <processgroup/processgroup.h>
#ifndef __unused

View file

@ -14,17 +14,17 @@
* limitations under the License.
*/
#define LOG_TAG "TrustyNVRAM"
#include "trusty_nvram_implementation.h"
#include <errno.h>
#include <string.h>
#include <android/log.h>
#include <hardware/nvram.h>
#include <trusty/tipc.h>
#define LOG_TAG "TrustyNVRAM"
#include <log/log.h>
#include <nvram/messages/blob.h>
namespace nvram {