OSDN Git Service

bluetooth: include what you use
authorSteven Moreland <smoreland@google.com>
Tue, 11 Apr 2017 19:22:27 +0000 (12:22 -0700)
committerSteven Moreland <smoreland@google.com>
Wed, 12 Apr 2017 17:12:44 +0000 (10:12 -0700)
Helper libraries also now on vendor partition.

Test: links
Test: bluetooth works on internal Marlin
Bug: 33241851

(cherry picked from commit 96510c80f84e192f106678d269e793ade8510b1c)
Merged-In: Ie99faf9146ce2ce3df83a2b46acfaa36a54c16c2
Change-Id: Ie99faf9146ce2ce3df83a2b46acfaa36a54c16c2

bluetooth/1.0/default/Android.bp
bluetooth/1.0/default/bluetooth_hci.cc
bluetooth/1.0/default/hci_protocol.cc
bluetooth/1.0/default/test/async_fd_watcher_unittest.cc
bluetooth/1.0/default/test/h4_protocol_unittest.cc
bluetooth/1.0/default/test/mct_protocol_unittest.cc
bluetooth/1.0/default/test/properties.cc

index 292f97c..c77f0e6 100644 (file)
@@ -41,21 +41,20 @@ cc_library_shared {
 
 cc_library_static {
     name: "android.hardware.bluetooth-async",
+    proprietary: true,
     defaults: ["hidl_defaults"],
     srcs: [
         "async_fd_watcher.cc",
     ],
     export_include_dirs: ["."],
     shared_libs: [
-        "libbase",
-        "libcutils",
         "liblog",
-        "libutils",
     ],
 }
 
 cc_library_static {
     name: "android.hardware.bluetooth-hci",
+    proprietary: true,
     defaults: ["hidl_defaults"],
     srcs: [
         "hci_packetizer.cc",
@@ -66,7 +65,6 @@ cc_library_static {
     export_include_dirs: ["."],
     shared_libs: [
         "libbase",
-        "libcutils",
         "libhidlbase",
         "liblog",
         "libutils",
index 8eccfc7..e14e3d7 100644 (file)
@@ -17,7 +17,7 @@
 #define LOG_TAG "android.hardware.bluetooth@1.0-impl"
 #include "bluetooth_hci.h"
 
-#include <utils/Log.h>
+#include <log/log.h>
 
 #include "vendor_interface.h"
 
index bb1e36b..a208da1 100644 (file)
 #include "hci_protocol.h"
 
 #define LOG_TAG "android.hardware.bluetooth-hci-hci_protocol"
-#include <android-base/logging.h>
 #include <assert.h>
 #include <fcntl.h>
-#include <utils/Log.h>
+#include <log/log.h>
 
 namespace android {
 namespace hardware {
index b0c533c..dfc50a3 100644 (file)
 #include <cstring>
 #include <vector>
 
+#include <log/log.h>
 #include <netdb.h>
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <utils/Log.h>
 
 namespace android {
 namespace hardware {
index d53aaa9..ad08086 100644 (file)
 #include <mutex>
 #include <vector>
 
+#include <log/log.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <utils/Log.h>
 
 namespace android {
 namespace hardware {
index 0a6e9eb..d45058e 100644 (file)
 #include <mutex>
 #include <vector>
 
+#include <log/log.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <utils/Log.h>
 
 namespace android {
 namespace hardware {
index ad5c194..6ac4fb4 100644 (file)
@@ -23,7 +23,7 @@
 #include <unistd.h>
 
 #include <cutils/properties.h>
-#include <utils/Log.h>
+#include <log/log.h>
 
 static const int MAX_PROPERTIES = 5;