Skip to content

Commit

Permalink
Introduce libbt-jni-thread am: a3ffb7b am: a86bada am: f0e3f6d
Browse files Browse the repository at this point in the history
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2858567

Change-Id: I24fc27125c651c2048edf4191d9a7fdbcf428a52
Signed-off-by: Automerger Merge Worker <[email protected]>
  • Loading branch information
Chris Manton authored and android-build-merge-worker-robot committed Dec 14, 2023
2 parents 15e80a9 + f0e3f6d commit 2d4231e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/bta/include/bta_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include <cstdint>
#include <vector>

#include "bt_target.h" // Must be first to define build configuration
#include "bta_api_data_types.h"
#include "internal_include/bt_target.h"
#include "macros.h"
#include "os/log.h"
#include "stack/btm/power_mode.h"
Expand Down
25 changes: 25 additions & 0 deletions system/btif/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ cc_library {
},
}

cc_library_static {
name: "libbt-jni-thread",
defaults: ["fluoride_defaults"],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/include",
"packages/modules/Bluetooth/system/stack/include",
"packages/modules/Bluetooth/system/types",
],
srcs: ["src/btif_jni_task.cc"],
static_libs: [
"libbt_shim_bridge",
"libosi",
],
shared_libs: [
"libchrome",
],
apex_available: [
"com.android.btservices",
],
min_sdk_version: "Tiramisu",
}

genrule {
name: "statslog_bt.h",
tools: ["stats-log-api-gen"],
Expand Down
5 changes: 5 additions & 0 deletions system/btif/src/btif_jni_task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@

#include "btif/include/btif_jni_task.h"

#include <base/bind.h>
#include <base/location.h>
#include <base/logging.h>
#include <base/threading/platform_thread.h>

#include <cstdint>
#include <utility>

#include "common/message_loop_thread.h"
#include "include/hardware/bluetooth.h"
#include "osi/include/allocator.h"
Expand Down
2 changes: 1 addition & 1 deletion system/stack/include/sdp_device_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <cstdint>

#include "bt_target.h"
#include "internal_include/bt_target.h"

/* Device Identification (DI) data structure
*/
Expand Down

0 comments on commit 2d4231e

Please sign in to comment.