]
filegroup {
- name: "BluetoothTestConfigTemplate",
- srcs: [
- "AndroidTestTemplate.xml"
- ]
+ name: "BluetoothTestConfigTemplate",
+ srcs: [
+ "AndroidTestTemplate.xml",
+ ],
}
"system/bt",
"system/bt/include",
"system/bt/audio_a2dp_hw/include",
- ]
+ ],
}
// Audio A2DP shared library for target
"system/bt",
"system/bt/include",
"system/bt/audio_hearing_aid_hw/include",
- ]
+ ],
}
// Audio A2DP shared library for target
"android/bluetooth/bluetooth_device.cc",
"android/bluetooth/IBluetoothSocketManager.aidl",
"android/os/parcel_uuid.cc",
-/* TODO: Uncomment this files as they get converted one-by-one into native implementation
+ /* TODO: Uncomment this files as they get converted one-by-one into native implementation
"android/bluetooth/IBluetooth.aidl",
"android/bluetooth/IBluetoothA2dp.aidl",
"android/bluetooth/IBluetoothA2dpSink.aidl",
"android/bluetooth/le/IAdvertisingSetCallback.aidl",
"android/bluetooth/le/IPeriodicAdvertisingCallback.aidl",
"android/bluetooth/le/IScannerCallback.aidl"
-*/
- ],
- export_include_dirs: [ "./"],
+ */
+ ],
+ export_include_dirs: ["./"],
aidl: {
export_aidl_headers: true,
include_dirs: [
"frameworks/native/aidl/binder",
- /* required for android.os.ParcelUuid, and android.os.ParcelFileDescriptor */
+ /* required for android.os.ParcelUuid, and android.os.ParcelFileDescriptor */
"frameworks/base/core/java",
"system/bt/binder",
],
test_suites: ["device-tests"],
include_dirs: btifCommonIncludes,
srcs: [
- "src/btif_profile_queue.cc",
- "test/btif_profile_queue_test.cc"
+ "src/btif_profile_queue.cc",
+ "test/btif_profile_queue_test.cc",
],
header_libs: ["libbluetooth_headers"],
shared_libs: [
target: {
android: {
test_config_template: ":BluetoothTestConfigTemplate",
- }
+ },
},
defaults: ["fluoride_types_defaults"],
header_libs: ["libbluetooth_headers"],
"system/bt",
"system/bt/stack/include",
],
- srcs : [
+ srcs: [
"address_obfuscator_unittest.cc",
"leaky_bonded_queue_unittest.cc",
"message_loop_thread_unittest.cc",
"libprotobuf-cpp-lite",
"libcrypto",
],
- static_libs : [
+ static_libs: [
"libgmock",
"libbt-common",
"libbt-protos-lite",
static_libs: [
"libgmock",
"libosi",
- "libbt-common"
+ "libbt-common",
],
}
],
static_libs: [
"libosi",
- "libbt-common"
+ "libbt-common",
],
}
-
cc_library_static {
name: "libg722codec",
defaults: ["fluoride_defaults"],
cflags: [
- "-DG722_SUPPORT_MALLOC"
+ "-DG722_SUPPORT_MALLOC",
],
srcs: [
"g722_decode.cc",
"g722_encode.cc",
],
-}
\ No newline at end of file
+}
"-DOS_LINUX_GENERIC",
],
shared_libs: [
- "liblog"
- ]
+ "liblog",
+ ],
},
host: {
cflags: [
"-DOS_LINUX",
"-DOS_LINUX_GENERIC",
- ]
- }
+ ],
+ },
},
cpp_std: "c++17",
cflags: [
":BluetoothL2capTestSources",
":BluetoothPacketTestSources",
],
- generated_headers : [
+ generated_headers: [
"BluetoothGeneratedPackets_h",
],
- static_libs : [
+ static_libs: [
"libbluetooth_gd",
],
sanitize: {
":BluetoothPacketSources",
":BluetoothPacketParserTestPacketTestSources",
],
- generated_headers : [
+ generated_headers: [
"BluetoothPacketParserTestPacketPdlGen_h",
],
sanitize: {
"benchmark.cc",
":BluetoothOsBenchmarkSources",
],
- static_libs : [
+ static_libs: [
"libbluetooth_gd",
],
}
cmd: "$(location aprotoc) -Isystem/bt/gd -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)",
srcs: [
":BluetoothCertStackProto",
- ":BluetoothFacadeProto", // we need to use facade/common.proto
+ ":BluetoothFacadeProto", // we need to use facade/common.proto
],
out: [
"cert/rootservice.grpc.pb.h",
cmd: "$(location aprotoc) -Isystem/bt/gd -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)",
srcs: [
":BluetoothCertStackProto",
- ":BluetoothFacadeProto", // we need to use facade/common.proto
+ ":BluetoothFacadeProto", // we need to use facade/common.proto
],
out: [
"cert/rootservice.grpc.pb.cc",
srcs: [
"address.cc",
"class_of_device.cc",
- ]
+ ],
}
filegroup {
"address_unittest.cc",
"blocking_queue_unittest.cc",
"class_of_device_unittest.cc",
- "bidi_queue_unittest.cc"
- ]
+ "bidi_queue_unittest.cc",
+ ],
}
"linux_generic/repeating_alarm.cc",
"linux_generic/reactive_semaphore.cc",
"linux_generic/thread.cc",
- ]
+ ],
}
filegroup {
"linux_generic/reactor_unittest.cc",
"linux_generic/repeating_alarm_unittest.cc",
"linux_generic/thread_unittest.cc",
- ]
+ ],
}
filegroup {
"alarm_benchmark.cc",
"thread_benchmark.cc",
"queue_benchmark.cc",
- ]
+ ],
}
name: "BluetoothPacketSources",
srcs: [
"bit_inserter.cc",
- "byte_inserter.cc",
- "byte_observer.cc",
+ "byte_inserter.cc",
+ "byte_observer.cc",
"iterator.cc",
"packet_view.cc",
"raw_builder.cc",
-cc_binary_host {
- name: "bluetooth_packetgen",
- srcs: [
- "fields/body_field.cc",
- "fields/checksum_field.cc",
- "fields/checksum_start_field.cc",
- "fields/custom_field.cc",
- "fields/enum_field.cc",
- "fields/fixed_field.cc",
- "fields/group_field.cc",
- "fields/packet_field.cc",
- "fields/payload_field.cc",
- "fields/reserved_field.cc",
- "fields/scalar_field.cc",
- "fields/size_field.cc",
- "checksum_def.cc",
- "custom_field_def.cc",
- "enum_def.cc",
- "enum_gen.cc",
- "packet_def.cc",
- "main.cc",
- "language_y.yy",
- "language_l.ll",
- ],
- static_libs: [
- "libc++fs",
- ],
- cppflags: [
- "-Wno-implicit-fallthrough",
- "-fno-exceptions",
- "-O0",
- ],
- ldflags: [
- "-fuse-ld=ld",
- "-O0",
- ],
- yacc: {
- gen_location_hh: true,
- gen_position_hh: true,
- },
+cc_binary_host {
+ name: "bluetooth_packetgen",
+ srcs: [
+ "fields/body_field.cc",
+ "fields/checksum_field.cc",
+ "fields/checksum_start_field.cc",
+ "fields/custom_field.cc",
+ "fields/enum_field.cc",
+ "fields/fixed_field.cc",
+ "fields/group_field.cc",
+ "fields/packet_field.cc",
+ "fields/payload_field.cc",
+ "fields/reserved_field.cc",
+ "fields/scalar_field.cc",
+ "fields/size_field.cc",
+ "checksum_def.cc",
+ "custom_field_def.cc",
+ "enum_def.cc",
+ "enum_gen.cc",
+ "packet_def.cc",
+ "main.cc",
+ "language_y.yy",
+ "language_l.ll",
+ ],
+ static_libs: [
+ "libc++fs",
+ ],
+ cppflags: [
+ "-Wno-implicit-fallthrough",
+ "-fno-exceptions",
+ "-O0",
+ ],
+ ldflags: [
+ "-fuse-ld=ld",
+ "-O0",
+ ],
+ yacc: {
+ gen_location_hh: true,
+ gen_position_hh: true,
+ },
}
export_include_dirs: ["./"],
vendor_available: true,
host_supported: true,
-}
\ No newline at end of file
+}
-
// Bluetooth main HW module / shared library for target
// ========================================================
cc_library_shared {
"system/bt/internal_include",
"system/bt/utils/include",
"system/bt/stack/include",
- ]
+ ],
}
// Static libraries required by other modules
],
host_supported: true,
shared: {
- enabled: false
+ enabled: false,
},
}
],
host_supported: true,
shared: {
- enabled: false
+ enabled: false,
},
}
name: "avrcp-target-service",
defaults: [
"fluoride_defaults",
- "clang_file_coverage"
+ "clang_file_coverage",
],
host_supported: true,
include_dirs: [
cc_library_static {
- name: "sdp_service",
- defaults: [
- "fluoride_defaults",
- "clang_file_coverage"
- ],
- host_supported: true,
- include_dirs: [
- "system/bt/",
- ],
- srcs: [
- "common/data_element_reader.cc",
- ],
- static_libs: [
- "lib-bt-packets",
- "libbluetooth-types",
- ],
+ name: "sdp_service",
+ defaults: [
+ "fluoride_defaults",
+ "clang_file_coverage",
+ ],
+ host_supported: true,
+ include_dirs: [
+ "system/bt/",
+ ],
+ srcs: [
+ "common/data_element_reader.cc",
+ ],
+ static_libs: [
+ "lib-bt-packets",
+ "libbluetooth-types",
+ ],
}
cc_test {
- name: "bluetooth_test_sdp",
- test_suites: ["general-tests"],
- defaults: [
- "fluoride_defaults",
- "clang_coverage_bin",
- ],
- host_supported: true,
- include_dirs: [
- "system/bt/",
- ],
- srcs: [
- "common/test/data_element_reader_test.cc",
- ],
- static_libs: [
- "libgmock",
- "sdp_service",
- "lib-bt-packets",
- "libbluetooth-types",
- ],
+ name: "bluetooth_test_sdp",
+ test_suites: ["general-tests"],
+ defaults: [
+ "fluoride_defaults",
+ "clang_coverage_bin",
+ ],
+ host_supported: true,
+ include_dirs: [
+ "system/bt/",
+ ],
+ srcs: [
+ "common/test/data_element_reader_test.cc",
+ ],
+ static_libs: [
+ "libgmock",
+ "sdp_service",
+ "lib-bt-packets",
+ "libbluetooth-types",
+ ],
}
},
srcs: ["bluetooth/metrics/bluetooth.proto"],
}
-
include_dirs: [
"system/bt",
],
- header_libs: [ "libbluetooth_headers" ],
+ header_libs: ["libbluetooth_headers"],
}
// Source variables
name: "bluetoothtbd",
defaults: ["fluoride_service_defaults"],
srcs: btserviceBinderDaemonSrc +
- btserviceLinuxSrc +
- btserviceDaemonSrc +
- ["main.cc"],
+ btserviceLinuxSrc +
+ btserviceDaemonSrc +
+ ["main.cc"],
static_libs: [
"libbluetooth-binder-common",
"libbtcore",
test_suites: ["device-tests"],
defaults: ["fluoride_service_defaults"],
srcs: btserviceBaseTestSrc +
- btserviceDaemonSrc + [
- "test/main.cc",
- ],
+ btserviceDaemonSrc + [
+ "test/main.cc",
+ ],
aidl: {
include_dirs: [
"system/bt/service/common",
"-fvisibility=default",
],
host_supported: true,
- header_libs: [ "libbluetooth_headers" ],
+ header_libs: ["libbluetooth_headers"],
srcs: [
"bluetooth/a2dp_codec_config.cc",
"bluetooth/adapter_state.cc",
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
- header_libs: [ "libbluetooth_headers" ],
+ header_libs: ["libbluetooth_headers"],
srcs: [
"android/bluetooth/IBluetooth.aidl",
"android/bluetooth/IBluetoothA2dpSink.aidl",
],
static_libs: [
"libbluetooth-types",
- ]
+ ],
}
"rfcomm/rfcomm_test.cc",
"rfcomm/rfcomm_unittest.cc",
],
- header_libs: [ "libhardware_headers" ],
+ header_libs: ["libhardware_headers"],
shared_libs: [
"liblog",
"libcutils",
"ulinux/uipc.cc",
],
include_dirs: [
- "system/bt",
- "system/bt/internal_include",
- "system/bt/utils/include",
- "system/bt/stack/include",
+ "system/bt",
+ "system/bt/internal_include",
+ "system/bt/utils/include",
+ "system/bt/stack/include",
],
local_include_dirs: [
- "include",
+ "include",
],
shared_libs: [
- "liblog",
+ "liblog",
],
}
"h4_protocol.cc",
"bluetooth_hci.cc",
"async_fd_watcher.cc",
- "service.cc"
+ "service.cc",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
],
- cflags: ["-Wall", "-Werror"],
header_libs: ["libbluetooth_headers"],
shared_libs: [
"android.hardware.bluetooth@1.0",
],
init_rc: ["android.hardware.bluetooth@1.0-service.btlinux.rc"],
}
-