Home
last modified time | relevance | path

Searched refs:p_cback (Results 1 – 25 of 142) sorted by relevance

123456

/system/bt/bta/hd/
Dbta_hd_act.cc97 bta_hd_cb.p_cback = p_data->api_enable.p_cback; in bta_hd_api_enable()
109 (*bta_hd_cb.p_cback)(BTA_HD_ENABLE_EVT, &bta_hd); in bta_hd_api_enable()
128 if (bta_hd_cb.p_cback == NULL) return; in bta_hd_api_disable()
146 (*bta_hd_cb.p_cback)(BTA_HD_DISABLE_EVT, &bta_hd); in bta_hd_api_disable()
177 (*bta_hd_cb.p_cback)(BTA_HD_REGISTER_APP_EVT, &ret); in bta_hd_register_act()
212 (*bta_hd_cb.p_cback)(BTA_HD_REGISTER_APP_EVT, &ret); in bta_hd_register_act()
241 (*bta_hd_cb.p_cback)(BTA_HD_UNREGISTER_APP_EVT, &bta_hd); in bta_hd_unregister_act()
298 bta_hd_cb.p_cback(BTA_HD_CONN_STATE_EVT, &cback_data); in bta_hd_connect_act()
325 bta_hd_cb.p_cback(BTA_HD_CONN_STATE_EVT, &cback_data); in bta_hd_disconnect_act()
451 tBTA_HD_CBACK_DATA* p_cback = (tBTA_HD_CBACK_DATA*)p_data; in bta_hd_open_act() local
[all …]
/system/bt/bta/jv/
Dbta_jv_api.cc62 tBTA_JV_STATUS BTA_JvEnable(tBTA_JV_DM_CBACK* p_cback) { in BTA_JvEnable() argument
63 if (!p_cback || bta_jv_enabled) { in BTA_JvEnable()
78 do_in_main_thread(FROM_HERE, Bind(&bta_jv_enable, p_cback)); in BTA_JvEnable()
244 tBTA_JV_L2CAP_CBACK* p_cback, in BTA_JvL2capConnectLE() argument
247 CHECK(p_cback); in BTA_JvL2capConnectLE()
249 peer_bd_addr, p_cback, l2cap_socket_id)); in BTA_JvL2capConnectLE()
269 tBTA_JV_L2CAP_CBACK* p_cback, in BTA_JvL2capConnect() argument
272 CHECK(p_cback); in BTA_JvL2capConnect()
277 base::Passed(&ertm_info), p_cback, l2cap_socket_id)); in BTA_JvL2capConnect()
293 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback) in BTA_JvL2capClose()
[all …]
Dbta_jv_act.cc64 tBTA_JV_L2CAP_CBACK* p_cback; member
333 p_cb->p_cback = NULL; in bta_jv_free_rfc_cb()
364 p_cb->p_cback = NULL; in bta_jv_free_l2c_cb()
438 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in bta_jv_free_set_pm_profile_cb()
596 void bta_jv_enable(tBTA_JV_DM_CBACK* p_cback) { in bta_jv_enable() argument
598 bta_jv_cb.p_dm_cback = p_cback; in bta_jv_enable()
856 if (gap_handle >= BTA_JV_MAX_L2C_CONN && !p_cb->p_cback) return; in bta_jv_l2cap_client_cback()
868 p_cb->p_cback(BTA_JV_L2CAP_OPEN_EVT, &evt_data, p_cb->l2cap_socket_id); in bta_jv_l2cap_client_cback()
875 p_cb->p_cback(BTA_JV_L2CAP_CLOSE_EVT, &evt_data, p_cb->l2cap_socket_id); in bta_jv_l2cap_client_cback()
876 p_cb->p_cback = NULL; in bta_jv_l2cap_client_cback()
[all …]
Dbta_jv_int.h71 tBTA_JV_L2CAP_CBACK* p_cback; /* the callback function */ member
100 tBTA_JV_RFCOMM_CBACK* p_cback; /* the callback function */ member
142 extern void bta_jv_enable(tBTA_JV_DM_CBACK* p_cback);
159 tBTA_JV_L2CAP_CBACK* p_cback,
165 std::unique_ptr<tL2CAP_ERTM_INFO> ertm_info, tBTA_JV_L2CAP_CBACK* p_cback,
174 tBTA_JV_RFCOMM_CBACK* p_cback,
179 tBTA_JV_RFCOMM_CBACK* p_cback,
188 tBTA_JV_L2CAP_CBACK* p_cback,
191 tBTA_JV_L2CAP_CBACK* p_cback,
197 tBTA_JV_L2CAP_CBACK* p_cback);
/system/nfc/src/nfc/nfc/
Dnfc_vs.cc54 tNFC_STATUS NFC_RegVSCback(bool is_register, tNFC_VS_CBACK* p_cback) { in NFC_RegVSCback() argument
62 nfc_cb.p_vs_cb[i] = p_cback; in NFC_RegVSCback()
70 if (nfc_cb.p_vs_cb[i] == p_cback) { in NFC_RegVSCback()
93 tNFC_STATUS NFC_SendRawVsCommand(NFC_HDR* p_data, tNFC_VS_CBACK* p_cback) { in NFC_SendRawVsCommand() argument
105 ((tNFC_NCI_VS_MSG*)p_data)->p_cback = p_cback; in NFC_SendRawVsCommand()
126 tNFC_VS_CBACK* p_cback) { in NFC_SendVsCommand() argument
151 ((tNFC_NCI_VS_MSG*)p_data)->p_cback = p_cback; in NFC_SendVsCommand()
Dnfc_utils.cc47 tNFC_CONN_CB* nfc_alloc_conn_cb(tNFC_CONN_CBACK* p_cback) { in nfc_alloc_conn_cb() argument
57 p_conn_cb->p_cback = p_cback; in nfc_alloc_conn_cb()
163 p_cb->p_cback = nullptr; in nfc_free_conn_cb()
187 if (p_conn_cb->p_cback) { in nfc_reset_all_conn_cbs()
190 (*p_conn_cb->p_cback)(p_conn_cb->conn_id, NFC_DEACTIVATE_CEVT, in nfc_reset_all_conn_cbs()
Dnfc_main.cc663 tNFC_STATUS NFC_Enable(tNFC_RESPONSE_CBACK* p_cback) { in NFC_Enable() argument
667 if (!p_cback) { in NFC_Enable()
670 nfc_cb.p_resp_cback = p_cback; in NFC_Enable()
818 tNFC_DISCOVER_CBACK* p_cback) { in NFC_DiscoveryMap() argument
825 nfc_cb.p_discv_cback = p_cback; in NFC_DiscoveryMap()
883 tNFC_DISCOVER_CBACK* p_cback) { in NFC_DiscoveryStart() argument
893 nfc_cb.p_discv_cback = p_cback; in NFC_DiscoveryStart()
950 tNFC_CONN_CBACK* p_cback) { in NFC_ConnCreate() argument
956 p_cb = nfc_alloc_conn_cb(p_cback); in NFC_ConnCreate()
979 p_cb->p_cback = p_cback; in NFC_ConnCreate()
[all …]
/system/nfc/src/nfc/tags/
Dce_main.cc66 if (ce_cb.p_cback) { in CE_SendRawFrame()
93 tCE_CBACK* p_cback) { in CE_SetActivatedTagType() argument
107 ce_cb.p_cback = p_cback; in CE_SetActivatedTagType()
114 ce_cb.p_cback = p_cback; in CE_SetActivatedTagType()
125 ce_cb.p_cback = nullptr; in CE_SetActivatedTagType()
Drw_main.cc175 if (rw_cb.p_cback) { in RW_SendRawFrame()
202 tRW_CBACK* p_cback) { in RW_SetActivatedTagType() argument
211 if (p_cback == nullptr) { in RW_SetActivatedTagType()
225 rw_cb.p_cback = p_cback; in RW_SetActivatedTagType()
273 if (status != NFC_STATUS_OK) rw_cb.p_cback = nullptr; in RW_SetActivatedTagType()
/system/bt/bta/sys/
Dbta_sys_conn.cc44 void bta_sys_rm_register(tBTA_SYS_CONN_CBACK* p_cback) { in bta_sys_rm_register() argument
45 bta_sys_cb.prm_cb = p_cback; in bta_sys_rm_register()
58 void bta_sys_policy_register(tBTA_SYS_CONN_CBACK* p_cback) { in bta_sys_policy_register() argument
59 bta_sys_cb.p_policy_cb = p_cback; in bta_sys_policy_register()
72 void bta_sys_role_chg_register(tBTA_SYS_CONN_CBACK* p_cback) { in bta_sys_role_chg_register() argument
73 bta_sys_cb.p_role_cb = p_cback; in bta_sys_role_chg_register()
86 void bta_sys_ssr_cfg_register(tBTA_SYS_SSR_CFG_CBACK* p_cback) { in bta_sys_ssr_cfg_register() argument
87 bta_sys_cb.p_ssr_cb = p_cback; in bta_sys_ssr_cfg_register()
119 void bta_sys_collision_register(uint8_t bta_id, tBTA_SYS_CONN_CBACK* p_cback) { in bta_sys_collision_register() argument
126 bta_sys_cb.colli_reg.p_coll_cback[index] = p_cback; in bta_sys_collision_register()
[all …]
Dbta_sys.h233 extern void bta_sys_rm_register(tBTA_SYS_CONN_CBACK* p_cback);
234 extern void bta_sys_pm_register(tBTA_SYS_CONN_CBACK* p_cback);
236 extern void bta_sys_policy_register(tBTA_SYS_CONN_CBACK* p_cback);
237 extern void bta_sys_sco_register(tBTA_SYS_CONN_CBACK* p_cback);
261 extern void bta_sys_ssr_cfg_register(tBTA_SYS_SSR_CFG_CBACK* p_cback);
266 extern void bta_sys_role_chg_register(tBTA_SYS_CONN_CBACK* p_cback);
270 tBTA_SYS_CONN_CBACK* p_cback);
274 extern void bta_sys_eir_register(tBTA_SYS_EIR_CBACK* p_cback);
/system/bt/bta/mce/
Dbta_mce_api.cc57 tBTA_MCE_STATUS BTA_MceEnable(tBTA_MCE_DM_CBACK* p_cback) { in BTA_MceEnable() argument
62 if (p_cback && !bta_sys_is_register(BTA_ID_MCE)) { in BTA_MceEnable()
68 if (p_cback) { in BTA_MceEnable()
72 p_buf->p_cback = p_cback; in BTA_MceEnable()
/system/bt/bta/gatt/
Dbta_gatts_act.cc211 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback; in bta_gatts_register()
230 if (p_msg->api_reg.p_cback) in bta_gatts_register()
231 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data); in bta_gatts_register()
263 tBTA_GATTS_CBACK* p_cback = NULL; in bta_gatts_deregister() local
273 p_cback = p_cb->rcb[i].p_cback; in bta_gatts_deregister()
286 if (p_cback) { in bta_gatts_deregister()
287 (*p_cback)(BTA_GATTS_DEREG_EVT, &cb_data); in bta_gatts_deregister()
318 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_DELELTE_EVT, &cb_data); in bta_gatts_delete_service()
341 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_STOP_EVT, &cb_data); in bta_gatts_stop_service()
408 p_rcb && p_cb->rcb[p_srvc_cb->rcb_idx].p_cback) { in bta_gatts_indicate_handle()
[all …]
Dbta_gattc_act.cc170 void bta_gattc_register(const Uuid& app_uuid, tBTA_GATTC_CBACK* p_cback, in bta_gattc_register() argument
189 bta_gattc_cb.cl_rcb[i].p_cback = p_cback; in bta_gattc_register()
298 if (p_clreg && p_clreg->p_cback) { in bta_gattc_process_api_open_cancel()
301 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_process_api_open_cancel()
309 if (!p_clreg || !p_clreg->p_cback) return; in bta_gattc_process_enc_cmpl()
317 (*p_clreg->p_cback)(BTA_GATTC_ENC_CMPL_CB_EVT, &cb_data); in bta_gattc_process_enc_cmpl()
326 if (p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback) in bta_gattc_cancel_open_error()
327 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error()
428 if (p_clreg && p_clreg->p_cback) { in bta_gattc_cancel_bk_conn()
429 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_bk_conn()
[all …]
/system/nfc/src/nfa/p2p/
Dnfa_p2p_act.cc193 nfa_p2p_cb.sap_cb[local_sap].p_cback(NFA_P2P_SDP_EVT, &evt_data); in nfa_p2p_sdp_cback()
251 if (nfa_p2p_cb.sap_cb[local_sap].p_cback) { in nfa_p2p_proc_llcp_data_ind()
270 nfa_p2p_cb.sap_cb[local_sap].p_cback(NFA_P2P_DATA_EVT, &evt_data); in nfa_p2p_proc_llcp_data_ind()
295 if (nfa_p2p_cb.sap_cb[server_sap].p_cback) { in nfa_p2p_proc_llcp_connect_ind()
313 nfa_p2p_cb.sap_cb[server_sap].p_cback(NFA_P2P_CONN_REQ_EVT, &evt_data); in nfa_p2p_proc_llcp_connect_ind()
338 if (nfa_p2p_cb.sap_cb[local_sap].p_cback) { in nfa_p2p_proc_llcp_connect_resp()
356 nfa_p2p_cb.sap_cb[local_sap].p_cback(NFA_P2P_CONNECTED_EVT, &evt_data); in nfa_p2p_proc_llcp_connect_resp()
379 if (nfa_p2p_cb.sap_cb[local_sap].p_cback) { in nfa_p2p_proc_llcp_disconnect_ind()
390 nfa_p2p_cb.sap_cb[local_sap].p_cback(NFA_P2P_DISC_EVT, &evt_data); in nfa_p2p_proc_llcp_disconnect_ind()
401 nfa_p2p_cb.sap_cb[local_sap].p_cback(NFA_P2P_DISC_EVT, &evt_data); in nfa_p2p_proc_llcp_disconnect_ind()
[all …]
/system/bt/bta/sdp/
Dbta_sdp_api.cc55 tBTA_SDP_STATUS BTA_SdpEnable(tBTA_SDP_DM_CBACK* p_cback) { in BTA_SdpEnable() argument
59 if (p_cback && !bta_sys_is_register(BTA_ID_SDP)) { in BTA_SdpEnable()
65 if (p_cback) { in BTA_SdpEnable()
69 p_buf->p_cback = p_cback; in BTA_SdpEnable()
/system/nfc/src/nfa/sys/
Dnfa_sys_cback.cc44 void nfa_sys_cback_reg_enable_complete(tNFA_SYS_ENABLE_CBACK* p_cback) { in nfa_sys_cback_reg_enable_complete() argument
45 nfa_sys_cb.p_enable_cback = p_cback; in nfa_sys_cback_reg_enable_complete()
84 tNFA_SYS_PROC_NFCC_PWR_MODE_CMPL* p_cback) { in nfa_sys_cback_reg_nfcc_power_mode_proc_complete() argument
85 nfa_sys_cb.p_proc_nfcc_pwr_mode_cmpl_cback = p_cback; in nfa_sys_cback_reg_nfcc_power_mode_proc_complete()
/system/bt/bta/dm/
Dbta_dm_api.cc58 tBTA_STATUS BTA_EnableBluetooth(tBTA_DM_SEC_CBACK* p_cback) { in BTA_EnableBluetooth() argument
67 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_enable, p_cback)); in BTA_EnableBluetooth()
128 tBTA_DM_SEARCH_CBACK* p_cback) { in BTA_DmSearch() argument
135 p_msg->p_cback = p_cback; in BTA_DmSearch()
170 tBTA_DM_SEARCH_CBACK* p_cback, bool sdp_search) { in BTA_DmDiscover() argument
177 p_msg->p_cback = p_cback; in BTA_DmDiscover()
195 tBTA_DM_SEARCH_CBACK* p_cback, bool sdp_search) { in BTA_DmDiscoverUUID() argument
202 p_msg->p_cback = p_cback; in BTA_DmDiscoverUUID()
581 tBTA_DM_SEARCH_CBACK* p_cback, in bta_dm_discover_send_msg() argument
592 p_msg->p_cback = p_cback; in bta_dm_discover_send_msg()
[all …]
/system/bt/stack/gap/
Dgap_ble.cc35 tGAP_BLE_CMPL_CBACK* p_cback; member
40 tGAP_BLE_CMPL_CBACK* p_cback; member
243 clcb.p_cback = req.p_cback; in send_cl_read_request()
264 tGAP_BLE_CMPL_CBACK* p_cback = clcb.p_cback; in cl_op_cmpl() local
270 clcb.p_cback = NULL; in cl_op_cmpl()
272 if (p_cback && op) { in cl_op_cmpl()
274 (*p_cback)(status, clcb.bda, len, (char*)p_name); in cl_op_cmpl()
357 tGAP_BLE_CMPL_CBACK* p_cback) { in accept_client_operation() argument
358 if (p_cback == NULL && uuid != GATT_UUID_GAP_PREF_CONN_PARAM) return false; in accept_client_operation()
376 p_clcb->requests.push({.uuid = uuid, .p_cback = p_cback}); in accept_client_operation()
[all …]
/system/nfc/src/nfc/nci/
Dnci_hrcv.cc319 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_rsp() local
363 p_cback = nullptr; in nci_proc_ee_management_rsp()
368 if (p_cback) (*p_cback)(event, &nfc_response); in nci_proc_ee_management_rsp()
383 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_ntf() local
448 p_cback = nullptr; in nci_proc_ee_management_ntf()
452 if (p_cback) (*p_cback)(event, &nfc_response); in nci_proc_ee_management_ntf()
471 tNFC_VS_CBACK* p_cback = (tNFC_VS_CBACK*)nfc_cb.p_vsc_cback; in nci_proc_prop_rsp() local
481 if (p_cback) in nci_proc_prop_rsp()
482 (*p_cback)((tNFC_VS_EVT)(NCI_RSP_BIT | op_code), p_msg->len, p_evt); in nci_proc_prop_rsp()
496 tNFC_VS_CBACK* p_cback = (tNFC_VS_CBACK*)nfc_cb.p_vsc_cback; in nci_proc_prop_raw_vs_rsp() local
[all …]
/system/nfc/src/nfa/include/
Dnfa_snep_int.h55 tNFA_SNEP_CBACK* p_cback; member
61 tNFA_SNEP_CBACK* p_cback; member
69 tNFA_SNEP_CBACK* p_cback; member
75 tNFA_SNEP_CBACK* p_cback; member
164 tNFA_SNEP_CBACK* p_cback; /* callback for event */ member
/system/bt/bta/hl/
Dbta_hl_main.cc540 if (p_data->api_enable.p_cback) in bta_hl_api_enable()
541 p_data->api_enable.p_cback(BTA_HL_CTRL_ENABLE_CFM_EVT, in bta_hl_api_enable()
550 p_cb->p_ctrl_cback = p_data->api_enable.p_cback; in bta_hl_api_enable()
552 if (p_data->api_enable.p_cback) in bta_hl_api_enable()
553 p_data->api_enable.p_cback(BTA_HL_CTRL_ENABLE_CFM_EVT, in bta_hl_api_enable()
613 if (p_acb->p_cback) { in bta_hl_api_update()
614 p_acb->p_cback(BTA_HL_DEREGISTER_CFM_EVT, (tBTA_HL*)&evt_data); in bta_hl_api_update()
638 if (p_data->api_reg.p_cback) { in bta_hl_api_update()
639 p_data->api_reg.p_cback(BTA_HL_REGISTER_CFM_EVT, (tBTA_HL*)&evt_data); in bta_hl_api_update()
649 if (p_data->api_reg.p_cback) { in bta_hl_api_update()
[all …]
/system/bt/bta/pan/
Dbta_pan_api.cc54 void BTA_PanEnable(tBTA_PAN_CBACK p_cback) { in BTA_PanEnable() argument
62 p_buf->p_cback = p_cback; in BTA_PanEnable()
178 void BTA_PanEnable(UNUSED_ATTR tBTA_PAN_CBACK p_cback) {} in BTA_PanEnable() argument
/system/bt/bta/include/
Dbta_jv_api.h401 tBTA_JV_STATUS BTA_JvEnable(tBTA_JV_DM_CBACK* p_cback);
517 tBTA_JV_L2CAP_CBACK* p_cback,
537 tBTA_JV_L2CAP_CBACK* p_cback, uint32_t l2cap_socket_id);
582 tBTA_JV_L2CAP_CBACK* p_cback,
599 void BTA_JvL2capStartServerLE(uint16_t local_chan, tBTA_JV_L2CAP_CBACK* p_cback,
685 uint32_t req_id, tBTA_JV_L2CAP_CBACK* p_cback,
707 tBTA_JV_RFCOMM_CBACK* p_cback,
739 tBTA_JV_RFCOMM_CBACK* p_cback,
/system/bt/stack/a2dp/
Da2dp_api.cc122 if (a2dp_cb.find.p_cback != NULL) { in a2dp_sdp_cback()
123 (*a2dp_cb.find.p_cback)(found, &a2dp_svc, peer_address); in a2dp_sdp_cback()
275 tA2DP_FIND_CBACK* p_cback) { in A2DP_FindService() argument
282 p_db == NULL || p_cback == NULL) { in A2DP_FindService()
312 a2dp_cb.find.p_cback = p_cback; in A2DP_FindService()

123456