From 19f1c07b3a8d0a95cf57e6bcc2c6ccbcd900a378 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowski Date: Wed, 5 Jul 2017 12:56:42 -0700 Subject: [PATCH] Make RawAddress into a class (4/4) * Add libbluetooth-types - library containing types implementation, that is common between stystem/bt and packages/apps/Bluetooth. It must be included in every project using btif interface. * Put Raw Address implementation into libbluetooth-types * Unify all "to/from string" helper methods into ToString and FromString * bd_addr_empty -> RawAddress::kEmpty * bd_addr_any -> RawAddress::kAny Also fix leaks in jni str2addr by adding ReleaseStringUTFChars Test: types_unittest Change-Id: I7dca82ec2293ae5338a9500dd6aa43b59d25657a Merged-In: I7dca82ec2293ae5338a9500dd6aa43b59d25657a --- bluetooth/1.0/vts/functional/Android.bp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bluetooth/1.0/vts/functional/Android.bp b/bluetooth/1.0/vts/functional/Android.bp index d2e655369f..cd2be441c2 100644 --- a/bluetooth/1.0/vts/functional/Android.bp +++ b/bluetooth/1.0/vts/functional/Android.bp @@ -28,7 +28,10 @@ cc_test { "libutils", "android.hardware.bluetooth@1.0", ], - static_libs: ["VtsHalHidlTargetTestBase"], + static_libs: [ + "VtsHalHidlTargetTestBase", + "libbluetooth-types", + ], cflags: [ "-O0", "-g",