/system/bt/btif/co/ |
D | bta_pan_co.cc | 81 btpan_conn_t* conn = btpan_find_conn_addr(peer_addr); in bta_pan_co_open() local 82 if (conn == NULL) in bta_pan_co_open() 83 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role); in bta_pan_co_open() 84 if (conn) { in bta_pan_co_open() 88 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle, in bta_pan_co_open() 89 conn->local_role, conn->remote_role); in bta_pan_co_open() 93 conn->handle = handle; in bta_pan_co_open() 101 conn->state = PAN_STATE_OPEN; in bta_pan_co_open() 120 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_close() local 121 if (conn && conn->state == PAN_STATE_OPEN) { in bta_pan_co_close() [all …]
|
/system/bt/gd/cert/ |
D | os_utils.py | 72 …lambda conn: (conn and conn.status == psutil.CONN_LISTEN and conn.laddr and conn.laddr.port in por… 75 for conn in listening_conns_for_port: 76 logging.warning("Freeing port %d used by %s" % (conn.laddr.port, str(conn))) 77 if not conn.pid: 78 … logging.error("Failed to kill process occupying port %d due to lack of pid" % conn.laddr.port) 81 logging.warning("Killing pid %d that is using port port %d" % (conn.pid, conn.laddr.port)) 82 process = psutil.Process(conn.pid) 87 … logging.error("SIGKILL timeout after %d seconds for pid %d" % (timeout_seconds, conn.pid))
|
/system/bt/btif/src/ |
D | btif_pan.cc | 108 static void btpan_cleanup_conn(btpan_conn_t* conn); 237 btpan_conn_t* conn = btpan_find_conn_addr(*bd_addr); in btif_in_pan_generic_evt() local 240 asrt(conn != NULL); in btif_in_pan_generic_evt() 241 if (conn) { in btif_in_pan_generic_evt() 242 btpan_conn_local_role = bta_role_to_btpan(conn->local_role); in btif_in_pan_generic_evt() 243 btpan_remote_role = bta_role_to_btpan(conn->remote_role); in btif_in_pan_generic_evt() 245 BT_STATUS_SUCCESS, &conn->peer, in btif_in_pan_generic_evt() 256 btpan_conn_t* conn = btpan_find_conn_addr(*bd_addr); in btpan_disconnect() local 257 if (conn && conn->handle >= 0) { in btpan_disconnect() 262 BTA_PanClose(conn->handle); in btpan_disconnect() [all …]
|
D | btif_hd.cc | 203 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt() 214 btif_storage_set_hidd(p_data->conn.bda); in btif_hd_upstreams_evt() 217 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_CONNECTED); in btif_hd_upstreams_evt() 222 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt() 229 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt() 254 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt() 255 if (bta_dm_check_if_only_hd_connected(p_data->conn.bda)) { in btif_hd_upstreams_evt() 258 BTA_DmRemoveDevice(p_data->conn.bda); in btif_hd_upstreams_evt() 260 RawAddress* bd_addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt() 272 (RawAddress*)&p_data->conn.bda, in btif_hd_upstreams_evt() [all …]
|
D | btif_gatt_server.cc | 142 btif_gatt_check_encrypted_link(p_data->conn.remote_bda, in btapp_gatts_handle_cback() 143 p_data->conn.transport); in btapp_gatts_handle_cback() 145 HAL_CBACK(bt_gatt_callbacks, server->connection_cb, p_data->conn.conn_id, in btapp_gatts_handle_cback() 146 p_data->conn.server_if, true, p_data->conn.remote_bda); in btapp_gatts_handle_cback() 151 HAL_CBACK(bt_gatt_callbacks, server->connection_cb, p_data->conn.conn_id, in btapp_gatts_handle_cback() 152 p_data->conn.server_if, false, p_data->conn.remote_bda); in btapp_gatts_handle_cback()
|
D | btif_hh.cc | 775 p_data->conn.handle, p_data->conn.status); in btif_hh_upstreams_evt() 777 if (p_data->conn.status == BTA_HH_OK) { in btif_hh_upstreams_evt() 778 p_dev = btif_hh_find_connected_dev_by_handle(p_data->conn.handle); in btif_hh_upstreams_evt() 782 p_data->conn.handle); in btif_hh_upstreams_evt() 787 BTA_HhClose(p_data->conn.handle); in btif_hh_upstreams_evt() 789 (RawAddress*)&p_data->conn.bda, in btif_hh_upstreams_evt() 794 p_dev->bd_addr = p_data->conn.bda; in btif_hh_upstreams_evt() 798 BTA_HhClose(p_data->conn.handle); in btif_hh_upstreams_evt() 803 p_data->conn.handle); in btif_hh_upstreams_evt() 804 p_dev->bd_addr = p_data->conn.bda; in btif_hh_upstreams_evt() [all …]
|
/system/bt/stack/hid/ |
D | hidh_conn.cc | 114 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg() 130 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect() 168 if (res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidh_sec_check_complete_term() 169 p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset in hidh_sec_check_complete_term() 173 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidh_sec_check_complete_term() 176 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidh_sec_check_complete_term() 180 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term() 185 p_dev->conn.disc_reason = in hidh_sec_check_complete_term() 187 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_sec_check_complete_term() 188 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidh_sec_check_complete_term() [all …]
|
D | hidd_conn.cc | 83 p_hcon = &hd_cb.device.conn; in hidd_check_config_done() 117 if (res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidd_sec_check_complete() 118 p_dev->conn.disc_reason = HID_SUCCESS; in hidd_sec_check_complete() 119 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidd_sec_check_complete() 121 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidd_sec_check_complete() 123 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hd_cb.l2cap_cfg); in hidd_sec_check_complete() 127 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; in hidd_sec_check_complete() 128 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidd_sec_check_complete() 129 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidd_sec_check_complete() 150 if (p_dev->conn.conn_state != HID_CONN_STATE_SECURITY) { in hidd_sec_check_complete_orig() [all …]
|
D | hidh_api.cc | 277 hh_cb.devices[i].conn.process_repage_timer = in HID_HostRegister() 299 alarm_free(hh_cb.devices[i].conn.process_repage_timer); in HID_HostDeregister() 368 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev() 369 hh_cb.devices[dev_handle].conn.ctrl_cid = in HID_HostRemoveDev() 370 hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev() 459 alarm_cancel(hh_cb.devices[dev_handle].conn.process_repage_timer); in HID_HostCloseDev()
|
D | hidd_api.cc | 450 hd_cb.device.conn.conn_state = HID_CONN_STATE_UNUSED; in HID_DevUnplugDevice() 451 hd_cb.device.conn.ctrl_cid = 0; in HID_DevUnplugDevice() 452 hd_cb.device.conn.intr_cid = 0; in HID_DevUnplugDevice() 503 if (hd_cb.device.conn.conn_state != HID_CONN_STATE_UNUSED) { in HID_DevDisconnect() 505 hd_cb.device.conn.conn_state = HID_CONN_STATE_UNUSED; in HID_DevDisconnect()
|
D | hidd_int.h | 41 tHID_CONN conn; member
|
D | hidh_int.h | 45 tHID_CONN conn; /* L2CAP channel info */ member
|
/system/bt/service/ |
D | gatt_server.cc | 210 for (const auto& conn : conn_iter->second) { in SendNotification() local 212 if (pending_indications_.find(conn->conn_id) != in SendNotification() 215 << " is already pending for connection: " << conn->conn_id; in SendNotification() 225 conn->conn_id, confirm, value); in SendNotification() 235 pending_indications_[conn->conn_id] = pending_ind; in SendNotification() 346 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadCharacteristicCallback() local 347 if (!conn) return; in RequestReadCharacteristicCallback() 356 conn->request_id_to_handle[trans_id] = attribute_handle; in RequestReadCharacteristicCallback() 379 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadDescriptorCallback() local 380 if (!conn) return; in RequestReadDescriptorCallback() [all …]
|
/system/bt/stack/gap/ |
D | gap_conn.cc | 81 tGAP_CONN conn; variable 117 memset(&conn, 0, sizeof(tGAP_CONN)); in gap_conn_init() 118 conn.reg_info.pL2CA_ConnectInd_Cb = gap_connect_ind; in gap_conn_init() 119 conn.reg_info.pL2CA_ConnectCfm_Cb = gap_connect_cfm; in gap_conn_init() 120 conn.reg_info.pL2CA_ConnectPnd_Cb = NULL; in gap_conn_init() 121 conn.reg_info.pL2CA_ConfigInd_Cb = gap_config_ind; in gap_conn_init() 122 conn.reg_info.pL2CA_ConfigCfm_Cb = gap_config_cfm; in gap_conn_init() 123 conn.reg_info.pL2CA_DisconnectInd_Cb = gap_disconnect_ind; in gap_conn_init() 124 conn.reg_info.pL2CA_DisconnectCfm_Cb = NULL; in gap_conn_init() 125 conn.reg_info.pL2CA_QoSViolationInd_Cb = NULL; in gap_conn_init() [all …]
|
/system/bt/bta/hh/ |
D | bta_hh_act.cc | 525 tBTA_HH_CONN conn; in bta_hh_open_cmpl_act() local 529 memset((void*)&conn, 0, sizeof(tBTA_HH_CONN)); in bta_hh_open_cmpl_act() 530 conn.handle = dev_handle; in bta_hh_open_cmpl_act() 531 conn.bda = p_cb->addr; in bta_hh_open_cmpl_act() 541 conn.status = p_cb->status; in bta_hh_open_cmpl_act() 542 conn.le_hid = p_cb->is_le_device; in bta_hh_open_cmpl_act() 543 conn.scps_supported = p_cb->scps_supported; in bta_hh_open_cmpl_act() 561 conn.status = BTA_HH_ERR_PROTO; in bta_hh_open_cmpl_act() 562 (*bta_hh_cb.p_cback)(BTA_HH_OPEN_EVT, (tBTA_HH*)&conn); in bta_hh_open_cmpl_act() 564 conn.status = BTA_HH_OK; in bta_hh_open_cmpl_act() [all …]
|
D | bta_hh_main.cc | 252 cback_data.conn.bda = ((tBTA_HH_API_CONN*)p_data)->bd_addr; in bta_hh_sm_execute() 253 cback_data.conn.status = BTA_HH_ERR_DB_FULL; in bta_hh_sm_execute() 254 cback_data.conn.handle = BTA_HH_INVALID_HANDLE; in bta_hh_sm_execute()
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_act.cc | 299 evt.conn.bd_addr = client_cb->peer_addr; in bta_hf_client_rfc_close() 453 evt.conn.bd_addr = client_cb->peer_addr; in bta_hf_client_svc_conn_open() 454 evt.conn.peer_feat = client_cb->peer_features; in bta_hf_client_svc_conn_open() 455 evt.conn.chld_feat = client_cb->chld_features; in bta_hf_client_svc_conn_open()
|
/system/bt/bta/hd/ |
D | bta_hd_act.cc | 295 cback_data.conn.bda = p_ctrl->addr; in bta_hd_connect_act() 296 cback_data.conn.status = BTHD_CONN_STATE_CONNECTING; in bta_hd_connect_act() 323 if (HID_DevGetDevice(&cback_data.conn.bda) == HID_SUCCESS) { in bta_hd_disconnect_act() 324 cback_data.conn.status = BTHD_CONN_STATE_DISCONNECTING; in bta_hd_disconnect_act() 459 cback_data.conn.bda = p_cback->addr; in bta_hd_open_act() 489 cback_data.conn.bda = p_cback->addr; in bta_hd_close_act() 672 cback_data.conn.bda = p_cback->addr; in bta_hd_vc_unplug_done_act()
|
/system/nfc/src/nfa/include/ |
D | nfa_snep_int.h | 185 tNFA_SNEP_CONN conn[NFA_SNEP_MAX_CONN]; member 205 conn[NFA_SNEP_DEFAULT_MAX_CONN]; /* connections for default server */ member
|
/system/core/adb/ |
D | test_adb.py | 80 conn, _ = ready.accept() 81 rlist.append(conn) 351 with contextlib.closing(accepted_connection) as conn: 354 conn.sendall(("Android Console: type 'help' for a list " 356 conn.sendall(b"OK\r\n") 358 with contextlib.closing(conn.makefile()) as connf: 366 conn.sendall(b"OK: killing emulator, bye bye\r\n") 374 self._reset_socket_on_close(conn)
|
/system/bt/profile/avrcp/tests/ |
D | avrcp_connection_handler_test.cc | 107 ASSERT_EQ(conn_cb.conn, 1); in TEST_F() 182 ASSERT_EQ(conn_cb.conn, 1); in TEST_F() 332 ASSERT_EQ(conn_cb.conn, 1); in TEST_F() 431 ASSERT_EQ(conn_cb.conn, 0); in TEST_F() 476 ASSERT_EQ(conn_cb.conn, 0); in TEST_F()
|
/system/bt/gd/hci/facade/ |
D | le_acl_manager_facade.cc | 54 for (auto& conn : acl_connections_) { in ~LeAclManagerFacadeService() local 55 if (conn.second.connection_ != nullptr) { in ~LeAclManagerFacadeService() 56 conn.second.connection_->GetAclQueueEnd()->UnregisterDequeue(); in ~LeAclManagerFacadeService() 57 conn.second.connection_.reset(); in ~LeAclManagerFacadeService()
|
/system/bt/bta/gatt/ |
D | bta_gatts_act.cc | 613 cb_data.conn.conn_id = conn_id; in bta_gatts_conn_cback() 614 cb_data.conn.server_if = gatt_if; in bta_gatts_conn_cback() 615 cb_data.conn.reason = reason; in bta_gatts_conn_cback() 616 cb_data.conn.transport = transport; in bta_gatts_conn_cback() 617 cb_data.conn.remote_bda = bdaddr; in bta_gatts_conn_cback()
|
/system/bt/bta/dm/ |
D | bta_dm_act.cc | 2663 tBTA_DM_SEC conn; in send_busy_level_update() local 2664 memset(&conn, 0, sizeof(tBTA_DM_SEC)); in send_busy_level_update() 2665 conn.busy_level.level = busy_level; in send_busy_level_update() 2666 conn.busy_level.level_flags = busy_level_flags; in send_busy_level_update() 2667 bta_dm_cb.p_sec_cback(BTA_DM_BUSY_LEVEL_EVT, &conn); in send_busy_level_update() 2672 tBTA_DM_SEC conn; in handle_role_change() local 2673 memset(&conn, 0, sizeof(tBTA_DM_SEC)); in handle_role_change() 2708 conn.role_chg.bd_addr = bd_addr; in handle_role_change() 2709 conn.role_chg.new_role = (uint8_t)new_role; in handle_role_change() 2710 if (bta_dm_cb.p_sec_cback) bta_dm_cb.p_sec_cback(BTA_DM_ROLE_CHG_EVT, &conn); in handle_role_change() [all …]
|
/system/bt/bta/include/ |
D | bta_hd_api.h | 117 tBTA_HD_CONN conn; /* BTA_HD_OPEN_EVT member
|