Searched refs:cbindex (Results 1 – 2 of 2) sorted by relevance
/system/bt/btif/src/ |
D | btif_gatt_multi_adv_util.c | 268 BOOLEAN btif_gattc_copy_datacb(int cbindex, const btif_adv_data_t *p_adv_data, in btif_gattc_copy_datacb() argument 271 if (NULL == p_multi_adv_data_cb || cbindex < 0) in btif_gattc_copy_datacb() 275 memset(&p_multi_adv_data_cb->inst_cb[cbindex].data, 0, sizeof(tBTA_BLE_ADV_DATA)); in btif_gattc_copy_datacb() 276 p_multi_adv_data_cb->inst_cb[cbindex].mask = 0; in btif_gattc_copy_datacb() 278 p_multi_adv_data_cb->inst_cb[cbindex].is_scan_rsp = p_adv_data->set_scan_rsp ? 1 : 0; in btif_gattc_copy_datacb() 281 p_multi_adv_data_cb->inst_cb[cbindex].mask = BTM_BLE_AD_BIT_FLAGS; in btif_gattc_copy_datacb() 282 p_multi_adv_data_cb->inst_cb[cbindex].data.flag = ADV_FLAGS_GENERAL; in btif_gattc_copy_datacb() 283 if (p_multi_adv_data_cb->inst_cb[cbindex].timeout_s) in btif_gattc_copy_datacb() 284 p_multi_adv_data_cb->inst_cb[cbindex].data.flag = ADV_FLAGS_LIMITED; in btif_gattc_copy_datacb() 285 if (p_multi_adv_data_cb->inst_cb[cbindex].param.adv_type == BTA_BLE_NON_CONNECT_EVT) in btif_gattc_copy_datacb() [all …]
|
D | btif_gatt_client.c | 1588 const int cbindex = CLNT_IF_IDX; in btgattc_handle_event() local 1589 if (cbindex >= 0 && btif_gattc_copy_datacb(cbindex, p_adv_data, false)) in btgattc_handle_event() 1594 BTA_DmBleSetAdvConfig(p_multi_adv_data_cb->inst_cb[cbindex].mask, in btgattc_handle_event() 1595 &p_multi_adv_data_cb->inst_cb[cbindex].data, bta_gattc_set_adv_data_cback); in btgattc_handle_event() 1599 BTA_DmBleSetScanRsp(p_multi_adv_data_cb->inst_cb[cbindex].mask, in btgattc_handle_event() 1600 &p_multi_adv_data_cb->inst_cb[cbindex].data, bta_gattc_set_adv_data_cback); in btgattc_handle_event() 1606 __func__, "BTIF_GATTC_SET_ADV_DATA", cbindex); in btgattc_handle_event() 1615 int cbindex = -1, arrindex = -1; in btgattc_handle_event() local 1619 cbindex = btif_gattc_obtain_idx_for_datacb(p_inst_cb->client_if, CLNT_IF_IDX); in btgattc_handle_event() 1621 if (cbindex >= 0 && arrindex >= 0) in btgattc_handle_event() [all …]
|