Searched refs:gap_handle (Results 1 – 6 of 6) sorted by relevance
/system/bt/test/mock/ |
D | mock_stack_gap_conn.cc | 42 const RawAddress* GAP_ConnGetRemoteAddr(uint16_t gap_handle) { in GAP_ConnGetRemoteAddr() argument 50 uint16_t GAP_ConnClose(uint16_t gap_handle) { in GAP_ConnClose() argument 54 uint16_t GAP_ConnGetL2CAPCid(uint16_t gap_handle) { in GAP_ConnGetL2CAPCid() argument 58 uint16_t GAP_ConnGetRemMtuSize(uint16_t gap_handle) { in GAP_ConnGetRemMtuSize() argument 70 uint16_t GAP_ConnReadData(uint16_t gap_handle, uint8_t* p_data, in GAP_ConnReadData() argument 75 uint16_t GAP_ConnWriteData(uint16_t gap_handle, BT_HDR* msg) { in GAP_ConnWriteData() argument
|
/system/bt/stack/include/ |
D | gap_api.h | 81 typedef void(tGAP_CONN_CALLBACK)(uint16_t gap_handle, uint16_t event, 136 extern uint16_t GAP_ConnClose(uint16_t gap_handle); 151 extern uint16_t GAP_ConnReadData(uint16_t gap_handle, uint8_t* p_data, 181 extern uint16_t GAP_ConnWriteData(uint16_t gap_handle, BT_HDR* msg); 194 extern const RawAddress* GAP_ConnGetRemoteAddr(uint16_t gap_handle); 206 extern uint16_t GAP_ConnGetRemMtuSize(uint16_t gap_handle); 220 extern uint16_t GAP_ConnGetL2CAPCid(uint16_t gap_handle);
|
/system/bt/stack/gap/ |
D | gap_conn.cc | 49 uint16_t gap_handle; /* GAP handle */ member 265 return (p_ccb->gap_handle); in GAP_ConnOpen() 283 return (p_ccb->gap_handle); in GAP_ConnOpen() 292 return (p_ccb->gap_handle); in GAP_ConnOpen() 313 uint16_t GAP_ConnClose(uint16_t gap_handle) { in GAP_ConnClose() argument 314 tGAP_CCB* p_ccb = gap_find_ccb_by_handle(gap_handle); in GAP_ConnClose() 316 DVLOG(1) << StringPrintf("GAP_CONN - close handle: 0x%x", gap_handle); in GAP_ConnClose() 353 uint16_t GAP_ConnReadData(uint16_t gap_handle, uint8_t* p_data, in GAP_ConnReadData() argument 355 tGAP_CCB* p_ccb = gap_find_ccb_by_handle(gap_handle); in GAP_ConnReadData() 471 uint16_t GAP_ConnWriteData(uint16_t gap_handle, BT_HDR* msg) { in GAP_ConnWriteData() argument [all …]
|
/system/bt/bta/hearing_aid/ |
D | hearing_aid.cc | 160 HearingDevice* FindByGapHandle(uint16_t gap_handle) { in FindByGapHandle() argument 162 [&gap_handle](const HearingDevice& device) { in FindByGapHandle() 163 return device.gap_handle == gap_handle; in FindByGapHandle() 586 if (hearingDevice->gap_handle) { in OnServiceChangeEvent() 587 GAP_ConnClose(hearingDevice->gap_handle); in OnServiceChangeEvent() 588 hearingDevice->gap_handle = 0; in OnServiceChangeEvent() 876 uint16_t gap_handle = GAP_ConnOpen( in ConnectSocket() local 880 if (gap_handle == GAP_INVALID_HANDLE) { in ConnectSocket() 885 hearingDevice->gap_handle = gap_handle; in ConnectSocket() 1207 uint16_t cid = GAP_ConnGetL2CAPCid(left->gap_handle); in OnAudioDataReady() [all …]
|
/system/bt/bta/include/ |
D | bta_hearing_aid_api.h | 124 uint16_t gap_handle; member 166 gap_handle(0), in HearingDevice() 190 gap_handle(0), in HearingDevice()
|
/system/bt/bta/jv/ |
D | bta_jv_act.cc | 834 static void bta_jv_l2cap_client_cback(uint16_t gap_handle, uint16_t event, in bta_jv_l2cap_client_cback() argument 836 tBTA_JV_L2C_CB* p_cb = &bta_jv_cb.l2c_cb[gap_handle]; in bta_jv_l2cap_client_cback() 839 if (gap_handle >= BTA_JV_MAX_L2C_CONN && !p_cb->p_cback) return; in bta_jv_l2cap_client_cback() 841 VLOG(2) << __func__ << ": gap_handle=" << gap_handle in bta_jv_l2cap_client_cback() 844 evt_data.l2c_open.handle = gap_handle; in bta_jv_l2cap_client_cback() 848 evt_data.l2c_open.rem_bda = *GAP_ConnGetRemoteAddr(gap_handle); in bta_jv_l2cap_client_cback() 849 evt_data.l2c_open.tx_mtu = GAP_ConnGetRemMtuSize(gap_handle); in bta_jv_l2cap_client_cback() 863 evt_data.data_ind.handle = gap_handle; in bta_jv_l2cap_client_cback() 975 static void bta_jv_l2cap_server_cback(uint16_t gap_handle, uint16_t event, in bta_jv_l2cap_server_cback() argument 977 tBTA_JV_L2C_CB* p_cb = &bta_jv_cb.l2c_cb[gap_handle]; in bta_jv_l2cap_server_cback() [all …]
|