From 1f3312ce04cb7a80220dcf6539281b46d68b8ea6 Mon Sep 17 00:00:00 2001 From: Cheney Ni Date: Fri, 23 Apr 2021 11:40:53 +0800 Subject: [PATCH] Bluetooth: Turn Bluetooth off while device setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because there's only one HCI interface, it won't open if Bluetooth is in use, but encounter unexpected results. Based on theĀ auto-generatedĀ test config file, and this adds BT off condition in the device setup stage. Bug: 184720725 Test: android-vts/tools/vts-tradefed run commandAndExit vts -m VtsHalBluetoothV1_*TargetTest Change-Id: If03d3621f9e0cfebce7574126def134c4303b97f --- bluetooth/1.0/vts/functional/Android.bp | 1 + .../VtsHalBluetoothV1_0TargetTest.xml | 38 +++++++++++++++++++ bluetooth/1.1/vts/functional/Android.bp | 1 + .../VtsHalBluetoothV1_1TargetTest.xml | 36 ++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.xml create mode 100644 bluetooth/1.1/vts/functional/VtsHalBluetoothV1_1TargetTest.xml diff --git a/bluetooth/1.0/vts/functional/Android.bp b/bluetooth/1.0/vts/functional/Android.bp index 4806fef5ee..768142c073 100644 --- a/bluetooth/1.0/vts/functional/Android.bp +++ b/bluetooth/1.0/vts/functional/Android.bp @@ -31,6 +31,7 @@ cc_test { "android.hardware.bluetooth@1.0", "libbluetooth-types", ], + test_config: "VtsHalBluetoothV1_0TargetTest.xml", test_suites: [ "general-tests", "vts", diff --git a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.xml b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.xml new file mode 100644 index 0000000000..09463c962f --- /dev/null +++ b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.xml @@ -0,0 +1,38 @@ + + + + diff --git a/bluetooth/1.1/vts/functional/Android.bp b/bluetooth/1.1/vts/functional/Android.bp index e64d5a9105..7f566477b9 100644 --- a/bluetooth/1.1/vts/functional/Android.bp +++ b/bluetooth/1.1/vts/functional/Android.bp @@ -32,5 +32,6 @@ cc_test { "android.hardware.bluetooth@1.0", "libbluetooth-types", ], + test_config: "VtsHalBluetoothV1_1TargetTest.xml", test_suites: ["general-tests", "vts"], } diff --git a/bluetooth/1.1/vts/functional/VtsHalBluetoothV1_1TargetTest.xml b/bluetooth/1.1/vts/functional/VtsHalBluetoothV1_1TargetTest.xml new file mode 100644 index 0000000000..d64751a119 --- /dev/null +++ b/bluetooth/1.1/vts/functional/VtsHalBluetoothV1_1TargetTest.xml @@ -0,0 +1,36 @@ + + + +