Home | History | Annotate | Download | only in dbus

Lines Matching refs:service_path

67     const dbus::ObjectPath& service_path,
69 GetObserverList(service_path).AddObserver(observer);
73 const dbus::ObjectPath& service_path,
75 GetObserverList(service_path).RemoveObserver(observer);
79 const dbus::ObjectPath& service_path,
84 stub_services_.GetDictionaryWithoutPathExpansion(service_path.value(),
94 VLOG(2) << "Properties not found for: " << service_path.value();
107 void FakeShillServiceClient::SetProperty(const dbus::ObjectPath& service_path,
112 if (!SetServiceProperty(service_path.value(), name, value)) {
113 LOG(ERROR) << "Service not found: " << service_path.value();
121 const dbus::ObjectPath& service_path,
127 if (!SetServiceProperty(service_path.value(), iter.key(), iter.value())) {
128 LOG(ERROR) << "Service not found: " << service_path.value();
137 const dbus::ObjectPath& service_path,
143 service_path.value(), &dict)) {
153 const dbus::ObjectPath& service_path,
159 service_path.value(), &dict)) {
176 void FakeShillServiceClient::Connect(const dbus::ObjectPath& service_path,
179 VLOG(1) << "FakeShillServiceClient::Connect: " << service_path.value();
182 service_path.value(), &service_properties)) {
183 LOG(ERROR) << "Service not found: " << service_path.value();
191 SetOtherServicesOffline(service_path.value());
195 SetServiceProperty(service_path.value(),
204 service_path.value()),
210 void FakeShillServiceClient::Disconnect(const dbus::ObjectPath& service_path,
214 if (!stub_services_.Get(service_path.value(), &service)) {
224 service_path,
233 void FakeShillServiceClient::Remove(const dbus::ObjectPath& service_path,
240 const dbus::ObjectPath& service_path,
245 GetModifiableServiceProperties(service_path.value(), false);
247 LOG(ERROR) << "Service not found: " << service_path.value();
250 SetServiceProperty(service_path.value(),
258 service_path,
266 const dbus::ObjectPath& service_path,
273 const dbus::ObjectPath& service_path,
275 // Provide a dictionary with a single { profile_path, service_path } entry
280 GetModifiableServiceProperties(service_path.value(), false);
286 profile_path, service_path.value());
289 LOG(WARNING) << "Service not in profile: " << service_path.value();
307 void FakeShillServiceClient::AddService(const std::string& service_path,
313 AddServiceWithIPConfig(service_path, guid, name,
319 const std::string& service_path,
327 service_path, guid, name, type, state, visible);
334 UpdateService(profile_path, service_path);
344 AddManagerService(service_path, true);
349 const std::string& service_path,
356 GetModifiableServiceProperties(service_path, true);
357 connect_behavior_.erase(service_path);
362 GetService(service_path, &profile_path, &profile_properties)) {
407 void FakeShillServiceClient::RemoveService(const std::string& service_path) {
408 stub_services_.RemoveWithoutPathExpansion(service_path, NULL);
409 connect_behavior_.erase(service_path);
411 RemoveManagerService(service_path);
414 bool FakeShillServiceClient::SetServiceProperty(const std::string& service_path,
418 if (!stub_services_.GetDictionaryWithoutPathExpansion(service_path, &dict))
422 << " For: " << service_path;
448 AddService(profile_path, service_path);
457 UpdateService(profile_path, service_path);
466 ServiceStateChanged(service_path, state);
482 dbus::ObjectPath(service_path), changed_property));
487 const std::string& service_path) const {
489 stub_services_.GetDictionaryWithoutPathExpansion(service_path, &properties);
501 void FakeShillServiceClient::SetConnectBehavior(const std::string& service_path,
503 connect_behavior_[service_path] = behavior;
507 const dbus::ObjectPath& service_path,
510 std::string path = service_path.value();
522 GetObserverList(service_path),
527 const std::string& service_path, bool create_if_missing) {
529 if (!stub_services_.GetDictionaryWithoutPathExpansion(service_path,
533 stub_services_.Set(service_path, properties);
550 const std::string& service_path) {
552 service_path);
554 LOG(ERROR) << "Missing service: " << service_path;
563 if (path == service_path)
580 const dbus::ObjectPath& service_path,
582 SetProperty(service_path,
587 SetProperty(service_path,
595 const std::string& service_path) {
596 VLOG(1) << "FakeShillServiceClient::ContinueConnect: " << service_path;
598 if (!stub_services_.GetDictionary(service_path, &service_properties)) {
599 LOG(ERROR) << "Service not found: " << service_path;
603 if (ContainsKey(connect_behavior_, service_path)) {
605 connect_behavior_[service_path];
606 VLOG(1) << "Running custom connect behavior for " << service_path;
617 SetServiceProperty(service_path,
625 service_path,
630 VLOG(1) << "Setting state to Online " << service_path;
631 SetServiceProperty(service_path,