Loading system/gd/shim/advertising.cc +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include <functional> #include <memory> #include <string> #include "hci/address.h" #include "hci/hci_packets.h" Loading @@ -29,6 +30,10 @@ namespace bluetooth { namespace shim { namespace { constexpr char kModuleName[] = "shim::Advertising"; } // namespace struct Advertising::impl { impl(hci::LeAdvertisingManager* module, os::Handler* handler); ~impl(); Loading Loading @@ -121,5 +126,9 @@ void Advertising::Stop() { pimpl_.reset(); } std::string Advertising::ToString() const { return kModuleName; } } // namespace shim } // namespace bluetooth system/gd/shim/advertising.h +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ class Advertising : public bluetooth::Module, public bluetooth::shim::IAdvertisi void ListDependencies(ModuleList* list) override; // Module void Start() override; // Module void Stop() override; // Module std::string ToString() const override; // Module private: struct impl; Loading system/gd/shim/connectability.cc +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define LOG_TAG "bt_gd_shim" #include <memory> #include <string> #include "common/bidi_queue.h" #include "hci/address.h" Loading @@ -30,6 +31,10 @@ namespace bluetooth { namespace shim { namespace { constexpr char kModuleName[] = "shim::Connectability"; } // namespace const ModuleFactory Connectability::Factory = ModuleFactory([]() { return new Connectability(); }); struct Connectability::impl { Loading Loading @@ -65,5 +70,9 @@ void Connectability::Stop() { pimpl_.reset(); } std::string Connectability::ToString() const { return kModuleName; } } // namespace shim } // namespace bluetooth system/gd/shim/connectability.h +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #pragma once #include <memory> #include <string> #include "module.h" #include "shim/iconnectability.h" Loading @@ -38,6 +39,7 @@ class Connectability : public bluetooth::Module, public bluetooth::shim::IConnec void ListDependencies(ModuleList* list) override; // Module void Start() override; // Module void Stop() override; // Module std::string ToString() const override; // Module private: struct impl; Loading system/gd/shim/controller.cc +10 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define LOG_TAG "bt_gd_shim" #include <memory> #include <string> #include "common/bidi_queue.h" #include "hci/address.h" Loading @@ -29,7 +30,9 @@ namespace bluetooth { namespace shim { const ModuleFactory Controller::Factory = ModuleFactory([]() { return new Controller(); }); namespace { constexpr char kModuleName[] = "shim::Controller"; } // namespace struct Controller::impl { impl(hci::Controller* hci_controller) : hci_controller_(hci_controller) {} Loading @@ -37,6 +40,8 @@ struct Controller::impl { hci::Controller* hci_controller_{nullptr}; }; const ModuleFactory Controller::Factory = ModuleFactory([]() { return new Controller(); }); bool Controller::IsCommandSupported(int op_code) const { return pimpl_->hci_controller_->IsSupported((bluetooth::hci::OpCode)op_code); } Loading Loading @@ -109,5 +114,9 @@ void Controller::Stop() { pimpl_.reset(); } std::string Controller::ToString() const { return kModuleName; } } // namespace shim } // namespace bluetooth Loading
system/gd/shim/advertising.cc +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include <functional> #include <memory> #include <string> #include "hci/address.h" #include "hci/hci_packets.h" Loading @@ -29,6 +30,10 @@ namespace bluetooth { namespace shim { namespace { constexpr char kModuleName[] = "shim::Advertising"; } // namespace struct Advertising::impl { impl(hci::LeAdvertisingManager* module, os::Handler* handler); ~impl(); Loading Loading @@ -121,5 +126,9 @@ void Advertising::Stop() { pimpl_.reset(); } std::string Advertising::ToString() const { return kModuleName; } } // namespace shim } // namespace bluetooth
system/gd/shim/advertising.h +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ class Advertising : public bluetooth::Module, public bluetooth::shim::IAdvertisi void ListDependencies(ModuleList* list) override; // Module void Start() override; // Module void Stop() override; // Module std::string ToString() const override; // Module private: struct impl; Loading
system/gd/shim/connectability.cc +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define LOG_TAG "bt_gd_shim" #include <memory> #include <string> #include "common/bidi_queue.h" #include "hci/address.h" Loading @@ -30,6 +31,10 @@ namespace bluetooth { namespace shim { namespace { constexpr char kModuleName[] = "shim::Connectability"; } // namespace const ModuleFactory Connectability::Factory = ModuleFactory([]() { return new Connectability(); }); struct Connectability::impl { Loading Loading @@ -65,5 +70,9 @@ void Connectability::Stop() { pimpl_.reset(); } std::string Connectability::ToString() const { return kModuleName; } } // namespace shim } // namespace bluetooth
system/gd/shim/connectability.h +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #pragma once #include <memory> #include <string> #include "module.h" #include "shim/iconnectability.h" Loading @@ -38,6 +39,7 @@ class Connectability : public bluetooth::Module, public bluetooth::shim::IConnec void ListDependencies(ModuleList* list) override; // Module void Start() override; // Module void Stop() override; // Module std::string ToString() const override; // Module private: struct impl; Loading
system/gd/shim/controller.cc +10 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define LOG_TAG "bt_gd_shim" #include <memory> #include <string> #include "common/bidi_queue.h" #include "hci/address.h" Loading @@ -29,7 +30,9 @@ namespace bluetooth { namespace shim { const ModuleFactory Controller::Factory = ModuleFactory([]() { return new Controller(); }); namespace { constexpr char kModuleName[] = "shim::Controller"; } // namespace struct Controller::impl { impl(hci::Controller* hci_controller) : hci_controller_(hci_controller) {} Loading @@ -37,6 +40,8 @@ struct Controller::impl { hci::Controller* hci_controller_{nullptr}; }; const ModuleFactory Controller::Factory = ModuleFactory([]() { return new Controller(); }); bool Controller::IsCommandSupported(int op_code) const { return pimpl_->hci_controller_->IsSupported((bluetooth::hci::OpCode)op_code); } Loading Loading @@ -109,5 +114,9 @@ void Controller::Stop() { pimpl_.reset(); } std::string Controller::ToString() const { return kModuleName; } } // namespace shim } // namespace bluetooth