Lines Matching refs:it
97 const std::map<RawAddress, tAPPS_CONNECTING>::iterator it) { in is_anyone_interested_to_use_accept_list() argument
98 if (!it->second.doing_targeted_announcements_conn.empty()) { in is_anyone_interested_to_use_accept_list()
99 return (!it->second.doing_direct_conn.empty()); in is_anyone_interested_to_use_accept_list()
101 return (!it->second.doing_bg_conn.empty() || in is_anyone_interested_to_use_accept_list()
102 !it->second.doing_direct_conn.empty()); in is_anyone_interested_to_use_accept_list()
106 const std::map<RawAddress, tAPPS_CONNECTING>::iterator it) { in is_anyone_connecting() argument
107 return (!it->second.doing_bg_conn.empty() || in is_anyone_connecting()
108 !it->second.doing_direct_conn.empty() || in is_anyone_connecting()
109 !it->second.doing_targeted_announcements_conn.empty()); in is_anyone_connecting()
118 auto it = bgconn_dev.find(address); in get_apps_connecting_to() local
119 return (it != bgconn_dev.end()) ? it->second.doing_bg_conn in get_apps_connecting_to()
162 auto it = bgconn_dev.find(addr); in target_announcement_observe_results_cb() local
163 if (it == bgconn_dev.end() || in target_announcement_observe_results_cb()
164 it->second.doing_targeted_announcements_conn.empty()) { in target_announcement_observe_results_cb()
175 if (it->second.is_in_accept_list) { in target_announcement_observe_results_cb()
188 auto app_id = *(it->second.doing_targeted_announcements_conn.begin()); in target_announcement_observe_results_cb()
218 auto it = bgconn_dev.find(address); in background_connect_targeted_announcement_add() local
219 if (it != bgconn_dev.end()) { in background_connect_targeted_announcement_add()
221 if (it->second.doing_targeted_announcements_conn.count(app_id)) { in background_connect_targeted_announcement_add()
230 !it->second.doing_targeted_announcements_conn.empty(); in background_connect_targeted_announcement_add()
233 if (!it->second.doing_direct_conn.empty()) { in background_connect_targeted_announcement_add()
238 !it->second.doing_bg_conn.empty()) { in background_connect_targeted_announcement_add()
269 auto it = bgconn_dev.find(address); in background_connect_add() local
272 if (it != bgconn_dev.end()) { in background_connect_add()
274 if (it->second.doing_bg_conn.count(app_id)) { in background_connect_add()
281 if (it->second.is_in_accept_list) { in background_connect_add()
287 !it->second.doing_targeted_announcements_conn.empty(); in background_connect_add()
315 auto it = bgconn_dev.find(address); in remove_unconditional() local
316 if (it == bgconn_dev.end()) { in remove_unconditional()
322 bgconn_dev.erase(it); in remove_unconditional()
331 auto it = bgconn_dev.find(address); in background_connect_remove() local
332 if (it == bgconn_dev.end()) { in background_connect_remove()
337 bool accept_list_enabled = it->second.is_in_accept_list; in background_connect_remove()
339 it->second.doing_targeted_announcements_conn.size(); in background_connect_remove()
341 bool removed_from_bg_conn = (it->second.doing_bg_conn.erase(app_id) > 0); in background_connect_remove()
343 (it->second.doing_targeted_announcements_conn.erase(app_id) > 0); in background_connect_remove()
351 it->second.doing_targeted_announcements_conn.size() == 0) { in background_connect_remove()
355 if (is_anyone_connecting(it)) { in background_connect_remove()
361 if (!it->second.doing_targeted_announcements_conn.empty()) { in background_connect_remove()
364 } else if (!it->second.doing_bg_conn.empty()) { in background_connect_remove()
375 bgconn_dev.erase(it); in background_connect_remove()
398 auto it = bgconn_dev.begin(); in on_app_deregistered() local
401 while (it != end) { in on_app_deregistered()
402 it->second.doing_bg_conn.erase(app_id); in on_app_deregistered()
404 it->second.doing_direct_conn.erase(app_id); in on_app_deregistered()
406 if (is_anyone_connecting(it)) { in on_app_deregistered()
407 it++; in on_app_deregistered()
411 BTM_AcceptlistRemove(it->first); in on_app_deregistered()
412 it = bgconn_dev.erase(it); in on_app_deregistered()
419 auto it = bgconn_dev.find(address); in remove_all_clients_with_pending_connections() local
420 while (it != bgconn_dev.end() && !it->second.doing_direct_conn.empty()) { in remove_all_clients_with_pending_connections()
421 uint8_t app_id = it->second.doing_direct_conn.begin()->first; in remove_all_clients_with_pending_connections()
423 it = bgconn_dev.find(address); in remove_all_clients_with_pending_connections()
462 auto it = bgconn_dev.find(address); in direct_connect_add() local
463 if (it != bgconn_dev.end()) { in direct_connect_add()
465 if (it->second.doing_direct_conn.count(app_id)) { in direct_connect_add()
472 if (it->second.is_in_accept_list) { in direct_connect_add()
508 auto it = bgconn_dev.find(address); in direct_connect_remove() local
509 if (it == bgconn_dev.end()) { in direct_connect_remove()
515 auto app_it = it->second.doing_direct_conn.find(app_id); in direct_connect_remove()
516 if (app_it == it->second.doing_direct_conn.end()) { in direct_connect_remove()
523 !it->second.doing_targeted_announcements_conn.empty(); in direct_connect_remove()
526 it->second.doing_direct_conn.erase(app_it); in direct_connect_remove()
528 if (is_anyone_interested_to_use_accept_list(it)) { in direct_connect_remove()
548 bgconn_dev.erase(it); in direct_connect_remove()
550 it->second.is_in_accept_list = false; in direct_connect_remove()