Home
last modified time | relevance | path

Searched refs:match_rule (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/dbus/
Dobject_proxy.cc423 const std::string match_rule = in ConnectToSignalInternal() local
427 return AddMatchRuleWithCallback(match_rule, in ConnectToSignalInternal()
595 const std::string& match_rule, in AddMatchRuleWithCallback() argument
598 DCHECK(!match_rule.empty()); in AddMatchRuleWithCallback()
602 if (match_rules_.find(match_rule) == match_rules_.end()) { in AddMatchRuleWithCallback()
604 bus_->AddMatch(match_rule, error.get()); in AddMatchRuleWithCallback()
606 LOG(ERROR) << "Failed to add match rule \"" << match_rule << "\". Got " in AddMatchRuleWithCallback()
611 match_rules_.insert(match_rule); in AddMatchRuleWithCallback()
624 const std::string& match_rule, in AddMatchRuleWithoutCallback() argument
626 DCHECK(!match_rule.empty()); in AddMatchRuleWithoutCallback()
[all …]
Dmock_bus.h54 MOCK_METHOD2(AddMatch, void(const std::string& match_rule,
56 MOCK_METHOD2(RemoveMatch, bool(const std::string& match_rule,
Dbus.cc734 void Bus::AddMatch(const std::string& match_rule, DBusError* error) { in AddMatch() argument
739 match_rules_added_.find(match_rule); in AddMatch()
744 VLOG(1) << "Match rule already exists: " << match_rule; in AddMatch()
748 dbus_bus_add_match(connection_, match_rule.c_str(), error); in AddMatch()
749 match_rules_added_[match_rule] = 1; in AddMatch()
752 bool Bus::RemoveMatch(const std::string& match_rule, DBusError* error) { in RemoveMatch() argument
757 match_rules_added_.find(match_rule); in RemoveMatch()
759 LOG(ERROR) << "Requested to remove an unknown match rule: " << match_rule; in RemoveMatch()
766 dbus_bus_remove_match(connection_, match_rule.c_str(), error); in RemoveMatch()
767 match_rules_added_.erase(match_rule); in RemoveMatch()
Dobject_proxy.h272 bool AddMatchRuleWithCallback(const std::string& match_rule,
277 bool AddMatchRuleWithoutCallback(const std::string& match_rule,
Dobject_manager.cc212 const std::string match_rule = in SetupMatchRuleAndFilter() local
225 bus_->AddMatch(match_rule, error.get()); in SetupMatchRuleAndFilter()
227 LOG(ERROR) << "ObjectManager failed to add match rule \"" << match_rule in SetupMatchRuleAndFilter()
233 match_rule_ = match_rule; in SetupMatchRuleAndFilter()
Dbus.h512 virtual void AddMatch(const std::string& match_rule, DBusError* error);
519 virtual bool RemoveMatch(const std::string& match_rule, DBusError* error);