Home
last modified time | relevance | path

Searched refs:bus_ (Results 1 – 23 of 23) sorted by relevance

/external/libchrome/dbus/
Dobject_proxy.cc58 : bus_(bus), in ObjectProxy()
74 bus_->AssertOnDBusThread(); in CallMethodAndBlockWithErrorDetails()
76 if (!bus_->Connect() || in CallMethodAndBlockWithErrorDetails()
86 bus_->SendWithReplyAndBlock(request_message, timeout_ms, error->get()); in CallMethodAndBlockWithErrorDetails()
130 bus_->AssertOnOriginThread(); in CallMethodWithErrorCallback()
144 bus_->GetOriginTaskRunner()->PostTask(FROM_HERE, task); in CallMethodWithErrorCallback()
166 bus_->GetDBusTaskRunner()->PostTask(FROM_HERE, task); in CallMethodWithErrorCallback()
173 bus_->AssertOnOriginThread(); in ConnectToSignal()
175 if (bus_->HasDBusThread()) { in ConnectToSignal()
177 bus_->GetDBusTaskRunner(), FROM_HERE, in ConnectToSignal()
[all …]
Dexported_object.cc34 : bus_(bus), in ExportedObject()
47 bus_->AssertOnDBusThread(); in ExportMethodAndBlock()
57 if (!bus_->Connect()) in ExportMethodAndBlock()
59 if (!bus_->SetUpAsyncOperations()) in ExportMethodAndBlock()
74 bus_->AssertOnOriginThread(); in ExportMethod()
82 bus_->GetDBusTaskRunner()->PostTask(FROM_HERE, task); in ExportMethod()
97 if (bus_->GetDBusTaskRunner()->RunsTasksOnCurrentThread()) { in SendSignal()
105 bus_->GetDBusTaskRunner()->PostTask( in SendSignal()
115 bus_->AssertOnDBusThread(); in Unregister()
120 bus_->UnregisterObjectPath(object_path_); in Unregister()
[all …]
Dobject_manager.cc35 : bus_(bus), in ObjectManager()
43 DCHECK(bus_); in ObjectManager()
44 bus_->AssertOnOriginThread(); in ObjectManager()
45 object_proxy_ = bus_->GetObjectProxy(service_name_, object_path_); in ObjectManager()
55 bus_->GetDBusTaskRunner(), in ObjectManager()
151 DCHECK(bus_); in CleanUp()
152 bus_->AssertOnDBusThread(); in CleanUp()
160 bus_->RemoveFilterFunction(&ObjectManager::HandleMessageThunk, this); in CleanUp()
163 bus_->RemoveMatch(match_rule_, error.get()); in CleanUp()
171 DCHECK(bus_); in InitializeObjects()
[all …]
Dexported_object.h169 scoped_refptr<Bus> bus_; variable
Dobject_manager.h320 Bus* bus_; variable
Dobject_proxy.h301 scoped_refptr<Bus> bus_; variable
/external/libbrillo/brillo/dbus/
Ddbus_connection.cc22 if (bus_) in ~DBusConnection()
23 bus_->ShutdownAndBlock(); in ~DBusConnection()
32 if (bus_) in ConnectWithTimeout()
33 return bus_; in ConnectWithTimeout()
44 bus_ = bus; in ConnectWithTimeout()
45 return bus_; in ConnectWithTimeout()
Ddbus_method_invoker_unittest.cc44 bus_ = new dbus::MockBus(options); in SetUp()
46 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
47 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
50 bus_.get(), kTestServiceName, dbus::ObjectPath(kTestPath)); in SetUp()
51 EXPECT_CALL(*bus_, in SetUp()
60 void TearDown() override { bus_ = nullptr; } in TearDown()
146 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::DBusMethodInvokerTest
201 bus_ = new dbus::MockBus(options); in SetUp()
203 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
204 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
[all …]
Ddbus_signal_handler_unittest.cc34 bus_ = new dbus::MockBus(options); in SetUp()
36 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
37 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
40 bus_.get(), kTestServiceName, dbus::ObjectPath(kTestPath)); in SetUp()
41 EXPECT_CALL(*bus_, in SetUp()
46 void TearDown() override { bus_ = nullptr; } in TearDown()
68 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::DBusSignalHandlerTest
Ddbus_service_watcher.cc16 : bus_{bus}, in DBusServiceWatcher()
22 bus_->ListenForServiceOwnerChange(connection_name_, monitoring_callback_);
23 bus_->GetServiceOwner(connection_name_, monitoring_callback_);
27 bus_->UnlistenForServiceOwnerChange( in ~DBusServiceWatcher()
Dexported_object_manager.cc20 : bus_(bus), dbus_object_(nullptr, bus, path) { in ExportedObjectManager()
26 bus_->AssertOnOriginThread(); in RegisterAsync()
44 bus_->AssertOnOriginThread(); in ClaimInterface()
61 bus_->AssertOnOriginThread(); in ReleaseInterface()
90 bus_->AssertOnOriginThread(); in HandleGetManagedObjects()
Dexported_property_set.cc22 : bus_(bus), weak_ptr_factory_(this) { in ExportedPropertySet()
43 bus_->AssertOnOriginThread(); in RegisterProperty()
59 bus_->AssertOnOriginThread(); in HandleGetAll()
84 bus_->AssertOnOriginThread(); in HandleGet()
108 bus_->AssertOnOriginThread(); in HandleSet()
132 bus_->AssertOnOriginThread(); in HandlePropertyUpdated()
Dexported_object_manager_unittest.cc103 bus_ = new dbus::MockBus(options); in SetUp()
105 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
106 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
108 mock_exported_object_ = new dbus::MockExportedObject(bus_.get(), kTestPath); in SetUp()
109 EXPECT_CALL(*bus_, GetExportedObject(kTestPath)).Times(1).WillOnce( in SetUp()
113 om_.reset(new ExportedObjectManager(bus_.get(), kTestPath)); in SetUp()
121 bus_ = nullptr; in TearDown()
132 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::ExportedObjectManagerTest
Ddbus_object.cc155 : property_set_(bus.get()), bus_(bus), object_path_(object_path) { in DBusObject()
191 exported_object_ = bus_->GetExportedObject(object_path_); in RegisterAsync()
213 bus_.get(), in RegisterAsync()
226 exported_object_ = bus_->GetExportedObject(object_path_); in RegisterAndBlock()
248 bus_.get(), in RegisterAndBlock()
265 bus_->UnregisterExportedObject(object_path_); in UnregisterAsync()
Ddbus_object_unittest.cc99 bus_ = new dbus::MockBus(options); in SetUp()
101 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
102 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
107 new dbus::MockExportedObject(bus_.get(), kMethodsExportedOnPath); in SetUp()
108 EXPECT_CALL(*bus_, GetExportedObject(kMethodsExportedOnPath)) in SetUp()
116 new DBusObject(nullptr, bus_, kMethodsExportedOnPath)); in SetUp()
148 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::DBusObjectTest
376 MockExportedObjectManager mock_object_manager{bus_, kObjectManagerPath}; in TEST_F()
378 new DBusObject(&mock_object_manager, bus_, kMethodsExportedOnPath)); in TEST_F()
Dexported_object_manager.h109 const scoped_refptr<dbus::Bus>& GetBus() const { return bus_; } in GetBus()
114 scoped_refptr<dbus::Bus> bus_; variable
Dexported_property_set_unittest.cc114 bus_ = new dbus::MockBus(options); in SetUp()
116 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
117 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
120 new dbus::MockExportedObject(bus_.get(), kMethodsExportedOnPath); in SetUp()
121 EXPECT_CALL(*bus_, GetExportedObject(kMethodsExportedOnPath)) in SetUp()
126 p_.reset(new Properties(bus_, kMethodsExportedOnPath)); in SetUp()
166 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::ExportedPropertySetTest
Ddbus_connection.h32 scoped_refptr<dbus::Bus> bus_;
Ddbus_service_watcher.h41 scoped_refptr<dbus::Bus> bus_; variable
Dexported_property_set.h144 dbus::Bus* bus_; // weak; owned by outer DBusObject containing this object. variable
Ddbus_object.h555 scoped_refptr<dbus::Bus> GetBus() { return bus_; } in GetBus()
566 scoped_refptr<dbus::Bus> bus_; variable
/external/libbrillo/brillo/daemons/
Ddbus_daemon.cc26 bus_ = dbus_connection_.Connect(); in OnInit()
27 CHECK(bus_); in OnInit()
56 new ExportedObjectManager(bus_, object_manager_path_)); in OnInit()
77 CHECK(bus_->RequestOwnershipAndBlock(service_name_, in TakeServiceOwnership()
Ddbus_daemon.h40 scoped_refptr<dbus::Bus> bus_; variable