Home
last modified time | relevance | path

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

/external/libchrome/dbus/
Dobject_proxy.cc217 for (const auto& match_rule : match_rules_) { in Detach() local
219 bus_->RemoveMatch(match_rule, error.get()); in Detach()
222 LOG(ERROR) << "Failed to remove match rule: " << match_rule; in Detach()
431 const std::string match_rule = in ConnectToSignalInternal() local
435 return AddMatchRuleWithCallback(match_rule, in ConnectToSignalInternal()
603 const std::string& match_rule, in AddMatchRuleWithCallback() argument
606 DCHECK(!match_rule.empty()); in AddMatchRuleWithCallback()
610 if (match_rules_.find(match_rule) == match_rules_.end()) { in AddMatchRuleWithCallback()
612 bus_->AddMatch(match_rule, error.get()); in AddMatchRuleWithCallback()
614 LOG(ERROR) << "Failed to add match rule \"" << match_rule << "\". Got " in AddMatchRuleWithCallback()
[all …]
Dbus.cc719 void Bus::AddMatch(const std::string& match_rule, DBusError* error) { in AddMatch() argument
724 match_rules_added_.find(match_rule); in AddMatch()
729 VLOG(1) << "Match rule already exists: " << match_rule; in AddMatch()
733 dbus_bus_add_match(connection_, match_rule.c_str(), error); in AddMatch()
734 match_rules_added_[match_rule] = 1; in AddMatch()
737 bool Bus::RemoveMatch(const std::string& match_rule, DBusError* error) { in RemoveMatch() argument
742 match_rules_added_.find(match_rule); in RemoveMatch()
744 LOG(ERROR) << "Requested to remove an unknown match rule: " << match_rule; in RemoveMatch()
751 dbus_bus_remove_match(connection_, match_rule.c_str(), error); in RemoveMatch()
752 match_rules_added_.erase(match_rule); in RemoveMatch()
Dmock_bus.h64 MOCK_METHOD2(AddMatch, void(const std::string& match_rule,
66 MOCK_METHOD2(RemoveMatch, bool(const std::string& match_rule,
Dobject_proxy.h278 bool AddMatchRuleWithCallback(const std::string& match_rule,
283 bool AddMatchRuleWithoutCallback(const std::string& match_rule,
Dobject_manager.cc213 const std::string match_rule = in SetupMatchRuleAndFilter() local
223 bus_->AddMatch(match_rule, error.get()); in SetupMatchRuleAndFilter()
225 LOG(ERROR) << "ObjectManager failed to add match rule \"" << match_rule in SetupMatchRuleAndFilter()
231 match_rule_ = match_rule; in SetupMatchRuleAndFilter()
Dbus.h507 virtual void AddMatch(const std::string& match_rule, DBusError* error);
514 virtual bool RemoveMatch(const std::string& match_rule, DBusError* error);
/external/libcxx/utils/google-benchmark/test/
Doutput_test_helper.cc87 CHECK(TC.match_rule != MR_Next) in CheckCase()
104 if (TC.match_rule == MR_Not) { in CheckCases()
151 match_rule(rule), in TestCase()
Doutput_test.h33 int match_rule; member
/external/google-benchmark/test/
Doutput_test_helper.cc97 CHECK(TC.match_rule != MR_Next) in CheckCase()
114 if (TC.match_rule == MR_Not) { in CheckCases()
332 match_rule(rule), in TestCase()
Doutput_test.h35 int match_rule; member