1 /*
2 * Copyright 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 // AIDL uses syslog.h, so these defines conflict with os/log.h
18 #undef LOG_DEBUG
19 #undef LOG_INFO
20 #undef LOG_WARNING
21
22 #include "ranging_hal.h"
23
24 namespace bluetooth {
25 namespace hal {
26
27 class RangingHalHost : public RangingHal {
28 public:
IsBound()29 bool IsBound() override {
30 return false;
31 }
RegisterCallback(RangingHalCallback *)32 void RegisterCallback(RangingHalCallback* /* callback */) override {}
GetVendorSpecificCharacteristics()33 std::vector<VendorSpecificCharacteristic> GetVendorSpecificCharacteristics() override {
34 std::vector<VendorSpecificCharacteristic> vendor_specific_characteristics = {};
35 return vendor_specific_characteristics;
36 };
OpenSession(uint16_t,uint16_t,const std::vector<hal::VendorSpecificCharacteristic> &)37 void OpenSession(
38 uint16_t /* connection_handle */,
39 uint16_t /* att_handle */,
40 const std::vector<hal::VendorSpecificCharacteristic>& /* vendor_specific_data */) override{};
41
HandleVendorSpecificReply(uint16_t,const std::vector<hal::VendorSpecificCharacteristic> &)42 void HandleVendorSpecificReply(
43 uint16_t /* connection_handle */,
44 const std::vector<hal::VendorSpecificCharacteristic>& /* vendor_specific_reply */) override{};
45
WriteRawData(uint16_t,const ChannelSoundingRawData &)46 void WriteRawData(
47 uint16_t /* connection_handle */, const ChannelSoundingRawData& /* raw_data */) override{};
48
49 protected:
ListDependencies(ModuleList *) const50 void ListDependencies(ModuleList* /*list*/) const {}
51
Start()52 void Start() override {}
53
Stop()54 void Stop() override {}
55
ToString() const56 std::string ToString() const override {
57 return std::string("RangingHalHost");
58 }
59 };
60
__anond20b0b370102() 61 const ModuleFactory RangingHal::Factory = ModuleFactory([]() { return new RangingHalHost(); });
62
63 } // namespace hal
64 } // namespace bluetooth
65