65b47f5f99
Sending a reset and discarding extra packets helps ensure that tests are hermetic for devices that do not power off the chip with rfkill. Add a mutex to make sure that close only gets called once. Bug: 266221125 Test: atest VtsHalBluetoothTargetTest Change-Id: Ifb259a675202aa5399a8c7570ba8c4df2083e10e
92 lines
2.1 KiB
Text
92 lines
2.1 KiB
Text
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "android.hardware.bluetooth-service-build-defaults",
|
|
cflags: [
|
|
"-Wall",
|
|
"-Wextra",
|
|
],
|
|
shared_libs: [
|
|
"android.hardware.bluetooth-V1-ndk",
|
|
"libbase",
|
|
"libbinder_ndk",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
static_libs: [
|
|
"android.hardware.bluetooth.async",
|
|
"android.hardware.bluetooth.hci",
|
|
],
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "libbluetoothhcihalimpl",
|
|
vendor_available: true,
|
|
host_supported: true,
|
|
defaults: ["android.hardware.bluetooth-service-build-defaults"],
|
|
srcs: [
|
|
"BluetoothHci.cpp",
|
|
":BluetoothPacketSources",
|
|
"net_bluetooth_mgmt.cpp",
|
|
],
|
|
generated_headers: [
|
|
"BluetoothGeneratedPackets_h",
|
|
],
|
|
include_dirs: [
|
|
"packages/modules/Bluetooth/system/gd",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.bluetooth-service.default",
|
|
relative_install_path: "hw",
|
|
init_rc: ["bluetooth-service-default.rc"],
|
|
vintf_fragments: [":manifest_android.hardware.bluetooth-service.default.xml"],
|
|
vendor: true,
|
|
defaults: ["android.hardware.bluetooth-service-build-defaults"],
|
|
srcs: [
|
|
"service.cpp",
|
|
],
|
|
shared_libs: [
|
|
"android.hardware.bluetooth-V1-ndk",
|
|
"libbase",
|
|
"libbinder_ndk",
|
|
"libhidlbase",
|
|
"libutils",
|
|
"liblog",
|
|
],
|
|
static_libs: [
|
|
"libbluetoothhcihalimpl",
|
|
],
|
|
}
|
|
|
|
cc_fuzz {
|
|
name: "android.hardware.bluetooth-service.default_fuzzer",
|
|
host_supported: true,
|
|
defaults: ["service_fuzzer_defaults"],
|
|
srcs: [
|
|
"test/fuzzer.cpp",
|
|
],
|
|
static_libs: [
|
|
"android.hardware.bluetooth.async",
|
|
"android.hardware.bluetooth.hci",
|
|
"android.hardware.bluetooth-V1-ndk",
|
|
"libbluetoothhcihalimpl",
|
|
"liblog",
|
|
],
|
|
fuzz_config: {
|
|
componentid: 27441,
|
|
cc: [
|
|
"mylesgw@google.com",
|
|
],
|
|
},
|
|
}
|
|
|
|
filegroup {
|
|
name: "manifest_android.hardware.bluetooth-service.default.xml",
|
|
srcs: ["bluetooth-service-default.xml"],
|
|
}
|