Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0abf0849 authored by Chienyuan Huang's avatar Chienyuan Huang Committed by Gerrit Code Review
Browse files

Merge "Add AIDL shim layer for ranging" into main

parents 268473ce ffb85f1d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ cc_defaults {
        host: {
            srcs: [
                ":BluetoothHalSources_hci_host",
                ":BluetoothHalSources_ranging_host",
                ":BluetoothOsSources_host",
                ":BluetoothSyspropsSources",
            ],
@@ -112,6 +113,7 @@ cc_defaults {
        android: {
            srcs: [
                ":BluetoothHalSources_hci_android_hidl",
                ":BluetoothHalSources_ranging_android",
                ":BluetoothOsSources_android",
            ],
            shared_libs: [
@@ -127,6 +129,7 @@ cc_defaults {
            ],
            whole_static_libs: [
                "android.hardware.bluetooth-V1-ndk",
                "android.hardware.bluetooth.ranging-V1-ndk",
            ],
        },
    },
+1 −0
Original line number Diff line number Diff line
@@ -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",
+14 −0
Original line number Diff line number Diff line
@@ -36,6 +36,13 @@ filegroup {
    ],
}

filegroup {
    name: "BluetoothHalSources_ranging_host",
    srcs: [
        "ranging_hal_host.cc",
    ],
}

filegroup {
    name: "BluetoothHalSources_hci_android_hidl",
    srcs: [
@@ -45,6 +52,13 @@ filegroup {
    ],
}

filegroup {
    name: "BluetoothHalSources_ranging_android",
    srcs: [
        "ranging_hal_android.cc",
    ],
}

filegroup {
    name: "BluetoothHalTestSources_hci_host",
    srcs: [
+9 −0
Original line number Diff line number Diff line
@@ -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" ]
}
+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