Loading system/bta/gatt/bta_gattc_act.cc +4 −3 Original line number Diff line number Diff line Loading @@ -297,7 +297,7 @@ void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg) { /* close all CLCB related to this app */ if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb : bta_gattc_cb.clcb_set) { if (p_clcb->p_rcb != p_clreg) { if (!p_clcb->in_use || p_clcb->p_rcb != p_clreg) { continue; } p_clreg->dereg_pending = true; Loading Loading @@ -1504,7 +1504,8 @@ void bta_gattc_process_api_refresh(const RawAddress& remote_bda) { tBTA_GATTC_CLCB* p_clcb = &bta_gattc_cb.clcb[0]; if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb_i : bta_gattc_cb.clcb_set) { if (p_clcb_i->p_srcb == p_srvc_cb) { if (p_clcb_i->in_use && p_clcb_i->p_srcb == p_srvc_cb) { p_clcb = p_clcb_i.get(); found = true; break; } Loading Loading @@ -1576,7 +1577,7 @@ static bool bta_gattc_process_srvc_chg_ind(tCONN_ID conn_id, tBTA_GATTC_RCB* p_c if (p_clcb == NULL || (p_clcb && p_clcb->p_q_cmd != NULL)) { if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb_i : bta_gattc_cb.clcb_set) { if (p_clcb_i->p_srcb == p_srcb && p_clcb_i->p_q_cmd == NULL) { if (p_clcb_i->in_use && p_clcb_i->p_srcb == p_srcb && p_clcb_i->p_q_cmd == NULL) { p_clcb = p_clcb_i.get(); break; } Loading system/bta/gatt/bta_gattc_utils.cc +4 −1 Original line number Diff line number Diff line Loading @@ -145,7 +145,7 @@ tBTA_GATTC_CLCB* bta_gattc_find_clcb_by_cif(uint8_t client_if, const RawAddress& tBTA_GATTC_CLCB* bta_gattc_find_clcb_by_conn_id(tCONN_ID conn_id) { if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb : bta_gattc_cb.clcb_set) { if (p_clcb->bta_conn_id == conn_id) { if (p_clcb->in_use && p_clcb->bta_conn_id == conn_id) { return p_clcb.get(); } } Loading Loading @@ -960,6 +960,9 @@ void bta_gatt_client_dump(int fd) { if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { stream << " ->clcb (dynamic)\n"; for (auto& p_clcb : bta_gattc_cb.clcb_set) { if (!p_clcb->in_use) { continue; } entry_count++; stream << " conn_id: " << loghex(p_clcb->bta_conn_id) << " address: " << ADDRESS_TO_LOGGABLE_STR(p_clcb->bda) Loading Loading
system/bta/gatt/bta_gattc_act.cc +4 −3 Original line number Diff line number Diff line Loading @@ -297,7 +297,7 @@ void bta_gattc_deregister(tBTA_GATTC_RCB* p_clreg) { /* close all CLCB related to this app */ if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb : bta_gattc_cb.clcb_set) { if (p_clcb->p_rcb != p_clreg) { if (!p_clcb->in_use || p_clcb->p_rcb != p_clreg) { continue; } p_clreg->dereg_pending = true; Loading Loading @@ -1504,7 +1504,8 @@ void bta_gattc_process_api_refresh(const RawAddress& remote_bda) { tBTA_GATTC_CLCB* p_clcb = &bta_gattc_cb.clcb[0]; if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb_i : bta_gattc_cb.clcb_set) { if (p_clcb_i->p_srcb == p_srvc_cb) { if (p_clcb_i->in_use && p_clcb_i->p_srcb == p_srvc_cb) { p_clcb = p_clcb_i.get(); found = true; break; } Loading Loading @@ -1576,7 +1577,7 @@ static bool bta_gattc_process_srvc_chg_ind(tCONN_ID conn_id, tBTA_GATTC_RCB* p_c if (p_clcb == NULL || (p_clcb && p_clcb->p_q_cmd != NULL)) { if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb_i : bta_gattc_cb.clcb_set) { if (p_clcb_i->p_srcb == p_srcb && p_clcb_i->p_q_cmd == NULL) { if (p_clcb_i->in_use && p_clcb_i->p_srcb == p_srcb && p_clcb_i->p_q_cmd == NULL) { p_clcb = p_clcb_i.get(); break; } Loading
system/bta/gatt/bta_gattc_utils.cc +4 −1 Original line number Diff line number Diff line Loading @@ -145,7 +145,7 @@ tBTA_GATTC_CLCB* bta_gattc_find_clcb_by_cif(uint8_t client_if, const RawAddress& tBTA_GATTC_CLCB* bta_gattc_find_clcb_by_conn_id(tCONN_ID conn_id) { if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { for (auto& p_clcb : bta_gattc_cb.clcb_set) { if (p_clcb->bta_conn_id == conn_id) { if (p_clcb->in_use && p_clcb->bta_conn_id == conn_id) { return p_clcb.get(); } } Loading Loading @@ -960,6 +960,9 @@ void bta_gatt_client_dump(int fd) { if (com::android::bluetooth::flags::gatt_client_dynamic_allocation()) { stream << " ->clcb (dynamic)\n"; for (auto& p_clcb : bta_gattc_cb.clcb_set) { if (!p_clcb->in_use) { continue; } entry_count++; stream << " conn_id: " << loghex(p_clcb->bta_conn_id) << " address: " << ADDRESS_TO_LOGGABLE_STR(p_clcb->bda) Loading