Lines Matching refs:app_id
101 static int btif_hl_get_next_channel_id(UINT8 app_id);
674 BOOLEAN btif_hl_dch_open(UINT8 app_id, BD_ADDR bd_addr, in btif_hl_dch_open() argument
687 __FUNCTION__, app_id ); in btif_hl_dch_open()
691 if (btif_hl_find_app_idx(app_id, &app_idx)) in btif_hl_dch_open()
704 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id); in btif_hl_dch_open()
737 BTA_HlSdpQuery(app_id,p_acb->app_handle, bd_addr); in btif_hl_dch_open()
811 BOOLEAN btif_hl_cch_open(UINT8 app_id, BD_ADDR bd_addr, UINT16 ctrl_psm, in btif_hl_cch_open() argument
822 __FUNCTION__, app_id, ctrl_psm, mdep_cfg_idx, op); in btif_hl_cch_open()
826 if (btif_hl_find_app_idx(app_id, &app_idx)) in btif_hl_cch_open()
860 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id); in btif_hl_cch_open()
870 BTA_HlSdpQuery(app_id,p_acb->app_handle, bd_addr); in btif_hl_cch_open()
887 BTIF_TRACE_ERROR("Invalid app_id=%d", app_id); in btif_hl_cch_open()
1083 static BOOLEAN btif_hl_find_peer_mdep_id(UINT8 app_id, BD_ADDR bd_addr, in btif_hl_find_peer_mdep_id() argument
1095 __FUNCTION__, app_id, local_mdep_role, data_type); in btif_hl_find_peer_mdep_id()
1110 if (btif_hl_find_app_idx(app_id, &app_idx) ) in btif_hl_find_peer_mdep_id()
1517 static int btif_hl_get_next_channel_id(UINT8 app_id){ in btif_hl_get_next_channel_id() argument
1521 channel_id = (app_id << 16) + next_channel_id; in btif_hl_get_next_channel_id()
1523 channel_id, app_id, next_channel_id); in btif_hl_get_next_channel_id()
1537 UINT8 app_id =(UINT8) (channel_id >> 16); in btif_hl_get_app_id() local
1538 BTIF_TRACE_DEBUG("%s channel_id=0x%08x, app_id=0x%02x ", __FUNCTION__,channel_id, app_id); in btif_hl_get_app_id()
1539 return app_id; in btif_hl_get_app_id()
1606 BOOLEAN btif_hl_find_app_idx_using_app_id(UINT8 app_id, in btif_hl_find_app_idx_using_app_id() argument
1615 (btif_hl_cb.acb[i].app_id == app_id)) in btif_hl_find_app_idx_using_app_id()
1624 __FUNCTION__, found, app_id , i); in btif_hl_find_app_idx_using_app_id()
1838 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, p_acb->app_id, in btif_hl_clean_mdls_using_app_idx()
1860 BOOLEAN btif_hl_find_app_idx(UINT8 app_id, UINT8 *p_app_idx){ in btif_hl_find_app_idx() argument
1868 (btif_hl_cb.acb[i].app_id == app_id)) in btif_hl_find_app_idx()
2008 int app_id = 0; in btif_hl_proc_dereg_cfm() local
2014 if (btif_hl_find_app_idx_using_app_id(p_data->dereg_cfm.app_id, &app_idx)) in btif_hl_proc_dereg_cfm()
2017 app_id = (int) p_acb->app_id; in btif_hl_proc_dereg_cfm()
2028 BTIF_TRACE_DEBUG("call reg state callback app_id=%d state=%d", app_id, state); in btif_hl_proc_dereg_cfm()
2029 BTIF_HL_CALL_CBACK(bt_hl_callbacks, app_reg_state_cb, app_id, state ); in btif_hl_proc_dereg_cfm()
2054 if (btif_hl_find_app_idx(p_data->reg_cfm.app_id, &app_idx)) in btif_hl_proc_reg_cfm()
2068 …"%s call reg state callback app_id=%d reg state=%d", __FUNCTION__, p_data->reg_cfm.app_id, state); in btif_hl_proc_reg_cfm()
2069 … BTIF_HL_CALL_CBACK(bt_hl_callbacks, app_reg_state_cb, ((int) p_data->reg_cfm.app_id), state ); in btif_hl_proc_reg_cfm()
2104 int app_id = (int) btif_hl_get_app_id(p_acb->delete_mdl.channel_id); in btif_hl_send_destroyed_cb() local
2112 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id, in btif_hl_send_destroyed_cb()
2129 int app_id = (int) btif_hl_get_app_id(p_scb->channel_id); in btif_hl_send_disconnecting_cb() local
2137 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id, in btif_hl_send_disconnecting_cb()
2153 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id); in btif_hl_send_setup_connecting_cb() local
2164 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id, in btif_hl_send_setup_connecting_cb()
2182 int app_id = (int) btif_hl_get_app_id(p_pcb->channel_id); in btif_hl_send_setup_disconnected_cb() local
2195 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id, in btif_hl_send_setup_disconnected_cb()
2202 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id, in btif_hl_send_setup_disconnected_cb()
2211 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, app_id, in btif_hl_send_setup_disconnected_cb()
2261 if (btif_hl_find_app_idx_using_app_id(p_data->sdp_query_cfm.app_id, &app_idx)) in btif_hl_proc_sdp_query_cfm()
2311 BTA_HlCchOpen(p_acb->app_id,p_acb->app_handle, &open_param); in btif_hl_proc_sdp_query_cfm()
2414 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr, in btif_hl_proc_pending_op()
2479 if (btif_hl_find_app_idx_using_app_id(p_data->cch_open_cfm.app_id, &app_idx)) in btif_hl_proc_cch_open_cfm()
2909 p_dcb->channel_id = btif_hl_get_next_channel_id(p_acb->app_id); in btif_hl_proc_dch_reconnect_ind()
3126 static void btif_hl_proc_reg_request(UINT8 app_idx, UINT8 app_id, in btif_hl_proc_reg_request() argument
3131 BTIF_TRACE_DEBUG("%s app_idx=%d app_id=%d", __FUNCTION__, app_idx, app_id); in btif_hl_proc_reg_request()
3136 BTA_HlUpdate(app_id, p_reg_param,TRUE, btif_hl_cback); in btif_hl_proc_reg_request()
3139 BTA_HlRegister(app_id, p_reg_param, btif_hl_cback); in btif_hl_proc_reg_request()
3182 BTIF_HL_CALL_CBACK(bt_hl_callbacks, channel_state_cb, p_data->chan_cb.app_id, in btif_hl_proc_cb_evt()
3200 … btif_hl_proc_reg_request (p_data->reg.app_idx, p_acb->app_id, ®_param, btif_hl_cback); in btif_hl_proc_cb_evt()
3215 BTA_HlUpdate(p_acb->app_id,NULL,FALSE,NULL); in btif_hl_proc_cb_evt()
3217 BTA_HlDeregister(p_acb->app_id, p_acb->app_handle); in btif_hl_proc_cb_evt()
3255 p_data->reg_cfm.app_id, in btif_hl_upstreams_evt()
3283 p_data->sdp_query_cfm.app_handle,p_data->sdp_query_cfm.app_id, in btif_hl_upstreams_evt()
3300 if (btif_hl_find_app_idx_using_app_id(p_data->sdp_query_cfm.app_id, &app_idx)) in btif_hl_upstreams_evt()
3332 p_data->cch_open_cfm.app_id, in btif_hl_upstreams_evt()
3353 if (btif_hl_find_app_idx_using_app_id(p_data->cch_open_cfm.app_id, &app_idx)) in btif_hl_upstreams_evt()
3767 BTIF_TRACE_DEBUG("Register pending app_id=%d", p_acb->app_id); in btif_hl_upstreams_ctrl_evt()
3768 btif_hl_proc_reg_request (i, p_acb->app_id, ®_param, btif_hl_cback); in btif_hl_upstreams_ctrl_evt()
3834 static bt_status_t connect_channel(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int *chann… in connect_channel() argument
3852 if (btif_hl_find_app_idx(((UINT8)app_id), &app_idx)) in connect_channel()
3863 mdep_cfg_index, dch_open.local_mdep_id, app_id); in connect_channel()
3864 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr, in connect_channel()
3876 if( !btif_hl_dch_open(p_acb->app_id, bda, &dch_open, in connect_channel()
3892 BTA_HlSdpQuery(app_id,p_acb->app_handle, bda); in connect_channel()
3909 if ( !btif_hl_cch_open(p_acb->app_id, bda, 0, mdep_cfg_index, in connect_channel()
3988 if (btif_hl_cch_open(p_acb->app_id, p_acb->delete_mdl.bd_addr, 0, in destroy_channel()
4024 static bt_status_t unregister_application(int app_id){ in unregister_application() argument
4031 BTIF_TRACE_EVENT("%s app_id=%d", __FUNCTION__, app_id); in unregister_application()
4034 if (btif_hl_find_app_idx(((UINT8)app_id), &app_idx)) in unregister_application()
4060 static bt_status_t register_application(bthl_reg_param_t *p_reg_param, int *app_id){ in register_application() argument
4091 p_acb->app_id = btif_hl_get_next_app_id(); in register_application()
4159 *app_id = (int) p_acb->app_id; in register_application()
4164 BTIF_TRACE_DEBUG("calling btif_transfer_context status=%d app_id=%d", status, *app_id); in register_application()
4175 BTIF_TRACE_DEBUG("register_application status=%d app_id=%d", status, *app_id); in register_application()
4217 *p_channel_id = btif_hl_get_next_channel_id(p_acb->app_id); in btif_hl_save_mdl_cfg()
4221 if (!btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr, in btif_hl_save_mdl_cfg()
4530 evt_param.chan_cb.app_id = p_acb->app_id; in btif_hl_add_socket_to_set()
4570 evt_param.chan_cb.app_id = (int) btif_hl_get_app_id(p_scb->channel_id); in btif_hl_close_socket()
4944 BOOLEAN btif_hl_load_mdl_config (UINT8 app_id, UINT8 buffer_size, in btif_hl_load_mdl_config() argument
4953 if (btif_hl_find_app_idx(app_id, &app_idx)) in btif_hl_load_mdl_config()