blob: 2b6b97ba4e8dc3c907164834f1bc4ed8a54dea8d [file] [log] [blame]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_bt_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_bt_license"],
}
cc_defaults {
name: "fluoride_bta_defaults",
defaults: ["fluoride_defaults"],
local_include_dirs: [
"dm",
"hd",
"hh",
"include",
"sys",
],
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/btif/avrcp",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/btm",
"packages/modules/Bluetooth/system/stack/include",
"packages/modules/Bluetooth/system/udrv/include",
],
header_libs: ["libbluetooth_headers"],
generated_headers: [
"BluetoothGeneratedDumpsysDataSchema_h",
],
cflags: ["-DBUILDCFG"],
}
filegroup {
name: "BtaDmSources",
srcs: [
"dm/bta_dm_act.cc",
"dm/bta_dm_api.cc",
"dm/bta_dm_cfg.cc",
"dm/bta_dm_ci.cc",
"dm/bta_dm_disc.cc",
"dm/bta_dm_gatt_client.cc",
"dm/bta_dm_main.cc",
"dm/bta_dm_pm.cc",
"dm/bta_dm_sec.cc",
"dm/bta_dm_sec_api.cc",
],
}
// BTA static library for target
cc_library_static {
name: "libbt-bta",
defaults: ["fluoride_bta_defaults"],
srcs: [
"ag/bta_ag_act.cc",
"ag/bta_ag_api.cc",
"ag/bta_ag_at.cc",
"ag/bta_ag_cfg.cc",
"ag/bta_ag_cmd.cc",
"ag/bta_ag_main.cc",
"ag/bta_ag_rfc.cc",
"ag/bta_ag_sco.cc",
"ag/bta_ag_sdp.cc",
"ag/bta_ag_swb_aptx.cc",
"ar/bta_ar.cc",
"av/bta_av_aact.cc",
"av/bta_av_act.cc",
"av/bta_av_api.cc",
"av/bta_av_cfg.cc",
"av/bta_av_ci.cc",
"av/bta_av_main.cc",
"av/bta_av_ssm.cc",
"csis/csis_client.cc",
"groups/groups.cc",
"has/has_client.cc",
"has/has_ctp.cc",
"has/has_journal.cc",
"has/has_preset.cc",
"has/has_types.cc",
"hd/bta_hd_act.cc",
"hd/bta_hd_api.cc",
"hd/bta_hd_main.cc",
"hearing_aid/hearing_aid.cc",
"hearing_aid/hearing_aid_audio_source.cc",
"hf_client/bta_hf_client_act.cc",
"hf_client/bta_hf_client_api.cc",
"hf_client/bta_hf_client_at.cc",
"hf_client/bta_hf_client_main.cc",
"hf_client/bta_hf_client_rfc.cc",
"hf_client/bta_hf_client_sco.cc",
"hf_client/bta_hf_client_sdp.cc",
"hfp/bta_hfp_api.cc",
"hh/bta_hh_act.cc",
"hh/bta_hh_api.cc",
"hh/bta_hh_cfg.cc",
"hh/bta_hh_le.cc",
"hh/bta_hh_main.cc",
"hh/bta_hh_utils.cc",
"le_audio/audio_hal_client/audio_sink_hal_client.cc",
"le_audio/audio_hal_client/audio_source_hal_client.cc",
"le_audio/broadcaster/broadcaster.cc",
"le_audio/broadcaster/broadcaster_types.cc",
"le_audio/broadcaster/state_machine.cc",
"le_audio/client.cc",
"le_audio/client_parser.cc",
"le_audio/codec_interface.cc",
"le_audio/codec_manager.cc",
"le_audio/content_control_id_keeper.cc",
"le_audio/device_groups.cc",
"le_audio/devices.cc",
"le_audio/hal_verifier.cc",
"le_audio/le_audio_health_status.cc",
"le_audio/le_audio_log_history.cc",
"le_audio/le_audio_set_configuration_provider_json.cc",
"le_audio/le_audio_types.cc",
"le_audio/le_audio_utils.cc",
"le_audio/metrics_collector.cc",
"le_audio/state_machine.cc",
"le_audio/storage_helper.cc",
"pan/bta_pan_act.cc",
"pan/bta_pan_api.cc",
"pan/bta_pan_ci.cc",
"pan/bta_pan_main.cc",
"vc/device.cc",
"vc/vc.cc",
],
cflags: [
"-Wno-unused-parameter",
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
static_libs: [
"android.hardware.audio.common@5.0",
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"avrcp-target-service",
"bluetooth_flags_c_lib",
"lib-bt-packets",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-audio-asrc",
"libbt-bta-core",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libcom.android.sysprop.bluetooth.wrapped",
"liblc3",
],
generated_headers: [
"LeAudioSetConfigSchemas_h",
],
target: {
android: {
whole_static_libs: [
"libPlatformProperties",
],
},
},
apex_available: [
"com.android.btservices",
],
host_supported: true,
min_sdk_version: "Tiramisu",
}
cc_library_static {
name: "libbt-bta-core",
defaults: ["fluoride_bta_defaults"],
srcs: [
":BtaDmSources",
"gatt/bta_gattc_act.cc",
"gatt/bta_gattc_api.cc",
"gatt/bta_gattc_cache.cc",
"gatt/bta_gattc_db_storage.cc",
"gatt/bta_gattc_main.cc",
"gatt/bta_gattc_queue.cc",
"gatt/bta_gattc_utils.cc",
"gatt/bta_gatts_act.cc",
"gatt/bta_gatts_api.cc",
"gatt/bta_gatts_main.cc",
"gatt/bta_gatts_queue.cc",
"gatt/bta_gatts_utils.cc",
"gatt/database.cc",
"gatt/database_builder.cc",
"jv/bta_jv_act.cc",
"jv/bta_jv_api.cc",
"jv/bta_jv_cfg.cc",
"rfcomm/bta_rfcomm_scn.cc",
"sdp/bta_sdp.cc",
"sdp/bta_sdp_act.cc",
"sdp/bta_sdp_api.cc",
"sdp/bta_sdp_cfg.cc",
"sys/bta_sys_conn.cc",
"sys/bta_sys_main.cc",
"sys/utl.cc",
],
cflags: [
"-Wno-unused-parameter",
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
static_libs: [
"bluetooth_flags_c_lib",
"lib-bt-packets",
"libbase",
"libbluetooth_hci_pdl",
"libbluetooth_log",
"libbt-audio-hal-interface",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libcom.android.sysprop.bluetooth.wrapped",
"libflatbuffers-cpp",
"server_configurable_flags",
],
apex_available: [
"com.android.btservices",
],
host_supported: true,
min_sdk_version: "Tiramisu",
}
cc_test {
name: "net_test_bta",
defaults: [
"fluoride_bta_defaults",
"latest_android_hardware_audio_common_ndk_static",
"latest_android_hardware_bluetooth_audio_ndk_static",
"latest_android_media_audio_common_types_ndk_static",
"mts_defaults",
],
test_suites: ["general-tests"],
host_supported: true,
srcs: [
":LegacyStackSdp",
":OsiCompatSources",
":TestCommonMockFunctions",
":TestCommonSyncMainHandler",
":TestFakeOsi",
":TestMockAudioHalInterface",
":TestMockBtif",
":TestMockDevice",
":TestMockMainShim",
":TestMockMainShimEntry",
":TestMockStackA2dp",
":TestMockStackAcl",
":TestMockStackAvct",
":TestMockStackAvdt",
":TestMockStackAvrc",
":TestMockStackBtm",
":TestMockStackGap",
":TestMockStackGatt",
":TestMockStackHid",
":TestMockStackL2cap",
":TestMockStackMetrics",
":TestMockStackPan",
":TestMockStackRfcomm",
"test/bta_ag_sco_test.cc",
"test/bta_ag_test.cc",
"test/bta_api_test.cc",
"test/bta_av_test.cc",
"test/bta_dip_test.cc",
"test/bta_disc_test.cc",
"test/bta_dm_cust_uuid_test.cc",
"test/bta_dm_test.cc",
"test/bta_gatt_test.cc",
"test/bta_hf_client_add_record_test.cc",
"test/bta_hf_client_test.cc",
"test/bta_pan_test.cc",
"test/bta_sdp_test.cc",
"test/bta_sec_test.cc",
],
generated_headers: [
"BluetoothGeneratedDumpsysDataSchema_h",
],
shared_libs: [
"libcrypto",
"libcutils",
"libhidlbase",
"liblog",
"libutils",
"server_configurable_flags",
],
static_libs: [
"android.hardware.audio.common@5.0",
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"android.hardware.common-V2-ndk",
"android.hardware.common.fmq-V1-ndk",
"bluetooth_flags_c_lib",
"libbase",
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_hci_pdl",
"libbluetooth_log",
"libbt-audio-hal-interface",
"libbt-bta",
"libbt-bta-core",
"libbt-btu-main-thread",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libbtcore",
"libbtdevice",
"libchrome",
"libcom.android.sysprop.bluetooth.wrapped",
"libevent",
"libflagtest",
"libfmq",
"libgmock",
"server_configurable_flags",
],
data: [
":audio_set_configurations_bfbs",
":audio_set_configurations_json",
":audio_set_scenarios_bfbs",
":audio_set_scenarios_json",
],
cflags: [
"-Wno-macro-redefined",
"-Wno-unused-parameter",
],
target: {
android: {
shared_libs: [
"libbinder_ndk",
],
},
host: {
static_libs: [
"libbinder_ndk",
],
},
},
}
// bta GATT unit tests
cc_test {
name: "net_test_bta_gatt",
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
test_suites: ["general-tests"],
srcs: [
":LegacyStackSdp",
":TestCommonMockFunctions",
":TestFakeOsi",
":TestMockBtif",
":TestMockDevice",
":TestMockMainShim",
":TestMockMainShimEntry",
":TestMockStackBtm",
":TestMockStackL2cap",
":TestMockStackMetrics",
"test/gatt/database_builder_sample_device_test.cc",
"test/gatt/database_builder_test.cc",
"test/gatt/database_test.cc",
],
generated_headers: [
"BluetoothGeneratedDumpsysDataSchema_h",
],
shared_libs: [
"libbase",
"libcrypto",
"liblog",
"server_configurable_flags",
],
static_libs: [
"bluetooth_flags_c_lib",
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_hci_pdl",
"libbluetooth_log",
"libbt-audio-hal-interface",
"libbt-bta",
"libbt-bta-core",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libbtcore",
"libchrome",
"libcom.android.sysprop.bluetooth.wrapped",
"libgmock",
],
cflags: ["-Wno-unused-parameter"],
}
// bta unit tests for target
cc_test {
name: "net_test_bta_security",
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
test_suites: ["general-tests"],
srcs: [
":TestCommonMockFunctions",
":TestMockBtif",
":TestMockDevice",
":TestMockStack",
"test/bta_hf_client_security_test.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"libcutils",
"liblog",
"libprotobuf-cpp-lite",
"libstatssocket",
"server_configurable_flags",
],
static_libs: [
"bluetooth_flags_c_lib",
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-audio-hal-interface",
"libbt-bta",
"libbt-bta-core",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libbtcore",
"libchrome",
"libosi",
"libstatslog_bt",
],
cflags: ["-Wno-unused-parameter"],
}
cc_test {
name: "bt_host_test_bta_scn",
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
test_suites: ["general-tests"],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
],
generated_headers: [
"BluetoothGeneratedDumpsysDataSchema_h",
],
srcs: [
":TestCommonMockFunctions",
":TestFakeOsi",
":TestMockBtaSys",
":TestMockBtif",
":TestMockStackBtm",
":TestMockStackGap",
":TestMockStackL2cap",
":TestMockStackRfcomm",
":TestMockStackSdp",
"jv/bta_jv_act.cc",
"rfcomm/bta_rfcomm_scn.cc",
"test/bta_rfcomm_scn_test.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"libcutils",
"liblog",
"server_configurable_flags",
],
static_libs: [
"bluetooth_flags_c_lib",
"libbluetooth-types",
"libbluetooth_log",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libbtcore",
"libbtdevice",
"libchrome",
"libcom.android.sysprop.bluetooth.wrapped",
"libevent",
"libgmock",
],
sanitize: {
address: true,
cfi: true,
misc_undefined: ["bounds"],
},
target: {
android: {
static_libs: [
"libPlatformProperties",
],
},
},
cflags: ["-Wno-unused-parameter"],
}
// csis unit tests for host
cc_test {
name: "bluetooth_csis_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/groups",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/osi/include",
],
srcs: [
":TestCommonMockFunctions",
":TestMockBtif",
":TestMockMainShimLeScanning",
"csis/csis_client.cc",
"csis/csis_client_test.cc",
"gatt/database.cc",
"gatt/database_builder.cc",
"groups/groups.cc",
"test/common/bta_dm_api_mock.cc",
"test/common/bta_gatt_api_mock.cc",
"test/common/bta_gatt_queue_mock.cc",
"test/common/btm_api_mock.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"liblog",
"server_configurable_flags",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-common",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libcutils",
"libgmock",
"libosi",
],
sanitize: {
cfi: true,
scs: true,
address: true,
all_undefined: true,
integer_overflow: true,
diag: {
undefined: true,
},
},
cflags: ["-Wno-unused-parameter"],
}
// groups unit tests for host
cc_test {
name: "bluetooth_groups_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
],
srcs: [
":TestCommonMockFunctions",
":TestMockBtif",
"groups/groups.cc",
"groups/groups_test.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"liblog",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-common",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libgmock",
"libosi",
],
sanitize: {
cfi: true,
scs: true,
address: true,
all_undefined: true,
integer_overflow: true,
diag: {
undefined: true,
},
},
cflags: ["-Wno-unused-parameter"],
}
// bta unit tests for host
cc_test {
name: "bluetooth_vc_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":TestCommonMockFunctions",
":TestMockOsi",
"gatt/database.cc",
"gatt/database_builder.cc",
"test/common/bta_gatt_api_mock.cc",
"test/common/bta_gatt_queue_mock.cc",
"test/common/btm_api_mock.cc",
"test/common/mock_csis_client.cc",
"vc/device.cc",
"vc/devices_test.cc",
"vc/vc.cc",
"vc/vc_test.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"liblog",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libgmock",
"libosi",
],
sanitize: {
cfi: false,
},
cflags: ["-Wno-unused-parameter"],
}
genrule {
name: "LeAudioSetConfigSchemas_h",
tools: [
"flatc",
],
cmd: "$(location flatc) -I packages/modules/Bluetooth/system/ -o $(genDir) --cpp $(in) ",
srcs: [
"le_audio/audio_set_configurations.fbs",
"le_audio/audio_set_scenarios.fbs",
],
out: [
"audio_set_configurations_generated.h",
"audio_set_scenarios_generated.h",
],
}
genrule {
name: "LeAudioSetScenariosSchema_bfbs",
tools: [
"flatc",
],
cmd: "$(location flatc) -I packages/modules/Bluetooth/system/ -b --schema -o $(genDir) $(in) ",
srcs: [
"le_audio/audio_set_scenarios.fbs",
],
out: [
"audio_set_scenarios.bfbs",
],
}
genrule {
name: "LeAudioSetConfigsSchema_bfbs",
tools: [
"flatc",
],
cmd: "$(location flatc) -I packages/modules/Bluetooth/system/ -b --schema -o $(genDir) $(in) ",
srcs: [
"le_audio/audio_set_configurations.fbs",
],
out: [
"audio_set_configurations.bfbs",
],
}
prebuilt_etc {
name: "audio_set_scenarios_bfbs",
src: ":LeAudioSetScenariosSchema_bfbs",
filename: "audio_set_scenarios.bfbs",
sub_dir: "bluetooth/le_audio",
}
prebuilt_etc {
name: "audio_set_scenarios_json",
src: "le_audio/audio_set_scenarios.json",
filename_from_src: true,
sub_dir: "bluetooth/le_audio",
}
prebuilt_etc {
name: "audio_set_configurations_bfbs",
src: ":LeAudioSetConfigsSchema_bfbs",
filename: "audio_set_configurations.bfbs",
sub_dir: "bluetooth/le_audio",
}
prebuilt_etc {
name: "audio_set_configurations_json",
src: "le_audio/audio_set_configurations.json",
filename_from_src: true,
sub_dir: "bluetooth/le_audio",
}
// bta unit tests for LE Audio
// ========================================================
cc_test {
name: "bluetooth_le_audio_codec_manager_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_defaults",
"mts_defaults",
],
host_supported: true,
target: {
darwin: {
enabled: false,
},
android: {
sanitize: {
misc_undefined: ["bounds"],
},
static_libs: [
"libPlatformProperties",
],
},
},
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":TestCommonMockFunctions",
":TestMockBtaLeAudioHalVerifier",
":TestMockLegacyHciInterface",
":TestStubOsi",
"le_audio/codec_manager.cc",
"le_audio/codec_manager_test.cc",
"le_audio/le_audio_set_configuration_provider_json.cc",
"le_audio/le_audio_types.cc",
"le_audio/le_audio_utils.cc",
"test/common/mock_controller.cc",
],
data: [
":audio_set_configurations_bfbs",
":audio_set_configurations_json",
":audio_set_scenarios_bfbs",
":audio_set_scenarios_json",
],
generated_headers: [
"LeAudioSetConfigSchemas_h",
],
shared_libs: [
"libcrypto",
"libhidlbase",
"liblog", // __android_log_print
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-common",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libevent",
"libflatbuffers-cpp",
"libgmock",
"libosi",
],
sanitize: {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
cflags: ["-Wno-unused-parameter"],
}
cc_test {
name: "bluetooth_le_audio_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_defaults",
"mts_defaults",
],
host_supported: true,
target: {
darwin: {
enabled: false,
},
android: {
sanitize: {
misc_undefined: ["bounds"],
},
static_libs: [
"libPlatformProperties",
],
},
},
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":TestCommonMockFunctions",
":TestMockBtaLeAudioHalVerifier",
":TestMockMainShim",
":TestMockMainShimEntry",
":TestMockStackL2cap",
":TestStubOsi",
"le_audio/audio_hal_client/audio_hal_client_test.cc",
"le_audio/audio_hal_client/audio_sink_hal_client.cc",
"le_audio/audio_hal_client/audio_source_hal_client.cc",
"le_audio/client_parser.cc",
"le_audio/client_parser_test.cc",
"le_audio/content_control_id_keeper.cc",
"le_audio/content_control_id_keeper_test.cc",
"le_audio/device_groups.cc",
"le_audio/devices.cc",
"le_audio/devices_test.cc",
"le_audio/le_audio_health_status.cc",
"le_audio/le_audio_log_history.cc",
"le_audio/le_audio_set_configuration_provider_json.cc",
"le_audio/le_audio_types.cc",
"le_audio/le_audio_types_test.cc",
"le_audio/metrics_collector_linux.cc",
"le_audio/mock_codec_interface.cc",
"le_audio/mock_codec_manager.cc",
"le_audio/mock_iso_manager.cc",
"le_audio/state_machine.cc",
"le_audio/state_machine_test.cc",
"le_audio/storage_helper.cc",
"le_audio/storage_helper_test.cc",
"test/common/bta_gatt_api_mock.cc",
"test/common/bta_gatt_queue_mock.cc",
"test/common/btif_storage_mock.cc",
"test/common/btm_api_mock.cc",
"test/common/mock_controller.cc",
"test/common/mock_csis_client.cc",
],
data: [
":audio_set_configurations_bfbs",
":audio_set_configurations_json",
":audio_set_scenarios_bfbs",
":audio_set_scenarios_json",
],
generated_headers: [
"BluetoothGeneratedDumpsysDataSchema_h",
"LeAudioSetConfigSchemas_h",
],
shared_libs: [
"libcrypto",
"libhidlbase",
"liblog", // __android_log_print
"server_configurable_flags",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-audio-asrc",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libevent",
"libflatbuffers-cpp",
"libgmock",
"libosi",
],
sanitize: {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
cflags: ["-Wno-unused-parameter"],
}
cc_test {
name: "bluetooth_le_audio_client_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
// TODO(b/231993739): Reenable isolated:true by deleting the explicit disable below
isolated: false,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":TestCommonMockFunctions",
":TestMockBtaLeAudioHalVerifier",
":TestMockMainShim",
":TestMockMainShimEntry",
":TestMockStackL2cap",
":TestStubOsi",
"gatt/database.cc",
"gatt/database_builder.cc",
"le_audio/client.cc",
"le_audio/client_parser.cc",
"le_audio/content_control_id_keeper.cc",
"le_audio/device_groups.cc",
"le_audio/devices.cc",
"le_audio/le_audio_client_test.cc",
"le_audio/le_audio_health_status.cc",
"le_audio/le_audio_health_status_test.cc",
"le_audio/le_audio_log_history.cc",
"le_audio/le_audio_set_configuration_provider_json.cc",
"le_audio/le_audio_types.cc",
"le_audio/le_audio_utils.cc",
"le_audio/metrics_collector.cc",
"le_audio/metrics_collector_test.cc",
"le_audio/mock_codec_interface.cc",
"le_audio/mock_codec_manager.cc",
"le_audio/mock_iso_manager.cc",
"le_audio/mock_state_machine.cc",
"le_audio/storage_helper.cc",
"test/common/bta_gatt_api_mock.cc",
"test/common/bta_gatt_queue_mock.cc",
"test/common/btif_storage_mock.cc",
"test/common/btm_api_mock.cc",
"test/common/mock_controller.cc",
"test/common/mock_csis_client.cc",
"test/common/mock_device_groups.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"libhidlbase",
"liblog",
"server_configurable_flags",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-audio-hal-interface",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libevent",
"libflagtest",
"libflatbuffers-cpp",
"libgmock",
"liblc3",
"libosi",
],
data: [
":audio_set_configurations_bfbs",
":audio_set_configurations_json",
":audio_set_scenarios_bfbs",
":audio_set_scenarios_json",
],
generated_headers: [
"LeAudioSetConfigSchemas_h",
],
target: {
android: {
shared_libs: [
"libbinder_ndk",
],
static_libs: [
"libPlatformProperties",
],
},
host: {
static_libs: [
"libbinder_ndk",
],
},
},
sanitize: {
cfi: true,
scs: true,
address: true,
all_undefined: true,
integer_overflow: true,
diag: {
undefined: true,
},
},
cflags: ["-Wno-unused-parameter"],
}
cc_test {
name: "bluetooth_test_broadcaster_state_machine",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
// TODO(b/231993739): Reenable isolated:true by deleting the explicit disable below
isolated: false,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/le_audio",
"packages/modules/Bluetooth/system/stack/btm",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":TestCommonMockFunctions",
":TestCommonStackConfig",
"le_audio/broadcaster/broadcaster_types.cc",
"le_audio/broadcaster/mock_ble_advertising_manager.cc",
"le_audio/broadcaster/state_machine.cc",
"le_audio/broadcaster/state_machine_test.cc",
"le_audio/le_audio_types.cc",
"le_audio/mock_codec_interface.cc",
"le_audio/mock_codec_manager.cc",
"le_audio/mock_iso_manager.cc",
],
shared_libs: [
"libcrypto",
"liblog",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-common",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libgmock",
"liblc3",
],
sanitize: {
cfi: true,
scs: true,
address: true,
all_undefined: true,
integer_overflow: true,
diag: {
undefined: true,
},
},
cflags: ["-Wno-unused-parameter"],
}
cc_test {
name: "bluetooth_test_broadcaster",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/le_audio",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/stack/btm",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":TestCommonMockFunctions",
":TestCommonStackConfig",
":TestStubOsi",
"le_audio/broadcaster/broadcaster.cc",
"le_audio/broadcaster/broadcaster_test.cc",
"le_audio/broadcaster/broadcaster_types.cc",
"le_audio/broadcaster/mock_ble_advertising_manager.cc",
"le_audio/broadcaster/mock_state_machine.cc",
"le_audio/content_control_id_keeper.cc",
"le_audio/le_audio_types.cc",
"le_audio/le_audio_utils.cc",
"le_audio/metrics_collector_linux.cc",
"le_audio/mock_codec_interface.cc",
"le_audio/mock_codec_manager.cc",
"le_audio/mock_iso_manager.cc",
"test/common/mock_controller.cc",
],
shared_libs: [
"libbinder_ndk",
"libcrypto",
"libfmq",
"libhidlbase",
"liblog",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_log",
"libbt-audio-hal-interface",
"libbt-common",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libevent",
"libgmock",
"liblc3",
"libosi",
],
sanitize: {
cfi: true,
scs: true,
address: true,
all_undefined: true,
integer_overflow: true,
diag: {
undefined: true,
},
},
cflags: ["-Wno-unused-parameter"],
}
cc_test {
name: "bluetooth_has_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
// TODO(b/231993739): Reenable isolated:true by deleting the explicit disable below
isolated: false,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":TestCommonMockFunctions",
":TestStubOsi",
"gatt/database.cc",
"gatt/database_builder.cc",
"has/has_client.cc",
"has/has_client_test.cc",
"has/has_ctp.cc",
"has/has_journal.cc",
"has/has_preset.cc",
"has/has_types.cc",
"test/common/bta_gatt_api_mock.cc",
"test/common/bta_gatt_queue_mock.cc",
"test/common/btif_storage_mock.cc",
"test/common/btm_api_mock.cc",
"test/common/mock_controller.cc",
"test/common/mock_csis_client.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"liblog",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_log",
"libbt-common",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libgmock",
],
sanitize: {
cfi: true,
scs: true,
address: true,
all_undefined: true,
integer_overflow: true,
diag: {
undefined: true,
},
},
cflags: ["-Wno-unused-parameter"],
}
cc_test {
name: "bluetooth_hh_test",
test_suites: ["general-tests"],
defaults: [
"fluoride_bta_defaults",
"mts_defaults",
],
host_supported: true,
// TODO(b/231993739): Reenable isolated:true by deleting the explicit disable below
isolated: false,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/test/common",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
":BtaDmSources",
":TestCommonMainHandler",
":TestCommonMockFunctions",
":TestMockBtaGatt",
":TestMockBtaLeAudio",
":TestMockBtaSdp",
":TestMockBtaSys",
":TestMockBtif",
":TestMockDevice",
":TestMockMainShim",
":TestMockMainShimEntry",
":TestMockOsi",
":TestMockStack",
"gatt/bta_gattc_queue.cc",
"hh/bta_hh_act.cc",
"hh/bta_hh_api.cc",
"hh/bta_hh_cfg.cc",
"hh/bta_hh_le.cc",
"hh/bta_hh_main.cc",
"hh/bta_hh_utils.cc",
"test/bta_hh_test.cc",
],
shared_libs: [
"libbase",
"libcrypto",
"liblog",
"server_configurable_flags",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_gd",
"libbluetooth_hci_pdl",
"libbluetooth_log",
"libbt-common",
"libbt-platform-protos-lite",
"libbt_shim_bridge",
"libbt_shim_ffi",
"libchrome",
"libcom.android.sysprop.bluetooth.wrapped",
"libevent",
"libgmock",
"libosi",
],
generated_headers: [
"BluetoothGeneratedDumpsysDataSchema_h",
],
sanitize: {
cfi: true,
scs: true,
address: true,
all_undefined: true,
integer_overflow: true,
diag: {
undefined: true,
},
},
cflags: ["-Wno-unused-parameter"],
}