Lines Matching defs:app_id
101 static int btif_hl_get_next_channel_id(UINT8 app_id);
756 BOOLEAN btif_hl_dch_open(UINT8 app_id, BD_ADDR bd_addr,
768 BTIF_TRACE_DEBUG2("%s app_id=%d ",
769 __FUNCTION__, app_id );
773 if (btif_hl_find_app_idx(app_id, &app_idx))
786 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id);
819 BTA_HlSdpQuery(app_id,p_acb->app_handle, bd_addr);
893 BOOLEAN btif_hl_cch_open(UINT8 app_id, BD_ADDR bd_addr, UINT16 ctrl_psm,
903 BTIF_TRACE_DEBUG5("%s app_id=%d ctrl_psm=%d mdep_cfg_idx=%d op=%d",
904 __FUNCTION__, app_id, ctrl_psm, mdep_cfg_idx, op);
908 if (btif_hl_find_app_idx(app_id, &app_idx))
941 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id);
951 BTA_HlSdpQuery(app_id,p_acb->app_handle, bd_addr);
968 BTIF_TRACE_ERROR1("Invalid app_id=%d", app_id);
1162 static BOOLEAN btif_hl_find_peer_mdep_id(UINT8 app_id, BD_ADDR bd_addr,
1175 BTIF_TRACE_DEBUG4("%s app_id=%d local_mdep_role=%d, data_type=%d",
1176 __FUNCTION__, app_id, local_mdep_role, data_type);
1192 if (btif_hl_find_app_idx(app_id, &app_idx) )
1236 static BOOLEAN btif_hl_find_local_mdep_id(UINT8 app_id,
1247 if (btif_hl_find_app_idx(app_id, &app_idx) )
1648 static int btif_hl_get_next_channel_id(UINT8 app_id){
1652 channel_id = (app_id << 16) + next_channel_id;
1653 BTIF_TRACE_DEBUG4("%s channel_id=0x%08x, app_id=0x%02x next_channel_id=0x%04x", __FUNCTION__,
1654 channel_id, app_id, next_channel_id);
1668 UINT8 app_id =(UINT8) (channel_id >> 16);
1669 BTIF_TRACE_DEBUG3("%s channel_id=0x%08x, app_id=0x%02x ", __FUNCTION__,channel_id, app_id);
1670 return app_id;
1733 ** Description Find the applicaiton index using app_id
1738 BOOLEAN btif_hl_find_app_idx_using_app_id(UINT8 app_id,
1746 (btif_hl_cb.acb[i].app_id == app_id))
1754 BTIF_TRACE_EVENT4("%s found=%d app_id=%d app_idx=%d ",
1755 __FUNCTION__, found, app_id , i);
1969 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, p_acb->app_id,
1991 BOOLEAN btif_hl_find_app_idx(UINT8 app_id, UINT8 *p_app_idx){
1999 (btif_hl_cb.acb[i].app_id == app_id))
2139 int app_id = 0;
2146 if (btif_hl_find_app_idx_using_app_id(p_data->dereg_cfm.app_id, &app_idx))
2149 app_id = (int) p_acb->app_id;
2158 BTIF_TRACE_DEBUG2("call reg state callback app_id=%d state=%d", app_id, state);
2159 BTIF_HL_CALL_CBACK(bt_hl_callbacks, app_reg_state_cb, app_id, state );
2185 if (btif_hl_find_app_idx(p_data->reg_cfm.app_id, &app_idx))
2199 BTIF_TRACE_DEBUG3("%s call reg state callback app_id=%d reg state=%d", __FUNCTION__, p_data->reg_cfm.app_id, state);
2200 BTIF_HL_CALL_CBACK(bt_hl_callbacks, app_reg_state_cb, ((int) p_data->reg_cfm.app_id), state );
2258 int app_id = (int) btif_hl_get_app_id(p_acb->delete_mdl.channel_id);
2266 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id,
2283 int app_id = (int) btif_hl_get_app_id(p_scb->channel_id);
2291 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id,
2307 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id);
2318 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id,
2336 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id);
2349 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id,
2356 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id,
2365 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id,
2415 if (btif_hl_find_app_idx_using_app_id(p_data->sdp_query_cfm.app_id, &app_idx))
2465 BTA_HlCchOpen(p_acb->app_id,p_acb->app_handle, &open_param);
2568 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr,
2636 if (btif_hl_find_app_idx_using_app_id(p_data->cch_open_cfm.app_id, &app_idx))
3087 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
3307 static void btif_hl_proc_reg_request(UINT8 app_idx, UINT8 app_id,
3313 BTIF_TRACE_DEBUG3("%s app_idx=%d app_id=%d", __FUNCTION__, app_idx, app_id);
3318 BTA_HlUpdate(app_id, p_reg_param,TRUE, btif_hl_cback);
3321 BTA_HlRegister(app_id, p_reg_param, btif_hl_cback);
3343 int app_id;
3369 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, p_data->chan_cb.app_id,
3377 app_id = (int) p_acb->app_id;
3388 btif_hl_proc_reg_request (p_data->reg.app_idx, p_acb->app_id, ®_param, btif_hl_cback);
3403 BTA_HlUpdate(p_acb->app_id,NULL,FALSE,NULL);
3405 BTA_HlDeregister(p_acb->app_id, p_acb->app_handle);
3443 BTIF_TRACE_DEBUG3("app_id=%d app_handle=%d status=%d ",
3444 p_data->reg_cfm.app_id,
3471 BTIF_TRACE_DEBUG3("app_handle=%d app_id =%d,status =%d",
3472 p_data->sdp_query_cfm.app_handle,p_data->sdp_query_cfm.app_id,
3489 if (btif_hl_find_app_idx_using_app_id(p_data->sdp_query_cfm.app_id, &app_idx))
3521 BTIF_TRACE_DEBUG4("app_id=%d,app_handle=%d mcl_handle=%d status =%d",
3522 p_data->cch_open_cfm.app_id,
3543 if (btif_hl_find_app_idx_using_app_id(p_data->cch_open_cfm.app_id, &app_idx))
3961 BTIF_TRACE_DEBUG1("Register pending app_id=%d", p_acb->app_id);
3962 btif_hl_proc_reg_request (i, p_acb->app_id, ®_param, btif_hl_cback);
4023 static bt_status_t connect_channel(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int *channel_id){
4042 if (btif_hl_find_app_idx(((UINT8)app_id), &app_idx))
4052 BTIF_TRACE_DEBUG4("connect_channel: app_idx =%d, mdep_cfg_indx =%d, mdep_id =%d app_id= %d", app_idx,
4053 mdep_cfg_index, dch_open.local_mdep_id, app_id);
4054 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr,
4066 if( !btif_hl_dch_open(p_acb->app_id, bda, &dch_open,
4082 BTA_HlSdpQuery(app_id,p_acb->app_handle, bda);
4099 if ( !btif_hl_cch_open(p_acb->app_id, bda, 0, mdep_cfg_index,
4126 UINT8 app_idx, mcl_idx, mdl_idx, mdl_cfg_idx, app_id, mdep_cfg_idx;
4180 if (btif_hl_cch_open(p_acb->app_id, p_acb->delete_mdl.bd_addr, 0,
4216 static bt_status_t unregister_application(int app_id){
4224 BTIF_TRACE_EVENT2("%s app_id=%d", __FUNCTION__, app_id);
4227 if (btif_hl_find_app_idx(((UINT8)app_id), &app_idx))
4254 static bt_status_t register_application(bthl_reg_param_t *p_reg_param, int *app_id){
4286 p_acb->app_id = btif_hl_get_next_app_id();
4354 *app_id = (int) p_acb->app_id;
4359 BTIF_TRACE_DEBUG2("calling btif_transfer_context status=%d app_id=%d", status, *app_id);
4370 BTIF_TRACE_DEBUG2("register_application status=%d app_id=%d", status, *app_id);
4412 *p_channel_id = btif_hl_get_next_channel_id(p_acb->app_id);
4416 if (!btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr,
4493 static bt_status_t get_device_datatype(int app_id, bt_bdaddr_t *bd_addr){
4501 BTIF_TRACE_EVENT2("%s app_id=%d", __FUNCTION__, app_id);
4509 if (btif_hl_find_app_idx(((UINT8)app_id), &app_idx))
4512 BTA_HlSdpQuery(app_id,p_acb->app_handle,bda);
4791 evt_param.chan_cb.app_id = p_acb->app_id;
4846 evt_param.chan_cb.app_id = (int) btif_hl_get_app_id(p_scb->channel_id);
5228 BOOLEAN btif_hl_load_mdl_config (UINT8 app_id, UINT8 buffer_size,
5237 if (btif_hl_find_app_idx(app_id, &app_idx))