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.cc101 const auto observers_for_key = observers_.find(key); in Delete() local
102 if (observers_for_key != observers_.end()) { in Delete()
103 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in Delete()
157 const auto observers_for_key = observers_.find(key); in SetValue() local
158 if (observers_for_key != observers_.end()) { in SetValue()
159 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in SetValue()
181 std::vector<ObserverInterface*>& observers_for_key = observers_[key]; in RemoveObserver() local
183 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
184 EXPECT_NE(observer_it, observers_for_key.end()) in RemoveObserver()
186 if (observer_it != observers_for_key.end()) in RemoveObserver()
[all …]
Dprefs.cc60 const auto observers_for_key = observers_.find(key); in SetString() local
61 if (observers_for_key != observers_.end()) { in SetString()
62 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in SetString()
108 const auto observers_for_key = observers_.find(key); in Delete() local
109 if (observers_for_key != observers_.end()) { in Delete()
110 std::vector<ObserverInterface*> copy_observers(observers_for_key->second); in Delete()
144 std::vector<ObserverInterface*>& observers_for_key = observers_[key]; in RemoveObserver() local
146 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
147 if (observer_it != observers_for_key.end()) in RemoveObserver()
148 observers_for_key.erase(observer_it); in RemoveObserver()