/system/bt/bta/ag/ |
D | bta_ag_rfc.cc | 44 void bta_ag_port_cback_1(uint32_t code, uint16_t port_handle); 45 void bta_ag_port_cback_2(uint32_t code, uint16_t port_handle); 46 void bta_ag_port_cback_3(uint32_t code, uint16_t port_handle); 47 void bta_ag_port_cback_4(uint32_t code, uint16_t port_handle); 48 void bta_ag_port_cback_5(uint32_t code, uint16_t port_handle); 49 void bta_ag_port_cback_6(uint32_t code, uint16_t port_handle); 50 void bta_ag_mgmt_cback_1(uint32_t code, uint16_t port_handle); 51 void bta_ag_mgmt_cback_2(uint32_t code, uint16_t port_handle); 52 void bta_ag_mgmt_cback_3(uint32_t code, uint16_t port_handle); 53 void bta_ag_mgmt_cback_4(uint32_t code, uint16_t port_handle); [all …]
|
D | bta_ag_act.cc | 525 int status = PORT_CheckConnection(data.rfc.port_handle, &dev_addr, &lcid); in bta_ag_rfc_acp_open() 571 p_scb->serv_handle[i], data.rfc.port_handle); in bta_ag_rfc_acp_open() 573 if (p_scb->serv_handle[i] == data.rfc.port_handle) { in bta_ag_rfc_acp_open() 575 p_scb->conn_handle = data.rfc.port_handle; in bta_ag_rfc_acp_open()
|
D | bta_ag_int.h | 150 uint16_t port_handle; member
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_rfc.cc | 48 uint16_t port_handle) { in bta_hf_client_port_cback() argument 51 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_port_cback() 53 APPL_TRACE_ERROR("%s: cb not found for handle %d", __func__, port_handle); in bta_hf_client_port_cback() 74 static void bta_hf_client_mgmt_cback(uint32_t code, uint16_t port_handle) { in bta_hf_client_mgmt_cback() argument 76 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_mgmt_cback() 79 port_handle, bta_hf_client_cb_arr.serv_handle); in bta_hf_client_mgmt_cback() 83 port_handle != client_cb->conn_handle) { in bta_hf_client_mgmt_cback() 85 port_handle); in bta_hf_client_mgmt_cback() 93 if (client_cb && port_handle == client_cb->conn_handle) { /* out conn */ in bta_hf_client_mgmt_cback() 95 } else if (port_handle == bta_hf_client_cb_arr.serv_handle) { in bta_hf_client_mgmt_cback() [all …]
|
D | bta_hf_client_int.h | 122 uint16_t port_handle; member
|
/system/bt/stack/include/ |
D | port_api.h | 96 typedef int(tPORT_DATA_CALLBACK)(uint16_t port_handle, void* p_data, 102 typedef int(tPORT_DATA_CO_CALLBACK)(uint16_t port_handle, uint8_t* p_buf, 105 typedef void(tPORT_CALLBACK)(uint32_t code, uint16_t port_handle); 255 extern int PORT_SetEventCallback(uint16_t port_handle, 268 int PORT_ClearKeepHandleFlag(uint16_t port_handle); 282 extern int PORT_SetDataCallback(uint16_t port_handle, 285 extern int PORT_SetDataCOCallback(uint16_t port_handle, 298 extern int PORT_SetEventMask(uint16_t port_handle, uint32_t mask);
|
/system/bt/bta/jv/ |
D | bta_jv_act.cc | 170 tBTA_JV_RFC_CB* bta_jv_alloc_rfc_cb(uint16_t port_handle, in bta_jv_alloc_rfc_cb() argument 184 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb() 185 VLOG(2) << __func__ << "port_handle=" << +port_handle in bta_jv_alloc_rfc_cb() 188 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb() 190 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb() 197 …LOG(ERROR) << __func__ << "port_handle=" << port_handle << " ctrl block exceeds limit:" << BTA_JV_… in bta_jv_alloc_rfc_cb() 212 tBTA_JV_PCB* bta_jv_rfc_port_to_pcb(uint16_t port_handle) { in bta_jv_rfc_port_to_pcb() argument 215 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) && in bta_jv_rfc_port_to_pcb() 216 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_pcb() 217 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb() [all …]
|
D | bta_jv_int.h | 90 uint16_t port_handle; /* port handle */ member
|
D | bta_jv_api.cc | 647 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
|
/system/bt/stack/test/rfcomm/ |
D | stack_rfcomm_test_utils.h | 31 virtual void PortManagementCallback(uint32_t code, uint16_t port_handle, 33 virtual void PortEventCallback(uint32_t code, uint16_t port_handle, 40 MOCK_METHOD3(PortManagementCallback, void(uint32_t code, uint16_t port_handle, 42 MOCK_METHOD3(PortEventCallback, void(uint32_t code, uint16_t port_handle,
|
D | stack_rfcomm_test.cc | 108 void port_mgmt_cback_0(uint32_t code, uint16_t port_handle) { in port_mgmt_cback_0() argument 109 rfcomm_callback->PortManagementCallback(code, port_handle, 0); in port_mgmt_cback_0() 112 void port_mgmt_cback_1(uint32_t code, uint16_t port_handle) { in port_mgmt_cback_1() argument 113 rfcomm_callback->PortManagementCallback(code, port_handle, 1); in port_mgmt_cback_1() 116 void port_event_cback_0(uint32_t code, uint16_t port_handle) { in port_event_cback_0() argument 117 rfcomm_callback->PortEventCallback(code, port_handle, 0); in port_event_cback_0() 120 void port_event_cback_1(uint32_t code, uint16_t port_handle) { in port_event_cback_1() argument 121 rfcomm_callback->PortEventCallback(code, port_handle, 1); in port_event_cback_1() 185 void ConnectServerPort(const RawAddress& peer_addr, uint16_t port_handle, in ConnectServerPort() argument 224 PortManagementCallback(PORT_SUCCESS, port_handle, port_callback_index)); in ConnectServerPort() [all …]
|
/system/bt/stack/rfcomm/ |
D | port_api.cc | 326 int PORT_SetEventCallback(uint16_t port_handle, tPORT_CALLBACK* p_port_cb) { in PORT_SetEventCallback() argument 330 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetEventCallback() 334 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback() 340 RFCOMM_TRACE_API("PORT_SetEventCallback() handle:%d", port_handle); in PORT_SetEventCallback() 356 int PORT_ClearKeepHandleFlag(uint16_t port_handle) { in PORT_ClearKeepHandleFlag() argument 360 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_ClearKeepHandleFlag() 364 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag() 382 int PORT_SetDataCallback(uint16_t port_handle, tPORT_DATA_CALLBACK* p_port_cb) { in PORT_SetDataCallback() argument 385 RFCOMM_TRACE_API("PORT_SetDataCallback() handle:%d cb 0x%x", port_handle, in PORT_SetDataCallback() 389 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetDataCallback() [all …]
|