Merge "Bluetooth: Check the return value of initialize()" am: f570fedcd4 am: e3bbdea832
am: 919e82e9bc
Change-Id: Ibb20f4d8075fe56426680ce51ac66b4e7587bb02
diff --git a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp
index eb1cdc1..5a6c29a 100644
--- a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp
+++ b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp
@@ -123,7 +123,7 @@
// currently test passthrough mode only
bluetooth = IBluetoothHci::getService();
ASSERT_NE(bluetooth, nullptr);
- ALOGW("%s: getService() for bluetooth is %s", __func__,
+ ALOGI("%s: getService() for bluetooth is %s", __func__,
bluetooth->isRemote() ? "remote" : "local");
bluetooth_cb = new BluetoothHciCallbacks(*this);
@@ -255,7 +255,7 @@
virtual ~BluetoothHciCallbacks() = default;
Return<void> initializationComplete(Status status) override {
- parent_.initialized = true;
+ parent_.initialized = (status == Status::SUCCESS);
parent_.notify_initialized();
ALOGV("%s (status = %d)", __func__, static_cast<int>(status));
return Void();