summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2016-11-30 13:45:34 -0800
committerYifan Hong <elsk@google.com>2016-12-01 17:47:02 -0800
commitf9d303435d80161fabb16cdff3b8f2f75f362480 (patch)
treebc9c92a118521958e9f94cfacbc7d282cf20b480
parent558727b38dde251978226b147790d0fe5f2a6ce8 (diff)
downloadplatform_hardware_interfaces-f9d303435d80161fabb16cdff3b8f2f75f362480.tar.gz
platform_hardware_interfaces-f9d303435d80161fabb16cdff3b8f2f75f362480.tar.bz2
platform_hardware_interfaces-f9d303435d80161fabb16cdff3b8f2f75f362480.zip
Update to use the correct logging library.
Test: mma compiles Change-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
-rw-r--r--audio/2.0/default/Device.cpp2
-rw-r--r--audio/2.0/default/DevicesFactory.cpp2
-rw-r--r--audio/2.0/default/Stream.cpp2
-rw-r--r--audio/2.0/default/StreamIn.cpp2
-rw-r--r--audio/2.0/default/StreamOut.cpp2
-rw-r--r--audio/effect/2.0/default/AcousticEchoCancelerEffect.cpp2
-rw-r--r--audio/effect/2.0/default/AutomaticGainControlEffect.cpp2
-rw-r--r--audio/effect/2.0/default/BassBoostEffect.cpp2
-rw-r--r--audio/effect/2.0/default/DownmixEffect.cpp2
-rw-r--r--audio/effect/2.0/default/Effect.cpp2
-rw-r--r--audio/effect/2.0/default/EffectsFactory.cpp2
-rw-r--r--audio/effect/2.0/default/EnvironmentalReverbEffect.cpp2
-rw-r--r--audio/effect/2.0/default/EqualizerEffect.cpp2
-rw-r--r--audio/effect/2.0/default/LoudnessEnhancerEffect.cpp2
-rw-r--r--audio/effect/2.0/default/NoiseSuppressionEffect.cpp2
-rw-r--r--audio/effect/2.0/default/PresetReverbEffect.cpp2
-rw-r--r--audio/effect/2.0/default/VirtualizerEffect.cpp2
-rw-r--r--audio/effect/2.0/default/VisualizerEffect.cpp2
-rw-r--r--audio/effect/2.0/vts/functional/audio_effect_hidl_hal_test.cpp2
-rw-r--r--biometrics/fingerprint/2.1/default/BiometricsFingerprint.h2
-rw-r--r--broadcastradio/1.0/default/BroadcastRadio.cpp2
-rw-r--r--broadcastradio/1.0/default/Tuner.cpp2
-rw-r--r--broadcastradio/1.0/default/Utils.cpp2
-rw-r--r--example/extension/light/2.0/default/service.cpp2
-rw-r--r--gatekeeper/1.0/default/Gatekeeper.cpp2
-rw-r--r--gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp2
-rw-r--r--graphics/allocator/2.0/vts/functional/graphics_allocator_hidl_hal_test.cpp2
-rw-r--r--light/2.0/default/Light.cpp4
-rw-r--r--light/2.0/vts/functional/Android.bp1
-rw-r--r--light/2.0/vts/functional/light_hidl_hal_test.cpp4
-rw-r--r--memtrack/1.0/default/Memtrack.cpp1
-rw-r--r--nfc/1.0/vts/functional/nfc_hidl_hal_test.cpp2
-rw-r--r--power/1.0/default/Power.cpp1
-rw-r--r--power/1.0/vts/functional/power_hidl_hal_test.cpp2
-rw-r--r--soundtrigger/2.0/default/SoundTriggerHalImpl.cpp2
-rw-r--r--soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp2
-rw-r--r--thermal/1.0/default/Thermal.cpp2
-rw-r--r--thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp2
-rw-r--r--vehicle/2.0/default/VehicleService.cpp2
-rw-r--r--vehicle/2.0/default/impl/DefaultVehicleHal.cpp3
-rw-r--r--vehicle/2.0/default/vehicle_hal_manager/SubscriptionManager.h2
-rw-r--r--vehicle/2.0/default/vehicle_hal_manager/VehicleHalManager.cpp2
-rw-r--r--vehicle/2.0/default/vehicle_hal_manager/VehicleObjectPool.h9
-rw-r--r--vehicle/2.0/default/vehicle_hal_manager/VehicleUtils.h5
-rw-r--r--vibrator/1.0/default/Vibrator.cpp2
-rw-r--r--vibrator/1.0/vts/functional/Android.bp1
-rw-r--r--vibrator/1.0/vts/functional/vibrator_hidl_hal_test.cpp2
-rw-r--r--vr/1.0/default/Vr.cpp1
48 files changed, 64 insertions, 42 deletions
diff --git a/audio/2.0/default/Device.cpp b/audio/2.0/default/Device.cpp
index 339f371763..6bc687d7ed 100644
--- a/audio/2.0/default/Device.cpp
+++ b/audio/2.0/default/Device.cpp
@@ -20,7 +20,7 @@
#include <memory.h>
#include <string.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "Conversions.h"
#include "Device.h"
diff --git a/audio/2.0/default/DevicesFactory.cpp b/audio/2.0/default/DevicesFactory.cpp
index 1e087f2dd2..12ef2c85a7 100644
--- a/audio/2.0/default/DevicesFactory.cpp
+++ b/audio/2.0/default/DevicesFactory.cpp
@@ -18,7 +18,7 @@
#include <string.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "Device.h"
#include "DevicesFactory.h"
diff --git a/audio/2.0/default/Stream.cpp b/audio/2.0/default/Stream.cpp
index 6d68f551e7..1b6d593201 100644
--- a/audio/2.0/default/Stream.cpp
+++ b/audio/2.0/default/Stream.cpp
@@ -21,7 +21,7 @@
#include <hardware/audio.h>
#include <hardware/audio_effect.h>
#include <media/TypeConverter.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include <utils/SortedVector.h>
#include <utils/Vector.h>
diff --git a/audio/2.0/default/StreamIn.cpp b/audio/2.0/default/StreamIn.cpp
index 791e519483..1bc9dfb4ec 100644
--- a/audio/2.0/default/StreamIn.cpp
+++ b/audio/2.0/default/StreamIn.cpp
@@ -17,7 +17,7 @@
#define LOG_TAG "StreamInHAL"
#include <hardware/audio.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "StreamIn.h"
diff --git a/audio/2.0/default/StreamOut.cpp b/audio/2.0/default/StreamOut.cpp
index 21062565b2..f92ed47da7 100644
--- a/audio/2.0/default/StreamOut.cpp
+++ b/audio/2.0/default/StreamOut.cpp
@@ -17,7 +17,7 @@
#define LOG_TAG "StreamOutHAL"
#include <hardware/audio.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "StreamOut.h"
diff --git a/audio/effect/2.0/default/AcousticEchoCancelerEffect.cpp b/audio/effect/2.0/default/AcousticEchoCancelerEffect.cpp
index c2f50f9106..341466f4c9 100644
--- a/audio/effect/2.0/default/AcousticEchoCancelerEffect.cpp
+++ b/audio/effect/2.0/default/AcousticEchoCancelerEffect.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "AEC_Effect_HAL"
#include <system/audio_effects/effect_aec.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "AcousticEchoCancelerEffect.h"
diff --git a/audio/effect/2.0/default/AutomaticGainControlEffect.cpp b/audio/effect/2.0/default/AutomaticGainControlEffect.cpp
index 34cbe97f9a..6ebfb3c239 100644
--- a/audio/effect/2.0/default/AutomaticGainControlEffect.cpp
+++ b/audio/effect/2.0/default/AutomaticGainControlEffect.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "AGC_Effect_HAL"
-#include <utils/Log.h>
+#include <android/log.h>
#include "AutomaticGainControlEffect.h"
diff --git a/audio/effect/2.0/default/BassBoostEffect.cpp b/audio/effect/2.0/default/BassBoostEffect.cpp
index 1b12f76eaa..8a648063e7 100644
--- a/audio/effect/2.0/default/BassBoostEffect.cpp
+++ b/audio/effect/2.0/default/BassBoostEffect.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "BassBoost_HAL"
#include <system/audio_effects/effect_bassboost.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "BassBoostEffect.h"
diff --git a/audio/effect/2.0/default/DownmixEffect.cpp b/audio/effect/2.0/default/DownmixEffect.cpp
index 4c0a0bf25b..40bb5ec740 100644
--- a/audio/effect/2.0/default/DownmixEffect.cpp
+++ b/audio/effect/2.0/default/DownmixEffect.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "Downmix_HAL"
#include <system/audio_effects/effect_downmix.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "DownmixEffect.h"
diff --git a/audio/effect/2.0/default/Effect.cpp b/audio/effect/2.0/default/Effect.cpp
index 82d0292d4e..d5e4d99c96 100644
--- a/audio/effect/2.0/default/Effect.cpp
+++ b/audio/effect/2.0/default/Effect.cpp
@@ -19,7 +19,7 @@
#define LOG_TAG "EffectHAL"
#include <media/EffectsFactoryApi.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "Conversions.h"
#include "Effect.h"
diff --git a/audio/effect/2.0/default/EffectsFactory.cpp b/audio/effect/2.0/default/EffectsFactory.cpp
index 2b5d70ba2b..ff08603919 100644
--- a/audio/effect/2.0/default/EffectsFactory.cpp
+++ b/audio/effect/2.0/default/EffectsFactory.cpp
@@ -27,7 +27,7 @@
#include <system/audio_effects/effect_presetreverb.h>
#include <system/audio_effects/effect_virtualizer.h>
#include <system/audio_effects/effect_visualizer.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "AcousticEchoCancelerEffect.h"
#include "AutomaticGainControlEffect.h"
diff --git a/audio/effect/2.0/default/EnvironmentalReverbEffect.cpp b/audio/effect/2.0/default/EnvironmentalReverbEffect.cpp
index 4485be4c5c..db1ad51f68 100644
--- a/audio/effect/2.0/default/EnvironmentalReverbEffect.cpp
+++ b/audio/effect/2.0/default/EnvironmentalReverbEffect.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "EnvReverb_HAL"
-#include <utils/Log.h>
+#include <android/log.h>
#include "EnvironmentalReverbEffect.h"
diff --git a/audio/effect/2.0/default/EqualizerEffect.cpp b/audio/effect/2.0/default/EqualizerEffect.cpp
index 9e20b8adec..490a300355 100644
--- a/audio/effect/2.0/default/EqualizerEffect.cpp
+++ b/audio/effect/2.0/default/EqualizerEffect.cpp
@@ -17,7 +17,7 @@
#include <memory.h>
#define LOG_TAG "Equalizer_HAL"
-#include <utils/Log.h>
+#include <android/log.h>
#include "EqualizerEffect.h"
diff --git a/audio/effect/2.0/default/LoudnessEnhancerEffect.cpp b/audio/effect/2.0/default/LoudnessEnhancerEffect.cpp
index 1e724e04d8..a49019c0a5 100644
--- a/audio/effect/2.0/default/LoudnessEnhancerEffect.cpp
+++ b/audio/effect/2.0/default/LoudnessEnhancerEffect.cpp
@@ -18,7 +18,7 @@
#define LOG_TAG "LoudnessEnhancer_HAL"
#include <system/audio_effects/effect_aec.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "LoudnessEnhancerEffect.h"
diff --git a/audio/effect/2.0/default/NoiseSuppressionEffect.cpp b/audio/effect/2.0/default/NoiseSuppressionEffect.cpp
index 5c392df8c7..69a12261a4 100644
--- a/audio/effect/2.0/default/NoiseSuppressionEffect.cpp
+++ b/audio/effect/2.0/default/NoiseSuppressionEffect.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "NS_Effect_HAL"
-#include <utils/Log.h>
+#include <android/log.h>
#include "NoiseSuppressionEffect.h"
diff --git a/audio/effect/2.0/default/PresetReverbEffect.cpp b/audio/effect/2.0/default/PresetReverbEffect.cpp
index 988bc510dd..0e6d1b8a31 100644
--- a/audio/effect/2.0/default/PresetReverbEffect.cpp
+++ b/audio/effect/2.0/default/PresetReverbEffect.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "PresetReverb_HAL"
#include <system/audio_effects/effect_presetreverb.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "PresetReverbEffect.h"
diff --git a/audio/effect/2.0/default/VirtualizerEffect.cpp b/audio/effect/2.0/default/VirtualizerEffect.cpp
index af5252bcb9..313674d41e 100644
--- a/audio/effect/2.0/default/VirtualizerEffect.cpp
+++ b/audio/effect/2.0/default/VirtualizerEffect.cpp
@@ -18,7 +18,7 @@
#define LOG_TAG "Virtualizer_HAL"
#include <system/audio_effects/effect_virtualizer.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "VirtualizerEffect.h"
diff --git a/audio/effect/2.0/default/VisualizerEffect.cpp b/audio/effect/2.0/default/VisualizerEffect.cpp
index a1f92a6ec8..a53eabcccd 100644
--- a/audio/effect/2.0/default/VisualizerEffect.cpp
+++ b/audio/effect/2.0/default/VisualizerEffect.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "Visualizer_HAL"
#include <system/audio_effects/effect_visualizer.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include "VisualizerEffect.h"
diff --git a/audio/effect/2.0/vts/functional/audio_effect_hidl_hal_test.cpp b/audio/effect/2.0/vts/functional/audio_effect_hidl_hal_test.cpp
index c7878d541c..ef7021561a 100644
--- a/audio/effect/2.0/vts/functional/audio_effect_hidl_hal_test.cpp
+++ b/audio/effect/2.0/vts/functional/audio_effect_hidl_hal_test.cpp
@@ -164,6 +164,6 @@ int main(int argc, char** argv) {
::testing::AddGlobalTestEnvironment(new AudioEffectHidlEnvironment);
::testing::InitGoogleTest(&argc, argv);
int status = RUN_ALL_TESTS();
- ALOGI("Test result = %d", status);
+ LOG(INFO) << "Test result = " << status;
return status;
}
diff --git a/biometrics/fingerprint/2.1/default/BiometricsFingerprint.h b/biometrics/fingerprint/2.1/default/BiometricsFingerprint.h
index de8727b1d1..0a8a22cef2 100644
--- a/biometrics/fingerprint/2.1/default/BiometricsFingerprint.h
+++ b/biometrics/fingerprint/2.1/default/BiometricsFingerprint.h
@@ -17,7 +17,7 @@
#ifndef ANDROID_HARDWARE_BIOMETRICS_FINGERPRINT_V2_1_BIOMETRICSFINGERPRINT_H
#define ANDROID_HARDWARE_BIOMETRICS_FINGERPRINT_V2_1_BIOMETRICSFINGERPRINT_H
-#include <utils/Log.h>
+#include <android/log.h>
#include <hidl/MQDescriptor.h>
#include <android/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprint.h>
#include <hidl/Status.h>
diff --git a/broadcastradio/1.0/default/BroadcastRadio.cpp b/broadcastradio/1.0/default/BroadcastRadio.cpp
index b97b6095a2..32331cee13 100644
--- a/broadcastradio/1.0/default/BroadcastRadio.cpp
+++ b/broadcastradio/1.0/default/BroadcastRadio.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "BroadcastRadio"
//#define LOG_NDEBUG 0
-#include <utils/Log.h>
+#include <android/log.h>
#include <hardware/radio.h>
#include "BroadcastRadio.h"
diff --git a/broadcastradio/1.0/default/Tuner.cpp b/broadcastradio/1.0/default/Tuner.cpp
index 0c1d8ab5ba..27b298bc85 100644
--- a/broadcastradio/1.0/default/Tuner.cpp
+++ b/broadcastradio/1.0/default/Tuner.cpp
@@ -17,7 +17,7 @@
#define LOG_TAG "Tuner"
//#define LOG_NDEBUG 0
-#include <utils/Log.h>
+#include <android/log.h>
#include "BroadcastRadio.h"
#include "Tuner.h"
diff --git a/broadcastradio/1.0/default/Utils.cpp b/broadcastradio/1.0/default/Utils.cpp
index bdaae0023b..c2c2ff33a2 100644
--- a/broadcastradio/1.0/default/Utils.cpp
+++ b/broadcastradio/1.0/default/Utils.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "BroadcastRadioHalUtils"
//#define LOG_NDEBUG 0
-#include <utils/Log.h>
+#include <android/log.h>
#include <utils/misc.h>
#include <system/radio_metadata.h>
diff --git a/example/extension/light/2.0/default/service.cpp b/example/extension/light/2.0/default/service.cpp
index ae00506d72..3eb7bdf0d6 100644
--- a/example/extension/light/2.0/default/service.cpp
+++ b/example/extension/light/2.0/default/service.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "android.hardware.light@2.0-service"
-#include <utils/Log.h>
+#include <android/log.h>
#include "Light.h"
diff --git a/gatekeeper/1.0/default/Gatekeeper.cpp b/gatekeeper/1.0/default/Gatekeeper.cpp
index 35b8c02704..36e044cab9 100644
--- a/gatekeeper/1.0/default/Gatekeeper.cpp
+++ b/gatekeeper/1.0/default/Gatekeeper.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "android.hardware.gatekeeper@1.0-service"
-#include <utils/Log.h>
+#include <android/log.h>
#include <dlfcn.h>
#include "Gatekeeper.h"
diff --git a/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp b/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp
index 4dd929401a..e919b48ed1 100644
--- a/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp
+++ b/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp
@@ -26,7 +26,7 @@
#include <hardware/hw_auth_token.h>
-#include <android-base/logging.h>
+#include <android/log.h>
#include <android/hardware/gatekeeper/1.0/IGatekeeper.h>
#include <android/hardware/gatekeeper/1.0/types.h>
diff --git a/graphics/allocator/2.0/vts/functional/graphics_allocator_hidl_hal_test.cpp b/graphics/allocator/2.0/vts/functional/graphics_allocator_hidl_hal_test.cpp
index bd846c414b..22131eecd4 100644
--- a/graphics/allocator/2.0/vts/functional/graphics_allocator_hidl_hal_test.cpp
+++ b/graphics/allocator/2.0/vts/functional/graphics_allocator_hidl_hal_test.cpp
@@ -307,7 +307,7 @@ int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
int status = RUN_ALL_TESTS();
- ALOGI("Test result = %d", status);
+ LOG(INFO) << "Test result = " << status;
return status;
}
diff --git a/light/2.0/default/Light.cpp b/light/2.0/default/Light.cpp
index eb1f5598d6..f52c6afe23 100644
--- a/light/2.0/default/Light.cpp
+++ b/light/2.0/default/Light.cpp
@@ -13,6 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+#define LOG_TAG "light"
+#include <android/log.h>
+
#include "Light.h"
namespace android {
diff --git a/light/2.0/vts/functional/Android.bp b/light/2.0/vts/functional/Android.bp
index c3475a6e09..b290b59ca2 100644
--- a/light/2.0/vts/functional/Android.bp
+++ b/light/2.0/vts/functional/Android.bp
@@ -19,6 +19,7 @@ cc_test {
gtest: true,
srcs: ["light_hidl_hal_test.cpp"],
shared_libs: [
+ "libbase",
"liblog",
"libutils",
"android.hardware.light@2.0",
diff --git a/light/2.0/vts/functional/light_hidl_hal_test.cpp b/light/2.0/vts/functional/light_hidl_hal_test.cpp
index db67467b62..7c081e9a99 100644
--- a/light/2.0/vts/functional/light_hidl_hal_test.cpp
+++ b/light/2.0/vts/functional/light_hidl_hal_test.cpp
@@ -44,7 +44,7 @@ public:
light = ILight::getService(LIGHT_SERVICE_NAME);
ASSERT_NE(light, nullptr);
- ALOGI("Test is remote: %d", light->isRemote());
+ LOG(INFO) << "Test is remote " << light->isRemote();
}
virtual void TearDown() override {}
@@ -98,6 +98,6 @@ int main(int argc, char **argv) {
::testing::AddGlobalTestEnvironment(new LightHidlEnvironment);
::testing::InitGoogleTest(&argc, argv);
int status = RUN_ALL_TESTS();
- ALOGI("Test result = %d", status);
+ LOG(INFO) << "Test result = " << status;
return status;
}
diff --git a/memtrack/1.0/default/Memtrack.cpp b/memtrack/1.0/default/Memtrack.cpp
index b953e7caf7..b93227f112 100644
--- a/memtrack/1.0/default/Memtrack.cpp
+++ b/memtrack/1.0/default/Memtrack.cpp
@@ -17,6 +17,7 @@
#define LOG_TAG "android.hardware.memtrack@1.0-impl"
#include <hardware/hardware.h>
#include <hardware/memtrack.h>
+#include <android/log.h>
#include "Memtrack.h"
namespace android {
diff --git a/nfc/1.0/vts/functional/nfc_hidl_hal_test.cpp b/nfc/1.0/vts/functional/nfc_hidl_hal_test.cpp
index 4d7c557615..3e40a9c32b 100644
--- a/nfc/1.0/vts/functional/nfc_hidl_hal_test.cpp
+++ b/nfc/1.0/vts/functional/nfc_hidl_hal_test.cpp
@@ -356,7 +356,7 @@ int main(int argc, char** argv) {
sleep(5);
int status = RUN_ALL_TESTS();
- ALOGI("Test result = %d", status);
+ LOG(INFO) << "Test result = " << status;
std::system("svc nfc enable"); /* Turn on NFC */
sleep(5);
diff --git a/power/1.0/default/Power.cpp b/power/1.0/default/Power.cpp
index 5d0593b7de..6453f33b83 100644
--- a/power/1.0/default/Power.cpp
+++ b/power/1.0/default/Power.cpp
@@ -17,6 +17,7 @@
#define LOG_TAG "android.hardware.power@1.0-impl"
#include <hardware/hardware.h>
#include <hardware/power.h>
+#include <android/log.h>
#include "Power.h"
namespace android {
diff --git a/power/1.0/vts/functional/power_hidl_hal_test.cpp b/power/1.0/vts/functional/power_hidl_hal_test.cpp
index ac56f1a5ea..af6eb869f5 100644
--- a/power/1.0/vts/functional/power_hidl_hal_test.cpp
+++ b/power/1.0/vts/functional/power_hidl_hal_test.cpp
@@ -103,6 +103,6 @@ TEST_F(PowerHidlTest, GetPlatformLowPowerStats) {
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
int status = RUN_ALL_TESTS();
- ALOGI("Test result = %d", status);
+ LOG(INFO) << "Test result = " << status;
return status;
}
diff --git a/soundtrigger/2.0/default/SoundTriggerHalImpl.cpp b/soundtrigger/2.0/default/SoundTriggerHalImpl.cpp
index 1ae996a957..73066e69e7 100644
--- a/soundtrigger/2.0/default/SoundTriggerHalImpl.cpp
+++ b/soundtrigger/2.0/default/SoundTriggerHalImpl.cpp
@@ -17,7 +17,7 @@
#define LOG_TAG "SoundTriggerHalImpl"
//#define LOG_NDEBUG 0
-#include <utils/Log.h>
+#include <android/log.h>
#include "SoundTriggerHalImpl.h"
diff --git a/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp b/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp
index cbd812874e..e5bf086bd0 100644
--- a/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp
+++ b/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "SoundTriggerHidlHalTest"
-#include <android-base/logging.h>
+#include <android/log.h>
#include <cutils/native_handle.h>
#include <android/hardware/audio/common/2.0/types.h>
diff --git a/thermal/1.0/default/Thermal.cpp b/thermal/1.0/default/Thermal.cpp
index 6c2111fb70..580b54020e 100644
--- a/thermal/1.0/default/Thermal.cpp
+++ b/thermal/1.0/default/Thermal.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "android.hardware.thermal@1.0-impl"
-#include <utils/Log.h>
+#include <android/log.h>
#include <errno.h>
#include <hardware/hardware.h>
diff --git a/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp b/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp
index e3b00ab7aa..8a5ea2c988 100644
--- a/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp
+++ b/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp
@@ -214,6 +214,6 @@ TEST_F(ThermalHidlTest, CoolingDeviceTest) {
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
int status = RUN_ALL_TESTS();
- ALOGI("Test result = %d", status);
+ LOG(INFO) << "Test result = " << status;
return status;
}
diff --git a/vehicle/2.0/default/VehicleService.cpp b/vehicle/2.0/default/VehicleService.cpp
index e21dcd9a11..651a2ad918 100644
--- a/vehicle/2.0/default/VehicleService.cpp
+++ b/vehicle/2.0/default/VehicleService.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "android.hardware.vehicle@2.0-service"
-#include <utils/Log.h>
+#include <android/log.h>
#include <iostream>
diff --git a/vehicle/2.0/default/impl/DefaultVehicleHal.cpp b/vehicle/2.0/default/impl/DefaultVehicleHal.cpp
index 5054cfe603..4e27bdcc6c 100644
--- a/vehicle/2.0/default/impl/DefaultVehicleHal.cpp
+++ b/vehicle/2.0/default/impl/DefaultVehicleHal.cpp
@@ -16,6 +16,9 @@
#include "DefaultVehicleHal.h"
+#define LOG_TAG "default_vehicle"
+#include <android/log.h>
+
namespace android {
namespace hardware {
namespace vehicle {
diff --git a/vehicle/2.0/default/vehicle_hal_manager/SubscriptionManager.h b/vehicle/2.0/default/vehicle_hal_manager/SubscriptionManager.h
index 903bde5373..9f2ed8d49f 100644
--- a/vehicle/2.0/default/vehicle_hal_manager/SubscriptionManager.h
+++ b/vehicle/2.0/default/vehicle_hal_manager/SubscriptionManager.h
@@ -22,7 +22,7 @@
#include <set>
#include <list>
-#include <utils/Log.h>
+#include <android/log.h>
#include <hwbinder/IPCThreadState.h>
#include <android/hardware/vehicle/2.0/IVehicle.h>
diff --git a/vehicle/2.0/default/vehicle_hal_manager/VehicleHalManager.cpp b/vehicle/2.0/default/vehicle_hal_manager/VehicleHalManager.cpp
index a84f991df2..1260f20176 100644
--- a/vehicle/2.0/default/vehicle_hal_manager/VehicleHalManager.cpp
+++ b/vehicle/2.0/default/vehicle_hal_manager/VehicleHalManager.cpp
@@ -18,7 +18,7 @@
#include <cmath>
#include <utils/Errors.h>
-#include <utils/Log.h>
+#include <android/log.h>
#include <hidl/Status.h>
#include <future>
#include <bitset>
diff --git a/vehicle/2.0/default/vehicle_hal_manager/VehicleObjectPool.h b/vehicle/2.0/default/vehicle_hal_manager/VehicleObjectPool.h
index b4a4b3e1f9..0029380560 100644
--- a/vehicle/2.0/default/vehicle_hal_manager/VehicleObjectPool.h
+++ b/vehicle/2.0/default/vehicle_hal_manager/VehicleObjectPool.h
@@ -14,9 +14,12 @@
* limitations under the License.
*/
+
#ifndef android_hardware_vehicle_V2_0_VehicleObjectPool_H_
#define android_hardware_vehicle_V2_0_VehicleObjectPool_H_
+#include "VehicleUtils.h" // defines LOG_TAG and includes <android/log.h>
+
#include <iostream>
#include <memory>
#include <deque>
@@ -24,10 +27,12 @@
#include <map>
#include <mutex>
+#ifndef LOG_TAG
+#define LOG_TAG "android.hardware.vehicle@2.0-impl"
+#endif
+#include <android/log.h>
#include <android/hardware/vehicle/2.0/types.h>
-#include "VehicleUtils.h"
-
namespace android {
namespace hardware {
namespace vehicle {
diff --git a/vehicle/2.0/default/vehicle_hal_manager/VehicleUtils.h b/vehicle/2.0/default/vehicle_hal_manager/VehicleUtils.h
index 5751eb1f3b..f06e97ef20 100644
--- a/vehicle/2.0/default/vehicle_hal_manager/VehicleUtils.h
+++ b/vehicle/2.0/default/vehicle_hal_manager/VehicleUtils.h
@@ -17,6 +17,11 @@
#ifndef android_hardware_vehicle_V2_0_VehicleUtils_H_
#define android_hardware_vehicle_V2_0_VehicleUtils_H_
+#ifndef LOG_TAG
+#define LOG_TAG "android.hardware.vehicle@2.0-impl"
+#endif
+#include <android/log.h>
+
#include <memory>
#include <hidl/HidlSupport.h>
diff --git a/vibrator/1.0/default/Vibrator.cpp b/vibrator/1.0/default/Vibrator.cpp
index 4cd3b30537..ee3a45855a 100644
--- a/vibrator/1.0/default/Vibrator.cpp
+++ b/vibrator/1.0/default/Vibrator.cpp
@@ -15,9 +15,9 @@
*/
#define LOG_TAG "VibratorService"
-
#include <hardware/hardware.h>
#include <hardware/vibrator.h>
+#include <android/log.h>
#include "Vibrator.h"
namespace android {
diff --git a/vibrator/1.0/vts/functional/Android.bp b/vibrator/1.0/vts/functional/Android.bp
index 22b7536ecf..e893ec61a2 100644
--- a/vibrator/1.0/vts/functional/Android.bp
+++ b/vibrator/1.0/vts/functional/Android.bp
@@ -19,6 +19,7 @@ cc_test {
gtest: true,
srcs: ["vibrator_hidl_hal_test.cpp"],
shared_libs: [
+ "libbase",
"liblog",
"libutils",
"android.hardware.vibrator@1.0",
diff --git a/vibrator/1.0/vts/functional/vibrator_hidl_hal_test.cpp b/vibrator/1.0/vts/functional/vibrator_hidl_hal_test.cpp
index 659508db7e..ec8db3a9b7 100644
--- a/vibrator/1.0/vts/functional/vibrator_hidl_hal_test.cpp
+++ b/vibrator/1.0/vts/functional/vibrator_hidl_hal_test.cpp
@@ -62,6 +62,6 @@ int main(int argc, char **argv) {
::testing::AddGlobalTestEnvironment(new VibratorHidlEnvironment);
::testing::InitGoogleTest(&argc, argv);
int status = RUN_ALL_TESTS();
- ALOGI("Test result = %d", status);
+ LOG(INFO) << "Test result = " << status;
return status;
}
diff --git a/vr/1.0/default/Vr.cpp b/vr/1.0/default/Vr.cpp
index 4b2c60356f..2b2372baed 100644
--- a/vr/1.0/default/Vr.cpp
+++ b/vr/1.0/default/Vr.cpp
@@ -18,6 +18,7 @@
#include <hardware/hardware.h>
#include <hardware/vr.h>
+#include <android/log.h>
#include "Vr.h"
namespace android {