Lines Matching refs:service_name
216 ObjectProxy* Bus::GetObjectProxy(const std::string& service_name, in GetObjectProxy() argument
218 return GetObjectProxyWithOptions(service_name, object_path, in GetObjectProxy()
222 ObjectProxy* Bus::GetObjectProxyWithOptions(const std::string& service_name, in GetObjectProxyWithOptions() argument
228 const ObjectProxyTable::key_type key(service_name + object_path.value(), in GetObjectProxyWithOptions()
236 new ObjectProxy(this, service_name, object_path, options); in GetObjectProxyWithOptions()
242 bool Bus::RemoveObjectProxy(const std::string& service_name, in RemoveObjectProxy() argument
245 return RemoveObjectProxyWithOptions(service_name, object_path, in RemoveObjectProxy()
250 bool Bus::RemoveObjectProxyWithOptions(const std::string& service_name, in RemoveObjectProxyWithOptions() argument
257 const ObjectProxyTable::key_type key(service_name + object_path.value(), in RemoveObjectProxyWithOptions()
328 ObjectManager* Bus::GetObjectManager(const std::string& service_name, in GetObjectManager() argument
333 const ObjectManagerTable::key_type key(service_name + object_path.value()); in GetObjectManager()
340 new ObjectManager(this, service_name, object_path); in GetObjectManager()
346 bool Bus::RemoveObjectManager(const std::string& service_name, in RemoveObjectManager() argument
352 const ObjectManagerTable::key_type key(service_name + object_path.value()); in RemoveObjectManager()
473 const std::string& service_name = *iter++; in ShutdownAndBlock() local
474 ReleaseOwnership(service_name); in ShutdownAndBlock()
533 void Bus::RequestOwnership(const std::string& service_name, in RequestOwnership() argument
541 this, service_name, options, on_ownership_callback)); in RequestOwnership()
544 void Bus::RequestOwnershipInternal(const std::string& service_name, in RequestOwnershipInternal() argument
551 success = RequestOwnershipAndBlock(service_name, options); in RequestOwnershipInternal()
555 service_name, in RequestOwnershipInternal()
559 bool Bus::RequestOwnershipAndBlock(const std::string& service_name, in RequestOwnershipAndBlock() argument
566 if (owned_service_names_.find(service_name) != owned_service_names_.end()) { in RequestOwnershipAndBlock()
572 service_name.c_str(), in RequestOwnershipAndBlock()
576 LOG(ERROR) << "Failed to get the ownership of " << service_name << ": " in RequestOwnershipAndBlock()
580 owned_service_names_.insert(service_name); in RequestOwnershipAndBlock()
584 bool Bus::ReleaseOwnership(const std::string& service_name) { in ReleaseOwnership() argument
591 owned_service_names_.find(service_name); in ReleaseOwnership()
593 LOG(ERROR) << service_name << " is not owned by the bus"; in ReleaseOwnership()
598 const int result = dbus_bus_release_name(connection_, service_name.c_str(), in ReleaseOwnership()
604 LOG(ERROR) << "Failed to release the ownership of " << service_name << ": " in ReleaseOwnership()
851 std::string Bus::GetServiceOwnerAndBlock(const std::string& service_name, in GetServiceOwnerAndBlock() argument
857 writer.AppendString(service_name); in GetServiceOwnerAndBlock()
890 void Bus::GetServiceOwner(const std::string& service_name, in GetServiceOwner() argument
896 base::Bind(&Bus::GetServiceOwnerInternal, this, service_name, callback)); in GetServiceOwner()
899 void Bus::GetServiceOwnerInternal(const std::string& service_name, in GetServiceOwnerInternal() argument
905 service_owner = GetServiceOwnerAndBlock(service_name, SUPPRESS_ERRORS); in GetServiceOwnerInternal()
911 const std::string& service_name, in ListenForServiceOwnerChange() argument
914 DCHECK(!service_name.empty()); in ListenForServiceOwnerChange()
920 this, service_name, callback)); in ListenForServiceOwnerChange()
924 const std::string& service_name, in ListenForServiceOwnerChangeInternal() argument
927 DCHECK(!service_name.empty()); in ListenForServiceOwnerChangeInternal()
937 service_owner_changed_listener_map_.find(service_name); in ListenForServiceOwnerChangeInternal()
942 service_name.c_str()); in ListenForServiceOwnerChangeInternal()
946 LOG(ERROR) << "Failed to add match rule for " << service_name in ListenForServiceOwnerChangeInternal()
951 service_owner_changed_listener_map_[service_name].push_back(callback); in ListenForServiceOwnerChangeInternal()
965 const std::string& service_name, in UnlistenForServiceOwnerChange() argument
968 DCHECK(!service_name.empty()); in UnlistenForServiceOwnerChange()
974 this, service_name, callback)); in UnlistenForServiceOwnerChange()
978 const std::string& service_name, in UnlistenForServiceOwnerChangeInternal() argument
981 DCHECK(!service_name.empty()); in UnlistenForServiceOwnerChangeInternal()
985 service_owner_changed_listener_map_.find(service_name); in UnlistenForServiceOwnerChangeInternal()
1002 service_name.c_str()); in UnlistenForServiceOwnerChangeInternal()
1114 std::string service_name; in OnServiceOwnerChanged() local
1117 if (!reader.PopString(&service_name) || in OnServiceOwnerChanged()
1124 service_owner_changed_listener_map_.find(service_name); in OnServiceOwnerChanged()