Home
last modified time | relevance | path

Searched refs:method_call (Results 1 – 25 of 37) sorted by relevance

12

/external/libbrillo/brillo/dbus/
Ddbus_object_unittest.cc161 dbus::MethodCall method_call(kTestInterface1, kTestMethod_Add); in TEST_F() local
162 method_call.SetSerial(123); in TEST_F()
163 dbus::MessageWriter writer(&method_call); in TEST_F()
166 auto response = testing::CallMethod(*dbus_object_, &method_call); in TEST_F()
175 dbus::MethodCall method_call(kTestInterface1, kTestMethod_Negate); in TEST_F() local
176 method_call.SetSerial(123); in TEST_F()
177 dbus::MessageWriter writer(&method_call); in TEST_F()
179 auto response = testing::CallMethod(*dbus_object_, &method_call); in TEST_F()
188 dbus::MethodCall method_call(kTestInterface1, kTestMethod_Positive); in TEST_F() local
189 method_call.SetSerial(123); in TEST_F()
[all …]
Ddbus_object_internal_impl.h55 virtual void HandleMethod(dbus::MethodCall* method_call,
79 void HandleMethod(dbus::MethodCall* method_call, in HandleMethod() argument
81 DBusMethodResponse<R> method_response(method_call, sender); in HandleMethod()
87 dbus::MessageReader reader(method_call); in HandleMethod()
113 void HandleMethod(dbus::MethodCall* method_call, in HandleMethod() argument
115 DBusMethodResponseBase method_response(method_call, sender); in HandleMethod()
125 dbus::MessageReader reader(method_call); in HandleMethod()
159 void HandleMethod(dbus::MethodCall* method_call, in HandleMethod() argument
161 DBusMethodResponseBase method_response(method_call, sender); in HandleMethod()
175 dbus::MessageReader reader(method_call); in HandleMethod()
[all …]
Ddbus_object_test_helpers.h28 dbus::MethodCall* method_call, in HandleMethodCall() argument
30 itf->HandleMethodCall(method_call, sender); in HandleMethodCall()
57 const DBusObject& object, dbus::MethodCall* method_call) { in CallMethod() argument
58 DBusInterface* itf = object.FindInterface(method_call->GetInterface()); in CallMethod()
62 method_call, in CallMethod()
68 itf, method_call, base::Bind(&ResponseHolder::ReceiveResponse, in CallMethod()
98 dbus::MethodCall method_call("test.interface", "TestMethod"); in Call()
99 method_call.SetSerial(123); in Call()
102 &method_call, base::Bind(&ResponseHolder::ReceiveResponse, in Call()
125 dbus::MethodCall method_call("test.interface", "TestMethod");
[all …]
Dexported_property_set_unittest.cc133 void AssertMethodReturnsError(dbus::MethodCall* method_call) { in AssertMethodReturnsError() argument
134 method_call->SetSerial(123); in AssertMethodReturnsError()
135 auto response = testing::CallMethod(p_->dbus_object_, method_call); in AssertMethodReturnsError()
142 dbus::MethodCall method_call(dbus::kPropertiesInterface, in GetPropertyOnInterface() local
144 method_call.SetSerial(123); in GetPropertyOnInterface()
145 dbus::MessageWriter writer(&method_call); in GetPropertyOnInterface()
148 return testing::CallMethod(p_->dbus_object_, &method_call); in GetPropertyOnInterface()
155 dbus::MethodCall method_call(dbus::kPropertiesInterface, in SetPropertyOnInterface() local
157 method_call.SetSerial(123); in SetPropertyOnInterface()
158 dbus::MessageWriter writer(&method_call); in SetPropertyOnInterface()
[all …]
Ddbus_method_invoker_unittest.cc94 Response* CreateResponse(dbus::MethodCall* method_call, in CreateResponse() argument
97 if (method_call->GetInterface() == kTestInterface) { in CreateResponse()
98 if (method_call->GetMember() == kTestMethod1) { in CreateResponse()
99 MessageReader reader(method_call); in CreateResponse()
109 } else if (method_call->GetMember() == kTestMethod2) { in CreateResponse()
110 method_call->SetSerial(123); in CreateResponse()
113 } else if (method_call->GetMember() == kTestMethod3) { in CreateResponse()
114 MessageReader reader(method_call); in CreateResponse()
122 } else if (method_call->GetMember() == kTestMethod4) { in CreateResponse()
123 method_call->SetSerial(123); in CreateResponse()
[all …]
Ddbus_method_invoker.h102 dbus::MethodCall method_call(interface_name, method_name); in CallMethodAndBlockWithTimeout()
104 dbus::MessageWriter writer(&method_call); in CallMethodAndBlockWithTimeout()
108 &method_call, timeout_ms, &dbus_error); in CallMethodAndBlockWithTimeout()
295 dbus::MethodCall method_call(interface_name, method_name); in CallMethodWithTimeout()
296 dbus::MessageWriter writer(&method_call); in CallMethodWithTimeout()
305 &method_call, timeout_ms, dbus_success_callback, dbus_error_callback); in CallMethodWithTimeout()
Dutils.cc18 dbus::MethodCall* method_call, in CreateDBusErrorResponse() argument
21 return dbus::ErrorResponse::FromMethodCall(method_call, error_name, in CreateDBusErrorResponse()
25 std::unique_ptr<dbus::Response> GetDBusError(dbus::MethodCall* method_call, in GetDBusError() argument
49 return CreateDBusErrorResponse(method_call, error_name, error_message); in GetDBusError()
Dutils.h22 dbus::MethodCall* method_call,
32 dbus::MethodCall* method_call,
Ddbus_object.cc133 void DBusInterface::HandleMethodCall(dbus::MethodCall* method_call, in HandleMethodCall() argument
135 std::string method_name = method_call->GetMember(); in HandleMethodCall()
140 << method_name << "(" << method_call->GetSignature() << ")"; in HandleMethodCall()
144 dbus::ErrorResponse::FromMethodCall(method_call, in HandleMethodCall()
151 pair->second->HandleMethod(method_call, sender); in HandleMethodCall()
/external/adhd/cras/src/server/
Dcras_bt_transport.c358 DBusMessage *method_call; in cras_bt_transport_set_volume() local
362 method_call = dbus_message_new_method_call( in cras_bt_transport_set_volume()
367 if (!method_call) in cras_bt_transport_set_volume()
370 dbus_message_iter_init_append(method_call, &message_iter); in cras_bt_transport_set_volume()
381 if (!dbus_connection_send_with_reply(transport->conn, method_call, in cras_bt_transport_set_volume()
384 dbus_message_unref(method_call); in cras_bt_transport_set_volume()
388 dbus_message_unref(method_call); in cras_bt_transport_set_volume()
405 DBusMessage *method_call, *reply; in cras_bt_transport_acquire() local
411 method_call = dbus_message_new_method_call( in cras_bt_transport_acquire()
416 if (!method_call) in cras_bt_transport_acquire()
[all …]
Dcras_bt_profile.c290 DBusMessage *method_call; in cras_bt_register_profile() local
295 method_call = dbus_message_new_method_call(BLUEZ_SERVICE, in cras_bt_register_profile()
300 if (!method_call) in cras_bt_register_profile()
303 dbus_message_iter_init_append(method_call, &message_iter); in cras_bt_register_profile()
319 dbus_message_unref(method_call); in cras_bt_register_profile()
327 dbus_message_unref(method_call); in cras_bt_register_profile()
334 dbus_message_unref(method_call); in cras_bt_register_profile()
342 dbus_message_unref(method_call); in cras_bt_register_profile()
351 dbus_message_unref(method_call); in cras_bt_register_profile()
358 if (!dbus_connection_send_with_reply(conn, method_call, &pending_call, in cras_bt_register_profile()
[all …]
Dcras_bt_endpoint.c341 DBusMessage *method_call; in cras_bt_register_endpoint() local
357 method_call = dbus_message_new_method_call(BLUEZ_SERVICE, in cras_bt_register_endpoint()
361 if (!method_call) in cras_bt_register_endpoint()
364 dbus_message_iter_init_append(method_call, &message_iter); in cras_bt_register_endpoint()
433 if (!dbus_connection_send_with_reply(conn, method_call, &pending_call, in cras_bt_register_endpoint()
435 dbus_message_unref(method_call); in cras_bt_register_endpoint()
439 dbus_message_unref(method_call); in cras_bt_register_endpoint()
477 DBusMessage *method_call; in cras_bt_unregister_endpoint() local
482 method_call = dbus_message_new_method_call(BLUEZ_SERVICE, in cras_bt_unregister_endpoint()
486 if (!method_call) in cras_bt_unregister_endpoint()
[all …]
Dcras_bt_player.c42 DBusMessage *method_call; in cras_bt_add_player() local
47 method_call = dbus_message_new_method_call(BLUEZ_SERVICE, in cras_bt_add_player()
51 if (!method_call) in cras_bt_add_player()
54 dbus_message_iter_init_append(method_call, &message_iter); in cras_bt_add_player()
93 if (!dbus_connection_send_with_reply(conn, method_call, &pending_call, in cras_bt_add_player()
95 dbus_message_unref(method_call); in cras_bt_add_player()
99 dbus_message_unref(method_call); in cras_bt_add_player()
Dcras_bt_device.c195 DBusMessage *method_call; in cras_bt_device_connect_profile() local
199 method_call = dbus_message_new_method_call( in cras_bt_device_connect_profile()
204 if (!method_call) in cras_bt_device_connect_profile()
207 if (!dbus_message_append_args(method_call, in cras_bt_device_connect_profile()
217 method_call, in cras_bt_device_connect_profile()
220 dbus_message_unref(method_call); in cras_bt_device_connect_profile()
225 dbus_message_unref(method_call); in cras_bt_device_connect_profile()
239 DBusMessage *method_call; in cras_bt_device_disconnect() local
243 method_call = dbus_message_new_method_call( in cras_bt_device_disconnect()
248 if (!method_call) in cras_bt_device_disconnect()
[all …]
Dcras_bt_manager.c266 DBusMessage *method_call; in cras_bt_get_managed_objects() local
269 method_call = dbus_message_new_method_call( in cras_bt_get_managed_objects()
274 if (!method_call) in cras_bt_get_managed_objects()
278 if (!dbus_connection_send_with_reply(conn, method_call, in cras_bt_get_managed_objects()
281 dbus_message_unref(method_call); in cras_bt_get_managed_objects()
285 dbus_message_unref(method_call); in cras_bt_get_managed_objects()
/external/libchrome/dbus/
Dexported_object.cc202 std::unique_ptr<MethodCall> method_call( in HandleMessage() local
204 const std::string interface = method_call->GetInterface(); in HandleMessage()
205 const std::string member = method_call->GetMember(); in HandleMessage()
209 LOG(WARNING) << "Interface is missing: " << method_call->ToString(); in HandleMessage()
219 LOG(WARNING) << "Unknown method: " << method_call->ToString(); in HandleMessage()
229 std::move(method_call), start_time)); in HandleMessage()
232 MethodCall* method = method_call.get(); in HandleMessage()
237 base::Passed(&method_call))); in HandleMessage()
246 std::unique_ptr<MethodCall> method_call, in RunMethod() argument
249 MethodCall* method = method_call.get(); in RunMethod()
[all …]
Dmock_object_proxy.h26 std::unique_ptr<Response>(MethodCall* method_call,
30 std::unique_ptr<Response>(MethodCall* method_call,
36 void CallMethod(MethodCall* method_call,
40 void(MethodCall* method_call,
47 void CallMethodWithErrorResponse(MethodCall* method_call,
51 void(MethodCall* method_call,
58 void CallMethodWithErrorCallback(MethodCall* method_call,
63 void(MethodCall* method_call,
Dmock_object_proxy.cc17 void MockObjectProxy::CallMethod(MethodCall* method_call, in CallMethod() argument
20 DoCallMethod(method_call, timeout_ms, &callback); in CallMethod()
24 MethodCall* method_call, in CallMethodWithErrorResponse() argument
27 DoCallMethodWithErrorResponse(method_call, timeout_ms, &callback); in CallMethodWithErrorResponse()
31 MethodCall* method_call, in CallMethodWithErrorCallback() argument
35 DoCallMethodWithErrorCallback(method_call, timeout_ms, &callback, in CallMethodWithErrorCallback()
Dobject_proxy.cc134 MethodCall* method_call, in CallMethodAndBlockWithErrorDetails() argument
140 !method_call->SetDestination(service_name_) || in CallMethodAndBlockWithErrorDetails()
141 !method_call->SetPath(object_path_)) in CallMethodAndBlockWithErrorDetails()
144 DBusMessage* request_message = method_call->raw_message(); in CallMethodAndBlockWithErrorDetails()
155 method_call->GetInterface(), in CallMethodAndBlockWithErrorDetails()
156 method_call->GetMember()); in CallMethodAndBlockWithErrorDetails()
159 LogMethodCallFailure(method_call->GetInterface(), in CallMethodAndBlockWithErrorDetails()
160 method_call->GetMember(), in CallMethodAndBlockWithErrorDetails()
173 MethodCall* method_call, in CallMethodAndBlock() argument
176 return CallMethodAndBlockWithErrorDetails(method_call, timeout_ms, &error); in CallMethodAndBlock()
[all …]
Dproperty.cc102 MethodCall method_call(kPropertiesInterface, kPropertiesGet); in Get() local
103 MessageWriter writer(&method_call); in Get()
108 object_proxy_->CallMethod(&method_call, in Get()
139 MethodCall method_call(kPropertiesInterface, kPropertiesGet); in GetAndBlock() local
140 MessageWriter writer(&method_call); in GetAndBlock()
146 &method_call, ObjectProxy::TIMEOUT_USE_DEFAULT)); in GetAndBlock()
167 MethodCall method_call(kPropertiesInterface, kPropertiesGetAll); in GetAll() local
168 MessageWriter writer(&method_call); in GetAll()
172 object_proxy_->CallMethod(&method_call, in GetAll()
192 MethodCall method_call(kPropertiesInterface, kPropertiesSet); in Set() local
[all …]
Dexported_object.h53 typedef base::Callback<void (MethodCall* method_call, ResponseSender sender)>
143 std::unique_ptr<MethodCall> method_call,
150 std::unique_ptr<MethodCall> method_call,
155 void OnMethodCompleted(std::unique_ptr<MethodCall> method_call,
Dobject_proxy.h114 MethodCall* method_call,
122 virtual std::unique_ptr<Response> CallMethodAndBlock(MethodCall* method_call,
137 virtual void CallMethod(MethodCall* method_call,
149 virtual void CallMethodWithErrorResponse(MethodCall* method_call,
168 virtual void CallMethodWithErrorCallback(MethodCall* method_call,
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dtype_info_test.py114 method_call = node.body[1].value.func
116 anno.getanno(method_call, 'live_val'))
130 method_call = node.body[0].body[0].value.func
131 self.assertEquals(session.Session.run, anno.getanno(method_call,
144 method_call = node.body[1].value.func
145 self.assertFalse(anno.hasanno(method_call, 'live_val'))
153 method_call = node.body[0].value.func
154 self.assertFalse(anno.hasanno(method_call, 'live_val'))
168 method_call = node.body[0].value.func
170 anno.getanno(method_call, 'live_val'))
[all …]
/external/libbrillo/brillo/http/
Dhttp_proxy_unittest.cc31 void ResolveProxyHandlerAsync(dbus::MethodCall* method_call, in ResolveProxyHandlerAsync() argument
38 callback.Run(CreateDBusResponse(method_call).get()); in ResolveProxyHandlerAsync()
41 dbus::Response* ResolveProxyHandler(dbus::MethodCall* method_call, in ResolveProxyHandler() argument
48 return CreateDBusResponse(method_call).release(); in ResolveProxyHandler()
68 dbus::MethodCall* method_call) { in CreateDBusResponse() argument
69 EXPECT_EQ(method_call->GetInterface(), in CreateDBusResponse()
71 EXPECT_EQ(method_call->GetMember(), in CreateDBusResponse()
73 method_call->SetSerial(1); // Needs to be non-zero or it fails. in CreateDBusResponse()
75 dbus::Response::FromMethodCall(method_call); in CreateDBusResponse()
Dhttp_proxy.cc107 dbus::MethodCall method_call( in GetChromeProxyServers() local
110 dbus::MessageWriter writer(&method_call); in GetChromeProxyServers()
113 &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT); in GetChromeProxyServers()
123 dbus::MethodCall method_call( in GetChromeProxyServersAsync() local
126 dbus::MessageWriter writer(&method_call); in GetChromeProxyServersAsync()
128 proxy->CallMethod(&method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, in GetChromeProxyServersAsync()

12