1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "system_bt_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_bt_license"], 8} 9 10cc_library_static { 11 name: "lib-bt-packets", 12 defaults: ["bluetooth_cflags"], 13 host_supported: true, 14 export_include_dirs: [ 15 "./", 16 "./include", 17 ], 18 static_libs: [ 19 "lib-bt-packets-avrcp", 20 "lib-bt-packets-base", 21 "libbluetooth_log", 22 ], 23 apex_available: [ 24 "com.android.btservices", 25 ], 26 min_sdk_version: "30", 27} 28 29cc_test { 30 name: "net_test_btpackets", 31 defaults: [ 32 "fluoride_defaults", 33 "mts_defaults", 34 ], 35 test_suites: ["general-tests"], 36 host_supported: true, 37 test_options: { 38 unit_test: true, 39 }, 40 local_include_dirs: ["tests"], 41 include_dirs: [ 42 "packages/modules/Bluetooth/system/", 43 "packages/modules/Bluetooth/system/gd", 44 "packages/modules/Bluetooth/system/include", 45 ], 46 srcs: [ 47 "tests/avrcp/avrcp_browse_packet_test.cc", 48 "tests/avrcp/avrcp_packet_test.cc", 49 "tests/avrcp/avrcp_reject_packet_test.cc", 50 "tests/avrcp/change_path_packet_test.cc", 51 "tests/avrcp/general_reject_packet_test.cc", 52 "tests/avrcp/get_capabilities_packet_test.cc", 53 "tests/avrcp/get_current_player_application_setting_value_test.cc", 54 "tests/avrcp/get_element_attributes_packet_test.cc", 55 "tests/avrcp/get_folder_items_packet_test.cc", 56 "tests/avrcp/get_item_attributes_packet_test.cc", 57 "tests/avrcp/get_play_status_packet_test.cc", 58 "tests/avrcp/get_total_number_of_items_packet_test.cc", 59 "tests/avrcp/list_player_application_setting_attributes_test.cc", 60 "tests/avrcp/list_player_application_setting_values_test.cc", 61 "tests/avrcp/pass_through_packet_test.cc", 62 "tests/avrcp/play_item_packet_test.cc", 63 "tests/avrcp/register_notification_packet_test.cc", 64 "tests/avrcp/set_absolute_volume_packet_test.cc", 65 "tests/avrcp/set_addressed_player_packet_test.cc", 66 "tests/avrcp/set_browsed_player_packet_test.cc", 67 "tests/avrcp/set_player_application_setting_value_test.cc", 68 "tests/avrcp/vendor_packet_test.cc", 69 "tests/base/iterator_test.cc", 70 "tests/base/packet_builder_test.cc", 71 "tests/base/packet_test.cc", 72 ], 73 shared_libs: [ 74 "libbase", 75 "libbinder_ndk", 76 "liblog", 77 ], 78 static_libs: [ 79 "lib-bt-packets", 80 "lib-bt-packets-avrcp", 81 "lib-bt-packets-base", 82 "libbluetooth_log", 83 "libchrome", 84 "libgmock", 85 ], 86 cflags: [ 87 "-Wno-unused-parameter", 88 ], 89 target: { 90 android: { 91 static_libs: [ 92 "android.system.suspend.control-V1-ndk", 93 ], 94 }, 95 }, 96} 97