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
This commit is contained in:
Steven Moreland 2017-04-06 12:15:23 -07:00
parent 4cb19c55b5
commit 3eb7df74b8
31 changed files with 43 additions and 32 deletions

View file

@ -19,9 +19,9 @@
#include <unistd.h> #include <unistd.h>
#include <hidl/HidlTransportSupport.h> #include <hidl/HidlTransportSupport.h>
#include <log/log.h>
#include <utils/Errors.h> #include <utils/Errors.h>
#include <utils/StrongPointer.h> #include <utils/StrongPointer.h>
#include <utils/Log.h>
#include "ServiceNames.h" #include "ServiceNames.h"
#include "EvsEnumerator.h" #include "EvsEnumerator.h"

View file

@ -37,10 +37,10 @@ static const float kNanoToSeconds = 0.000000001f;
#include <string.h> #include <string.h>
#include <hidl/HidlTransportSupport.h> #include <hidl/HidlTransportSupport.h>
#include <hwbinder/ProcessState.h>
#include <log/log.h>
#include <utils/Errors.h> #include <utils/Errors.h>
#include <utils/StrongPointer.h> #include <utils/StrongPointer.h>
#include <utils/Log.h>
#include <hwbinder/ProcessState.h>
#include <android/log.h> #include <android/log.h>
#include <android/hardware/automotive/evs/1.0/IEvsCamera.h> #include <android/hardware/automotive/evs/1.0/IEvsCamera.h>

View file

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#define LOG_TAG "VehiclePropertyStore" #define LOG_TAG "VehiclePropertyStore"
#include <android/log.h> #include <log/log.h>
#include <common/include/vhal_v2_0/VehicleUtils.h> #include <common/include/vhal_v2_0/VehicleUtils.h>
#include "VehiclePropertyStore.h" #include "VehiclePropertyStore.h"

View file

@ -17,7 +17,7 @@
#define LOG_TAG "PipeComm" #define LOG_TAG "PipeComm"
#include <android/hardware/automotive/vehicle/2.0/IVehicle.h> #include <android/hardware/automotive/vehicle/2.0/IVehicle.h>
#include <android/log.h> #include <log/log.h>
#include <qemu_pipe.h> #include <qemu_pipe.h>
#include "PipeComm.h" #include "PipeComm.h"

View file

@ -18,6 +18,7 @@
#include <android/hardware/automotive/vehicle/2.0/IVehicle.h> #include <android/hardware/automotive/vehicle/2.0/IVehicle.h>
#include <android/log.h> #include <android/log.h>
#include <log/log.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>

View file

@ -17,9 +17,11 @@
#ifndef android_hardware_automotive_vehicle_V2_0_impl_VehicleHalEmulator_H_ #ifndef android_hardware_automotive_vehicle_V2_0_impl_VehicleHalEmulator_H_
#define android_hardware_automotive_vehicle_V2_0_impl_VehicleHalEmulator_H_ #define android_hardware_automotive_vehicle_V2_0_impl_VehicleHalEmulator_H_
#include <log/log.h>
#include <memory> #include <memory>
#include <thread> #include <thread>
#include <vector> #include <vector>
#include "vhal_v2_0/VehicleHal.h" #include "vhal_v2_0/VehicleHal.h"
#include "CommBase.h" #include "CommBase.h"

View file

@ -17,9 +17,10 @@
#define LOG_TAG "DefaultVehicleHal_v2_1" #define LOG_TAG "DefaultVehicleHal_v2_1"
#include <android/log.h> #include <android/log.h>
#include <algorithm> #include <log/log.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <algorithm>
#include "EmulatedVehicleHal.h" #include "EmulatedVehicleHal.h"
#include "VehicleHalProto.pb.h" #include "VehicleHalProto.pb.h"

View file

@ -17,7 +17,7 @@
// #define LOG_NDEBUG 0 // #define LOG_NDEBUG 0
#define LOG_TAG "CamComm1.0-MD" #define LOG_TAG "CamComm1.0-MD"
#include <utils/Log.h> #include <log/log.h>
#include <utils/Errors.h> #include <utils/Errors.h>
#include "CameraMetadata.h" #include "CameraMetadata.h"

