Home
last modified time | relevance | path

Searched refs:IPCManager (Results 1 – 14 of 14) sorted by relevance

/system/bt/service/ipc/
Dipc_manager.cc28 IPCManager::IPCManager(bluetooth::Adapter* adapter) : adapter_(adapter) { in IPCManager() function in ipc::IPCManager
32 IPCManager::~IPCManager() { in ~IPCManager()
40 bool IPCManager::Start(Type type, Delegate* delegate) { in Start()
90 bool IPCManager::BinderStarted() const { return binder_handler_.get(); } in BinderStarted()
92 bool IPCManager::LinuxStarted() const { return linux_handler_.get(); } in LinuxStarted()
94 bool IPCManager::DBusStarted() const { return dbus_handler_.get(); } in DBusStarted()
Dipc_manager.h36 class IPCManager {
64 explicit IPCManager(bluetooth::Adapter* adapter);
65 ~IPCManager();
88 IPCManager() = default;
100 DISALLOW_COPY_AND_ASSIGN(IPCManager);
Dipc_handler.h34 IPCHandler(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
48 IPCManager::Delegate* delegate() const { return delegate_; } in delegate()
57 IPCManager::Delegate* delegate_;
Dipc_handler_linux.cc32 IPCManager::Delegate* delegate) in IPCHandlerLinux()
192 if (delegate()) delegate()->OnIPCHandlerStarted(IPCManager::TYPE_LINUX); in NotifyStartedOnCurrentThread()
204 if (delegate()) delegate()->OnIPCHandlerStopped(IPCManager::TYPE_LINUX); in NotifyStoppedOnCurrentThread()
Dipc_handler.cc24 IPCManager::Delegate* delegate) in IPCHandler()
Dipc_handler_linux.h37 IPCHandlerLinux(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
/system/bt/service/
Ddaemon.cc40 class DaemonImpl : public Daemon, public ipc::IPCManager::Delegate {
60 void OnIPCHandlerStarted(ipc::IPCManager::Type /* type */) override { in OnIPCHandlerStarted()
65 void OnIPCHandlerStopped(ipc::IPCManager::Type /* type */) override { in OnIPCHandlerStopped()
107 if (!ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, this)) { in SetUpIPC()
115 if (!ipc_manager_->Start(ipc::IPCManager::TYPE_BINDER, this)) { in SetUpIPC()
120 if (!ipc_manager_->Start(ipc::IPCManager::TYPE_DBUS, this)) { in SetUpIPC()
145 ipc_manager_.reset(new ipc::IPCManager(adapter_.get())); in Init()
162 std::unique_ptr<ipc::IPCManager> ipc_manager_;
Ddaemon.h23 class IPCManager; variable
/system/bt/service/test/
Dipc_linux_unittest.cc66 ipc_manager_.reset(new ipc::IPCManager(adapter_.get())); in SetUp()
108 std::unique_ptr<ipc::IPCManager> ipc_manager_;
129 class TestDelegate : public ipc::IPCManager::Delegate,
134 void OnIPCHandlerStarted(ipc::IPCManager::Type type) override { in OnIPCHandlerStarted()
135 ASSERT_EQ(ipc::IPCManager::TYPE_LINUX, type); in OnIPCHandlerStarted()
140 void OnIPCHandlerStopped(ipc::IPCManager::Type type) override { in OnIPCHandlerStopped()
141 ASSERT_EQ(ipc::IPCManager::TYPE_LINUX, type); in OnIPCHandlerStopped()
158 EXPECT_FALSE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F()
166 EXPECT_TRUE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F()
187 EXPECT_TRUE(ipc_manager_->Start(ipc::IPCManager::TYPE_LINUX, &delegate)); in TEST_F()
Dstub_ipc_handler_binder.cc26 IPCManager::Delegate* delegate) in IPCHandlerBinder()
/system/bt/service/ipc/binder/
Dipc_handler_binder.cc39 IPCManager::Delegate* delegate) in IPCHandlerBinder()
76 if (delegate()) delegate()->OnIPCHandlerStarted(IPCManager::TYPE_BINDER); in NotifyStarted()
Dipc_handler_binder.h29 IPCHandlerBinder(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
/system/bt/service/ipc/dbus/
Dipc_handler_dbus.h31 IPCHandlerDBus(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
Dipc_handler_dbus.cc30 IPCManager::Delegate* delegate) in IPCHandlerDBus()