Home
last modified time | relevance | path

Searched refs:gap_handle (Results 1 – 5 of 5) sorted by relevance

/system/bt/stack/include/
Dgap_api.h110 uint16_t gap_handle; member
125 typedef void(tGAP_CONN_CALLBACK)(uint16_t gap_handle, uint16_t event,
194 extern uint16_t GAP_ConnClose(uint16_t gap_handle);
209 extern uint16_t GAP_ConnReadData(uint16_t gap_handle, uint8_t* p_data,
238 extern uint16_t GAP_ConnBTRead(uint16_t gap_handle, BT_HDR** pp_buf);
254 extern uint16_t GAP_ConnWriteData(uint16_t gap_handle, BT_HDR* msg);
267 extern uint16_t GAP_ConnReconfig(uint16_t gap_handle, tL2CAP_CFG_INFO* p_cfg);
285 extern uint16_t GAP_ConnSetIdleTimeout(uint16_t gap_handle, uint16_t timeout);
298 extern const RawAddress* GAP_ConnGetRemoteAddr(uint16_t gap_handle);
310 extern uint16_t GAP_ConnGetRemMtuSize(uint16_t gap_handle);
[all …]
/system/bt/stack/gap/
Dgap_conn.cc52 uint16_t gap_handle; /* GAP handle */ member
289 return (p_ccb->gap_handle); in GAP_ConnOpen()
308 return (p_ccb->gap_handle); in GAP_ConnOpen()
316 return (p_ccb->gap_handle); in GAP_ConnOpen()
337 uint16_t GAP_ConnClose(uint16_t gap_handle) { in GAP_ConnClose() argument
338 tGAP_CCB* p_ccb = gap_find_ccb_by_handle(gap_handle); in GAP_ConnClose()
340 DVLOG(1) << StringPrintf("GAP_CONN - close handle: 0x%x", gap_handle); in GAP_ConnClose()
372 uint16_t GAP_ConnReadData(uint16_t gap_handle, uint8_t* p_data, in GAP_ConnReadData() argument
374 tGAP_CCB* p_ccb = gap_find_ccb_by_handle(gap_handle); in GAP_ConnReadData()
464 uint16_t GAP_ConnBTRead(uint16_t gap_handle, BT_HDR** pp_buf) { in GAP_ConnBTRead() argument
[all …]
/system/bt/bta/hearing_aid/
Dhearing_aid.cc152 HearingDevice* FindByGapHandle(uint16_t gap_handle) { in FindByGapHandle() argument
154 [&gap_handle](const HearingDevice& device) { in FindByGapHandle()
155 return device.gap_handle == gap_handle; in FindByGapHandle()
582 if (hearingDevice->gap_handle) { in OnServiceChangeEvent()
583 GAP_ConnClose(hearingDevice->gap_handle); in OnServiceChangeEvent()
584 hearingDevice->gap_handle = 0; in OnServiceChangeEvent()
872 uint16_t gap_handle = GAP_ConnOpen( in ConnectSocket() local
877 if (gap_handle == GAP_INVALID_HANDLE) { in ConnectSocket()
882 hearingDevice->gap_handle = gap_handle; in ConnectSocket()
1195 uint16_t cid = GAP_ConnGetL2CAPCid(left->gap_handle); in OnAudioDataReady()
[all …]
/system/bt/bta/include/
Dbta_hearing_aid_api.h109 uint16_t gap_handle; member
151 gap_handle(0), in HearingDevice()
175 gap_handle(0), in HearingDevice()
/system/bt/bta/jv/
Dbta_jv_act.cc851 static void bta_jv_l2cap_client_cback(uint16_t gap_handle, uint16_t event, in bta_jv_l2cap_client_cback() argument
853 tBTA_JV_L2C_CB* p_cb = &bta_jv_cb.l2c_cb[gap_handle]; in bta_jv_l2cap_client_cback()
856 if (gap_handle >= BTA_JV_MAX_L2C_CONN && !p_cb->p_cback) return; in bta_jv_l2cap_client_cback()
858 VLOG(2) << __func__ << ": gap_handle=" << gap_handle in bta_jv_l2cap_client_cback()
861 evt_data.l2c_open.handle = gap_handle; in bta_jv_l2cap_client_cback()
865 evt_data.l2c_open.rem_bda = *GAP_ConnGetRemoteAddr(gap_handle); in bta_jv_l2cap_client_cback()
866 evt_data.l2c_open.tx_mtu = GAP_ConnGetRemMtuSize(gap_handle); in bta_jv_l2cap_client_cback()
880 evt_data.data_ind.handle = gap_handle; in bta_jv_l2cap_client_cback()
1000 static void bta_jv_l2cap_server_cback(uint16_t gap_handle, uint16_t event, in bta_jv_l2cap_server_cback() argument
1002 tBTA_JV_L2C_CB* p_cb = &bta_jv_cb.l2c_cb[gap_handle]; in bta_jv_l2cap_server_cback()
[all …]