summaryrefslogtreecommitdiffstats
path: root/bluetooth
diff options
context:
space:
mode:
authorStanley Tng <stng@google.com>2017-07-22 16:00:51 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-22 16:00:51 +0000
commit73363c1fe9a3edd24761eaff4d242c76ecb9db25 (patch)
tree83563221d773af1fcbe0f6fec66caecd4cc44e61 /bluetooth
parentca7dd0aef963bba38555fde465f932ad5187bd3e (diff)
parent6138bbeafbdd231c2fdbf13e689006d11758fb4d (diff)
downloadplatform_hardware_interfaces-73363c1fe9a3edd24761eaff4d242c76ecb9db25.tar.gz
platform_hardware_interfaces-73363c1fe9a3edd24761eaff4d242c76ecb9db25.tar.bz2
platform_hardware_interfaces-73363c1fe9a3edd24761eaff4d242c76ecb9db25.zip
Merge "Fixed the HCI ACL Header definitions for PB and BC Flags" into oc-dev am: ad6b1eb846
am: 6138bbeafb Change-Id: I450bfa1b5d6133e478761781ae43536fe972eae6
Diffstat (limited to 'bluetooth')
-rw-r--r--bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp
index d699f21141..fb53366c2f 100644
--- a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp
+++ b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp
@@ -88,8 +88,14 @@ using ::android::sp;
#define EVENT_NUMBER_OF_COMPLETED_PACKETS_NUM_HANDLES 2
-#define ACL_BROADCAST_ACTIVE_SLAVE (0x1 << 4)
-#define ACL_PACKET_BOUNDARY_COMPLETE (0x3 << 6)
+#define ACL_BROADCAST_FLAG_OFFSET 6
+#define ACL_BROADCAST_FLAG_ACTIVE_SLAVE 0x1
+#define ACL_BROADCAST_ACTIVE_SLAVE (ACL_BROADCAST_FLAG_ACTIVE_SLAVE << ACL_BROADCAST_FLAG_OFFSET)
+
+#define ACL_PACKET_BOUNDARY_FLAG_OFFSET 4
+#define ACL_PACKET_BOUNDARY_FLAG_COMPLETE 0x3
+#define ACL_PACKET_BOUNDARY_COMPLETE \
+ (ACL_PACKET_BOUNDARY_FLAG_COMPLETE << ACL_PACKET_BOUNDARY_FLAG_OFFSET)
constexpr char kCallbackNameAclEventReceived[] = "aclDataReceived";
constexpr char kCallbackNameHciEventReceived[] = "hciEventReceived";