1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
// Bluetooth types
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_library_headers {
name: "libbluetooth-types-header",
export_include_dirs: ["./"],
vendor_available: true,
host_supported: true,
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
apex_available: [
"//apex_available:platform",
"com.android.media",
"com.android.media.swcodec",
"com.android.bluetooth"
],
// As part of updatable mainline modules(media, swcodec), it should support at least 29(Q)
min_sdk_version: "29",
}
cc_library_static {
name: "libbluetooth-types",
vendor_available: true,
defaults: ["fluoride_types_defaults"],
cflags: [
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
host_supported: true,
srcs: [
"class_of_device.cc",
"raw_address.cc",
"bluetooth/uuid.cc",
],
header_libs: ["libbluetooth-types-header"],
export_header_lib_headers: ["libbluetooth-types-header"],
min_sdk_version: "29",
}
cc_test {
name: "net_test_types",
test_suites: ["device-tests"],
defaults: [
"fluoride_defaults",
"mts_defaults",
],
include_dirs: [
"packages/modules/Bluetooth/system",
],
host_supported: true,
srcs: [
"test/ble_address_with_type_unittest.cc",
"test/bluetooth/uuid_unittest.cc",
"test/class_of_device_unittest.cc",
"test/raw_address_unittest.cc",
],
shared_libs: [
"android.hardware.bluetooth@1.0",
"android.hardware.bluetooth@1.1",
],
}
|