/system/bt/bta/ag/ |
D | bta_ag_rfc.cc | 38 void bta_ag_port_cback_1(uint32_t code, uint16_t port_handle); 39 void bta_ag_port_cback_2(uint32_t code, uint16_t port_handle); 40 void bta_ag_port_cback_3(uint32_t code, uint16_t port_handle); 41 void bta_ag_port_cback_4(uint32_t code, uint16_t port_handle); 42 void bta_ag_port_cback_5(uint32_t code, uint16_t port_handle); 43 void bta_ag_port_cback_6(uint32_t code, uint16_t port_handle); 44 void bta_ag_mgmt_cback_1(uint32_t code, uint16_t port_handle); 45 void bta_ag_mgmt_cback_2(uint32_t code, uint16_t port_handle); 46 void bta_ag_mgmt_cback_3(uint32_t code, uint16_t port_handle); 47 void bta_ag_mgmt_cback_4(uint32_t code, uint16_t port_handle); [all …]
|
D | bta_ag_act.cc | 522 int status = PORT_CheckConnection(data.rfc.port_handle, &dev_addr, &lcid); in bta_ag_rfc_acp_open() 568 p_scb->serv_handle[i], data.rfc.port_handle); in bta_ag_rfc_acp_open() 570 if (p_scb->serv_handle[i] == data.rfc.port_handle) { in bta_ag_rfc_acp_open() 572 p_scb->conn_handle = data.rfc.port_handle; in bta_ag_rfc_acp_open()
|
D | bta_ag_int.h | 156 uint16_t port_handle; member
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_rfc.cc | 47 uint16_t port_handle) { in bta_hf_client_port_cback() argument 50 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_port_cback() 52 APPL_TRACE_ERROR("%s: cb not found for handle %d", __func__, port_handle); in bta_hf_client_port_cback() 73 static void bta_hf_client_mgmt_cback(uint32_t code, uint16_t port_handle) { in bta_hf_client_mgmt_cback() argument 75 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_mgmt_cback() 78 port_handle, bta_hf_client_cb_arr.serv_handle); in bta_hf_client_mgmt_cback() 82 port_handle != client_cb->conn_handle) { in bta_hf_client_mgmt_cback() 84 port_handle); in bta_hf_client_mgmt_cback() 92 if (client_cb && port_handle == client_cb->conn_handle) { /* out conn */ in bta_hf_client_mgmt_cback() 94 } else if (port_handle == bta_hf_client_cb_arr.serv_handle) { in bta_hf_client_mgmt_cback() [all …]
|
D | bta_hf_client_int.h | 128 uint16_t port_handle; member
|
/system/bt/bta/jv/ |
D | bta_jv_act.cc | 128 tBTA_JV_RFC_CB* bta_jv_alloc_rfc_cb(uint16_t port_handle, in bta_jv_alloc_rfc_cb() argument 142 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb() 143 VLOG(2) << __func__ << "port_handle=" << +port_handle in bta_jv_alloc_rfc_cb() 146 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb() 148 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb() 155 …LOG(ERROR) << __func__ << "port_handle=" << port_handle << " ctrl block exceeds limit:" << BTA_JV_… in bta_jv_alloc_rfc_cb() 170 tBTA_JV_PCB* bta_jv_rfc_port_to_pcb(uint16_t port_handle) { in bta_jv_rfc_port_to_pcb() argument 173 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) && in bta_jv_rfc_port_to_pcb() 174 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_pcb() 175 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb() [all …]
|
D | bta_jv_int.h | 88 uint16_t port_handle; /* port handle */ member
|
D | bta_jv_api.cc | 527 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
|
/system/bt/stack/include/ |
D | port_api.h | 76 typedef int(tPORT_DATA_CALLBACK)(uint16_t port_handle, void* p_data, 82 typedef int(tPORT_DATA_CO_CALLBACK)(uint16_t port_handle, uint8_t* p_buf, 85 typedef void(tPORT_CALLBACK)(uint32_t code, uint16_t port_handle); 232 extern int PORT_SetEventCallback(uint16_t port_handle, 245 int PORT_ClearKeepHandleFlag(uint16_t port_handle); 247 extern int PORT_SetDataCOCallback(uint16_t port_handle, 260 extern int PORT_SetEventMask(uint16_t port_handle, uint32_t mask);
|
/system/bt/test/mock/ |
D | mock_stack_rfcomm_port_api.cc | 57 int PORT_ClearKeepHandleFlag(uint16_t port_handle) { in PORT_ClearKeepHandleFlag() argument 74 int PORT_SetDataCOCallback(uint16_t port_handle, in PORT_SetDataCOCallback() argument 79 int PORT_SetEventCallback(uint16_t port_handle, tPORT_CALLBACK* p_port_cb) { in PORT_SetEventCallback() argument 83 int PORT_SetEventMask(uint16_t port_handle, uint32_t mask) { in PORT_SetEventMask() argument
|
/system/bt/stack/rfcomm/ |
D | port_api.cc | 333 int PORT_SetEventCallback(uint16_t port_handle, tPORT_CALLBACK* p_port_cb) { in PORT_SetEventCallback() argument 337 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetEventCallback() 341 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback() 347 RFCOMM_TRACE_API("PORT_SetEventCallback() handle:%d", port_handle); in PORT_SetEventCallback() 363 int PORT_ClearKeepHandleFlag(uint16_t port_handle) { in PORT_ClearKeepHandleFlag() argument 367 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_ClearKeepHandleFlag() 371 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag() 389 int PORT_SetDataCOCallback(uint16_t port_handle, in PORT_SetDataCOCallback() argument 393 RFCOMM_TRACE_API("PORT_SetDataCOCallback() handle:%d cb 0x%x", port_handle, in PORT_SetDataCOCallback() 397 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetDataCOCallback() [all …]
|
/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 | 107 void port_mgmt_cback_0(uint32_t code, uint16_t port_handle) { in port_mgmt_cback_0() argument 108 rfcomm_callback->PortManagementCallback(code, port_handle, 0); in port_mgmt_cback_0() 111 void port_mgmt_cback_1(uint32_t code, uint16_t port_handle) { in port_mgmt_cback_1() argument 112 rfcomm_callback->PortManagementCallback(code, port_handle, 1); in port_mgmt_cback_1() 115 void port_event_cback_0(uint32_t code, uint16_t port_handle) { in port_event_cback_0() argument 116 rfcomm_callback->PortEventCallback(code, port_handle, 0); in port_event_cback_0() 119 void port_event_cback_1(uint32_t code, uint16_t port_handle) { in port_event_cback_1() argument 120 rfcomm_callback->PortEventCallback(code, port_handle, 1); in port_event_cback_1() 184 void ConnectServerPort(const RawAddress& peer_addr, uint16_t port_handle, in ConnectServerPort() argument 223 PortManagementCallback(PORT_SUCCESS, port_handle, port_callback_index)); in ConnectServerPort() [all …]
|