Loading system/gd/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ cc_defaults { host: { srcs: [ ":BluetoothHalSources_hci_host", ":BluetoothHalSources_ranging_host", ":BluetoothOsSources_host", ":BluetoothSyspropsSources", ], Loading @@ -112,6 +113,7 @@ cc_defaults { android: { srcs: [ ":BluetoothHalSources_hci_android_hidl", ":BluetoothHalSources_ranging_android", ":BluetoothOsSources_android", ], shared_libs: [ Loading @@ -127,6 +129,7 @@ cc_defaults { ], whole_static_libs: [ "android.hardware.bluetooth-V1-ndk", "android.hardware.bluetooth.ranging-V1-ndk", ], }, }, Loading system/gd/BUILD.gn +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ static_library("libbluetooth_gd") { "//bt/system/gd/dumpsys:BluetoothDumpsysSources", "//bt/system/gd/hal:BluetoothHalSources", "//bt/system/gd/hal:BluetoothHalSources_hci_host", "//bt/system/gd/hal:BluetoothHalSources_ranging_host", "//bt/system/gd/l2cap:BluetoothL2capSources", "//bt/system/gd/metrics:BluetoothMetricsSources", "//bt/system/gd/neighbor:BluetoothNeighborSources", Loading system/gd/hal/Android.bp +14 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,13 @@ filegroup { ], } filegroup { name: "BluetoothHalSources_ranging_host", srcs: [ "ranging_hal_host.cc", ], } filegroup { name: "BluetoothHalSources_hci_android_hidl", srcs: [ Loading @@ -45,6 +52,13 @@ filegroup { ], } filegroup { name: "BluetoothHalSources_ranging_android", srcs: [ "ranging_hal_android.cc", ], } filegroup { name: "BluetoothHalTestSources_hci_host", srcs: [ Loading system/gd/hal/BUILD.gn +9 −0 Original line number Diff line number Diff line Loading @@ -43,3 +43,12 @@ source_set("BluetoothHalSources_hci_host") { configs += [ "//bt/system/gd:gd_defaults" ] deps = [ "//bt/system/gd:gd_default_deps" ] } source_set("BluetoothHalSources_ranging_host") { sources = [ "ranging_hal_host.cc", ] configs += [ "//bt/system/gd:gd_defaults" ] deps = [ "//bt/system/gd:gd_default_deps" ] } system/gd/hal/ranging_hal.h 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "module.h" namespace bluetooth { namespace hal { class RangingHal : public ::bluetooth::Module { public: static const ModuleFactory Factory; virtual ~RangingHal() = default; virtual bool isBound() = 0; }; } // namespace hal } // namespace bluetooth Loading
system/gd/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ cc_defaults { host: { srcs: [ ":BluetoothHalSources_hci_host", ":BluetoothHalSources_ranging_host", ":BluetoothOsSources_host", ":BluetoothSyspropsSources", ], Loading @@ -112,6 +113,7 @@ cc_defaults { android: { srcs: [ ":BluetoothHalSources_hci_android_hidl", ":BluetoothHalSources_ranging_android", ":BluetoothOsSources_android", ], shared_libs: [ Loading @@ -127,6 +129,7 @@ cc_defaults { ], whole_static_libs: [ "android.hardware.bluetooth-V1-ndk", "android.hardware.bluetooth.ranging-V1-ndk", ], }, }, Loading
system/gd/BUILD.gn +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ static_library("libbluetooth_gd") { "//bt/system/gd/dumpsys:BluetoothDumpsysSources", "//bt/system/gd/hal:BluetoothHalSources", "//bt/system/gd/hal:BluetoothHalSources_hci_host", "//bt/system/gd/hal:BluetoothHalSources_ranging_host", "//bt/system/gd/l2cap:BluetoothL2capSources", "//bt/system/gd/metrics:BluetoothMetricsSources", "//bt/system/gd/neighbor:BluetoothNeighborSources", Loading
system/gd/hal/Android.bp +14 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,13 @@ filegroup { ], } filegroup { name: "BluetoothHalSources_ranging_host", srcs: [ "ranging_hal_host.cc", ], } filegroup { name: "BluetoothHalSources_hci_android_hidl", srcs: [ Loading @@ -45,6 +52,13 @@ filegroup { ], } filegroup { name: "BluetoothHalSources_ranging_android", srcs: [ "ranging_hal_android.cc", ], } filegroup { name: "BluetoothHalTestSources_hci_host", srcs: [ Loading
system/gd/hal/BUILD.gn +9 −0 Original line number Diff line number Diff line Loading @@ -43,3 +43,12 @@ source_set("BluetoothHalSources_hci_host") { configs += [ "//bt/system/gd:gd_defaults" ] deps = [ "//bt/system/gd:gd_default_deps" ] } source_set("BluetoothHalSources_ranging_host") { sources = [ "ranging_hal_host.cc", ] configs += [ "//bt/system/gd:gd_defaults" ] deps = [ "//bt/system/gd:gd_default_deps" ] }
system/gd/hal/ranging_hal.h 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "module.h" namespace bluetooth { namespace hal { class RangingHal : public ::bluetooth::Module { public: static const ModuleFactory Factory; virtual ~RangingHal() = default; virtual bool isBound() = 0; }; } // namespace hal } // namespace bluetooth