bluetooth: Find the device's Bluetooth address
Test: bluetooth_hidl_hal_test
Change-Id: I5353aaef3f8c5db75e424a8e1b242b08d5a96c6e
diff --git a/bluetooth/1.0/default/Android.bp b/bluetooth/1.0/default/Android.bp
index 4c7017c..32e5328 100644
--- a/bluetooth/1.0/default/Android.bp
+++ b/bluetooth/1.0/default/Android.bp
@@ -19,18 +19,34 @@
srcs: [
"async_fd_watcher.cc",
"bluetooth_hci.cc",
+ "bluetooth_address.cc",
"vendor_interface.cc",
],
shared_libs: [
- "liblog",
+ "android.hardware.bluetooth@1.0",
+ "libbase",
"libcutils",
"libhardware",
"libhwbinder",
- "libbase",
- "libcutils",
- "libutils",
"libhidlbase",
"libhidltransport",
- "android.hardware.bluetooth@1.0",
+ "liblog",
+ "libutils",
+ ],
+}
+
+cc_test_host {
+ name: "bluetooth-vendor-interface-unit-tests",
+ srcs: [
+ "bluetooth_address.cc",
+ "test/bluetooth_address_test.cc",
+ "test/properties.cc",
+ ],
+ local_include_dirs: [
+ "test",
+ ],
+ shared_libs: [
+ "libbase",
+ "liblog",
],
}