/system/bt/stack/btm/ |
D | btm_ble_multi_adv.c | 68 void btm_ble_multi_adv_enq_op_q(UINT8 opcode, UINT8 inst_id, UINT8 cb_evt) in btm_ble_multi_adv_enq_op_q() argument 72 p_op_q->p_inst_id[p_op_q->next_idx] = inst_id; in btm_ble_multi_adv_enq_op_q() 114 UINT8 *p = p_params->p_param_buf, inst_id; in btm_ble_multi_adv_vsc_cmpl_cback() local 128 btm_ble_multi_adv_deq_op_q(&opcode, &inst_id, &cb_evt); in btm_ble_multi_adv_vsc_cmpl_cback() 130 BTM_TRACE_DEBUG("op_code = %02x inst_id = %d cb_evt = %02x", opcode, inst_id, cb_evt); in btm_ble_multi_adv_vsc_cmpl_cback() 132 if (opcode != subcode || inst_id == 0) in btm_ble_multi_adv_vsc_cmpl_cback() 138 p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1]; in btm_ble_multi_adv_vsc_cmpl_cback() 148 btm_multi_adv_cb.p_adv_inst[inst_id-1].in_use = FALSE; in btm_ble_multi_adv_vsc_cmpl_cback() 182 (p_inst->p_cback)(cb_evt, inst_id, p_inst->p_ref, status); in btm_ble_multi_adv_vsc_cmpl_cback() 199 tBTM_STATUS btm_ble_enable_multi_adv (BOOLEAN enable, UINT8 inst_id, UINT8 cb_evt) in btm_ble_enable_multi_adv() argument [all …]
|
D | btm_ble_int.h | 464 extern void* btm_ble_multi_adv_get_ref(UINT8 inst_id); 466 extern void btm_ble_multi_adv_reenable(UINT8 inst_id);
|
/system/bt/btif/src/ |
D | btif_gatt_multi_adv_util.c | 101 int btif_multi_adv_add_instid_map(int client_if, int inst_id, BOOLEAN gen_temp_instid) in btif_multi_adv_add_instid_map() argument 116 p_multi_adv_data_cb->clntif_map[i + (i + 1)] = inst_id; in btif_multi_adv_add_instid_map() 124 if (inst_id != INVALID_ADV_INST) in btif_multi_adv_add_instid_map() 125 p_multi_adv_data_cb->clntif_map[i + (i + 1)] = inst_id; in btif_multi_adv_add_instid_map() 145 if (inst_id != INVALID_ADV_INST) in btif_multi_adv_add_instid_map() 146 p_multi_adv_data_cb->clntif_map[i + (i + 1)] = inst_id; in btif_multi_adv_add_instid_map() 463 void btif_gattc_cleanup_inst_cb(int inst_id, BOOLEAN stop_timer) in btif_gattc_cleanup_inst_cb() argument 466 if (inst_id < 0 || inst_id >= BTM_BleMaxMultiAdvInstanceCount()) in btif_gattc_cleanup_inst_cb() 473 int cbindex = (STD_ADV_INSTID == inst_id) ? in btif_gattc_cleanup_inst_cb() 474 STD_ADV_INSTID : btif_gattc_obtain_idx_for_datacb(inst_id, INST_ID_IDX); in btif_gattc_cleanup_inst_cb() [all …]
|
D | btif_gatt_client.c | 177 uint8_t inst_id; member 637 if (0xFF != p_btif_cb->inst_id) in btif_gattc_upstreams_evt() 638 btif_multi_adv_add_instid_map(p_btif_cb->client_if, p_btif_cb->inst_id, false); in btif_gattc_upstreams_evt() 819 static void bta_gattc_multi_adv_cback(tBTA_BLE_MULTI_ADV_EVT event, UINT8 inst_id, in bta_gattc_multi_adv_cback() argument 835 BTIF_TRACE_DEBUG("%s -Inst ID %d, Status:%x, client_if:%d",__FUNCTION__,inst_id, call_status, in bta_gattc_multi_adv_cback() 839 btif_cb.inst_id = inst_id; in bta_gattc_multi_adv_cback() 1486 int inst_id = btif_multi_adv_instid_for_clientif(p_inst_cb->client_if); in btgattc_handle_event() local 1488 if (inst_id >= 0 && cbindex >= 0 && NULL != p_inst_cb) in btgattc_handle_event() 1493 BTA_BleUpdateAdvInstParam((UINT8)inst_id, in btgattc_handle_event() 1505 int inst_id = btif_multi_adv_instid_for_clientif(p_adv_data->client_if); in btgattc_handle_event() local [all …]
|
D | btif_gatt_server.c | 211 srvc_id.id.inst_id = p_data->create.svc_instance; in btapp_gatts_handle_cback() 448 p_cb->srvc_id.id.inst_id, p_cb->num_handles, in btgatts_handle_event()
|
/system/bt/service/hal/ |
D | gatt_helpers.cpp | 30 hal_id->id.inst_id = id.service_instance_id(); in GetHALServiceId() 39 "", srvc_id.id.inst_id, uuid, srvc_id.is_primary); in GetServiceIdFromHAL()
|
/system/bt/stack/srvc/ |
D | srvc_battery.c | 206 if (battery_cb.inst_id == BA_MAX_INT_NUM) in Battery_Instantiate() 212 p_inst = &battery_cb.battery_inst[battery_cb.inst_id]; in Battery_Instantiate() 216 battery_cb.inst_id , in Battery_Instantiate() 226 battery_cb.inst_id ++; in Battery_Instantiate() 292 battery_cb.inst_id --; in Battery_Instantiate() 294 GATTS_DeleteService(srvc_eng_cb.gatt_if, &uuid, battery_cb.inst_id); in Battery_Instantiate()
|
D | srvc_battery_int.h | 52 UINT8 inst_id; member
|
/system/bt/btif/include/ |
D | btif_gatt_multi_adv_util.h | 75 extern int btif_multi_adv_add_instid_map(int client_if, int inst_id, 80 extern void btif_gattc_cleanup_inst_cb(int inst_id, BOOLEAN stop_timer);
|
/system/bt/service/ |
D | gatt_server.cpp | 218 int inst_id = 0; in GetIdForService() local 226 ++inst_id; in GetIdForService() 230 return GattIdentifier::CreateServiceId("", inst_id, uuid, is_primary); in GetIdForService() 239 int inst_id = 0; in GetIdForCharacteristic() local 247 ++inst_id; in GetIdForCharacteristic() 253 inst_id, uuid, pending_decl_->service_id); in GetIdForCharacteristic() 264 int inst_id = 0; in GetIdForDescriptor() local 287 ++inst_id; in GetIdForDescriptor() 295 return GattIdentifier::CreateDescriptorId(inst_id, uuid, char_id); in GetIdForDescriptor()
|
D | gatt_server_old.cpp | 141 service_id.id.inst_id = 0; in RegisterServerCallback() 151 __func__, status, server_if, srvc_id->id.inst_id, srvc_handle); in ServiceAddedCallback()
|
/system/bt/bta/dm/ |
D | bta_dm_api.c | 1424 void BTA_BleUpdateAdvInstParam (UINT8 inst_id, tBTA_BLE_ADV_PARAMS *p_params) in BTA_BleUpdateAdvInstParam() argument 1434 p_msg->inst_id = inst_id; in BTA_BleUpdateAdvInstParam() 1458 void BTA_BleCfgAdvInstData (UINT8 inst_id, BOOLEAN is_scan_rsp, in BTA_BleCfgAdvInstData() argument 1465 p_msg->inst_id = inst_id; in BTA_BleCfgAdvInstData() 1484 void BTA_BleDisableAdvInstance(UINT8 inst_id) in BTA_BleDisableAdvInstance() argument 1489 APPL_TRACE_API("%s: %d", __func__, inst_id); in BTA_BleDisableAdvInstance() 1492 p_msg->inst_id = inst_id; in BTA_BleDisableAdvInstance()
|
D | bta_dm_int.h | 519 UINT8 inst_id; member 526 UINT8 inst_id; member 535 UINT8 inst_id; member
|
D | bta_dm_act.c | 4856 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_param.inst_id > 0 in bta_dm_ble_multi_adv_upd_param() 4857 && p_data->ble_multi_adv_param.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in bta_dm_ble_multi_adv_upd_param() 4859 btm_status = BTM_BleUpdateAdvInstParam(p_data->ble_multi_adv_param.inst_id, in bta_dm_ble_multi_adv_upd_param() 4865 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_param.inst_id); in bta_dm_ble_multi_adv_upd_param() 4867 p_data->ble_multi_adv_param.inst_id, p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_upd_param() 4885 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_data.inst_id > 0 in bta_dm_ble_multi_adv_data() 4886 && p_data->ble_multi_adv_data.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in bta_dm_ble_multi_adv_data() 4888 btm_status = BTM_BleCfgAdvInstData(p_data->ble_multi_adv_data.inst_id, in bta_dm_ble_multi_adv_data() 4896 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_data.inst_id); in bta_dm_ble_multi_adv_data() 4898 p_data->ble_multi_adv_data.inst_id, p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_data() [all …]
|
/system/bt/stack/include/ |
D | btm_ble_api.h | 501 typedef void (tBTM_BLE_MULTI_ADV_CBACK)(tBTM_BLE_MULTI_ADV_EVT evt, UINT8 inst_id, 506 UINT8 inst_id; member 1749 extern tBTM_STATUS BTM_BleUpdateAdvInstParam (UINT8 inst_id, tBTM_BLE_ADV_PARAMS *p_params); 1766 extern tBTM_STATUS BTM_BleCfgAdvInstData (UINT8 inst_id, BOOLEAN is_scan_rsp, 1781 extern tBTM_STATUS BTM_BleDisableAdvInstance (UINT8 inst_id);
|
/system/bt/test/suite/gatt/ |
D | gatt_unittest.cpp | 111 srvc_id.id.inst_id = 0; // there is only one instance of this service. in TEST_F()
|
/system/bt/bta/include/ |
D | bta_api.h | 908 UINT8 inst_id, void *p_ref, tBTA_STATUS status); 2072 extern void BTA_BleUpdateAdvInstParam (UINT8 inst_id, 2087 extern void BTA_BleCfgAdvInstData (UINT8 inst_id, BOOLEAN is_scan_rsp, 2101 extern void BTA_BleDisableAdvInstance(UINT8 inst_id);
|
D | bta_gatt_api.h | 57 UINT8 inst_id; /* instance ID */ member
|
/system/bt/bta/hh/ |
D | bta_hh_le.c | 597 UINT8 inst_id) in bta_hh_le_find_alloc_report_entry() argument 616 p_rpt->char_inst_id == inst_id)) in bta_hh_le_find_alloc_report_entry() 623 p_rpt->char_inst_id = inst_id; in bta_hh_le_find_alloc_report_entry()
|
/system/bt/bta/gatt/ |
D | bta_gattc_cache.c | 1008 cb_data.srvc_res.service_uuid.inst_id = p_cache->handle; in bta_gattc_search_service()
|