Home
last modified time | relevance | path

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

12

/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 …]
Dobject_proxy_unittest.cc26 bus_ = new Bus(bus_options); in SetUp()
29 void TearDown() override { bus_->ShutdownAndBlock(); } in TearDown()
36 scoped_refptr<Bus> bus_; member in dbus::__anon04f818240111::ObjectProxyTest
58 ObjectProxy* object_proxy = bus_->GetObjectProxy( in TEST_F()
95 ObjectProxy* object_proxy = bus_->GetObjectProxy( in TEST_F()
119 ObjectProxy* object_proxy = bus_->GetObjectProxy( in TEST_F()
Dend_to_end_async_unittest.cc66 bus_ = new Bus(bus_options); in SetUp()
67 object_proxy_ = bus_->GetObjectProxy( in SetUp()
70 ASSERT_TRUE(bus_->HasDBusThread()); in SetUp()
102 root_object_proxy_ = bus_->GetObjectProxy(test_service_->service_name(), in SetUp()
104 ASSERT_TRUE(bus_->HasDBusThread()); in SetUp()
121 bus_->ShutdownOnDBusThreadAndBlock(); in TearDown()
138 bus_->ShutdownOnDBusThreadAndBlock(); in SetUpBrokenBus()
147 bus_ = new Bus(bus_options); in SetUpBrokenBus()
148 ASSERT_TRUE(bus_->HasDBusThread()); in SetUpBrokenBus()
151 object_proxy_ = bus_->GetObjectProxy( in SetUpBrokenBus()
[all …]
Dobject_manager_unittest.cc87 bus_ = new Bus(bus_options); in SetUp()
88 ASSERT_TRUE(bus_->HasDBusThread()); in SetUp()
90 object_manager_ = bus_->GetObjectManager( in SetUp()
99 bus_->ShutdownOnDBusThreadAndBlock(); in TearDown()
192 ObjectProxy* object_proxy = bus_->GetObjectProxy( in PerformAction()
211 scoped_refptr<Bus> bus_; member in dbus::ObjectManagerTest
291 ObjectManager* object_manager = bus_->GetObjectManager( in TEST_F()
298 ObjectManager* object_manager = bus_->GetObjectManager( in TEST_F()
305 ObjectManager* object_manager = bus_->GetObjectManager( in TEST_F()
390 EXPECT_TRUE(bus_->RemoveObjectManager( in TEST_F()
[all …]
Dsignal_sender_verification_unittest.cc52 bus_ = new Bus(bus_options); in SetUp()
53 object_proxy_ = bus_->GetObjectProxy( in SetUp()
56 ASSERT_TRUE(bus_->HasDBusThread()); in SetUp()
100 bus_->ShutdownOnDBusThreadAndBlock(); in TearDown()
172 scoped_refptr<Bus> bus_; member in dbus::SignalSenderVerificationTest
326 ObjectProxy* object_proxy2 = bus_->GetObjectProxy( in TEST_F()
Dproperty_unittest.cc79 bus_ = new Bus(bus_options); in SetUp()
80 object_proxy_ = bus_->GetObjectProxy( in SetUp()
83 ASSERT_TRUE(bus_->HasDBusThread()); in SetUp()
95 bus_->ShutdownOnDBusThreadAndBlock(); in TearDown()
164 scoped_refptr<Bus> bus_; member in dbus::PropertyTest
/external/libbrillo/brillo/http/
Dhttp_proxy_test.cc59 bus_ = new dbus::MockBus(options); in HttpProxyTest()
61 bus_.get(), chromeos::kNetworkProxyServiceName, in HttpProxyTest()
63 EXPECT_CALL(*bus_, GetObjectProxy(chromeos::kNetworkProxyServiceName, in HttpProxyTest()
87 scoped_refptr<dbus::MockBus> bus_; member in brillo::http::HttpProxyTest
104 EXPECT_FALSE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F()
112 EXPECT_FALSE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F()
119 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F()
128 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F()
139 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F()
151 bus_, kTestUrl, in TEST_F()
[all …]
/external/libbrillo/brillo/dbus/
Ddbus_connection.cc13 if (bus_) in ~DBusConnection()
14 bus_->ShutdownAndBlock(); in ~DBusConnection()
23 if (bus_) in ConnectWithTimeout()
24 return bus_; in ConnectWithTimeout()
35 bus_ = bus; in ConnectWithTimeout()
36 return bus_; in ConnectWithTimeout()
Ddbus_method_invoker_test.cc75 bus_ = new dbus::MockBus(options); in SetUp()
77 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
78 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
81 bus_.get(), kTestServiceName, dbus::ObjectPath(kTestPath)); in SetUp()
82 EXPECT_CALL(*bus_, in SetUp()
91 void TearDown() override { bus_ = nullptr; } in TearDown()
176 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::DBusMethodInvokerTest
234 bus_ = new dbus::MockBus(options); in SetUp()
236 EXPECT_CALL(*bus_, AssertOnOriginThread()).Times(AnyNumber()); in SetUp()
237 EXPECT_CALL(*bus_, AssertOnDBusThread()).Times(AnyNumber()); in SetUp()
[all …]
Ddbus_signal_handler_test.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()
69 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.cc21 : bus_(bus), weak_ptr_factory_(this) { in ExportedPropertySet()
42 bus_->AssertOnOriginThread(); in RegisterProperty()
58 bus_->AssertOnOriginThread(); in UnregisterProperty()
69 bus_->AssertOnOriginThread(); in HandleGetAll()
94 bus_->AssertOnOriginThread(); in HandleGet()
118 bus_->AssertOnOriginThread(); in HandleSet()
142 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_test.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()
110 mock_exported_object_ = new dbus::MockExportedObject(bus_.get(), kTestPath); in SetUp()
111 EXPECT_CALL(*bus_, GetExportedObject(kTestPath)).Times(1).WillOnce( in SetUp()
115 om_.reset(new ExportedObjectManager(bus_.get(), kTestPath)); in SetUp()
123 bus_ = nullptr; in TearDown()
134 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::ExportedObjectManagerTest
Ddbus_object.cc237 bus_(bus), in DBusObject()
282 ->ExportAsync(object_manager_.get(), bus_.get(), exported_object_, in ExportInterfaceAsync()
288 ->ExportAndBlock(object_manager_.get(), bus_.get(), exported_object_, in ExportInterfaceAndBlock()
310 exported_object_ = bus_->GetExportedObject(object_path_); in RegisterAsync()
318 bus_.get(), in RegisterAsync()
331 exported_object_ = bus_->GetExportedObject(object_path_); in RegisterAndBlock()
339 bus_.get(), in RegisterAndBlock()
356 bus_->UnregisterExportedObject(object_path_); in UnregisterAsync()
Ddbus_object_test.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()
111 new dbus::MockExportedObject(bus_.get(), kMethodsExportedOnPath); in SetUp()
112 EXPECT_CALL(*bus_, GetExportedObject(kMethodsExportedOnPath)) in SetUp()
120 new DBusObject(nullptr, bus_, kMethodsExportedOnPath)); in SetUp()
152 scoped_refptr<dbus::MockBus> bus_; member in brillo::dbus_utils::DBusObjectTest
455 MockExportedObjectManager mock_object_manager{bus_, kObjectManagerPath}; in TEST_F()
457 new DBusObject(&mock_object_manager, bus_, kMethodsExportedOnPath)); in TEST_F()
Dexported_object_manager.h110 const scoped_refptr<::dbus::Bus>& GetBus() const { return bus_; } in GetBus()
115 scoped_refptr<::dbus::Bus> bus_; variable
Dexported_property_set_test.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_;
/external/libchrome/libchrome_tools/patches/
DConnect-to-NameOwnerChanged-signal-when-setting-call.patch13 bus_->GetServiceOwnerAndBlock shows empty service name owner.
18 UpdateNameOwnerAndBlock calling bus_->GetServiceOwnerAndBlock returns the
58 if (!bus_->Connect() || !bus_->SetUpAsyncOperations())
62 - bus_->GetServiceOwnerAndBlock(service_name_, Bus::SUPPRESS_ERRORS);
67 + bus_->GetServiceOwnerAndBlock(service_name_, Bus::SUPPRESS_ERRORS);
73 DCHECK(bus_);
76 + bus_->AssertOnOriginThread();
85 + bus_->AssertOnDBusThread();
92 + bus_->AssertOnOriginThread();
94 + bus_->GetDBusTaskRunner()->PostTask(
[all …]
Ddbus-Make-Bus-is_connected-mockable.patch61 - if (!bus_->is_connected())
62 + if (!bus_->IsConnected())
84 bus_->AssertOnDBusThread();
86 - if (bus_->is_connected())
87 + if (bus_->IsConnected())
88 bus_->RemoveFilterFunction(&ObjectProxy::HandleMessageThunk, this);
Ddbus-Support-UnexportMethod-from-an-exported-object.patch30 + bus_->AssertOnDBusThread();
48 bus_->GetDBusTaskRunner()->PostTask(FROM_HERE, task);
55 + bus_->AssertOnOriginThread();
60 + bus_->GetDBusTaskRunner()->PostTask(FROM_HERE, task);
74 + bus_->AssertOnDBusThread();
77 + bus_->GetOriginTaskRunner()->PostTask(
94 + bus_->AssertOnOriginThread();
/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()

12