diff --git a/android/app/Android.bp b/android/app/Android.bp index fe880cc8654924f5f2d8bd2607633890b2c354fa..7bd56b927ead9e39ea3b0d02818eb5b6bd79b25d 100644 --- a/android/app/Android.bp +++ b/android/app/Android.bp @@ -136,7 +136,10 @@ android_app { "src/**/*.java", ":statslog-bluetooth-java-gen", ], - aaptflags: [ "--custom-package", "com.android.bluetooth" ], + aaptflags: [ + "--custom-package", + "com.android.bluetooth", + ], certificate: ":com.android.bluetooth.certificate", jarjar_rules: ":bluetooth-jarjar-rules", @@ -217,7 +220,7 @@ android_app { java_library { name: "bluetooth.change-ids", srcs: [ - "src/com/android/bluetooth/ChangeIds.java" + "src/com/android/bluetooth/ChangeIds.java", ], libs: [ "app-compat-annotations", @@ -261,5 +264,5 @@ genrule { android_app_certificate { name: "com.android.bluetooth.certificate", - certificate: "certs/com.android.bluetooth" + certificate: "certs/com.android.bluetooth", } diff --git a/android/pandora/server/Android.bp b/android/pandora/server/Android.bp index 1064e177d700f9b817f58b9d070d76cbf4e6c446..f6e8668a27b42d8f0d3deab80453b6f4f224140e 100644 --- a/android/pandora/server/Android.bp +++ b/android/pandora/server/Android.bp @@ -59,7 +59,7 @@ android_test { test_config: "configs/PtsBotTest.xml", data: [ "configs/pts_bot_tests_config.json", - ":mmi2grpc" + ":mmi2grpc", ], test_suites: ["device-tests"], min_sdk_version: "Tiramisu", @@ -71,7 +71,7 @@ android_test { test_config: "configs/PtsBotTestMts.xml", data: [ "configs/pts_bot_tests_config.json", - ":mmi2grpc" + ":mmi2grpc", ], test_suites: ["mts-bluetooth"], min_sdk_version: "Tiramisu", diff --git a/android/pandora/test/Android.bp b/android/pandora/test/Android.bp index f325f917d551a6d0e75e62f967d5015f021b1b77..bc39f0561cff2b2ec0cecc90e7b2f091d6a367bb 100644 --- a/android/pandora/test/Android.bp +++ b/android/pandora/test/Android.bp @@ -28,7 +28,10 @@ python_test_host { "libavatar", "bumble_services_experimental-python", ], - required: ["PandoraServer", "aapt"], + required: [ + "PandoraServer", + "aapt", + ], test_suites: ["general-tests"], test_options: { unit_test: false, @@ -45,5 +48,5 @@ sh_binary_host { "pandora_experimental-python-gen-src", "tradefed", "tradefed-test-framework", - ] + ], } diff --git a/framework/Android.bp b/framework/Android.bp index 7c080cb42d61531c036fb03639de4d8caf029209..6381836fd767251e3801ab6ed8b93b680490e64a 100644 --- a/framework/Android.bp +++ b/framework/Android.bp @@ -60,7 +60,7 @@ java_sdk_library { jarjar_rules: ":bluetooth-jarjar-rules", installable: true, optimize: { - enabled: false + enabled: false, }, hostdex: true, // for hiddenapi check @@ -122,8 +122,7 @@ java_api_contribution { ], } -platform_compat_config -{ +platform_compat_config { name: "framework-bluetooth-compat-config", src: ":framework-bluetooth", } diff --git a/pandora/interfaces/Android.bp b/pandora/interfaces/Android.bp index e782ef0423a49cc4f135b8a46296789ced5e1587..ea0c679db26abe39de38f92f121cf44f791cf153 100644 --- a/pandora/interfaces/Android.bp +++ b/pandora/interfaces/Android.bp @@ -25,7 +25,7 @@ java_library { ], plugin: "grpc-java-plugin", output_params: [ - "lite", + "lite", ], }, } diff --git a/pandora/interfaces/python/Android.bp b/pandora/interfaces/python/Android.bp index b463690fab8b561333c76a96b8a7b4aee42c8357..886f7298c46c4cb401bc11979a91085a7e20f9c8 100644 --- a/pandora/interfaces/python/Android.bp +++ b/pandora/interfaces/python/Android.bp @@ -6,18 +6,18 @@ genrule { name: "pandora_experimental-python-gen-src", tools: [ "aprotoc", - "protoc-gen-pandora-python" + "protoc-gen-pandora-python", ], cmd: "$(location aprotoc)" + - " -Ipackages/modules/Bluetooth/pandora/interfaces" + - " -Iexternal/pandora/bt-test-interfaces" + - " -Iexternal/protobuf/src" + - " --plugin=protoc-gen-grpc=$(location protoc-gen-pandora-python)" + - " --python_out=$(genDir)" + - " --grpc_out=$(genDir)" + - " $(in) &&" + - "touch $(genDir)/pandora_experimental/py.typed &&" + - "touch $(genDir)/pandora_experimental/__init__.py", + " -Ipackages/modules/Bluetooth/pandora/interfaces" + + " -Iexternal/pandora/bt-test-interfaces" + + " -Iexternal/protobuf/src" + + " --plugin=protoc-gen-grpc=$(location protoc-gen-pandora-python)" + + " --python_out=$(genDir)" + + " --grpc_out=$(genDir)" + + " $(in) &&" + + "touch $(genDir)/pandora_experimental/py.typed &&" + + "touch $(genDir)/pandora_experimental/__init__.py", srcs: [ ":pandora-protos", ":pandora_experimental-protos", @@ -70,17 +70,17 @@ genrule { "pandora_experimental/rfcomm_grpc_aio.py", "pandora_experimental/rfcomm_pb2.py", "pandora_experimental/rfcomm_pb2.pyi", - ] + ], } filegroup { name: "pandora_experimental-python-src", srcs: [ - ":pandora_experimental-python-gen-src" + ":pandora_experimental-python-gen-src", ], exclude_srcs: [ ":pandora_experimental-python-stubs", - ] + ], } filegroup { @@ -107,5 +107,5 @@ python_library_host { libs: ["pandora-python"], data: [ ":pandora_experimental-python-stubs", - ] + ], } diff --git a/service/Android.bp b/service/Android.bp index 915f4233f9a917ae4f5b8c48072fe0a1fe831378..00f741078624d7198a38251193212f0daf6efc97 100644 --- a/service/Android.bp +++ b/service/Android.bp @@ -75,7 +75,7 @@ java_library { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } // service-bluetooth static library @@ -108,7 +108,7 @@ java_library { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } java_library { @@ -117,7 +117,7 @@ java_library { proto: { type: "stream", include_dirs: [ - "external/protobuf/src", + "external/protobuf/src", ], }, srcs: [ @@ -127,7 +127,7 @@ java_library { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } java_library { @@ -144,11 +144,12 @@ java_library { apex_available: [ "com.android.btservices", ], - lint: { strict_updatability_linting: true }, + lint: { + strict_updatability_linting: true, + }, } -platform_compat_config -{ +platform_compat_config { name: "bluetooth-compat-config", src: ":service-bluetooth-pre-jarjar", } diff --git a/sysprop/Android.bp b/sysprop/Android.bp index 67cc6eb5f571575288e567f0166bc06be25e9e47..f3842c8c3b7ddeb345d2b4f98f5a3c7aa7bcf076 100644 --- a/sysprop/Android.bp +++ b/sysprop/Android.bp @@ -3,18 +3,18 @@ package { } sysprop_library { - name: "com.android.sysprop.bluetooth", - host_supported: true, - srcs: [ - "avrcp.sysprop", - "bta.sysprop", - "hfp.sysprop", - "pan.sysprop", - ], - property_owner: "Platform", - api_packages: ["android.sysprop"], - cpp: { - min_sdk_version: "Tiramisu", - }, - apex_available: ["com.android.btservices"], + name: "com.android.sysprop.bluetooth", + host_supported: true, + srcs: [ + "avrcp.sysprop", + "bta.sysprop", + "hfp.sysprop", + "pan.sysprop", + ], + property_owner: "Platform", + api_packages: ["android.sysprop"], + cpp: { + min_sdk_version: "Tiramisu", + }, + apex_available: ["com.android.btservices"], } diff --git a/system/Android.bp b/system/Android.bp index d1afd9162ea5cb7d304f9b9a10d5075d8a98cdd7..1301406d92fabf00b0a6a49796c465d136cb8021 100644 --- a/system/Android.bp +++ b/system/Android.bp @@ -179,6 +179,6 @@ genrule { srcs: ["blueberry/facade/topshim/facade.proto"], out: [ "blueberry/facade/topshim/facade_pb2.py", - "blueberry/facade/topshim/facade_pb2_grpc.py" + "blueberry/facade/topshim/facade_pb2_grpc.py", ], } diff --git a/system/audio_hal_interface/Android.bp b/system/audio_hal_interface/Android.bp index 714ae08d6fa239beef0f91f5ea1e1ae6809ff236..7ba1bb5ec84140867144254bc39baef18b4bb34f 100644 --- a/system/audio_hal_interface/Android.bp +++ b/system/audio_hal_interface/Android.bp @@ -70,7 +70,7 @@ cc_library_static { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } // Bluetooth Audio client interface library unit tests for target and host diff --git a/system/bta/Android.bp b/system/bta/Android.bp index 315ca78f141168819f36fc972fd0fb7c28788018..da47f72d4a6023507294e4d1a780c1b5d5d469d4 100644 --- a/system/bta/Android.bp +++ b/system/bta/Android.bp @@ -39,15 +39,15 @@ cc_defaults { } 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_main.cc", - "dm/bta_dm_pm.cc", - ], + 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_main.cc", + "dm/bta_dm_pm.cc", + ], } // BTA static library for target @@ -137,7 +137,7 @@ cc_library_static { "LeAudioSetConfigSchemas_h", ], host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_library_static { @@ -179,7 +179,7 @@ cc_library_static { "libcom.android.sysprop.bluetooth", ], host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } // bta unit tests for target @@ -187,7 +187,7 @@ cc_test { name: "net_test_bta", defaults: [ "fluoride_bta_defaults", - "mts_defaults" + "mts_defaults", ], test_suites: ["device-tests"], srcs: [ @@ -336,7 +336,7 @@ cc_test { "packages/modules/Bluetooth/system/btif/include", "packages/modules/Bluetooth/system/osi/include", ], - srcs : [ + srcs: [ ":TestCommonMockFunctions", ":TestMockBtif", ":TestMockMainShimLeScanning", @@ -353,7 +353,7 @@ cc_test { shared_libs: [ "libcrypto", ], - static_libs : [ + static_libs: [ "crypto_toolbox_for_tests", "libgmock", "libbt-common", @@ -367,7 +367,7 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, } @@ -386,7 +386,7 @@ cc_test { "packages/modules/Bluetooth/system", "packages/modules/Bluetooth/system/bta/include", ], - srcs : [ + srcs: [ ":TestCommonMockFunctions", ":TestMockBtif", "groups/groups_test.cc", @@ -395,7 +395,7 @@ cc_test { shared_libs: [ "libcrypto", ], - static_libs : [ + static_libs: [ "crypto_toolbox_for_tests", "libgmock", "libbt-common", @@ -409,7 +409,7 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, } @@ -431,7 +431,7 @@ cc_test { "packages/modules/Bluetooth/system/gd", "packages/modules/Bluetooth/system/stack/include", ], - srcs : [ + srcs: [ ":TestCommonMockFunctions", ":TestMockOsi", "gatt/database.cc", @@ -448,12 +448,12 @@ cc_test { shared_libs: [ "libcrypto", ], - static_libs : [ + static_libs: [ "crypto_toolbox_for_tests", "libgmock", "libbt-common", "libbt-protos-lite", - "libosi" + "libosi", ], sanitize: { cfi: false, @@ -564,7 +564,7 @@ cc_test { "packages/modules/Bluetooth/system/gd", "packages/modules/Bluetooth/system/stack/include", ], - srcs : [ + srcs: [ ":TestCommonMockFunctions", ":TestMockBtaLeAudioHalVerifier", ":TestStubOsi", @@ -598,19 +598,19 @@ cc_test { ":audio_set_scenarios_bfbs", ":audio_set_scenarios_json", ":audio_set_configurations_bfbs", - ":audio_set_configurations_json" + ":audio_set_configurations_json", ], generated_headers: [ "LeAudioSetConfigSchemas_h", ], shared_libs: [ "libcrypto", - "liblog", // __android_log_print + "liblog", // __android_log_print "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "libhidlbase", ], - static_libs : [ + static_libs: [ "libgmock", "libbt-common", "libbt-protos-lite", @@ -639,7 +639,7 @@ cc_test { "packages/modules/Bluetooth/system/bta/test/common", "packages/modules/Bluetooth/system/stack/include", ], - srcs : [ + srcs: [ ":TestCommonMockFunctions", ":TestMockBtaLeAudioHalVerifier", ":TestStubOsi", @@ -676,7 +676,7 @@ cc_test { "libfmq", "libbinder_ndk", ], - static_libs : [ + static_libs: [ "libbt-audio-hal-interface", "crypto_toolbox_for_tests", "libgmock", @@ -710,7 +710,7 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, } @@ -734,7 +734,7 @@ cc_test { "packages/modules/Bluetooth/system/stack/include", "packages/modules/Bluetooth/system/stack/btm", ], - srcs : [ + srcs: [ "le_audio/broadcaster/broadcaster_types.cc", "le_audio/broadcaster/mock_ble_advertising_manager.cc", "le_audio/broadcaster/state_machine.cc", @@ -748,7 +748,7 @@ cc_test { shared_libs: [ "libcrypto", ], - static_libs : [ + static_libs: [ "libgmock", "libbt-common", "libbt-protos-lite", @@ -761,7 +761,7 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, } @@ -784,7 +784,7 @@ cc_test { "packages/modules/Bluetooth/system/stack/include", "packages/modules/Bluetooth/system/stack/btm", ], - srcs : [ + srcs: [ ":TestStubOsi", "le_audio/broadcaster/broadcaster.cc", "le_audio/broadcaster/broadcaster_test.cc", @@ -809,7 +809,7 @@ cc_test { "android.hardware.bluetooth.audio@2.1", "libhidlbase", ], - static_libs : [ + static_libs: [ "libbt-audio-hal-interface", "libgmock", "libbt-common", @@ -832,7 +832,7 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, } @@ -854,7 +854,7 @@ cc_test { "packages/modules/Bluetooth/system/bta/test/common", "packages/modules/Bluetooth/system/stack/include", ], - srcs : [ + srcs: [ "gatt/database.cc", "gatt/database_builder.cc", "has/has_client.cc", @@ -875,7 +875,7 @@ cc_test { shared_libs: [ "libcrypto", ], - static_libs : [ + static_libs: [ "crypto_toolbox_for_tests", "libgmock", "libbt-common", @@ -888,7 +888,7 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, } @@ -910,7 +910,7 @@ cc_test { "packages/modules/Bluetooth/system/bta/test/common", "packages/modules/Bluetooth/system/stack/include", ], - srcs : [ + srcs: [ ":TestMockMainShim", ":TestCommonLogMsg", ":TestCommonMainHandler", @@ -939,7 +939,7 @@ cc_test { shared_libs: [ "libcrypto", ], - static_libs : [ + static_libs: [ "crypto_toolbox_for_tests", "libgmock", "libbt-common", @@ -958,12 +958,12 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } diff --git a/system/btcore/Android.bp b/system/btcore/Android.bp index 62e112492683c1b9cf2c0fd6c480c3154e4fe740..aea11045d85da21d6f03e7833eb1e30679247800 100644 --- a/system/btcore/Android.bp +++ b/system/btcore/Android.bp @@ -59,12 +59,12 @@ cc_library_static { cc_library_static { name: "libbtcore", - visibility:[ + visibility: [ "//packages/apps/Test/connectivity/sl4n", "//packages/modules/Bluetooth:__subpackages__", ], defaults: ["libbtcore_defaults"], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_library_headers { diff --git a/system/btif/Android.bp b/system/btif/Android.bp index ed5822276aaa4caa5ffcd0fd6ab21f4d7ea0147f..3aacc0f502bb7c9a9bc64cae525fc4741eeb1e53 100644 --- a/system/btif/Android.bp +++ b/system/btif/Android.bp @@ -53,7 +53,7 @@ cc_library { "libstatssocket", ], export_shared_lib_headers: [ - "libstatssocket", + "libstatssocket", ], }, host: { @@ -73,16 +73,16 @@ cc_library { genrule { name: "statslog_bt.h", tools: ["stats-log-api-gen"], - cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_bt.h --module bluetooth" - + " --namespace bluetooth", + cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_bt.h --module bluetooth" + + " --namespace bluetooth", out: ["statslog_bt.h"], } genrule { name: "statslog_bt.cpp", tools: ["stats-log-api-gen"], - cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_bt.cpp --module bluetooth" - + " --namespace bluetooth --importHeader statslog_bt.h", + cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_bt.cpp --module bluetooth" + + " --namespace bluetooth --importHeader statslog_bt.h", out: ["statslog_bt.cpp"], } @@ -129,7 +129,7 @@ cc_library_static { "BluetoothGeneratedPackets_h", ], local_include_dirs: [ - "include" + "include", ], target: { android: { @@ -140,9 +140,9 @@ cc_library_static { }, host: { srcs: [ - "src/btif_avrcp_audio_track_linux.cc", - "src/btif_leaudio_hal_version_host.cc", - ], + "src/btif_avrcp_audio_track_linux.cc", + "src/btif_leaudio_hal_version_host.cc", + ], }, }, static_libs: [ @@ -160,7 +160,7 @@ cc_library_static { "-DBUILDCFG", ], host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_library_static { @@ -218,9 +218,9 @@ cc_library_static { }, host: { srcs: [ - "src/btif_avrcp_audio_track_linux.cc", - "src/btif_leaudio_hal_version_host.cc", - ], + "src/btif_avrcp_audio_track_linux.cc", + "src/btif_leaudio_hal_version_host.cc", + ], }, }, static_libs: [ @@ -236,7 +236,7 @@ cc_library_static { "-DBUILDCFG", ], host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } // btif unit tests for target @@ -290,7 +290,7 @@ cc_test { "libosi", "libprotobuf-cpp-lite", "libudrv-uipc", - ], + ], whole_static_libs: [ "libbluetooth-dumpsys", "libbluetooth-for-tests", @@ -340,7 +340,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -383,7 +383,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -455,7 +455,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -492,96 +492,97 @@ cc_test { "packages/modules/Bluetooth/system/vnd/include", "system/libfmq/include", "system/libhwbinder/include", - ], - srcs: [ - ":LibBluetoothSources", - ":TestCommonMainHandler", - ":TestCommonMockFunctions", - ":TestCommonCoreInterface", - ":TestMockAndroidHardware", - ":BtaDmSources", - ":TestMockBtaAg", - ":TestMockBtaAr", - ":TestMockBtaAv", - ":TestMockBtaCsis", - ":TestMockBtaGatt", - ":TestMockBtaGroups", - ":TestMockBtaHas", - ":TestMockBtaHd", - ":TestMockBtaHearingAid", - ":TestMockBtaHf", - ":TestMockBtaHh", - ":TestMockBtaJv", - ":TestMockBtaLeAudio", - ":TestMockBtaLeAudioHalVerifier", - ":TestMockBtaPan", - ":TestMockBtaSdp", - ":TestMockBtaSys", - ":TestMockBtaVc", - ":TestMockBtu", - ":TestMockBtcore", - ":TestMockCommon", - ":TestMockFrameworks", - ":TestMockHci", - ":TestMockMainShim", - ":TestMockOsi", - ":TestMockStack", - ":TestMockSystemLibfmq", - ":TestMockUdrv", - ":TestMockUtils", - "test/btif_hh_test.cc", - ], - generated_headers: [ + ], + srcs: [ + ":LibBluetoothSources", + ":TestCommonMainHandler", + ":TestCommonMockFunctions", + ":TestCommonCoreInterface", + ":TestMockAndroidHardware", + ":BtaDmSources", + ":TestMockBtaAg", + ":TestMockBtaAr", + ":TestMockBtaAv", + ":TestMockBtaCsis", + ":TestMockBtaGatt", + ":TestMockBtaGroups", + ":TestMockBtaHas", + ":TestMockBtaHd", + ":TestMockBtaHearingAid", + ":TestMockBtaHf", + ":TestMockBtaHh", + ":TestMockBtaJv", + ":TestMockBtaLeAudio", + ":TestMockBtaLeAudioHalVerifier", + ":TestMockBtaPan", + ":TestMockBtaSdp", + ":TestMockBtaSys", + ":TestMockBtaVc", + ":TestMockBtu", + ":TestMockBtcore", + ":TestMockCommon", + ":TestMockFrameworks", + ":TestMockHci", + ":TestMockMainShim", + ":TestMockOsi", + ":TestMockStack", + ":TestMockSystemLibfmq", + ":TestMockUdrv", + ":TestMockUtils", + "test/btif_hh_test.cc", + ], + generated_headers: [ "BluetoothGeneratedDumpsysDataSchema_h", "BluetoothGeneratedPackets_h", - ], - header_libs: ["libbluetooth_headers"], - shared_libs: [ - "android.hardware.bluetooth.audio@2.0", - "android.hardware.bluetooth.audio@2.1", - "libcrypto", - "libcutils", - "libhidlbase", - "liblog", - "libtinyxml2", - ], - static_libs: [ - "android.hardware.bluetooth.a2dp@1.0", - "avrcp-target-service", - "libaudio-a2dp-hw-utils", - "libbluetooth-types", - "libbt-audio-hal-interface", - "libbt-sbc-decoder", - "libbt-sbc-encoder", - "libbt-stack", - "libbt-stack-core", - "libbtif", - "libbtif-core", - "libbtdevice", - "lib-bt-packets", - "lib-bt-packets-avrcp", - "lib-bt-packets-base", - "libcom.android.sysprop.bluetooth", - "libc++fs", - "libflatbuffers-cpp", - "libgmock", - ], - cflags: ["-DBUILDCFG"], - target: { - android: { - shared_libs: [ - "libbinder_ndk", - "android.hardware.bluetooth.audio-V3-ndk", - ], - test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - }, - }, - sanitize: { + ], + header_libs: ["libbluetooth_headers"], + shared_libs: [ + "android.hardware.bluetooth.audio@2.0", + "android.hardware.bluetooth.audio@2.1", + "libcrypto", + "libcutils", + "libhidlbase", + "liblog", + "libtinyxml2", + ], + static_libs: [ + "android.hardware.bluetooth.a2dp@1.0", + "avrcp-target-service", + "libaudio-a2dp-hw-utils", + "libbluetooth-types", + "libbt-audio-hal-interface", + "libbt-sbc-decoder", + "libbt-sbc-encoder", + "libbt-stack", + "libbt-stack-core", + "libbtif", + "libbtif-core", + "libbtdevice", + "lib-bt-packets", + "lib-bt-packets-avrcp", + "lib-bt-packets-base", + "libcom.android.sysprop.bluetooth", + "libc++fs", + "libflatbuffers-cpp", + "libgmock", + ], + cflags: ["-DBUILDCFG"], + target: { + android: { + shared_libs: [ + "libbinder_ndk", + "android.hardware.bluetooth.audio-V3-ndk", + ], + test_config_template: ":BluetoothGTestNotShardableConfigTemplate", + }, + }, + sanitize: { address: true, cfi: true, misc_undefined: ["bounds"], }, } + // Cycle stack test cc_test { name: "net_test_btif_stack", @@ -616,90 +617,90 @@ cc_test { "packages/modules/Bluetooth/system/vnd/include", "system/libfmq/include", "system/libhwbinder/include", - ], - srcs: [ - ":LibBluetoothSources", - ":OsiCompatSources", - ":TestCommonMainHandler", - ":TestCommonMockFunctions", - ":TestCommonCoreInterface", - ":TestMockAndroidHardware", - ":BtaDmSources", - ":TestMockBtaAg", - ":TestMockBtaAr", - ":TestMockBtaAv", - ":TestMockBtaCsis", - ":TestMockBtaGatt", - ":TestMockBtaGroups", - ":TestMockBtaHas", - ":TestMockBtaHd", - ":TestMockBtaHearingAid", - ":TestMockBtaHf", - ":TestMockBtaHh", - ":TestMockBtaJv", - ":TestMockBtaLeAudio", - ":TestMockBtaLeAudioHalVerifier", - ":TestMockBtaPan", - ":TestMockBtaSdp", - ":TestMockBtaSys", - ":TestMockBtaVc", - ":TestMockBtu", - ":TestMockBtcore", - ":TestMockCommon", - ":TestMockFrameworks", - ":TestMockHci", - ":TestMockMainShim", - ":TestMockOsi", - ":TestMockStack", - ":TestMockSystemLibfmq", - ":TestMockUdrv", - ":TestMockUtils", - "test/btif_core_test.cc", - ], - generated_headers: [ + ], + srcs: [ + ":LibBluetoothSources", + ":OsiCompatSources", + ":TestCommonMainHandler", + ":TestCommonMockFunctions", + ":TestCommonCoreInterface", + ":TestMockAndroidHardware", + ":BtaDmSources", + ":TestMockBtaAg", + ":TestMockBtaAr", + ":TestMockBtaAv", + ":TestMockBtaCsis", + ":TestMockBtaGatt", + ":TestMockBtaGroups", + ":TestMockBtaHas", + ":TestMockBtaHd", + ":TestMockBtaHearingAid", + ":TestMockBtaHf", + ":TestMockBtaHh", + ":TestMockBtaJv", + ":TestMockBtaLeAudio", + ":TestMockBtaLeAudioHalVerifier", + ":TestMockBtaPan", + ":TestMockBtaSdp", + ":TestMockBtaSys", + ":TestMockBtaVc", + ":TestMockBtu", + ":TestMockBtcore", + ":TestMockCommon", + ":TestMockFrameworks", + ":TestMockHci", + ":TestMockMainShim", + ":TestMockOsi", + ":TestMockStack", + ":TestMockSystemLibfmq", + ":TestMockUdrv", + ":TestMockUtils", + "test/btif_core_test.cc", + ], + generated_headers: [ "BluetoothGeneratedDumpsysDataSchema_h", "BluetoothGeneratedPackets_h", - ], - header_libs: ["libbluetooth_headers"], - shared_libs: [ - "android.hardware.bluetooth.audio@2.0", - "android.hardware.bluetooth.audio@2.1", - "libcrypto", - "libcutils", - "libhidlbase", - "liblog", - "libtinyxml2", - ], - static_libs: [ - "android.hardware.bluetooth.a2dp@1.0", - "avrcp-target-service", - "libaudio-a2dp-hw-utils", - "libbluetooth-types", - "libbt-audio-hal-interface", - "libbt-sbc-decoder", - "libbt-sbc-encoder", - "libbtif", - "libbtif-core", - "libbtdevice", - "lib-bt-packets", - "lib-bt-packets-avrcp", - "lib-bt-packets-base", - "libcom.android.sysprop.bluetooth", - "libc++fs", - "libflatbuffers-cpp", - "libgmock", - ], - cflags: ["-DBUILDCFG"], - target: { - android: { - shared_libs: [ - "libbinder_ndk", - "android.hardware.bluetooth.audio-V3-ndk", - ], - test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - }, - }, - sanitize: { + ], + header_libs: ["libbluetooth_headers"], + shared_libs: [ + "android.hardware.bluetooth.audio@2.0", + "android.hardware.bluetooth.audio@2.1", + "libcrypto", + "libcutils", + "libhidlbase", + "liblog", + "libtinyxml2", + ], + static_libs: [ + "android.hardware.bluetooth.a2dp@1.0", + "avrcp-target-service", + "libaudio-a2dp-hw-utils", + "libbluetooth-types", + "libbt-audio-hal-interface", + "libbt-sbc-decoder", + "libbt-sbc-encoder", + "libbtif", + "libbtif-core", + "libbtdevice", + "lib-bt-packets", + "lib-bt-packets-avrcp", + "lib-bt-packets-base", + "libcom.android.sysprop.bluetooth", + "libc++fs", + "libflatbuffers-cpp", + "libgmock", + ], + cflags: ["-DBUILDCFG"], + target: { + android: { + shared_libs: [ + "libbinder_ndk", + "android.hardware.bluetooth.audio-V3-ndk", + ], + test_config_template: ":BluetoothGTestNotShardableConfigTemplate", + }, + }, + sanitize: { address: true, cfi: true, misc_undefined: ["bounds"], diff --git a/system/build/Android.bp b/system/build/Android.bp index 0f772087d59094e97333a09078bfdd2896417c35..feed3d255841b6bab718be8268f2075362958f19 100644 --- a/system/build/Android.bp +++ b/system/build/Android.bp @@ -39,7 +39,7 @@ cc_defaults { "libevent", ], shared_libs: [ - "libbase", + "libbase", ], target: { darwin: { @@ -50,7 +50,7 @@ cc_defaults { "libcutils", "liblog", ], - } + }, }, } @@ -66,7 +66,6 @@ cc_defaults { }, } - // Fuzzable defaults are the subset of defaults that are used in fuzzing, which // requires no shared libraries, and no explicit sanitization. cc_defaults { @@ -95,7 +94,7 @@ cc_defaults { name: "fluoride_types_defaults", defaults: [ "fluoride_types_defaults_fuzzable", - "libchrome_support_defaults" + "libchrome_support_defaults", ], } @@ -111,15 +110,18 @@ cc_defaults { host: { static_libs: [ "libcutils", - ] - } + ], + }, }, defaults: ["fluoride_types_defaults_fuzzable"], - header_libs: ["libbluetooth_headers", "libbt_callbacks_cxx_headers"], + header_libs: [ + "libbluetooth_headers", + "libbt_callbacks_cxx_headers", + ], generated_headers: [ "libbt_shim_bridge_header", "libbt_message_loop_thread_bridge_header", - "cxx-bridge-header" + "cxx-bridge-header", ], include_dirs: ["packages/modules/Bluetooth/system/gd/rust/shim"], static_libs: [ @@ -176,7 +178,10 @@ cc_defaults { cc_defaults { name: "fluoride_basic_defaults", - defaults: ["fluoride_test_prod_shared_defaults", "libchrome_support_defaults"], + defaults: [ + "fluoride_test_prod_shared_defaults", + "libchrome_support_defaults", + ], apex_available: [ "//apex_available:platform", "com.android.btservices", @@ -279,7 +284,10 @@ cc_defaults { cc_defaults { name: "fluoride_defaults", - defaults: ["fluoride_defaults_fuzzable", "fluoride_types_defaults"], + defaults: [ + "fluoride_defaults_fuzzable", + "fluoride_types_defaults", + ], static_libs: [ "libbluetooth_gd", "libbluetooth_rust_interop", diff --git a/system/common/Android.bp b/system/common/Android.bp index fb97fe33d8811975f7b3726c25274cf6e3f44a93..18aa470498f56daddf5e9c5e9e35b42df7d5ef1f 100644 --- a/system/common/Android.bp +++ b/system/common/Android.bp @@ -38,7 +38,7 @@ cc_library_static { srcs: ["metrics_linux.cc"], }, }, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_test { diff --git a/system/conf/Android.bp b/system/conf/Android.bp index d7b43de394ca3e94378be2539c90e4ed3d963c33..607ab34067a34d93eda9943ee405fa852289c6a9 100644 --- a/system/conf/Android.bp +++ b/system/conf/Android.bp @@ -26,4 +26,4 @@ prebuilt_etc { name: "interop_database.conf", src: "interop_database.conf", sub_dir: "bluetooth", -} \ No newline at end of file +} diff --git a/system/device/Android.bp b/system/device/Android.bp index 45654d6acf98c02010c6ef5e379842d0b373b45a..c46929f45db25bab692c4e5f214bfd4c908528e0 100644 --- a/system/device/Android.bp +++ b/system/device/Android.bp @@ -28,7 +28,7 @@ cc_library_static { "src/device_iot_config.cc", "src/device_iot_config_int.cc", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } // Bluetooth device unit tests for target @@ -89,4 +89,4 @@ cc_test { "libosi-AllocationTestHarness", "libbluetooth-types", ], -} \ No newline at end of file +} diff --git a/system/device/fuzzer/Android.bp b/system/device/fuzzer/Android.bp index 4d2ec62cc7eb7eff763dcf163fddc0d287bf5811..ab9039b07ce21af9259e09f6a308d442159a6403 100644 --- a/system/device/fuzzer/Android.bp +++ b/system/device/fuzzer/Android.bp @@ -47,7 +47,7 @@ cc_fuzz { "-DBUILDCFG", ], fuzz_config: { - cc: ["android-bluetooth-security@google.com"], - componentid: 27441, + cc: ["android-bluetooth-security@google.com"], + componentid: 27441, }, } diff --git a/system/embdrv/encoder_for_aptx/Android.bp b/system/embdrv/encoder_for_aptx/Android.bp index f71a84a93dd15ff06b01fd7c29477ed6f770186d..956b6107efd87a986008c83d4fb61be74f3004d2 100644 --- a/system/embdrv/encoder_for_aptx/Android.bp +++ b/system/embdrv/encoder_for_aptx/Android.bp @@ -32,7 +32,12 @@ cc_library_static { "src/QmfConv.c", "src/QuantiseDifference.c", ], - cflags: ["-O2", "-Werror", "-Wall", "-Wextra"], + cflags: [ + "-O2", + "-Werror", + "-Wall", + "-Wextra", + ], tidy: true, tidy_checks: tidy_errors, tidy_checks_as_errors: tidy_errors, diff --git a/system/embdrv/encoder_for_aptxhd/Android.bp b/system/embdrv/encoder_for_aptxhd/Android.bp index 118ab8ce681a78faecace056c4fdd9c147b2b89a..652b4ae9d1deb4a4103125471517ebb9cdbd5c38 100644 --- a/system/embdrv/encoder_for_aptxhd/Android.bp +++ b/system/embdrv/encoder_for_aptxhd/Android.bp @@ -32,7 +32,12 @@ cc_library_static { "src/QmfConv.c", "src/QuantiseDifference.c", ], - cflags: ["-O2", "-Werror", "-Wall", "-Wextra"], + cflags: [ + "-O2", + "-Werror", + "-Wall", + "-Wextra", + ], tidy: true, tidy_checks: tidy_errors, tidy_checks_as_errors: tidy_errors, diff --git a/system/embdrv/g722/Android.bp b/system/embdrv/g722/Android.bp index f90d90985d719de44e6baf4a831ac6c332facbe7..53a7b2b140e882d9179ba4a1372d743c31baa799 100644 --- a/system/embdrv/g722/Android.bp +++ b/system/embdrv/g722/Android.bp @@ -24,5 +24,5 @@ cc_library_static { "//apex_available:platform", "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } diff --git a/system/embdrv/lc3/Android.bp b/system/embdrv/lc3/Android.bp index 6f92aee786e46b6ead893077c4bdd0f9b898c568..8952144950c19c704e2fb1f9831f315dc9fae57d 100644 --- a/system/embdrv/lc3/Android.bp +++ b/system/embdrv/lc3/Android.bp @@ -12,7 +12,7 @@ cc_library_static { host_supported: true, apex_available: [ - "com.android.btservices" + "com.android.btservices", ], defaults: ["fluoride_defaults"], srcs: [ @@ -28,36 +28,35 @@ cc_library_static { "-Wno-implicit-fallthrough", ], target: { - android: { + android: { sanitize: { - misc_undefined:[ - "unsigned-integer-overflow", - "signed-integer-overflow", - "bounds", + misc_undefined: [ + "unsigned-integer-overflow", + "signed-integer-overflow", + "bounds", ], cfi: true, }, - }, + }, }, export_include_dirs: [ "include", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_fuzz { - name: "liblc3_fuzzer", + name: "liblc3_fuzzer", - srcs: [ - "fuzzer/liblc3_fuzzer.cpp", - ], + srcs: [ + "fuzzer/liblc3_fuzzer.cpp", + ], - static_libs: [ - "liblc3", - ], + static_libs: [ + "liblc3", + ], } - cc_binary { name: "lc3_encoder", host_supported: true, @@ -82,4 +81,4 @@ cc_binary { static_libs: [ "liblc3", ], -} \ No newline at end of file +} diff --git a/system/embdrv/sbc/decoder/Android.bp b/system/embdrv/sbc/decoder/Android.bp index c05795fdd4a0e75b5eec093c1ad3f396ae404ecf..b6c8646bb066134a644dcee1ab9e0f1daf24565a 100644 --- a/system/embdrv/sbc/decoder/Android.bp +++ b/system/embdrv/sbc/decoder/Android.bp @@ -35,7 +35,7 @@ cc_library_static { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_fuzz { diff --git a/system/embdrv/sbc/encoder/Android.bp b/system/embdrv/sbc/encoder/Android.bp index 5ab7f3a8000c36334c7aa5da6d748d6f6ab643bd..e1140664898659f8456521d4fc7b29bcb4e4a768 100644 --- a/system/embdrv/sbc/encoder/Android.bp +++ b/system/embdrv/sbc/encoder/Android.bp @@ -33,5 +33,5 @@ cc_library_static { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } diff --git a/system/embdrv/tests/Android.bp b/system/embdrv/tests/Android.bp index f12093120004894382733848eb0fd254f3780b07..065569bcbb8325a2190a438b99da4bc56f50b490 100644 --- a/system/embdrv/tests/Android.bp +++ b/system/embdrv/tests/Android.bp @@ -17,8 +17,8 @@ cc_test { test_options: { unit_test: true, }, - srcs: [ "src/aptx.cc" ], - whole_static_libs: [ "libaptx_enc" ], + srcs: ["src/aptx.cc"], + whole_static_libs: ["libaptx_enc"], sanitize: { address: true, cfi: true, @@ -36,8 +36,8 @@ cc_test { test_options: { unit_test: true, }, - srcs: [ "src/aptxhd.cc" ], - whole_static_libs: [ "libaptxhd_enc" ], + srcs: ["src/aptxhd.cc"], + whole_static_libs: ["libaptxhd_enc"], sanitize: { address: true, cfi: true, diff --git a/system/gd/Android.bp b/system/gd/Android.bp index c95f46405c90672e7649b9028848e5b483012586..30dba93d45a7b636580ea1277fdef7b4b288ef31 100644 --- a/system/gd/Android.bp +++ b/system/gd/Android.bp @@ -95,11 +95,11 @@ cc_defaults { "-google*", "-performance*", "-bugprone*", - "-cert-dcl21-cpp", // warning: overloaded returns a non-constant object instead of a constant object type - "-cert-dcl59-cpp", // warning: do not use unnamed namespaces in header files - "-cert-oop54-cpp", // warning: operator=() does not handle self-assignment properly - "-cert-msc50-cpp", // warning: rand() has limited randomness; use C++11 random library instead - "-cert-msc30-c", // warning: rand() has limited randomness; use C++11 random library instead + "-cert-dcl21-cpp", // warning: overloaded returns a non-constant object instead of a constant object type + "-cert-dcl59-cpp", // warning: do not use unnamed namespaces in header files + "-cert-oop54-cpp", // warning: operator=() does not handle self-assignment properly + "-cert-msc50-cpp", // warning: rand() has limited randomness; use C++11 random library instead + "-cert-msc30-c", // warning: rand() has limited randomness; use C++11 random library instead ], tidy_checks_as_errors: [ "cppcoreguidelines-pro-type-member-init", @@ -127,7 +127,7 @@ cc_defaults { tidy_checks: [ "-android-cloexec-pipe2", // warning: 'pipe2' should use O_CLOEXEC where possible "-android-cloexec-accept", // warning: prefer accept4() to accept() because accept4() allows SOCK_CLOEXEC - "-android-cloexec-socket", // warning: 'pipe2' should use O_CLOEXEC where possible + "-android-cloexec-socket", // warning: 'pipe2' should use O_CLOEXEC where possible ], } @@ -221,7 +221,7 @@ cc_defaults { "packages/modules/Bluetooth/system/include", "packages/modules/Bluetooth/system/types", ], - export_static_lib_headers: [ "libbluetooth_rust_interop" ], + export_static_lib_headers: ["libbluetooth_rust_interop"], } cc_library { @@ -339,7 +339,7 @@ cc_binary { sanitize: { address: true, cfi: true, - } + }, } cc_test { @@ -550,8 +550,8 @@ cc_fuzz { ":BluetoothL2capFuzzTestSources", ], fuzz_config: { - cc: ["android-bluetooth-security@google.com"], - componentid: 27441, + cc: ["android-bluetooth-security@google.com"], + componentid: 27441, }, } @@ -571,8 +571,8 @@ cc_fuzz { "hci/fuzz/acl_manager_fuzz_test.cc", ], fuzz_config: { - cc: ["android-bluetooth-security@google.com"], - componentid: 27441, + cc: ["android-bluetooth-security@google.com"], + componentid: 27441, }, } @@ -580,7 +580,7 @@ cc_benchmark { name: "bluetooth_benchmark_gd", defaults: [ "gd_defaults", - "libchrome_support_defaults" + "libchrome_support_defaults", ], host_supported: true, srcs: [ @@ -638,9 +638,12 @@ rust_library { name: "libbt_packets", defaults: ["gd_rust_defaults"], crate_name: "bt_packets", - srcs: ["rust/packets/lib.rs", ":BluetoothGeneratedPackets_rust"], + srcs: [ + "rust/packets/lib.rs", + ":BluetoothGeneratedPackets_rust", + ], edition: "2018", - vendor_available : true, + vendor_available: true, host_supported: true, proc_macros: ["libnum_derive"], rustlibs: [ @@ -659,9 +662,12 @@ rust_library { name: "libbt_packets_nonapex", defaults: ["gd_rust_defaults"], crate_name: "bt_packets", - srcs: ["rust/packets/lib.rs", ":BluetoothGeneratedPackets_rust"], + srcs: [ + "rust/packets/lib.rs", + ":BluetoothGeneratedPackets_rust", + ], edition: "2018", - vendor_available : true, + vendor_available: true, host_supported: true, proc_macros: ["libnum_derive"], rustlibs: [ @@ -679,7 +685,10 @@ rust_test_host { "gd_rust_defaults", "mts_defaults", ], - srcs: ["rust/packets/lib.rs", ":BluetoothGeneratedPackets_rust"], + srcs: [ + "rust/packets/lib.rs", + ":BluetoothGeneratedPackets_rust", + ], test_suites: ["general-tests"], edition: "2018", proc_macros: ["libnum_derive"], @@ -712,7 +721,10 @@ rust_test_host { "gd_rust_defaults", "mts_defaults", ], - srcs: ["rust/packets/test_lib.rs", ":TestGeneratedPackets_rust"], + srcs: [ + "rust/packets/test_lib.rs", + ":TestGeneratedPackets_rust", + ], test_suites: ["general-tests"], edition: "2018", proc_macros: ["libnum_derive"], @@ -924,15 +936,14 @@ cc_library_host_shared { // hci_packets.pdl. genrule { name: "gd_hci_packets_python3_gen", - defaults: [ "pdl_python_generator_defaults" ], + defaults: ["pdl_python_generator_defaults"], cmd: "$(location :pdl) $(in) |" + " $(location :pdl_python_generator)" + " --output $(out) --custom-type-location blueberry.utils.bluetooth", srcs: [ ":BluetoothHciPackets", ], - out: [ + out: [ "hci_packets.py", ], } - diff --git a/system/gd/common/testing/Android.bp b/system/gd/common/testing/Android.bp index f72aee547c3ba5e835cc1e8e921617f4efc32bbb..a4c795dc69dd8195bc2ea08a6a2f5a0fe8658e31 100644 --- a/system/gd/common/testing/Android.bp +++ b/system/gd/common/testing/Android.bp @@ -10,27 +10,27 @@ package { filegroup { name: "BluetoothAndroidTestingLogCapture", srcs: [ - "android/log_capture.cc", - ], + "android/log_capture.cc", + ], } filegroup { name: "BluetoothAndroidTestingLogCaptureTest", srcs: [ - "android/log_capture_test.cc", + "android/log_capture_test.cc", ], } filegroup { name: "BluetoothHostTestingLogCapture", srcs: [ - "host/log_capture.cc", - ], + "host/log_capture.cc", + ], } filegroup { name: "BluetoothHostTestingLogCaptureTest", srcs: [ - "host/log_capture_test.cc", + "host/log_capture_test.cc", ], } diff --git a/system/gd/crypto_toolbox/Android.bp b/system/gd/crypto_toolbox/Android.bp index c89a0a9bc8869252f402bff5b918fce7c8dd6c34..671508d37b0ef6423ab8c6a21feb66a2b1a1d2a5 100644 --- a/system/gd/crypto_toolbox/Android.bp +++ b/system/gd/crypto_toolbox/Android.bp @@ -14,12 +14,12 @@ filegroup { "aes.cc", "aes_cmac.cc", "crypto_toolbox.cc", - ] + ], } filegroup { name: "BluetoothCryptoToolboxTestSources", srcs: [ "crypto_toolbox_test.cc", - ] + ], } diff --git a/system/gd/dumpsys/Android.bp b/system/gd/dumpsys/Android.bp index a9f04b8c0055b6a5b8b2f2a2b01dc0f04df44515..d644a7d52d205e205b34bfa51b8d75d35fc214b8 100644 --- a/system/gd/dumpsys/Android.bp +++ b/system/gd/dumpsys/Android.bp @@ -83,7 +83,7 @@ genrule { ":BluetoothGeneratedDumpsysBinarySchema_bfbs", ], out: [ - "dumpsys_module_schema_data.cc", + "dumpsys_module_schema_data.cc", ], } @@ -91,14 +91,14 @@ genrule { name: "BluetoothGeneratedDumpsysBundledSchema_cc", visibility: ["//visibility:private"], tools: [ - "bluetooth_flatbuffer_bundler", + "bluetooth_flatbuffer_bundler", ], cmd: "$(location bluetooth_flatbuffer_bundler) -w -m bluetooth.DumpsysData -f generated_dumpsys_bundled_schema -n bluetooth::dumpsys -g $(genDir) $(locations :BluetoothGeneratedDumpsysBinarySchema_bfbs)", srcs: [ ":BluetoothGeneratedDumpsysBinarySchema_bfbs", ], out: [ - "generated_dumpsys_bundled_schema.cc", + "generated_dumpsys_bundled_schema.cc", ], } @@ -106,14 +106,14 @@ genrule { name: "BluetoothGeneratedDumpsysBundledTestSchema_cc", visibility: ["//visibility:private"], tools: [ - "bluetooth_flatbuffer_bundler", + "bluetooth_flatbuffer_bundler", ], cmd: "$(location bluetooth_flatbuffer_bundler) -w -m testing.DumpsysTestDataRoot -f generated_dumpsys_bundled_test_schema -n testing -g $(genDir) $(locations :BluetoothGeneratedDumpsysTestData_bfbs)", srcs: [ ":BluetoothGeneratedDumpsysTestData_bfbs", ], out: [ - "generated_dumpsys_bundled_test_schema.cc", + "generated_dumpsys_bundled_test_schema.cc", ], } @@ -127,7 +127,8 @@ genrule { "bluetooth_flatbuffer_test.fbs", ], out: [ - "bluetooth_flatbuffer_test_generated.h", "bluetooth_flatbuffer_test.bfbs", + "bluetooth_flatbuffer_test_generated.h", + "bluetooth_flatbuffer_test.bfbs", ], } @@ -158,7 +159,7 @@ cc_library { ], generated_sources: [ "BluetoothGeneratedDumpsysBundledTestSchema_cc", - ], + ], } cc_library { @@ -171,13 +172,16 @@ cc_library { ], generated_headers: [ "BluetoothGeneratedDumpsysTestSchema_cc", - ], + ], } cc_test { name: "bluetooth_flatbuffer_tests", test_suites: ["device-tests"], - defaults: ["fluoride_common_options", "mts_defaults"], + defaults: [ + "fluoride_common_options", + "mts_defaults", + ], host_supported: true, test_options: { unit_test: true, diff --git a/system/gd/dumpsys/bundler/Android.bp b/system/gd/dumpsys/bundler/Android.bp index 542c7c49fdba45cdd36d1004680941469d76db33..331f9256dc94e77178f0cba7c782c689723149b7 100644 --- a/system/gd/dumpsys/bundler/Android.bp +++ b/system/gd/dumpsys/bundler/Android.bp @@ -41,7 +41,8 @@ genrule { "bundler_schema.fbs", ], out: [ - "bundler_schema_generated.h", "bundler_schema.bfbs", + "bundler_schema_generated.h", + "bundler_schema.bfbs", ], } diff --git a/system/gd/hci/Android.bp b/system/gd/hci/Android.bp index 74efb8c88c8587c4b5bdf486df2399d1ba7719a6..88c0dd233ebff0c78b1ecac5280e4b922edb666b 100644 --- a/system/gd/hci/Android.bp +++ b/system/gd/hci/Android.bp @@ -107,5 +107,5 @@ filegroup { name: "BluetoothHciPackets", srcs: [ "hci_packets.pdl", - ] + ], } diff --git a/system/gd/iso/Android.bp b/system/gd/iso/Android.bp index 6d07c39f3c75dbbc415a72c979a6c9d5704169a0..fabab23b285536c47423256e8247af93cb2c4bd2 100644 --- a/system/gd/iso/Android.bp +++ b/system/gd/iso/Android.bp @@ -10,9 +10,9 @@ package { filegroup { name: "BluetoothIsoSources", srcs: [ - "iso_manager.cc", - "iso_module.cc", - "internal/iso_manager_impl.cc", + "iso_manager.cc", + "iso_module.cc", + "internal/iso_manager_impl.cc", ], } diff --git a/system/gd/l2cap/fuzz/Android.bp b/system/gd/l2cap/fuzz/Android.bp index 1b7ea2cfe0f983b4811cae5f97c4f40308e8533e..179c46e833e62b00d681bf8ee89a2dcc9deff358 100644 --- a/system/gd/l2cap/fuzz/Android.bp +++ b/system/gd/l2cap/fuzz/Android.bp @@ -40,7 +40,7 @@ cc_fuzz { "libbte", ], fuzz_config: { - cc: ["android-bluetooth-security@google.com"], - componentid: 27441, + cc: ["android-bluetooth-security@google.com"], + componentid: 27441, }, } diff --git a/system/gd/neighbor/Android.bp b/system/gd/neighbor/Android.bp index 80ba7d25edbd84f39c0c0a7a9233631ba9fdb048..267a3f3a02d1af8782d6818ac722b18dcc6bc0fe 100644 --- a/system/gd/neighbor/Android.bp +++ b/system/gd/neighbor/Android.bp @@ -10,19 +10,19 @@ package { filegroup { name: "BluetoothNeighborSources", srcs: [ - "connectability.cc", - "discoverability.cc", - "inquiry.cc", - "name_db.cc", - "page.cc", - "scan.cc", + "connectability.cc", + "discoverability.cc", + "inquiry.cc", + "name_db.cc", + "page.cc", + "scan.cc", ], } filegroup { name: "BluetoothNeighborTestSources", srcs: [ - "inquiry_test.cc", + "inquiry_test.cc", ], } diff --git a/system/gd/os/Android.bp b/system/gd/os/Android.bp index 36aefdbc11ac2e16d58f15ea82f433c508229d79..25f34ecfb311a84895da6f8fc60fddde784802f2 100644 --- a/system/gd/os/Android.bp +++ b/system/gd/os/Android.bp @@ -56,7 +56,6 @@ filegroup { ], } - filegroup { name: "BluetoothOsSources_linux_generic", srcs: [ @@ -84,11 +83,11 @@ filegroup { } filegroup { -name: "BluetoothOsBenchmarkSources", - srcs: [ - "alarm_benchmark.cc", - "thread_benchmark.cc", - "queue_benchmark.cc", + name: "BluetoothOsBenchmarkSources", + srcs: [ + "alarm_benchmark.cc", + "thread_benchmark.cc", + "queue_benchmark.cc", ], } diff --git a/system/gd/rust/common/Android.bp b/system/gd/rust/common/Android.bp index e60f145f0eeb59b3231e92ab98cd480dd714d01f..5905108abc9fa73461fc8f6ddba692889e2c8c32 100644 --- a/system/gd/rust/common/Android.bp +++ b/system/gd/rust/common/Android.bp @@ -7,39 +7,38 @@ package { default_applicable_licenses: ["system_bt_license"], } - rust_library { - name : "libbt_common", - defaults: ["libbt_common_defaults"], - rustlibs: [ - "libtokio", - "libnix", - "liblazy_static", - "liblog_rust", - "libcxx", - "libgrpcio", - ], - target: { - android: { - rustlibs: [ - "libandroid_logger", - "librustutils", - ], - shared_libs: [ - "libcutils", - ], - }, - host: { - rustlibs: [ - "libenv_logger", - ], - }, - }, - apex_available: [ - "//apex_available:platform", - "com.android.btservices", - ], - min_sdk_version: "Tiramisu", + name: "libbt_common", + defaults: ["libbt_common_defaults"], + rustlibs: [ + "libtokio", + "libnix", + "liblazy_static", + "liblog_rust", + "libcxx", + "libgrpcio", + ], + target: { + android: { + rustlibs: [ + "libandroid_logger", + "librustutils", + ], + shared_libs: [ + "libcutils", + ], + }, + host: { + rustlibs: [ + "libenv_logger", + ], + }, + }, + apex_available: [ + "//apex_available:platform", + "com.android.btservices", + ], + min_sdk_version: "Tiramisu", } rust_defaults { @@ -74,13 +73,13 @@ rust_ffi_static { name: "libbt_common_ffi", defaults: ["libbt_common_defaults"], target: { - android: { - rustlibs: [ - "librustutils", - "libandroid_logger", - ] - }, - }, + android: { + rustlibs: [ + "librustutils", + "libandroid_logger", + ], + }, + }, apex_available: [ "com.android.btservices", ], @@ -121,13 +120,18 @@ cc_library_static { min_sdk_version: "30", } - cc_library_static { name: "libbt_keystore_cc", - defaults: ["rust_static_cc_lib_defaults", "gd_ffi_defaults"], + defaults: [ + "rust_static_cc_lib_defaults", + "gd_ffi_defaults", + ], header_libs: ["libbt_keystore_cc_headers"], srcs: ["keystore/fake_bt_keystore.cc"], - generated_headers: ["libbt_common_bridge_header", "cxx-bridge-header"], + generated_headers: [ + "libbt_common_bridge_header", + "cxx-bridge-header", + ], generated_sources: ["libbt_common_bridge_code"], shared_libs: [ "libchrome", diff --git a/system/gd/rust/facade/Android.bp b/system/gd/rust/facade/Android.bp index b7b87a38f75336480b15839aa57700c88e8f9d7f..a79b958ba89c7368454f8272bd82f3ef11114cb4 100644 --- a/system/gd/rust/facade/Android.bp +++ b/system/gd/rust/facade/Android.bp @@ -14,14 +14,14 @@ rust_library { srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ - "libbluetooth_rs", - "libbt_facade_proto", - "libfutures", - "libgrpcio", - "libprotobuf", - "libtokio", - "libgddi", - "liblog_rust", + "libbluetooth_rs", + "libbt_facade_proto", + "libfutures", + "libgrpcio", + "libprotobuf", + "libtokio", + "libgddi", + "liblog_rust", ], } @@ -31,15 +31,15 @@ rust_binary { srcs: ["src/main.rs"], edition: "2018", rustlibs: [ - "libclap", - "libbluetooth_with_facades", - "libfutures", - "libgrpcio", - "liblazy_static", - "libtokio", - "libnix", - "libbt_common", - "liblog_rust", + "libclap", + "libbluetooth_with_facades", + "libfutures", + "libgrpcio", + "liblazy_static", + "libtokio", + "libnix", + "libbt_common", + "liblog_rust", ], } @@ -49,15 +49,15 @@ rust_test { srcs: ["src/main.rs"], edition: "2018", rustlibs: [ - "libclap", - "libbluetooth_with_facades", - "libfutures", - "libgrpcio", - "liblazy_static", - "libtokio", - "libnix", - "libbt_common", - "liblog_rust", + "libclap", + "libbluetooth_with_facades", + "libfutures", + "libgrpcio", + "liblazy_static", + "libtokio", + "libnix", + "libbt_common", + "liblog_rust", ], test_suites: ["general-tests"], } diff --git a/system/gd/rust/shim/Android.bp b/system/gd/rust/shim/Android.bp index 23fdeba7f69a566b6f66950ad83ad1f47fdfc906..700b0cb4910c4d7bfdd2878a22561ac9f637264c 100644 --- a/system/gd/rust/shim/Android.bp +++ b/system/gd/rust/shim/Android.bp @@ -70,7 +70,7 @@ cc_library_static { name: "libbt_shim_bridge", defaults: [ "gd_ffi_defaults", - "libchrome_support_defaults" + "libchrome_support_defaults", ], generated_headers: [ "libbt_init_flags_bridge_header", @@ -108,7 +108,7 @@ cc_library_static { name: "libbluetooth_rust_interop", defaults: [ "gd_ffi_defaults", - "libchrome_support_defaults" + "libchrome_support_defaults", ], static_libs: [ "libbt_shim_bridge", @@ -125,11 +125,14 @@ cc_library_static { name: "libbt_callbacks_cxx", defaults: [ "gd_ffi_defaults", - "libchrome_support_defaults" + "libchrome_support_defaults", ], header_libs: ["libbt_callbacks_cxx_headers"], srcs: ["callbacks/callbacks.cc"], - generated_headers: ["libbt_shim_bridge_header", "cxx-bridge-header"], + generated_headers: [ + "libbt_shim_bridge_header", + "cxx-bridge-header", + ], host_supported: true, apex_available: [ "com.android.btservices", diff --git a/system/gd/rust/stack/Android.bp b/system/gd/rust/stack/Android.bp index 675c3bb1e5022a1fe428040e7a6ab30d2741664d..1f3f0597eb306aaab307ebbc3c0b3a09d7b12caa 100644 --- a/system/gd/rust/stack/Android.bp +++ b/system/gd/rust/stack/Android.bp @@ -111,7 +111,10 @@ cc_library_static { srcs: ["src/hal/ffi/hidl.cc"], local_include_dirs: ["src/hal/ffi"], include_dirs: ["packages/modules/Bluetooth/system"], - generated_headers: ["libbt_hidl_hal_bridge_header", "cxx-bridge-header"], + generated_headers: [ + "libbt_hidl_hal_bridge_header", + "cxx-bridge-header", + ], generated_sources: ["libbt_hidl_hal_bridge_code"], shared_libs: [ "android.hardware.bluetooth@1.0", @@ -124,4 +127,3 @@ cc_library_static { ], min_sdk_version: "30", } - diff --git a/system/gd/rust/topshim/Android.bp b/system/gd/rust/topshim/Android.bp index 7ca598ee1116ce7856db171100fea43e9eb68f61..ac3521b762d69280266af185e0b62d15cfc5bd32 100644 --- a/system/gd/rust/topshim/Android.bp +++ b/system/gd/rust/topshim/Android.bp @@ -60,7 +60,7 @@ cc_library_static { generated_headers: [ "libbt_init_flags_bridge_header", "libbt_topshim_bridge_header", - "cxx-bridge-header" + "cxx-bridge-header", ], generated_sources: ["libbt_topshim_bridge_code"], include_dirs: [ diff --git a/system/gd/rust/topshim/facade/Android.bp b/system/gd/rust/topshim/facade/Android.bp index dcabb6c84eafe6f9ad0cc0b6727662c48f54eb03..5f59a9839e48bdbf8f09ce347e7b200be8e32a40 100644 --- a/system/gd/rust/topshim/facade/Android.bp +++ b/system/gd/rust/topshim/facade/Android.bp @@ -11,11 +11,14 @@ rust_defaults { name: "bt_topshim_facade.defaults", defaults: [ "gd_rust_defaults", - "libchrome_support_defaults" + "libchrome_support_defaults", ], crate_name: "bt_topshim_facade", srcs: ["src/main.rs"], - ld_flags: ["-fsanitize=undefined", "-fsanitize-minimal-runtime"], + ld_flags: [ + "-fsanitize=undefined", + "-fsanitize-minimal-runtime", + ], rustlibs: [ "libbluetooth_rs", "libbt_common", @@ -78,7 +81,7 @@ rust_defaults { "liblog", "libcutils", "libgrpc++", - "libgrpc_wrap" + "libgrpc_wrap", ], proc_macros: [ "libpaste", diff --git a/system/gd/security/Android.bp b/system/gd/security/Android.bp index 17ab2b9014834a0f1f6f9e553379175930cca9ed..b8ffc43993b777e56850ab5d8bf50263a7961c8f 100644 --- a/system/gd/security/Android.bp +++ b/system/gd/security/Android.bp @@ -48,8 +48,8 @@ filegroup { } filegroup { - name: "BluetoothFacade_security_layer", - srcs: [ - "facade.cc", - ], + name: "BluetoothFacade_security_layer", + srcs: [ + "facade.cc", + ], } diff --git a/system/gd/security/channel/Android.bp b/system/gd/security/channel/Android.bp index 9b069a0f2dff872d8341fb9dd2d9619f04a76bfd..d005b22dd04a7a4a2cea4d87a903f3fcafd585f0 100644 --- a/system/gd/security/channel/Android.bp +++ b/system/gd/security/channel/Android.bp @@ -11,12 +11,12 @@ filegroup { name: "BluetoothSecurityChannelSources", srcs: [ "security_manager_channel.cc", - ] + ], } filegroup { name: "BluetoothSecurityChannelTestSources", srcs: [ "security_manager_channel_unittest.cc", - ] + ], } diff --git a/system/gd/security/pairing/Android.bp b/system/gd/security/pairing/Android.bp index ad5f32b7e004924e1b759bf4fdb7436347474338..20e5e331f9edcd6cd8526f5402ea99f4782f138b 100644 --- a/system/gd/security/pairing/Android.bp +++ b/system/gd/security/pairing/Android.bp @@ -11,12 +11,12 @@ filegroup { name: "BluetoothSecurityPairingSources", srcs: [ "classic_pairing_handler.cc", - ] + ], } filegroup { name: "BluetoothSecurityPairingTestSources", srcs: [ "classic_pairing_handler_unittest.cc", - ] + ], } diff --git a/system/gd/security/record/Android.bp b/system/gd/security/record/Android.bp index 76334644e12b9b68510943f0cf0efc4244647cac..1fb0c8504e25d321d27026651419078ed03e257a 100644 --- a/system/gd/security/record/Android.bp +++ b/system/gd/security/record/Android.bp @@ -10,13 +10,13 @@ package { filegroup { name: "BluetoothSecurityRecordSources", srcs: [ - "security_record_storage.cc" + "security_record_storage.cc", ], } filegroup { name: "BluetoothSecurityRecordTestSources", srcs: [ - "security_record_storage_test.cc" + "security_record_storage_test.cc", ], } diff --git a/system/gd/shim/Android.bp b/system/gd/shim/Android.bp index 48293bd484437b9985d4bebc3061250419250ffb..838eaa4583aedf95a9f29b6482c731e8c026a1b0 100644 --- a/system/gd/shim/Android.bp +++ b/system/gd/shim/Android.bp @@ -10,16 +10,16 @@ package { filegroup { name: "BluetoothShimSources", srcs: [ - "dumpsys.cc", - "dumpsys_args.cc", - ] + "dumpsys.cc", + "dumpsys_args.cc", + ], } filegroup { name: "BluetoothShimTestSources", srcs: [ - "dumpsys_test.cc", - "dumpsys_args_test.cc", + "dumpsys_test.cc", + "dumpsys_args_test.cc", ], } diff --git a/system/gd/storage/Android.bp b/system/gd/storage/Android.bp index 6644da1d43314302c6de86e13c47b3456308bed8..116dd146d1abe1b8b22a0c678831220a004654ab 100644 --- a/system/gd/storage/Android.bp +++ b/system/gd/storage/Android.bp @@ -10,36 +10,36 @@ package { filegroup { name: "BluetoothStorageSources", srcs: [ - "adapter_config.cc", - "classic_device.cc", - "config_cache.cc", - "config_cache_helper.cc", - "device.cc", - "le_device.cc", - "legacy_config_file.cc", - "mutation.cc", - "mutation_entry.cc", - "storage_module.cc", + "adapter_config.cc", + "classic_device.cc", + "config_cache.cc", + "config_cache_helper.cc", + "device.cc", + "le_device.cc", + "legacy_config_file.cc", + "mutation.cc", + "mutation_entry.cc", + "storage_module.cc", ], } filegroup { name: "BluetoothStorageUnitTestSources", srcs: [ - "adapter_config_test.cc", - "classic_device_test.cc", - "config_cache_test.cc", - "config_cache_helper_test.cc", - "device_test.cc", - "le_device_test.cc", - "legacy_config_file_test.cc", - "mutation_test.cc", + "adapter_config_test.cc", + "classic_device_test.cc", + "config_cache_test.cc", + "config_cache_helper_test.cc", + "device_test.cc", + "le_device_test.cc", + "legacy_config_file_test.cc", + "mutation_test.cc", ], } filegroup { name: "BluetoothStorageTestSources", srcs: [ - "storage_module_test.cc", + "storage_module_test.cc", ], } diff --git a/system/hci/Android.bp b/system/hci/Android.bp index 529794f30457319d673371c67d671402a05ba5b5..3e41526a351b712f1fd017dcc1b04f92efa1e198 100644 --- a/system/hci/Android.bp +++ b/system/hci/Android.bp @@ -55,7 +55,7 @@ cc_library_static { }, }, host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } // HCI unit tests for target @@ -116,4 +116,3 @@ cc_test { "test/packet_fragmenter_host_test.cc", ], } - diff --git a/system/include/Android.bp b/system/include/Android.bp index 7c8337109d611c9a6b6ea9e17c5fe0df36d687d1..0665fc4b251fc286f1bc67ca2589acf08fe68c4a 100644 --- a/system/include/Android.bp +++ b/system/include/Android.bp @@ -30,7 +30,7 @@ cc_library_headers { cc_library_headers { name: "libbluetooth_headers", defaults: ["libchrome_support_defaults"], - visibility:[ + visibility: [ "//packages/apps/Test/connectivity/sl4n", "//packages/modules/Bluetooth:__subpackages__", "//vendor:__subpackages__", diff --git a/system/main/Android.bp b/system/main/Android.bp index 9dfa69d9395f62539b3ac40adb46f2800c7f9346..287970e79b37ef94614718e7ecc47d11a5df35a7 100644 --- a/system/main/Android.bp +++ b/system/main/Android.bp @@ -16,7 +16,7 @@ filegroup { "bte_logmsg.cc", "bte_main.cc", "stack_config.cc", - ] + ], } cc_library_static { @@ -56,7 +56,7 @@ cc_library_static { ], header_libs: ["libbt_callbacks_cxx_headers"], host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_library { @@ -216,7 +216,7 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, generated_headers: [ @@ -224,5 +224,5 @@ cc_test { "BluetoothGeneratedDumpsysDataSchema_h", "BluetoothGeneratedPackets_h", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } diff --git a/system/main/shim/Android.bp b/system/main/shim/Android.bp index ba99de874ad7673dfa2a87b508c9f88def903afb..173ed49c39cd956e4b001a19e20438f7bf294781 100644 --- a/system/main/shim/Android.bp +++ b/system/main/shim/Android.bp @@ -29,5 +29,5 @@ filegroup { "metrics_api.cc", "shim.cc", "stack.cc", - ] + ], } diff --git a/system/osi/Android.bp b/system/osi/Android.bp index 7d3b5ef041ee4ced914c821d00ef075c06224a2f..d401b536334f100c2167a84c4c82680167af0340 100644 --- a/system/osi/Android.bp +++ b/system/osi/Android.bp @@ -46,16 +46,16 @@ cc_test_library { } filegroup { - name: "OsiCompatSources", - srcs: [ - "src/compat.cc", - ], + name: "OsiCompatSources", + srcs: [ + "src/compat.cc", + ], } // libosi static library for target cc_library_static { name: "libosi", - visibility:[ + visibility: [ "//packages/apps/Test/connectivity/sl4n", "//packages/modules/Bluetooth:__subpackages__", ], @@ -65,7 +65,10 @@ cc_library_static { local_include_dirs: [ "include_internal", ], - defaults: ["fluoride_osi_defaults", "fluoride_basic_defaults"], + defaults: [ + "fluoride_osi_defaults", + "fluoride_basic_defaults", + ], // TODO(mcchou): Remove socket_utils sources after platform specific // dependencies are abstracted. srcs: [ diff --git a/system/osi/test/fuzzers/alarm/Android.bp b/system/osi/test/fuzzers/alarm/Android.bp index 34128245955a568528b9d98293a0d10991397257..f26951ec109caed0f637fbb7c2e62d9decd129c3 100644 --- a/system/osi/test/fuzzers/alarm/Android.bp +++ b/system/osi/test/fuzzers/alarm/Android.bp @@ -26,5 +26,5 @@ cc_fuzz { "libgmock", "libosi", ], - cflags: [ "-Wno-unused-function" ], + cflags: ["-Wno-unused-function"], } diff --git a/system/profile/avrcp/Android.bp b/system/profile/avrcp/Android.bp index f1121b60081c72e63aa0a3c10b4cd14d9e369f69..83e8bde1a12467a2ee6b9169b51165e7ea1d9b11 100644 --- a/system/profile/avrcp/Android.bp +++ b/system/profile/avrcp/Android.bp @@ -38,7 +38,7 @@ cc_library_static { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } cc_test { diff --git a/system/rust/Android.bp b/system/rust/Android.bp index ef775e464d15265a8cecdbdf4ce681c595886756..f72810854f7ac60ae16a7c2b506ed7d4f7f0871b 100644 --- a/system/rust/Android.bp +++ b/system/rust/Android.bp @@ -13,9 +13,12 @@ rust_defaults { dylib: { enabled: false, }, - srcs: ["src/lib.rs", ":bluetooth_core_rust_packets"], + srcs: [ + "src/lib.rs", + ":bluetooth_core_rust_packets", + ], shared_libs: [ - "libbase", + "libbase", ], static_libs: [ "libbluetooth-core", diff --git a/system/stack/Android.bp b/system/stack/Android.bp index da1f2ae1cf26612ef09af162a92f456ed4ee89ac..a10c1f6c5dd643d6af804a9d21a3998679b0222a 100644 --- a/system/stack/Android.bp +++ b/system/stack/Android.bp @@ -21,7 +21,7 @@ cc_test_library { include_dirs: [ "packages/modules/Bluetooth/system", ], - srcs: crypto_toolbox_srcs + srcs: crypto_toolbox_srcs, } // Bluetooth stack static library for target @@ -143,19 +143,19 @@ cc_library_static { "libaptxhd_enc", ], host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } filegroup { - name: "LegacyStackSdp", - srcs: [ + name: "LegacyStackSdp", + srcs: [ "sdp/sdp_api.cc", "sdp/sdp_db.cc", "sdp/sdp_discovery.cc", "sdp/sdp_main.cc", "sdp/sdp_server.cc", "sdp/sdp_utils.cc", - ], + ], } cc_library_static { @@ -286,7 +286,7 @@ cc_library_static { "libbt-hci", ], host_supported: true, - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } // Bluetooth stack unit tests for target @@ -362,7 +362,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -436,7 +436,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -506,7 +506,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -553,7 +553,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -586,7 +586,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -631,7 +631,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -686,7 +686,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -747,7 +747,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -787,7 +787,7 @@ cc_test { ":BluetoothAndroidTestingLogCapture", ], test_config: "test/a2dp/AndroidTest.xml", - } + }, }, data: [ "test/a2dp/raw_data/*", @@ -895,7 +895,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -943,7 +943,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -974,7 +974,7 @@ cc_test { "test/common/mock_controller.cc", "test/common/mock_gatt_layer.cc", "test/common/mock_hcic_layer.cc", - ":TestCommonStackConfig" + ":TestCommonStackConfig", ], static_libs: [ "libbt-common", @@ -989,13 +989,13 @@ cc_test { all_undefined: true, integer_overflow: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1020,10 +1020,10 @@ cc_test { "l2cap", "test/common", ], - include_dirs:[ + include_dirs: [ "packages/modules/Bluetooth/system", "packages/modules/Bluetooth/system/gd", - "packages/modules/Bluetooth/system/internal_include" + "packages/modules/Bluetooth/system/internal_include", ], srcs: [ "eatt/eatt.cc", @@ -1055,7 +1055,7 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1167,13 +1167,13 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1218,13 +1218,13 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1278,13 +1278,13 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1347,13 +1347,13 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1432,13 +1432,13 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1511,7 +1511,7 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, } @@ -1584,13 +1584,13 @@ cc_test { integer_overflow: true, scs: true, diag: { - undefined : true + undefined: true, }, }, target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } @@ -1639,6 +1639,6 @@ cc_test { target: { android: { test_config_template: ":BluetoothGTestNotShardableConfigTemplate", - } + }, }, } diff --git a/system/test/Android.bp b/system/test/Android.bp index 355fa3f0f97f5907637089d64bc419717b034b44..0573b08074f9a65c4a4f840413d9ccc008f8f901 100644 --- a/system/test/Android.bp +++ b/system/test/Android.bp @@ -15,492 +15,492 @@ subdirs = [ filegroup { name: "TestMockBtaAg", srcs: [ - "mock/mock_bta_ag_*.cc", + "mock/mock_bta_ag_*.cc", ], } filegroup { name: "TestMockBtaAr", srcs: [ - "mock/mock_bta_ar.cc", + "mock/mock_bta_ar.cc", ], } filegroup { name: "TestMockBtaAv", srcs: [ - "mock/mock_bta_av_*.cc", + "mock/mock_bta_av_*.cc", ], } filegroup { name: "TestMockBtaCsis", srcs: [ - "mock/mock_bta_csis*.cc", + "mock/mock_bta_csis*.cc", ], } filegroup { name: "TestMockBtaDm", srcs: [ - "mock/mock_bta_dm_*.cc", + "mock/mock_bta_dm_*.cc", ], } filegroup { name: "TestMockBtaGatt", srcs: [ - "mock/mock_bta_gatt*.cc", + "mock/mock_bta_gatt*.cc", ], } filegroup { name: "TestMockBtaGroups", srcs: [ - "mock/mock_bta_groups*.cc", + "mock/mock_bta_groups*.cc", ], } filegroup { name: "TestMockBtaHas", srcs: [ - "mock/mock_bta_has.cc", + "mock/mock_bta_has.cc", ], } filegroup { name: "TestMockBtaHd", srcs: [ - "mock/mock_bta_hd*.cc", + "mock/mock_bta_hd*.cc", ], } filegroup { name: "TestMockBtaHearingAid", srcs: [ - "mock/mock_bta_hearing_aid.cc", + "mock/mock_bta_hearing_aid.cc", ], } filegroup { name: "TestMockBtaHf", srcs: [ - "mock/mock_bta_hf*.cc", + "mock/mock_bta_hf*.cc", ], } filegroup { name: "TestMockBtaHh", srcs: [ - "mock/mock_bta_hh*.cc", + "mock/mock_bta_hh*.cc", ], } filegroup { name: "TestMockBtaJv", srcs: [ - "mock/mock_bta_jv_*.cc", + "mock/mock_bta_jv_*.cc", ], } filegroup { name: "TestMockBtaLeAudio", srcs: [ - "mock/mock_bta_leaudio*.cc", + "mock/mock_bta_leaudio*.cc", ], } filegroup { - name: "TestMockBtaLeAudioHalVerifier", - srcs: [ - "mock/mock_le_audio_hal_verifier.cc", - ], + name: "TestMockBtaLeAudioHalVerifier", + srcs: [ + "mock/mock_le_audio_hal_verifier.cc", + ], } filegroup { name: "TestMockBtaPan", srcs: [ - "mock/mock_bta_pan_*.cc", + "mock/mock_bta_pan_*.cc", ], } filegroup { name: "TestMockBtaSdp", srcs: [ - "mock/mock_bta_sdp_*.cc", + "mock/mock_bta_sdp_*.cc", ], } filegroup { name: "TestMockBtaSys", srcs: [ - "mock/mock_bta_sys_*.cc", + "mock/mock_bta_sys_*.cc", ], } filegroup { name: "TestMockBtaVc", srcs: [ - "mock/mock_bta_vc*.cc", + "mock/mock_bta_vc*.cc", ], } filegroup { name: "TestMockBta", srcs: [ - ":TestMockBtaAg", - ":TestMockBtaAr", - ":TestMockBtaAv", - ":TestMockBtaCsis", - ":TestMockBtaDm", - ":TestMockBtaGatt", - ":TestMockBtaGroups", - ":TestMockBtaHas", - ":TestMockBtaHd", - ":TestMockBtaHearingAid", - ":TestMockBtaHf", - ":TestMockBtaHh", - ":TestMockBtaJv", - ":TestMockBtaLeAudio", - ":TestMockBtaLeAudioHalVerifier", - ":TestMockBtaPan", - ":TestMockBtaSdp", - ":TestMockBtaSys", - ":TestMockBtaVc", + ":TestMockBtaAg", + ":TestMockBtaAr", + ":TestMockBtaAv", + ":TestMockBtaCsis", + ":TestMockBtaDm", + ":TestMockBtaGatt", + ":TestMockBtaGroups", + ":TestMockBtaHas", + ":TestMockBtaHd", + ":TestMockBtaHearingAid", + ":TestMockBtaHf", + ":TestMockBtaHh", + ":TestMockBtaJv", + ":TestMockBtaLeAudio", + ":TestMockBtaLeAudioHalVerifier", + ":TestMockBtaPan", + ":TestMockBtaSdp", + ":TestMockBtaSys", + ":TestMockBtaVc", ], } filegroup { name: "TestMockMainShim", srcs: [ - "mock/mock_main_shim*.cc", + "mock/mock_main_shim*.cc", ], } filegroup { name: "TestMockCommon", srcs: [ - "mock/mock_common_*.cc", + "mock/mock_common_*.cc", ], } filegroup { name: "TestMockStackA2dp", srcs: [ - "mock/mock_stack_a2dp_*.cc", + "mock/mock_stack_a2dp_*.cc", ], } filegroup { name: "TestMockStackA2dpApi", srcs: [ - "mock/mock_stack_a2dp_api.cc", + "mock/mock_stack_a2dp_api.cc", ], } filegroup { name: "TestMockStackArbiter", srcs: [ - "mock/mock_stack_arbiter_*.cc", + "mock/mock_stack_arbiter_*.cc", ], } filegroup { name: "TestMockStackL2cap", srcs: [ - "mock/mock_stack_l2cap_*.cc", + "mock/mock_stack_l2cap_*.cc", ], } filegroup { name: "TestMockStackRfcomm", srcs: [ - "mock/mock_stack_rfcomm*.cc", + "mock/mock_stack_rfcomm*.cc", ], } filegroup { name: "TestMockStack", srcs: [ - "mock/mock_stack_*.cc", + "mock/mock_stack_*.cc", ], } filegroup { name: "TestMockHci", srcs: [ - "mock/mock_hci_*.cc", + "mock/mock_hci_*.cc", ], } filegroup { name: "TestMockFrameworks", srcs: [ - "mock/mock_frameworks_*.cc", + "mock/mock_frameworks_*.cc", ], } filegroup { name: "TestMockBtcore", srcs: [ - "mock/mock_btcore_*.cc", + "mock/mock_btcore_*.cc", ], } filegroup { name: "TestMockSystemLibfmq", srcs: [ - "mock/mock_system_libfmq_*.cc", + "mock/mock_system_libfmq_*.cc", ], } filegroup { name: "TestMockUdrv", srcs: [ - "mock/mock_udrv_*.cc", + "mock/mock_udrv_*.cc", ], } filegroup { name: "TestMockAndroidHardware", srcs: [ - "mock/mock_android_hardware_*.cc", + "mock/mock_android_hardware_*.cc", ], } filegroup { name: "TestMockDevice", srcs: [ - "mock/mock_device_*.cc", + "mock/mock_device_*.cc", ], } filegroup { name: "TestMockLegacyHciCommands", srcs: [ - "mock/mock_hcic_*.cc", + "mock/mock_hcic_*.cc", ], } filegroup { name: "TestMockMainShimEntry", srcs: [ - "mock/mock_main_shim_entry.cc", + "mock/mock_main_shim_entry.cc", ], } filegroup { name: "TestMockMainShimLeScanning", srcs: [ - "mock/mock_main_shim_le_scanning_manager.cc", - "mock/mock_main_shim.cc", + "mock/mock_main_shim_le_scanning_manager.cc", + "mock/mock_main_shim.cc", ], } filegroup { name: "TestMockMainShimFlags", srcs: [ - "mock/mock_main_shim.cc", + "mock/mock_main_shim.cc", ], } filegroup { - name: "TestMockBtif", - srcs: [ - ":TestCommonJniThread", - ":TestCommonCoreInterface", - ":TestMockBluetoothInterface", - "mock/mock_btif*.cc", - ], + name: "TestMockBtif", + srcs: [ + ":TestCommonJniThread", + ":TestCommonCoreInterface", + ":TestMockBluetoothInterface", + "mock/mock_btif*.cc", + ], } filegroup { - name: "TestMockStackSdp", - srcs: [ - "mock/mock_stack_sdp*.cc", - ], + name: "TestMockStackSdp", + srcs: [ + "mock/mock_stack_sdp*.cc", + ], } filegroup { - name: "TestMockStackBtm", - srcs: [ - "mock/mock_stack_btm*.cc", - ], + name: "TestMockStackBtm", + srcs: [ + "mock/mock_stack_btm*.cc", + ], } filegroup { - name: "TestStubLegacyTrace", - srcs: [ - "stub/legacy_trace.cc", - ], + name: "TestStubLegacyTrace", + srcs: [ + "stub/legacy_trace.cc", + ], } filegroup { - name: "TestStubOsi", - srcs: [ - "stub/osi.cc", - ], + name: "TestStubOsi", + srcs: [ + "stub/osi.cc", + ], } filegroup { - name: "TestMockOsi", + name: "TestMockOsi", srcs: [ - "mock/mock_osi_*.cc", + "mock/mock_osi_*.cc", ], } filegroup { - name: "TestMockStackAcl", - srcs: [ - "mock/mock_stack_acl*.cc", - ], + name: "TestMockStackAcl", + srcs: [ + "mock/mock_stack_acl*.cc", + ], } filegroup { - name: "TestMockStackSmp", - srcs: [ - "mock/mock_stack_smp*.cc", - ], + name: "TestMockStackSmp", + srcs: [ + "mock/mock_stack_smp*.cc", + ], } filegroup { - name: "TestMockStackMetrics", - srcs: [ - "mock/mock_stack_metrics*.cc", - ], + name: "TestMockStackMetrics", + srcs: [ + "mock/mock_stack_metrics*.cc", + ], } filegroup { - name: "TestMockStackGap", - srcs: [ - "mock/mock_stack_gap*.cc", - ], + name: "TestMockStackGap", + srcs: [ + "mock/mock_stack_gap*.cc", + ], } filegroup { - name: "TestMockStackEatt", - srcs: [ - "mock/mock_stack_eatt*.cc", - ], + name: "TestMockStackEatt", + srcs: [ + "mock/mock_stack_eatt*.cc", + ], } filegroup { - name: "TestMockStackGatt", - srcs: [ - "mock/mock_stack_gatt*.cc", - ], + name: "TestMockStackGatt", + srcs: [ + "mock/mock_stack_gatt*.cc", + ], } filegroup { - name: "TestMockStackBtu", - srcs: [ - "mock/mock_stack_btu*.cc", - ], + name: "TestMockStackBtu", + srcs: [ + "mock/mock_stack_btu*.cc", + ], } filegroup { - name: "TestMockMainBte", - srcs: [ - "mock/mock_main_bte*.cc", - ], + name: "TestMockMainBte", + srcs: [ + "mock/mock_main_bte*.cc", + ], } filegroup { - name: "TestMockStackCryptotoolbox", - srcs: [ - "mock/mock_stack_crypto_toolbox*.cc", - ], + name: "TestMockStackCryptotoolbox", + srcs: [ + "mock/mock_stack_crypto_toolbox*.cc", + ], } filegroup { - name: "TestMockBtu", - srcs: [ - "mock/mock_btu_*cc", - ], + name: "TestMockBtu", + srcs: [ + "mock/mock_btu_*cc", + ], } filegroup { - name: "TestMockUtils", - srcs: [ - "mock/mock_utils_*cc", - ], + name: "TestMockUtils", + srcs: [ + "mock/mock_utils_*cc", + ], } filegroup { - name: "TestCommonMockFunctions", - srcs: [ - "common/mock_functions.cc", - ], + name: "TestCommonMockFunctions", + srcs: [ + "common/mock_functions.cc", + ], } filegroup { - name: "TestCommonJniThread", - srcs: [ - "common/jni_thread.cc", - ], + name: "TestCommonJniThread", + srcs: [ + "common/jni_thread.cc", + ], } filegroup { - name: "TestCommonMainHandler", - srcs: [ - "common/main_handler.cc", - ], + name: "TestCommonMainHandler", + srcs: [ + "common/main_handler.cc", + ], } filegroup { - name: "TestCommonInitFlags", - srcs: [ - "common/init_flags.cc", - ], + name: "TestCommonInitFlags", + srcs: [ + "common/init_flags.cc", + ], } filegroup { - name: "TestCommonStackConfig", - srcs: [ - "common/stack_config.cc", - ], + name: "TestCommonStackConfig", + srcs: [ + "common/stack_config.cc", + ], } filegroup { - name: "TestCommonCoreInterface", - srcs: [ - "common/core_interface.cc", - ], + name: "TestCommonCoreInterface", + srcs: [ + "common/core_interface.cc", + ], } filegroup { - name: "TestCommonLogMsg", - srcs: [ - "common/log_msg.cc", - ], + name: "TestCommonLogMsg", + srcs: [ + "common/log_msg.cc", + ], } filegroup { - name: "TestMockBluetoothInterface", - srcs: [ - "mock/mock_bluetooth_interface.cc", - ], + name: "TestMockBluetoothInterface", + srcs: [ + "mock/mock_bluetooth_interface.cc", + ], } filegroup { - name: "TestMockStackHcic", - srcs: [ - "mock/mock_stack_hcic*.cc", - ], + name: "TestMockStackHcic", + srcs: [ + "mock/mock_stack_hcic*.cc", + ], } filegroup { - name: "TestMockLegacyHciInterface", - srcs: [ - "mock/mock_legacy_hci_iterface.cc" - ], + name: "TestMockLegacyHciInterface", + srcs: [ + "mock/mock_legacy_hci_iterface.cc", + ], } filegroup { - name: "TestMockSrvcDis", - srcs: [ - "mock/mock_stack_srvc_dis.cc" - ], + name: "TestMockSrvcDis", + srcs: [ + "mock/mock_stack_srvc_dis.cc", + ], } cc_defaults { @@ -508,7 +508,7 @@ cc_defaults { target: { android: { test_config_template: ":BluetoothTestConfigTemplate", - test_suites: ["mts-bluetooth",], + test_suites: ["mts-bluetooth"], }, }, compile_multilib: "both", diff --git a/system/test/headless/Android.bp b/system/test/headless/Android.bp index eaf046c85c282ec6e379f1e7e1c847d74b4c137e..40cc65f287efae2652185e098ee4e9471cfdedce 100644 --- a/system/test/headless/Android.bp +++ b/system/test/headless/Android.bp @@ -8,36 +8,36 @@ package { } sh_binary { - name: "headless_build_timestamp", - host_supported: true, - src: "tools/build_timestamp.sh", + name: "headless_build_timestamp", + host_supported: true, + src: "tools/build_timestamp.sh", } genrule { - name : "HeadlessBuildTimestamp", - tools: [ - "headless_build_timestamp", - ], - cmd: "$(location headless_build_timestamp) > $(out)", - out: [ - "build_timestamp.h" - ], + name: "HeadlessBuildTimestamp", + tools: [ + "headless_build_timestamp", + ], + cmd: "$(location headless_build_timestamp) > $(out)", + out: [ + "build_timestamp.h", + ], } filegroup { name: "TestHeadlessModules", srcs: [ - "connect/connect.cc", - "discovery/discovery.cc", - "dumpsys/dumpsys.cc", - "nop/nop.cc", - "pairing/pairing.cc", - "read/name.cc", - "read/read.cc", - "scan/scan.cc", - "sdp/sdp.cc", - "sdp/sdp_db.cc", - ], + "connect/connect.cc", + "discovery/discovery.cc", + "dumpsys/dumpsys.cc", + "nop/nop.cc", + "pairing/pairing.cc", + "read/name.cc", + "read/read.cc", + "scan/scan.cc", + "sdp/sdp.cc", + "sdp/sdp_db.cc", + ], } cc_binary { @@ -125,17 +125,17 @@ cc_binary { "libbase", "libbinder_ndk", "libcrypto", - "libcutils", // property_get_bool + "libcutils", // property_get_bool "libfmq", "libhidlbase", "libjsoncpp", - "liblog", // __android_log_print + "liblog", // __android_log_print "libprocessgroup", "libtinyxml2", "libutils", ], ldflags: ["-rdynamic"], sanitize: { - cfi: false, + cfi: false, }, } diff --git a/system/test/rootcanal/Android.bp b/system/test/rootcanal/Android.bp index 54eb54e5145ec26c5db50879902e05455c64357a..daa03b230139b3b5eb10790e6137d2680a88c230 100644 --- a/system/test/rootcanal/Android.bp +++ b/system/test/rootcanal/Android.bp @@ -25,8 +25,8 @@ package { cc_binary { name: "android.hardware.bluetooth@1.1-service.sim", defaults: [ - "gd_defaults", - "libchrome_support_defaults" + "gd_defaults", + "libchrome_support_defaults", ], proprietary: true, relative_install_path: "hw", @@ -35,7 +35,7 @@ cc_binary { "service.cc", ], visibility: [ - "//platform_testing/libraries/sts-common-util/host-side/rootcanal" + "//platform_testing/libraries/sts-common-util/host-side/rootcanal", ], header_libs: ["libbluetooth_headers"], shared_libs: [ @@ -77,8 +77,8 @@ cc_binary { cc_library_shared { name: "android.hardware.bluetooth@1.1-impl-sim", defaults: [ - "gd_defaults", - "libchrome_support_defaults" + "gd_defaults", + "libchrome_support_defaults", ], proprietary: true, relative_install_path: "hw", @@ -86,7 +86,7 @@ cc_library_shared { "bluetooth_hci.cc", ], visibility: [ - "//platform_testing/libraries/sts-common-util/host-side/rootcanal" + "//platform_testing/libraries/sts-common-util/host-side/rootcanal", ], header_libs: ["libbluetooth_headers"], shared_libs: [ @@ -107,7 +107,7 @@ cc_library_shared { "libbt_init_flags_bridge_header", ], whole_static_libs: [ - "libbt-rootcanal" + "libbt-rootcanal", ], static_libs: [ "android.hardware.bluetooth-async", diff --git a/system/types/Android.bp b/system/types/Android.bp index 9d4998209163654c65bab72a2071976e92454a34..0923fe1e93efac6f8762d64a3dbc1301cec21878 100644 --- a/system/types/Android.bp +++ b/system/types/Android.bp @@ -10,7 +10,7 @@ package { cc_library_headers { name: "libbluetooth-types-header", - visibility:["//visibility:public"], + visibility: ["//visibility:public"], export_include_dirs: ["./"], vendor_available: true, host_supported: true, @@ -20,7 +20,7 @@ cc_library_headers { "//apex_available:platform", "com.android.media", "com.android.media.swcodec", - "com.android.btservices" + "com.android.btservices", ], // As part of updatable mainline modules(media, swcodec), it should support at least 29(Q) min_sdk_version: "29", @@ -39,7 +39,7 @@ cc_library_static { /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/ "-fvisibility=default", ], - visibility:["//visibility:public"], + visibility: ["//visibility:public"], host_supported: true, srcs: [ "class_of_device.cc", @@ -63,7 +63,7 @@ cc_test { "mts_defaults", ], include_dirs: [ - "packages/modules/Bluetooth/system", + "packages/modules/Bluetooth/system", ], host_supported: true, srcs: [ diff --git a/system/udrv/Android.bp b/system/udrv/Android.bp index 8ce6d7184090b82de7723c4860ea9459ab2a2601..df528de44af7ee55008463d38ca4ffdebcf6ddf5 100644 --- a/system/udrv/Android.bp +++ b/system/udrv/Android.bp @@ -28,5 +28,5 @@ cc_library_static { "//apex_available:platform", "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } diff --git a/system/utils/Android.bp b/system/utils/Android.bp index feb94d32d9d936790da8864a2473b9d379761f3a..f5392552bb002a6336abe3b92a3c74ce9ea60338 100644 --- a/system/utils/Android.bp +++ b/system/utils/Android.bp @@ -31,5 +31,5 @@ cc_library_static { apex_available: [ "com.android.btservices", ], - min_sdk_version: "Tiramisu" + min_sdk_version: "Tiramisu", } diff --git a/tools/rootcanal/Android.bp b/tools/rootcanal/Android.bp index 48a9bcf51bcafbfa382bc596849213cbb146e33b..97eb5a3aabf09e21f7c8fd92ae7b7840f12a3099 100644 --- a/tools/rootcanal/Android.bp +++ b/tools/rootcanal/Android.bp @@ -9,7 +9,7 @@ package { default_visibility: [ "//device:__subpackages__", "//packages/modules/Bluetooth:__subpackages__", - "//tools/netsim:__subpackages__" + "//tools/netsim:__subpackages__", ], } @@ -19,7 +19,7 @@ cc_defaults { tidy_checks: [ "-*", "readability-*", - "-readability-function-size", + "-readability-function-size", "-readability-identifier-length", "-readability-implicit-bool-conversion", "-readability-magic-numbers", @@ -112,7 +112,7 @@ cc_library_static { ".", ], export_generated_headers: [ - "BluetoothGeneratedPackets_h" + "BluetoothGeneratedPackets_h", ], whole_static_libs: [ "liblmp", @@ -173,7 +173,7 @@ cc_library_host_shared { // packets/link_layer_packets.pdl. genrule { name: "link_layer_packets_python3_gen", - defaults: [ "pdl_python_generator_defaults" ], + defaults: ["pdl_python_generator_defaults"], cmd: "$(location :pdl) $(in) |" + " $(location :pdl_python_generator)" + " --output $(out) --custom-type-location py.bluetooth", @@ -189,7 +189,7 @@ genrule { // hci_packets.pdl. genrule { name: "hci_packets_python3_gen", - defaults: [ "pdl_python_generator_defaults" ], + defaults: ["pdl_python_generator_defaults"], cmd: "$(location :pdl) $(in) |" + " $(location :pdl_python_generator)" + " --output $(out) --custom-type-location py.bluetooth", diff --git a/tools/rootcanal/lmp/Android.bp b/tools/rootcanal/lmp/Android.bp index e438e6a54cbb2df711bb7f89722ff5347c5a27f6..791741390fd7fe203e557878a624533055b9375a 100644 --- a/tools/rootcanal/lmp/Android.bp +++ b/tools/rootcanal/lmp/Android.bp @@ -10,7 +10,7 @@ package { rust_ffi { name: "liblmp", host_supported: true, - vendor_available : true, + vendor_available: true, crate_name: "lmp", srcs: [ "src/lib.rs", @@ -54,7 +54,10 @@ rust_test_host { ], auto_gen_config: true, edition: "2018", - proc_macros: ["libnum_derive", "libpaste"], + proc_macros: [ + "libnum_derive", + "libpaste", + ], rustlibs: [ "libbt_packets", "libbytes",