Lines Matching refs:it

80             auto it = uidIt->second.find(key);  in UpdateConfig()  local
81 if (it == uidIt->second.end() && in UpdateConfig()
129 auto it = mConfigReceivers.find(key); in RemoveConfigReceiver() local
130 if (it != mConfigReceivers.end() && it->second == pir) { in RemoveConfigReceiver()
149 auto it = mActiveConfigsChangedReceivers.find(uid); in RemoveActiveConfigsChangedReceiver() local
150 if (it != mActiveConfigsChangedReceivers.end() && it->second == pir) { in RemoveActiveConfigsChangedReceiver()
169 const auto& it = mRestrictedMetricsChangedReceivers.find(configKey); in RemoveRestrictedMetricsChangedReceiver() local
170 if (it != mRestrictedMetricsChangedReceivers.end()) { in RemoveRestrictedMetricsChangedReceiver()
171 it->second.erase(callingUid); in RemoveRestrictedMetricsChangedReceiver()
172 if (it->second.empty()) { in RemoveRestrictedMetricsChangedReceiver()
173 mRestrictedMetricsChangedReceivers.erase(it); in RemoveRestrictedMetricsChangedReceiver()
182 const auto& it = mRestrictedMetricsChangedReceivers.find(key); in RemoveRestrictedMetricsChangedReceiver() local
183 if (it != mRestrictedMetricsChangedReceivers.end()) { in RemoveRestrictedMetricsChangedReceiver()
184 const auto& pirIt = it->second.find(delegateUid); in RemoveRestrictedMetricsChangedReceiver()
185 if (pirIt != it->second.end() && pirIt->second == pir) { in RemoveRestrictedMetricsChangedReceiver()
186 it->second.erase(delegateUid); in RemoveRestrictedMetricsChangedReceiver()
187 if (it->second.empty()) { in RemoveRestrictedMetricsChangedReceiver()
188 mRestrictedMetricsChangedReceivers.erase(it); in RemoveRestrictedMetricsChangedReceiver()
205 const auto& it = mRestrictedMetricsChangedReceivers.find(key); in SendRestrictedMetricsBroadcast() local
206 if (it != mRestrictedMetricsChangedReceivers.end()) { in SendRestrictedMetricsBroadcast()
207 for (const auto& [delegateUid, pir] : it->second) { in SendRestrictedMetricsBroadcast()
273 for (auto it = uidIt->second.begin(); it != uidIt->second.end(); ++it) { in RemoveConfigs() local
275 remove_saved_configs(*it); in RemoveConfigs()
276 removed.push_back(*it); in RemoveConfigs()
300 for (auto it = uidIt->second.begin(); it != uidIt->second.end();) { in RemoveAllConfigs() local
302 removed.push_back(*it); in RemoveAllConfigs()
303 it = uidIt->second.erase(it); in RemoveAllConfigs()
325 for (auto it = uidIt->second.cbegin(); it != uidIt->second.cend(); ++it) { in GetAllConfigKeys() local
326 ret.push_back(*it); in GetAllConfigKeys()
335 auto it = mConfigReceivers.find(key); in GetConfigReceiver() local
336 if (it == mConfigReceivers.end()) { in GetConfigReceiver()
339 return it->second; in GetConfigReceiver()
347 auto it = mActiveConfigsChangedReceivers.find(uid); in GetActiveConfigsChangedReceiver() local
348 if (it == mActiveConfigsChangedReceivers.end()) { in GetActiveConfigsChangedReceiver()
351 return it->second; in GetActiveConfigsChangedReceiver()
361 for (auto it = uidIt->second.cbegin(); it != uidIt->second.cend(); ++it) { in Dump() local
362 fprintf(out, " %6d %lld\n", it->GetUid(), (long long)it->GetId()); in Dump()
363 auto receiverIt = mConfigReceivers.find(*it); in Dump()