From 3eb7df74b8eae5c902039d1b76402350715a0944 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 6 Apr 2017 12:15:23 -0700 Subject: [PATCH] Fix transitive includes. Files relying on transitive include of utils/Log.h (and things that it includes) from MQDescriptor.h Test: pass Change-Id: Iff316b21bef556bb026378b7f89e97ded3febef4 --- automotive/evs/1.0/default/service.cpp | 2 +- .../evs/1.0/vts/functional/VtsEvsV1_0TargetTest.cpp | 4 ++-- .../2.0/default/common/src/VehiclePropertyStore.cpp | 2 +- .../vehicle/2.0/default/impl/vhal_v2_0/PipeComm.cpp | 2 +- .../vehicle/2.0/default/impl/vhal_v2_0/SocketComm.cpp | 1 + .../2.0/default/impl/vhal_v2_0/VehicleEmulator.h | 2 ++ .../2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp | 3 ++- camera/common/1.0/default/CameraMetadata.cpp | 2 +- camera/common/1.0/default/HandleImporter.cpp | 2 +- camera/common/1.0/default/VendorTagDescriptor.cpp | 10 +++++----- camera/device/1.0/default/CameraDevice.cpp | 2 +- camera/device/3.2/default/CameraDevice.cpp | 2 +- camera/device/3.2/default/convert.cpp | 2 +- .../provider/2.4/vts/functional/CameraParameters.cpp | 2 +- .../vts/functional/VtsHalContexthubV1_0TargetTest.cpp | 3 ++- drm/1.0/default/CryptoFactory.cpp | 2 +- drm/1.0/default/CryptoPlugin.cpp | 2 +- drm/1.0/default/DrmFactory.cpp | 2 +- drm/1.0/vts/functional/drm_hal_clearkey_test.cpp | 2 +- drm/1.0/vts/functional/drm_hal_vendor_test.cpp | 2 +- drm/1.0/vts/functional/vendor_modules.cpp | 2 +- .../vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp | 2 ++ gnss/1.0/vts/functional/VtsHalGnssV1_0TargetTest.cpp | 2 +- graphics/allocator/2.0/default/Gralloc1On0Adapter.cpp | 2 +- .../vts/functional/VtsHalMemtrackV1_0TargetTest.cpp | 1 + power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp | 1 + .../1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp | 6 +++--- .../functional/VtsHalSoundtriggerV2_0TargetTest.cpp | 1 + usb/1.0/default/Usb.h | 2 +- usb/1.0/vts/functional/VtsHalUsbV1_0TargetTest.cpp | 1 + vr/1.0/vts/functional/VtsHalVrV1_0TargetTest.cpp | 4 ++-- 31 files changed, 43 insertions(+), 32 deletions(-) diff --git a/automotive/evs/1.0/default/service.cpp b/automotive/evs/1.0/default/service.cpp index 1b64e4444e..d4181b9ab5 100644 --- a/automotive/evs/1.0/default/service.cpp +++ b/automotive/evs/1.0/default/service.cpp @@ -19,9 +19,9 @@ #include #include +#include #include #include -#include #include "ServiceNames.h" #include "EvsEnumerator.h" diff --git a/automotive/evs/1.0/vts/functional/VtsEvsV1_0TargetTest.cpp b/automotive/evs/1.0/vts/functional/VtsEvsV1_0TargetTest.cpp index 6a0ae48ce1..50b6581fa0 100644 --- a/automotive/evs/1.0/vts/functional/VtsEvsV1_0TargetTest.cpp +++ b/automotive/evs/1.0/vts/functional/VtsEvsV1_0TargetTest.cpp @@ -37,10 +37,10 @@ static const float kNanoToSeconds = 0.000000001f; #include #include +#include +#include #include #include -#include -#include #include #include diff --git a/automotive/vehicle/2.0/default/common/src/VehiclePropertyStore.cpp b/automotive/vehicle/2.0/default/common/src/VehiclePropertyStore.cpp index 0e6b776f29..2c3ebfccbf 100644 --- a/automotive/vehicle/2.0/default/common/src/VehiclePropertyStore.cpp +++ b/automotive/vehicle/2.0/default/common/src/VehiclePropertyStore.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ #define LOG_TAG "VehiclePropertyStore" -#include +#include #include #include "VehiclePropertyStore.h" diff --git a/automotive/vehicle/2.0/default/impl/vhal_v2_0/PipeComm.cpp b/automotive/vehicle/2.0/default/impl/vhal_v2_0/PipeComm.cpp index 4da59a928e..5a9b254594 100644 --- a/automotive/vehicle/2.0/default/impl/vhal_v2_0/PipeComm.cpp +++ b/automotive/vehicle/2.0/default/impl/vhal_v2_0/PipeComm.cpp @@ -17,7 +17,7 @@ #define LOG_TAG "PipeComm" #include -#include +#include #include #include "PipeComm.h" diff --git a/automotive/vehicle/2.0/default/impl/vhal_v2_0/SocketComm.cpp b/automotive/vehicle/2.0/default/impl/vhal_v2_0/SocketComm.cpp index a3ef4b127d..42c1c780cc 100644 --- a/automotive/vehicle/2.0/default/impl/vhal_v2_0/SocketComm.cpp +++ b/automotive/vehicle/2.0/default/impl/vhal_v2_0/SocketComm.cpp @@ -18,6 +18,7 @@ #include #include +#include #include #include diff --git a/automotive/vehicle/2.0/default/impl/vhal_v2_0/VehicleEmulator.h b/automotive/vehicle/2.0/default/impl/vhal_v2_0/VehicleEmulator.h index 9a75ddc199..c8bcd6036f 100644 --- a/automotive/vehicle/2.0/default/impl/vhal_v2_0/VehicleEmulator.h +++ b/automotive/vehicle/2.0/default/impl/vhal_v2_0/VehicleEmulator.h @@ -17,9 +17,11 @@ #ifndef android_hardware_automotive_vehicle_V2_0_impl_VehicleHalEmulator_H_ #define android_hardware_automotive_vehicle_V2_0_impl_VehicleHalEmulator_H_ +#include #include #include #include + #include "vhal_v2_0/VehicleHal.h" #include "CommBase.h" diff --git a/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp b/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp index ae7f416e26..4dceae0581 100644 --- a/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp +++ b/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp @@ -17,9 +17,10 @@ #define LOG_TAG "DefaultVehicleHal_v2_1" #include -#include +#include #include #include +#include #include "EmulatedVehicleHal.h" #include "VehicleHalProto.pb.h" diff --git a/camera/common/1.0/default/CameraMetadata.cpp b/camera/common/1.0/default/CameraMetadata.cpp index 44c2040654..0e7ef6e1bb 100644 --- a/camera/common/1.0/default/CameraMetadata.cpp +++ b/camera/common/1.0/default/CameraMetadata.cpp @@ -17,7 +17,7 @@ // #define LOG_NDEBUG 0 #define LOG_TAG "CamComm1.0-MD" -#include +#include #include #include "CameraMetadata.h" diff --git a/camera/common/1.0/default/HandleImporter.cpp b/camera/common/1.0/default/HandleImporter.cpp index dee2973386..e22f26f3d1 100644 --- a/camera/common/1.0/default/HandleImporter.cpp +++ b/camera/common/1.0/default/HandleImporter.cpp @@ -15,8 +15,8 @@ */ #define LOG_TAG "HandleImporter" -#include #include "HandleImporter.h" +#include namespace android { namespace hardware { diff --git a/camera/common/1.0/default/VendorTagDescriptor.cpp b/camera/common/1.0/default/VendorTagDescriptor.cpp index db884a86ac..bc18270605 100644 --- a/camera/common/1.0/default/VendorTagDescriptor.cpp +++ b/camera/common/1.0/default/VendorTagDescriptor.cpp @@ -16,13 +16,13 @@ #define LOG_TAG "CamComm1.0-VTDesc" -#include -#include -#include -#include -#include +#include #include #include +#include +#include +#include +#include #include "VendorTagDescriptor.h" diff --git a/camera/device/1.0/default/CameraDevice.cpp b/camera/device/1.0/default/CameraDevice.cpp index 877c6e7728..6495f30222 100644 --- a/camera/device/1.0/default/CameraDevice.cpp +++ b/camera/device/1.0/default/CameraDevice.cpp @@ -15,10 +15,10 @@ */ #define LOG_TAG "CamDev@1.0-impl" -#include #include #include #include +#include #include #include "CameraDevice_1_0.h" diff --git a/camera/device/3.2/default/CameraDevice.cpp b/camera/device/3.2/default/CameraDevice.cpp index a742335548..637a1e6616 100644 --- a/camera/device/3.2/default/CameraDevice.cpp +++ b/camera/device/3.2/default/CameraDevice.cpp @@ -15,7 +15,7 @@ */ #define LOG_TAG "CamDev@3.2-impl" -#include +#include #include #include diff --git a/camera/device/3.2/default/convert.cpp b/camera/device/3.2/default/convert.cpp index 35676df3af..c7cc75ad4d 100644 --- a/camera/device/3.2/default/convert.cpp +++ b/camera/device/3.2/default/convert.cpp @@ -15,7 +15,7 @@ */ #define LOG_TAG "android.hardware.camera.device@3.2-convert-impl" -#include +#include #include "include/convert.h" diff --git a/camera/provider/2.4/vts/functional/CameraParameters.cpp b/camera/provider/2.4/vts/functional/CameraParameters.cpp index 0285154a8b..97b263b64e 100644 --- a/camera/provider/2.4/vts/functional/CameraParameters.cpp +++ b/camera/provider/2.4/vts/functional/CameraParameters.cpp @@ -16,7 +16,7 @@ */ #define LOG_TAG "CameraParams" -#include +#include #include #include diff --git a/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp b/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp index 765857f8c2..5672824d44 100644 --- a/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp +++ b/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp @@ -16,12 +16,13 @@ #define LOG_TAG "contexthub_hidl_hal_test" +#include #include #include #include #include #include -#include +#include #include #include diff --git a/drm/1.0/default/CryptoFactory.cpp b/drm/1.0/default/CryptoFactory.cpp index 935786ddf6..caab83bc07 100644 --- a/drm/1.0/default/CryptoFactory.cpp +++ b/drm/1.0/default/CryptoFactory.cpp @@ -16,10 +16,10 @@ #define LOG_TAG "android.hardware.drm@1.0-impl" #include "CryptoFactory.h" +#include #include "CryptoPlugin.h" #include "LegacyPluginPath.h" #include "TypeConvert.h" -#include namespace android { namespace hardware { diff --git a/drm/1.0/default/CryptoPlugin.cpp b/drm/1.0/default/CryptoPlugin.cpp index 9c51b15d17..bf7ac733ed 100644 --- a/drm/1.0/default/CryptoPlugin.cpp +++ b/drm/1.0/default/CryptoPlugin.cpp @@ -20,8 +20,8 @@ #include #include +#include #include -#include using android::hardware::hidl_memory; using android::hidl::memory::V1_0::IMemory; diff --git a/drm/1.0/default/DrmFactory.cpp b/drm/1.0/default/DrmFactory.cpp index 72466a14f4..7e5d998e4f 100644 --- a/drm/1.0/default/DrmFactory.cpp +++ b/drm/1.0/default/DrmFactory.cpp @@ -16,10 +16,10 @@ #define LOG_TAG "android.hardware.drm@1.0-impl" #include "DrmFactory.h" +#include #include "DrmPlugin.h" #include "LegacyPluginPath.h" #include "TypeConvert.h" -#include namespace android { namespace hardware { diff --git a/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp b/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp index 2296d2d26f..01656f2b4a 100644 --- a/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp +++ b/drm/1.0/vts/functional/drm_hal_clearkey_test.cpp @@ -16,7 +16,6 @@ #define LOG_TAG "drm_hal_clearkey_test@1.0" -#include #include #include #include @@ -26,6 +25,7 @@ #include #include #include +#include #include #include diff --git a/drm/1.0/vts/functional/drm_hal_vendor_test.cpp b/drm/1.0/vts/functional/drm_hal_vendor_test.cpp index bd78442cfc..b44ace91d4 100644 --- a/drm/1.0/vts/functional/drm_hal_vendor_test.cpp +++ b/drm/1.0/vts/functional/drm_hal_vendor_test.cpp @@ -16,7 +16,6 @@ #define LOG_TAG "drm_hal_vendor_test@1.0" -#include #include #include #include @@ -25,6 +24,7 @@ #include #include #include +#include #include #include diff --git a/drm/1.0/vts/functional/vendor_modules.cpp b/drm/1.0/vts/functional/vendor_modules.cpp index 34af6f86c6..e81bbd4728 100644 --- a/drm/1.0/vts/functional/vendor_modules.cpp +++ b/drm/1.0/vts/functional/vendor_modules.cpp @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include "shared_library.h" diff --git a/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp b/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp index 391dea0352..e9a44ebe4c 100644 --- a/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp +++ b/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp @@ -30,6 +30,8 @@ #include #include +#include + #include using ::android::hardware::hidl_string; diff --git a/gnss/1.0/vts/functional/VtsHalGnssV1_0TargetTest.cpp b/gnss/1.0/vts/functional/VtsHalGnssV1_0TargetTest.cpp index bd5cc2e952..ec60b65003 100644 --- a/gnss/1.0/vts/functional/VtsHalGnssV1_0TargetTest.cpp +++ b/gnss/1.0/vts/functional/VtsHalGnssV1_0TargetTest.cpp @@ -16,7 +16,7 @@ #define LOG_TAG "VtsHalGnssV1_0TargetTest" #include -#include +#include #include diff --git a/graphics/allocator/2.0/default/Gralloc1On0Adapter.cpp b/graphics/allocator/2.0/default/Gralloc1On0Adapter.cpp index f722429724..be055ec3b1 100644 --- a/graphics/allocator/2.0/default/Gralloc1On0Adapter.cpp +++ b/graphics/allocator/2.0/default/Gralloc1On0Adapter.cpp @@ -25,7 +25,7 @@ #include -#include +#include #include #include diff --git a/memtrack/1.0/vts/functional/VtsHalMemtrackV1_0TargetTest.cpp b/memtrack/1.0/vts/functional/VtsHalMemtrackV1_0TargetTest.cpp index a8d8aea1e3..6ff566e7d7 100644 --- a/memtrack/1.0/vts/functional/VtsHalMemtrackV1_0TargetTest.cpp +++ b/memtrack/1.0/vts/functional/VtsHalMemtrackV1_0TargetTest.cpp @@ -22,6 +22,7 @@ #include +#include #include #include diff --git a/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp b/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp index cd1a261227..c94fa4f461 100644 --- a/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp +++ b/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp @@ -24,6 +24,7 @@ #include +#include #include using ::android::hardware::power::V1_0::IPower; diff --git a/sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp b/sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp index a65c7b86af..b3ac874be1 100644 --- a/sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp +++ b/sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp @@ -15,14 +15,14 @@ */ #define LOG_TAG "sensors_hidl_hal_test" +#include #include #include #include -#include #include +#include // for sensor type strings +#include #include -#include -#include // for sensor type strings #include #include diff --git a/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp b/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp index 3fbef18e19..2eca8f4616 100644 --- a/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp +++ b/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include diff --git a/usb/1.0/default/Usb.h b/usb/1.0/default/Usb.h index c34d08074a..ddfcac6aab 100644 --- a/usb/1.0/default/Usb.h +++ b/usb/1.0/default/Usb.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #ifdef LOG_TAG #undef LOG_TAG diff --git a/usb/1.0/vts/functional/VtsHalUsbV1_0TargetTest.cpp b/usb/1.0/vts/functional/VtsHalUsbV1_0TargetTest.cpp index ea6d4a9ba9..b77398fc65 100644 --- a/usb/1.0/vts/functional/VtsHalUsbV1_0TargetTest.cpp +++ b/usb/1.0/vts/functional/VtsHalUsbV1_0TargetTest.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include #include diff --git a/vr/1.0/vts/functional/VtsHalVrV1_0TargetTest.cpp b/vr/1.0/vts/functional/VtsHalVrV1_0TargetTest.cpp index a9837318de..23f4c71dfb 100644 --- a/vr/1.0/vts/functional/VtsHalVrV1_0TargetTest.cpp +++ b/vr/1.0/vts/functional/VtsHalVrV1_0TargetTest.cpp @@ -15,11 +15,11 @@ */ #define LOG_TAG "vr_hidl_hal_test" +#include #include #include -#include -#include #include +#include using ::android::hardware::vr::V1_0::IVr; using ::android::hardware::Return;