diff options
author | Mark Salyzyn <salyzyn@google.com> | 2016-09-28 16:15:30 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2017-01-09 14:31:34 -0800 |
commit | 52eb4e01a49fe2e94555c000de38bbcbbb13401b (patch) | |
tree | a8bcb3cefc94c7366632782f10bfe03880bf189c | |
parent | ccda81e58f8456a19b02573d6787f11729904a7b (diff) |
Replace cutils/log.h and log/logger.h with log/log.h
Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I578b15b48f0fc2807a92abbc69a377c3d2191496
26 files changed, 107 insertions, 91 deletions
diff --git a/core/java/android/util/EventLog.java b/core/java/android/util/EventLog.java index 6196a97024e6..dd45cd0b6b68 100644 --- a/core/java/android/util/EventLog.java +++ b/core/java/android/util/EventLog.java @@ -58,7 +58,7 @@ public class EventLog { private final ByteBuffer mBuffer; // Layout of event log entry received from Android logger. - // see system/core/include/log/logger.h + // see system/core/include/log/log.h private static final int LENGTH_OFFSET = 0; private static final int HEADER_SIZE_OFFSET = 2; private static final int PROCESS_OFFSET = 4; diff --git a/core/jni/android/graphics/HarfBuzzNGFaceSkia.cpp b/core/jni/android/graphics/HarfBuzzNGFaceSkia.cpp index aa6348ee2a31..dcb787462a13 100644 --- a/core/jni/android/graphics/HarfBuzzNGFaceSkia.cpp +++ b/core/jni/android/graphics/HarfBuzzNGFaceSkia.cpp @@ -33,7 +33,9 @@ #include "HarfBuzzNGFaceSkia.h" #include <stdlib.h> -#include <cutils/log.h> + +#include <log/log.h> + #include <SkPaint.h> #include <SkPath.h> #include <SkPoint.h> diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp index dd5f7555e7a7..d8fbca83fbb1 100644 --- a/core/jni/android_os_Debug.cpp +++ b/core/jni/android_os_Debug.cpp @@ -16,32 +16,32 @@ #define LOG_TAG "android.os.Debug" +#include <assert.h> +#include <ctype.h> +#include <errno.h> #include <fcntl.h> #include <inttypes.h> +#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <unistd.h> -#include <time.h> #include <sys/time.h> -#include <errno.h> -#include <assert.h> -#include <ctype.h> -#include <malloc.h> +#include <time.h> +#include <unistd.h> #include <iomanip> #include <string> -#include "jni.h" +#include <android-base/stringprintf.h> +#include <cutils/debugger.h> +#include <log/log.h> +#include <utils/misc.h> +#include <utils/String8.h> -#include "android-base/stringprintf.h" -#include "cutils/debugger.h" -#include "cutils/log.h" #include "JNIHelp.h" -#include "memtrack/memtrack.h" -#include "memunreachable/memunreachable.h" -#include "utils/misc.h" -#include "utils/String8.h" +#include "jni.h" +#include <memtrack/memtrack.h> +#include <memunreachable/memunreachable.h> namespace android { diff --git a/core/jni/android_os_Trace.cpp b/core/jni/android_os_Trace.cpp index 30fc47bba751..dc5ce3912121 100644 --- a/core/jni/android_os_Trace.cpp +++ b/core/jni/android_os_Trace.cpp @@ -19,15 +19,14 @@ #include <inttypes.h> +#include <cutils/trace.h> +#include <utils/String8.h> +#include <log/log.h> + #include <JNIHelp.h> #include <ScopedUtfChars.h> #include <ScopedStringChars.h> -#include <utils/String8.h> - -#include <cutils/trace.h> -#include <cutils/log.h> - namespace android { static void sanitizeString(String8& utf8Chars) { diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp index 5559d48a58b6..abcd1e7049ef 100644 --- a/core/jni/android_util_Binder.cpp +++ b/core/jni/android_util_Binder.cpp @@ -29,19 +29,19 @@ #include <sys/types.h> #include <unistd.h> -#include <utils/Atomic.h> #include <binder/IInterface.h> +#include <binder/IServiceManager.h> #include <binder/IPCThreadState.h> -#include <utils/Log.h> -#include <utils/SystemClock.h> -#include <utils/List.h> -#include <utils/KeyedVector.h> -#include <log/logger.h> #include <binder/Parcel.h> #include <binder/ProcessState.h> -#include <binder/IServiceManager.h> -#include <utils/threads.h> +#include <log/log.h> +#include <utils/Atomic.h> +#include <utils/KeyedVector.h> +#include <utils/List.h> +#include <utils/Log.h> #include <utils/String8.h> +#include <utils/SystemClock.h> +#include <utils/threads.h> #include <ScopedUtfChars.h> #include <ScopedLocalRef.h> diff --git a/core/jni/android_util_Log.cpp b/core/jni/android_util_Log.cpp index 7719e31f4240..20dfe7809728 100644 --- a/core/jni/android_util_Log.cpp +++ b/core/jni/android_util_Log.cpp @@ -21,7 +21,7 @@ #include <android-base/macros.h> #include <assert.h> #include <cutils/properties.h> -#include <log/logger.h> // For LOGGER_ENTRY_MAX_PAYLOAD. +#include <log/log.h> // For LOGGER_ENTRY_MAX_PAYLOAD. #include <utils/Log.h> #include <utils/String8.h> diff --git a/core/jni/android_util_jar_StrictJarFile.cpp b/core/jni/android_util_jar_StrictJarFile.cpp index 2e31c8b2fc8f..4f1f926c8a22 100644 --- a/core/jni/android_util_jar_StrictJarFile.cpp +++ b/core/jni/android_util_jar_StrictJarFile.cpp @@ -20,13 +20,14 @@ #include <memory> #include <string> +#include <log/log.h> + #include "JNIHelp.h" #include "JniConstants.h" #include "ScopedLocalRef.h" #include "ScopedUtfChars.h" #include "jni.h" #include "ziparchive/zip_archive.h" -#include "cutils/log.h" namespace android { diff --git a/libs/androidfw/BackupData.cpp b/libs/androidfw/BackupData.cpp index ba4a4ff4fe63..76a430ee9f0e 100644 --- a/libs/androidfw/BackupData.cpp +++ b/libs/androidfw/BackupData.cpp @@ -16,14 +16,13 @@ #define LOG_TAG "backup_data" -#include <androidfw/BackupHelpers.h> -#include <utils/ByteOrder.h> - #include <stdio.h> #include <string.h> #include <unistd.h> -#include <cutils/log.h> +#include <androidfw/BackupHelpers.h> +#include <log/log.h> +#include <utils/ByteOrder.h> namespace android { diff --git a/libs/androidfw/BackupHelpers.cpp b/libs/androidfw/BackupHelpers.cpp index 78e9d91c4d67..8bfe2b6a259a 100644 --- a/libs/androidfw/BackupHelpers.cpp +++ b/libs/androidfw/BackupHelpers.cpp @@ -18,23 +18,22 @@ #include <androidfw/BackupHelpers.h> -#include <utils/KeyedVector.h> -#include <utils/ByteOrder.h> -#include <utils/String8.h> - #include <errno.h> -#include <sys/types.h> -#include <sys/uio.h> -#include <sys/stat.h> -#include <sys/time.h> // for utimes +#include <fcntl.h> #include <stdio.h> #include <stdlib.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <sys/time.h> // for utimes +#include <sys/uio.h> #include <unistd.h> #include <utime.h> -#include <fcntl.h> #include <zlib.h> -#include <cutils/log.h> +#include <log/log.h> +#include <utils/ByteOrder.h> +#include <utils/KeyedVector.h> +#include <utils/String8.h> namespace android { diff --git a/libs/androidfw/include/androidfw/CursorWindow.h b/libs/androidfw/include/androidfw/CursorWindow.h index 8a2979a3756d..f54356576551 100644 --- a/libs/androidfw/include/androidfw/CursorWindow.h +++ b/libs/androidfw/include/androidfw/CursorWindow.h @@ -17,11 +17,11 @@ #ifndef _ANDROID__DATABASE_WINDOW_H #define _ANDROID__DATABASE_WINDOW_H -#include <cutils/log.h> #include <stddef.h> #include <stdint.h> #include <binder/Parcel.h> +#include <log/log.h> #include <utils/String8.h> #if LOG_NDEBUG diff --git a/libs/hwui/DamageAccumulator.cpp b/libs/hwui/DamageAccumulator.cpp index 6d5833b3be86..2b4fe17d424d 100644 --- a/libs/hwui/DamageAccumulator.cpp +++ b/libs/hwui/DamageAccumulator.cpp @@ -16,7 +16,7 @@ #include "DamageAccumulator.h" -#include <cutils/log.h> +#include <log/log.h> #include "RenderNode.h" #include "utils/MathUtils.h" diff --git a/libs/hwui/DeviceInfo.cpp b/libs/hwui/DeviceInfo.cpp index 4cfbb2a43198..ff3ee2229b02 100644 --- a/libs/hwui/DeviceInfo.cpp +++ b/libs/hwui/DeviceInfo.cpp @@ -13,16 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include <DeviceInfo.h> #include "Extensions.h" -#include <GLES2/gl2.h> -#include <log/log.h> - #include <thread> #include <mutex> +#include <log/log.h> + +#include <GLES2/gl2.h> + namespace android { namespace uirenderer { diff --git a/libs/hwui/GpuMemoryTracker.h b/libs/hwui/GpuMemoryTracker.h index bfb1bf1ba098..352f3d785c54 100644 --- a/libs/hwui/GpuMemoryTracker.h +++ b/libs/hwui/GpuMemoryTracker.h @@ -15,10 +15,11 @@ */ #pragma once -#include <cutils/log.h> #include <pthread.h> #include <ostream> +#include <log/log.h> + namespace android { namespace uirenderer { diff --git a/libs/hwui/Interpolator.cpp b/libs/hwui/Interpolator.cpp index cc47f0052b73..9af8eeba14a0 100644 --- a/libs/hwui/Interpolator.cpp +++ b/libs/hwui/Interpolator.cpp @@ -16,10 +16,11 @@ #include "Interpolator.h" -#include "utils/MathUtils.h" - #include <algorithm> -#include <cutils/log.h> + +#include <log/log.h> + +#include "utils/MathUtils.h" namespace android { namespace uirenderer { diff --git a/libs/hwui/JankTracker.cpp b/libs/hwui/JankTracker.cpp index ed6b211eef1b..0a9bf5450091 100644 --- a/libs/hwui/JankTracker.cpp +++ b/libs/hwui/JankTracker.cpp @@ -15,19 +15,21 @@ */ #include "JankTracker.h" -#include "Properties.h" -#include "utils/TimeUtils.h" +#include <errno.h> +#include <inttypes.h> #include <algorithm> -#include <cutils/ashmem.h> -#include <cutils/log.h> +#include <cmath> #include <cstdio> -#include <errno.h> -#include <inttypes.h> #include <limits> -#include <cmath> #include <sys/mman.h> +#include <cutils/ashmem.h> +#include <log/log.h> + +#include "Properties.h" +#include "utils/TimeUtils.h" + namespace android { namespace uirenderer { diff --git a/libs/hwui/PixelBuffer.h b/libs/hwui/PixelBuffer.h index bbef36b72e4f..280af877b93d 100644 --- a/libs/hwui/PixelBuffer.h +++ b/libs/hwui/PixelBuffer.h @@ -18,7 +18,8 @@ #define ANDROID_HWUI_PIXEL_BUFFER_H #include <GLES3/gl3.h> -#include <cutils/log.h> + +#include <log/log.h> namespace android { namespace uirenderer { diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index 6f68c2bdff80..e04a06a7dcaf 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "Properties.h" +#include "Properties.h" #include "Debug.h" -#include <cutils/compiler.h> -#include <cutils/log.h> -#include <cutils/properties.h> - #include <algorithm> #include <cstdlib> +#include <log/log.h> +#include <cutils/compiler.h> +#include <cutils/properties.h> + namespace android { namespace uirenderer { diff --git a/libs/hwui/SkiaCanvasProxy.cpp b/libs/hwui/SkiaCanvasProxy.cpp index 9df32b28bf3b..5db5efb649e7 100644 --- a/libs/hwui/SkiaCanvasProxy.cpp +++ b/libs/hwui/SkiaCanvasProxy.cpp @@ -16,7 +16,10 @@ #include "SkiaCanvasProxy.h" -#include <cutils/log.h> +#include <memory> + +#include <log/log.h> + #include <SkPatchUtils.h> #include <SkPaint.h> #include <SkPath.h> @@ -24,8 +27,6 @@ #include <SkRect.h> #include <SkRRect.h> -#include <memory> - namespace android { namespace uirenderer { diff --git a/libs/hwui/hwui/MinikinSkia.cpp b/libs/hwui/hwui/MinikinSkia.cpp index a455f576e38d..159a1444e044 100644 --- a/libs/hwui/hwui/MinikinSkia.cpp +++ b/libs/hwui/hwui/MinikinSkia.cpp @@ -16,9 +16,10 @@ #include "MinikinSkia.h" +#include <log/log.h> + #include <SkPaint.h> #include <SkTypeface.h> -#include <cutils/log.h> namespace android { diff --git a/libs/hwui/hwui/MinikinUtils.cpp b/libs/hwui/hwui/MinikinUtils.cpp index 67b775d98356..eda94bfcd430 100644 --- a/libs/hwui/hwui/MinikinUtils.cpp +++ b/libs/hwui/hwui/MinikinUtils.cpp @@ -13,15 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include "MinikinUtils.h" +#include <string> + +#include <log/log.h> + #include "Paint.h" #include "SkPathMeasure.h" #include "Typeface.h" -#include <cutils/log.h> -#include <string> - namespace android { FontStyle MinikinUtils::prepareMinikinPaint(MinikinPaint* minikinPaint, FontCollection** pFont, diff --git a/libs/hwui/utils/GLUtils.h b/libs/hwui/utils/GLUtils.h index b49c1eb1dc05..f8dfe1040063 100644 --- a/libs/hwui/utils/GLUtils.h +++ b/libs/hwui/utils/GLUtils.h @@ -18,7 +18,7 @@ #include "Debug.h" -#include <cutils/log.h> +#include <log/log.h> namespace android { namespace uirenderer { diff --git a/libs/input/PointerController.cpp b/libs/input/PointerController.cpp index abef66f9ecd9..07bcbd35819d 100644 --- a/libs/input/PointerController.cpp +++ b/libs/input/PointerController.cpp @@ -15,7 +15,6 @@ */ #define LOG_TAG "PointerController" - //#define LOG_NDEBUG 0 // Log debug messages about pointer updates @@ -23,8 +22,9 @@ #include "PointerController.h" -#include <cutils/log.h> +#include <log/log.h> +// ToDo: Fix code to be warning free #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #include <SkBitmap.h> diff --git a/libs/input/SpriteController.cpp b/libs/input/SpriteController.cpp index 0bc832a8fb37..049b76e6986e 100644 --- a/libs/input/SpriteController.cpp +++ b/libs/input/SpriteController.cpp @@ -15,15 +15,15 @@ */ #define LOG_TAG "Sprites" - //#define LOG_NDEBUG 0 #include "SpriteController.h" -#include <cutils/log.h> +#include <log/log.h> #include <utils/String8.h> #include <gui/Surface.h> +// ToDo: Fix code to be warning free #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #include <SkBitmap.h> diff --git a/media/mca/filterpacks/native/base/geometry.cpp b/media/mca/filterpacks/native/base/geometry.cpp index 7812d5020c3f..44b13e4fff15 100644 --- a/media/mca/filterpacks/native/base/geometry.cpp +++ b/media/mca/filterpacks/native/base/geometry.cpp @@ -13,10 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#define LOG_TAG "geometry" -#include <cutils/log.h> #include <cmath> +#include <log/log.h> + #include "geometry.h" namespace android { diff --git a/media/mca/filterpacks/native/base/time_util.cpp b/media/mca/filterpacks/native/base/time_util.cpp index 1a78a953de69..7d383df5aea2 100644 --- a/media/mca/filterpacks/native/base/time_util.cpp +++ b/media/mca/filterpacks/native/base/time_util.cpp @@ -13,14 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#define LOG_TAG "time_util" #include "time_util.h" #include "utilities.h" -#include <cutils/log.h> #include <sys/time.h> #include <map> +#include <log/log.h> + namespace android { namespace filterfw { diff --git a/services/core/jni/com_android_server_connectivity_Vpn.cpp b/services/core/jni/com_android_server_connectivity_Vpn.cpp index c54d732b9285..4d85d9a558aa 100644 --- a/services/core/jni/com_android_server_connectivity_Vpn.cpp +++ b/services/core/jni/com_android_server_connectivity_Vpn.cpp @@ -17,24 +17,25 @@ #define LOG_NDEBUG 0 #define LOG_TAG "VpnJni" -#include <cutils/log.h> -#include "netutils/ifc.h" -#include <stdio.h> -#include <string.h> -#include <sys/ioctl.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/socket.h> -#include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> - #include <linux/if.h> #include <linux/if_tun.h> #include <linux/route.h> #include <linux/ipv6_route.h> +#include <netinet/in.h> +#include <stdio.h> +#include <string.h> +#include <sys/ioctl.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/types.h> + +#include <log/log.h> + +#include "netutils/ifc.h" #include "jni.h" #include "JNIHelp.h" |