/external/libchrome/dbus/ |
D | exported_object.cc | 34 : bus_(bus), in ExportedObject() 48 bus_->AssertOnDBusThread(); in ExportMethodAndBlock() 58 if (!bus_->Connect()) in ExportMethodAndBlock() 60 if (!bus_->SetUpAsyncOperations()) in ExportMethodAndBlock() 75 bus_->AssertOnOriginThread(); in ExportMethod() 83 bus_->GetDBusTaskRunner()->PostTask(FROM_HERE, task); in ExportMethod() 98 if (bus_->GetDBusTaskRunner()->RunsTasksInCurrentSequence()) { in SendSignal() 106 bus_->GetDBusTaskRunner()->PostTask( in SendSignal() 116 bus_->AssertOnDBusThread(); in Unregister() 121 bus_->UnregisterObjectPath(object_path_); in Unregister() [all …]
|
D | object_proxy.cc | 118 : bus_(bus), in ObjectProxy() 137 bus_->AssertOnDBusThread(); in CallMethodAndBlockWithErrorDetails() 139 if (!bus_->Connect() || in CallMethodAndBlockWithErrorDetails() 149 bus_->SendWithReplyAndBlock(request_message, timeout_ms, error->get()); in CallMethodAndBlockWithErrorDetails() 194 bus_->AssertOnOriginThread(); in CallMethodWithErrorResponse() 198 ReplyCallbackHolder callback_holder(bus_->GetOriginTaskRunner(), in CallMethodWithErrorResponse() 208 bus_->GetOriginTaskRunner()->PostTask(FROM_HERE, std::move(task)); in CallMethodWithErrorResponse() 226 bus_->GetDBusTaskRunner()->PostTask(FROM_HERE, std::move(task)); in CallMethodWithErrorResponse() 252 bus_->AssertOnOriginThread(); in ConnectToSignal() 254 if (bus_->HasDBusThread()) { in ConnectToSignal() [all …]
|
D | object_manager.cc | 34 : 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 SetupMatchRuleAndFilter() [all …]
|
D | exported_object.h | 171 scoped_refptr<Bus> bus_; variable
|
D | object_manager.h | 318 Bus* bus_; variable
|
D | object_proxy.h | 334 scoped_refptr<Bus> bus_; variable
|
/external/libbrillo/brillo/http/ |
D | http_proxy_unittest.cc | 57 bus_ = new dbus::MockBus(options); in HttpProxyTest() 59 bus_.get(), chromeos::kNetworkProxyServiceName, in HttpProxyTest() 61 EXPECT_CALL(*bus_, GetObjectProxy(chromeos::kNetworkProxyServiceName, in HttpProxyTest() 85 scoped_refptr<dbus::MockBus> bus_; member in brillo::http::HttpProxyTest 102 EXPECT_FALSE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 110 EXPECT_FALSE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 117 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 126 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 137 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 149 bus_, kTestUrl, in TEST_F() [all …]
|
/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 | 76 bus_ = new dbus::MockBus(options); in SetUp() 78 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp() 79 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp() 82 bus_.get(), kTestServiceName, dbus::ObjectPath(kTestPath)); in SetUp() 83 EXPECT_CALL(*bus_, in SetUp() 92 void TearDown() override { bus_ = nullptr; } in TearDown() 177 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::DBusMethodInvokerTest 235 bus_ = new dbus::MockBus(options); in SetUp() 237 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp() 238 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_property_set.cc | 22 : bus_(bus), weak_ptr_factory_(this) { in ExportedPropertySet() 43 bus_->AssertOnOriginThread(); in RegisterProperty() 59 bus_->AssertOnOriginThread(); in UnregisterProperty() 70 bus_->AssertOnOriginThread(); in HandleGetAll() 95 bus_->AssertOnOriginThread(); in HandleGet() 119 bus_->AssertOnOriginThread(); in HandleSet() 143 bus_->AssertOnOriginThread(); in HandlePropertyUpdated()
|
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_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 | 188 bus_(bus), in DBusObject() 233 ->ExportAsync(object_manager_.get(), bus_.get(), exported_object_, in ExportInterfaceAsync() 242 exported_object_ = bus_->GetExportedObject(object_path_); in RegisterAsync() 250 bus_.get(), in RegisterAsync() 263 exported_object_ = bus_->GetExportedObject(object_path_); in RegisterAndBlock() 271 bus_.get(), in RegisterAndBlock() 288 bus_->UnregisterExportedObject(object_path_); in UnregisterAsync()
|
D | dbus_object_unittest.cc | 105 bus_ = new dbus::MockBus(options); in SetUp() 107 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp() 108 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp() 113 new dbus::MockExportedObject(bus_.get(), kMethodsExportedOnPath); in SetUp() 114 EXPECT_CALL(*bus_, GetExportedObject(kMethodsExportedOnPath)) in SetUp() 122 new DBusObject(nullptr, bus_, kMethodsExportedOnPath)); in SetUp() 154 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::DBusObjectTest 411 MockExportedObjectManager mock_object_manager{bus_, kObjectManagerPath}; in TEST_F() 413 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() 121 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 | 151 dbus::Bus* bus_; // weak; owned by outer DBusObject containing this object. variable
|
D | dbus_object.h | 582 scoped_refptr<dbus::Bus> GetBus() { return bus_; } in GetBus() 596 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
|