Home
last modified time | relevance | path

Searched refs:observers_for_key (Results 1 – 2 of 2) sorted by relevance

/system/update_engine/common/
Dfake_prefs.cc100 const auto observers_for_key = observers_.find(key); in Delete() local
101 if (observers_for_key != observers_.end()) { in Delete()
102 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in Delete()
140 const auto observers_for_key = observers_.find(key); in SetValue() local
141 if (observers_for_key != observers_.end()) { in SetValue()
142 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in SetValue()
164 std::vector<ObserverInterface*>& observers_for_key = observers_[key]; in RemoveObserver() local
166 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
167 EXPECT_NE(observer_it, observers_for_key.end()) in RemoveObserver()
169 if (observer_it != observers_for_key.end()) in RemoveObserver()
[all …]
Dprefs.cc58 const auto observers_for_key = observers_.find(key); in SetString() local
59 if (observers_for_key != observers_.end()) { in SetString()
60 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in SetString()
106 const auto observers_for_key = observers_.find(key); in Delete() local
107 if (observers_for_key != observers_.end()) { in Delete()
108 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in Delete()
124 std::vector<ObserverInterface*>& observers_for_key = observers_[key]; in RemoveObserver() local
126 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
127 if (observer_it != observers_for_key.end()) in RemoveObserver()
128 observers_for_key.erase(observer_it); in RemoveObserver()