/external/libchrome/dbus/ |
D | object_proxy.cc | 58 : 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 …]
|
D | exported_object.cc | 34 : 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 …]
|
D | object_manager.cc | 35 : 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 …]
|
D | exported_object.h | 169 scoped_refptr<Bus> bus_; variable
|
D | object_manager.h | 320 Bus* bus_; variable
|
D | object_proxy.h | 301 scoped_refptr<Bus> bus_; variable
|
/external/libbrillo/brillo/dbus/ |
D | dbus_connection.cc | 22 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()
|
D | dbus_method_invoker_unittest.cc | 44 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 …]
|
D | dbus_signal_handler_unittest.cc | 34 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
|
D | dbus_service_watcher.cc | 16 : bus_{bus}, in DBusServiceWatcher() 22 bus_->ListenForServiceOwnerChange(connection_name_, monitoring_callback_); 23 bus_->GetServiceOwner(connection_name_, monitoring_callback_); 27 bus_->UnlistenForServiceOwnerChange( in ~DBusServiceWatcher()
|
D | exported_object_manager.cc | 20 : 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()
|
D | exported_property_set.cc | 22 : 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()
|
D | exported_object_manager_unittest.cc | 103 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
|
D | dbus_object.cc | 155 : 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()
|
D | dbus_object_unittest.cc | 99 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()
|
D | exported_object_manager.h | 109 const scoped_refptr<dbus::Bus>& GetBus() const { return bus_; } in GetBus() 114 scoped_refptr<dbus::Bus> bus_; variable
|
D | exported_property_set_unittest.cc | 114 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
|
D | dbus_connection.h | 32 scoped_refptr<dbus::Bus> bus_;
|
D | dbus_service_watcher.h | 41 scoped_refptr<dbus::Bus> bus_; variable
|
D | exported_property_set.h | 144 dbus::Bus* bus_; // weak; owned by outer DBusObject containing this object. variable
|
D | dbus_object.h | 555 scoped_refptr<dbus::Bus> GetBus() { return bus_; } in GetBus() 566 scoped_refptr<dbus::Bus> bus_; variable
|
/external/libbrillo/brillo/daemons/ |
D | dbus_daemon.cc | 26 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()
|
D | dbus_daemon.h | 40 scoped_refptr<dbus::Bus> bus_; variable
|