Home
last modified time | relevance | path

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

/external/libchrome/dbus/
Dexported_object.cc34 : 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 …]
Dobject_proxy.cc118 : 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 …]
Dobject_manager.cc34 : 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 …]
Dexported_object.h171 scoped_refptr<Bus> bus_; variable
Dobject_manager.h318 Bus* bus_; variable
Dobject_proxy.h334 scoped_refptr<Bus> bus_; variable
/external/libbrillo/brillo/http/
Dhttp_proxy_unittest.cc57 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/
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.cc76 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 …]
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_property_set.cc22 : 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()
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_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.cc188 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()
Ddbus_object_unittest.cc105 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()
Dexported_object_manager.h109 const scoped_refptr<dbus::Bus>& GetBus() const { return bus_; } in GetBus()
121 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.h151 dbus::Bus* bus_; // weak; owned by outer DBusObject containing this object. variable
Ddbus_object.h582 scoped_refptr<dbus::Bus> GetBus() { return bus_; } in GetBus()
596 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