View file

@ -15,8 +15,8 @@
*/ */
#define LOG_TAG "HandleImporter" #define LOG_TAG "HandleImporter"
#include <utils/Log.h>
#include "HandleImporter.h" #include "HandleImporter.h"
#include <log/log.h>
namespace android { namespace android {
namespace hardware { namespace hardware {

View file

@ -16,13 +16,13 @@
#define LOG_TAG "CamComm1.0-VTDesc" #define LOG_TAG "CamComm1.0-VTDesc"
#include <utils/Errors.h> #include <log/log.h>
#include <utils/Log.h>
#include <utils/Mutex.h>
#include <utils/Vector.h>
#include <utils/SortedVector.h>
#include <system/camera_metadata.h> #include <system/camera_metadata.h>
#include <camera_metadata_hidden.h> #include <camera_metadata_hidden.h>
#include <utils/Errors.h>
#include <utils/Mutex.h>
#include <utils/SortedVector.h>
#include <utils/Vector.h>
#include "VendorTagDescriptor.h" #include "VendorTagDescriptor.h"

View file

@ -15,10 +15,10 @@
*/ */
#define LOG_TAG "CamDev@1.0-impl" #define LOG_TAG "CamDev@1.0-impl"
#include <utils/Log.h>
#include <hardware/camera.h> #include <hardware/camera.h>
#include <hardware/gralloc1.h> #include <hardware/gralloc1.h>
#include <hidlmemory/mapping.h> #include <hidlmemory/mapping.h>
#include <log/log.h>
#include <utils/Trace.h> #include <utils/Trace.h>
#include "CameraDevice_1_0.h" #include "CameraDevice_1_0.h"

View file

@ -15,7 +15,7 @@
*/ */
#define LOG_TAG "CamDev@3.2-impl" #define LOG_TAG "CamDev@3.2-impl"
#include <utils/Log.h> #include <log/log.h>
#include <utils/Vector.h> #include <utils/Vector.h>
#include <utils/Trace.h> #include <utils/Trace.h>

View file

@ -15,7 +15,7 @@
*/ */
#define LOG_TAG "android.hardware.camera.device@3.2-convert-impl" #define LOG_TAG "android.hardware.camera.device@3.2-convert-impl"
#include <android/log.h> #include <log/log.h>
#include "include/convert.h" #include "include/convert.h"

View file

@ -16,7 +16,7 @@
*/ */
#define LOG_TAG "CameraParams" #define LOG_TAG "CameraParams"
#include <utils/Log.h> #include <log/log.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -16,12 +16,13 @@
#define LOG_TAG "contexthub_hidl_hal_test" #define LOG_TAG "contexthub_hidl_hal_test"
#include <VtsHalHidlTargetTestBase.h>
#include <android-base/logging.h> #include <android-base/logging.h>
#include <android/hardware/contexthub/1.0/IContexthub.h> #include <android/hardware/contexthub/1.0/IContexthub.h>
#include <android/hardware/contexthub/1.0/IContexthubCallback.h> #include <android/hardware/contexthub/1.0/IContexthubCallback.h>
#include <android/hardware/contexthub/1.0/types.h> #include <android/hardware/contexthub/1.0/types.h>
#include <android/log.h> #include <android/log.h>
#include <VtsHalHidlTargetTestBase.h> #include <log/log.h>
#include <cinttypes> #include <cinttypes>
#include <future> #include <future>

View file

@ -16,10 +16,10 @@
#define LOG_TAG "android.hardware.drm@1.0-impl" #define LOG_TAG "android.hardware.drm@1.0-impl"
#include "CryptoFactory.h" #include "CryptoFactory.h"
#include <log/log.h>
#include "CryptoPlugin.h" #include "CryptoPlugin.h"
#include "LegacyPluginPath.h" #include "LegacyPluginPath.h"
#include "TypeConvert.h" #include "TypeConvert.h"
#include <utils/Log.h>
namespace android { namespace android {
namespace hardware { namespace hardware {

View file

@ -20,8 +20,8 @@
#include <android/hidl/memory/1.0/IMemory.h> #include <android/hidl/memory/1.0/IMemory.h>
#include <hidlmemory/mapping.h> #include <hidlmemory/mapping.h>
#include <log/log.h>
#include <media/stagefright/foundation/AString.h> #include <media/stagefright/foundation/AString.h>
#include <utils/Log.h>
using android::hardware::hidl_memory; using android::hardware::hidl_memory;
using android::hidl::memory::V1_0::IMemory; using android::hidl::memory::V1_0::IMemory;

View file

@ -16,10 +16,10 @@
#define LOG_TAG "android.hardware.drm@1.0-impl" #define LOG_TAG "android.hardware.drm@1.0-impl"
#include "DrmFactory.h" #include "DrmFactory.h"
#include <log/log.h>
#include "DrmPlugin.h" #include "DrmPlugin.h"
#include "LegacyPluginPath.h" #include "LegacyPluginPath.h"
#include "TypeConvert.h" #include "TypeConvert.h"
#include <utils/Log.h>
namespace android { namespace android {
namespace hardware { namespace hardware {

View file

@ -16,7 +16,6 @@
#define LOG_TAG "drm_hal_clearkey_test@1.0" #define LOG_TAG "drm_hal_clearkey_test@1.0"
#include <android-base/logging.h>
#include <android/hardware/drm/1.0/ICryptoFactory.h> #include <android/hardware/drm/1.0/ICryptoFactory.h>
#include <android/hardware/drm/1.0/ICryptoPlugin.h> #include <android/hardware/drm/1.0/ICryptoPlugin.h>
#include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.0/IDrmFactory.h>
@ -26,6 +25,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <hidl/HidlSupport.h> #include <hidl/HidlSupport.h>
#include <hidlmemory/mapping.h> #include <hidlmemory/mapping.h>
#include <log/log.h>
#include <memory> #include <memory>
#include <random> #include <random>

View file

@ -16,7 +16,6 @@
#define LOG_TAG "drm_hal_vendor_test@1.0" #define LOG_TAG "drm_hal_vendor_test@1.0"
#include <android-base/logging.h>
#include <android/hardware/drm/1.0/ICryptoFactory.h> #include <android/hardware/drm/1.0/ICryptoFactory.h>
#include <android/hardware/drm/1.0/ICryptoPlugin.h> #include <android/hardware/drm/1.0/ICryptoPlugin.h>
#include <android/hardware/drm/1.0/IDrmFactory.h> #include <android/hardware/drm/1.0/IDrmFactory.h>
@ -25,6 +24,7 @@
#include <android/hidl/allocator/1.0/IAllocator.h> #include <android/hidl/allocator/1.0/IAllocator.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <hidlmemory/mapping.h> #include <hidlmemory/mapping.h>
#include <log/log.h>
#include <memory> #include <memory>
#include <random> #include <random>

View file

@ -18,7 +18,7 @@
#include <dirent.h> #include <dirent.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <utils/Log.h> #include <log/log.h>
#include <memory> #include <memory>
#include "shared_library.h" #include "shared_library.h"

View file

@ -30,6 +30,8 @@
#include <android/hardware/gatekeeper/1.0/IGatekeeper.h> #include <android/hardware/gatekeeper/1.0/IGatekeeper.h>
#include <android/hardware/gatekeeper/1.0/types.h> #include <android/hardware/gatekeeper/1.0/types.h>
#include <log/log.h>
#include <VtsHalHidlTargetTestBase.h> #include <VtsHalHidlTargetTestBase.h>
using ::android::hardware::hidl_string; using ::android::hardware::hidl_string;

View file

@ -16,7 +16,7 @@
#define LOG_TAG "VtsHalGnssV1_0TargetTest" #define LOG_TAG "VtsHalGnssV1_0TargetTest"
#include <android/hardware/gnss/1.0/IGnss.h> #include <android/hardware/gnss/1.0/IGnss.h>
#include <android/log.h> #include <log/log.h>
#include <VtsHalHidlTargetTestBase.h> #include <VtsHalHidlTargetTestBase.h>

View file

@ -25,7 +25,7 @@
#include <hardware/gralloc.h> #include <hardware/gralloc.h>
#include <utils/Log.h> #include <log/log.h>
#include <sync/sync.h> #include <sync/sync.h>
#include <inttypes.h> #include <inttypes.h>

View file

@ -22,6 +22,7 @@
#include <VtsHalHidlTargetTestBase.h> #include <VtsHalHidlTargetTestBase.h>
#include <fcntl.h>
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>

View file

@ -24,6 +24,7 @@
#include <VtsHalHidlTargetTestBase.h> #include <VtsHalHidlTargetTestBase.h>
#include <fcntl.h>
#include <algorithm> #include <algorithm>
using ::android::hardware::power::V1_0::IPower; using ::android::hardware::power::V1_0::IPower;

View file

@ -15,14 +15,14 @@
*/ */
#define LOG_TAG "sensors_hidl_hal_test" #define LOG_TAG "sensors_hidl_hal_test"
#include <VtsHalHidlTargetTestBase.h>
#include <android-base/logging.h> #include <android-base/logging.h>
#include <android/hardware/sensors/1.0/ISensors.h> #include <android/hardware/sensors/1.0/ISensors.h>
#include <android/hardware/sensors/1.0/types.h> #include <android/hardware/sensors/1.0/types.h>
#include <android/log.h>
#include <cutils/ashmem.h> #include <cutils/ashmem.h>
#include <hardware/sensors.h> // for sensor type strings
#include <log/log.h>
#include <utils/SystemClock.h> #include <utils/SystemClock.h>
#include <VtsHalHidlTargetTestBase.h>
#include <hardware/sensors.h> // for sensor type strings
#include <algorithm> #include <algorithm>
#include <cinttypes> #include <cinttypes>

View file

@ -23,6 +23,7 @@
#include <android/log.h> #include <android/log.h>
#include <cutils/native_handle.h> #include <cutils/native_handle.h>
#include <log/log.h>
#include <android/hardware/audio/common/2.0/types.h> #include <android/hardware/audio/common/2.0/types.h>
#include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h> #include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h>

View file

@ -4,7 +4,7 @@
#include <android/hardware/usb/1.0/IUsb.h> #include <android/hardware/usb/1.0/IUsb.h>
#include <hidl/MQDescriptor.h> #include <hidl/MQDescriptor.h>
#include <hidl/Status.h> #include <hidl/Status.h>
#include <utils/Log.h> #include <log/log.h>
#ifdef LOG_TAG #ifdef LOG_TAG
#undef LOG_TAG #undef LOG_TAG

View file

@ -22,6 +22,7 @@
#include <android/hardware/usb/1.0/types.h> #include <android/hardware/usb/1.0/types.h>
#include <VtsHalHidlTargetTestBase.h> #include <VtsHalHidlTargetTestBase.h>
#include <log/log.h>
#include <stdlib.h> #include <stdlib.h>
#include <chrono> #include <chrono>
#include <condition_variable> #include <condition_variable>

View file

@ -15,11 +15,11 @@
*/ */
#define LOG_TAG "vr_hidl_hal_test" #define LOG_TAG "vr_hidl_hal_test"
#include <VtsHalHidlTargetTestBase.h>
#include <android-base/logging.h> #include <android-base/logging.h>
#include <android/hardware/vr/1.0/IVr.h> #include <android/hardware/vr/1.0/IVr.h>
#include <android/log.h>
#include <VtsHalHidlTargetTestBase.h>
#include <hardware/vr.h> #include <hardware/vr.h>
#include <log/log.h>
using ::android::hardware::vr::V1_0::IVr; using ::android::hardware::vr::V1_0::IVr;
using ::android::hardware::Return; using ::android::hardware::Return;