/external/bluetooth/bluedroid/btif/co/ |
bta_hh_co.c | 63 static int uhid_event(btif_hh_device_t *p_dev) 68 if(!p_dev) 73 ret = read(p_dev->fd, &ev, sizeof(ev)); 106 btif_hh_setreport(p_dev,BTHH_FEATURE_REPORT,ev.u.output.size,ev.u.output.data); 108 btif_hh_setreport(p_dev,BTHH_OUTPUT_REPORT,ev.u.output.size,ev.u.output.data); 110 btif_hh_setreport(p_dev,BTHH_INPUT_REPORT,ev.u.output.size,ev.u.output.data); 166 btif_hh_device_t *p_dev = arg; local 167 APPL_TRACE_DEBUG("%s: Thread created fd = %d", __FUNCTION__, p_dev->fd); 170 pfds[0].fd = p_dev->fd; 173 while(p_dev->hh_keep_polling) 241 btif_hh_device_t *p_dev = NULL; local 330 btif_hh_device_t *p_dev = NULL; local 371 btif_hh_device_t *p_dev; local [all...] |
/external/bluetooth/bluedroid/bta/dm/ |
bta_dm_pm.c | 44 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE *p_dev, BOOLEAN bDisable); 163 tBTA_DM_PEER_DEVICE *p_dev; local 168 p_dev = bta_dm_find_peer_device(peer_addr); 171 if ((p_dev) && 178 bta_dm_pm_set_sniff_policy(p_dev, (status == BTA_SYS_SCO_OPEN)); 197 /*p_dev = bta_dm_find_peer_device(peer_addr);*/ 201 if((BTA_SYS_CONN_OPEN == status) && p_dev && (p_dev->info & BTA_DM_DI_USE_SSR)) 273 if(p_dev) 275 p_dev->pm_mode_attempted = 0 748 tBTA_DM_PEER_DEVICE *p_dev; local 868 tBTA_DM_PEER_DEVICE *p_dev = NULL; local [all...] |
bta_dm_api.c | 1089 tBTA_DM_PEER_DEVICE * p_dev = bta_dm_find_peer_device(bd_addr) local 1106 tBTA_DM_PEER_DEVICE * p_dev = bta_dm_find_peer_device(bd_addr); local [all...] |
bta_dm_act.c | 666 tBTA_DM_API_REMOVE_DEVICE *p_dev = &p_data->remove_dev; local 672 BTA_GATTC_CancelOpen(0, p_dev->bd_addr, FALSE); 675 if ( BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_LE) || 676 BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_BR_EDR)) 683 if(!bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr)) 686 btm_remove_acl( p_dev->bd_addr,bta_dm_cb.device_list.peer_device[i].transport); 696 BTM_SecDeleteDevice(p_dev->bd_addr); 699 BTA_GATTC_Refresh(p_dev->bd_addr); 704 bdcpy(sec_event.link_down.bd_addr, p_dev->bd_addr); 723 tBTA_DM_API_ADD_DEVICE *p_dev = &p_data->add_dev local 956 tBTA_DM_PEER_DEVICE *p_dev; local 995 tBTA_DM_PEER_DEVICE *p_dev = NULL; local 3409 tBTA_DM_PEER_DEVICE *p_dev; local 3470 tBTA_DM_PEER_DEVICE *p_dev; local 3769 tBTA_DM_PEER_DEVICE *p_dev; local [all...] |
/external/bluetooth/bluedroid/stack/hid/ |
hidh_conn.c | 168 tHID_HOST_DEV_CTB *p_dev= (tHID_HOST_DEV_CTB *) p_ref_data; local 172 if( res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY ) 174 p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset disc_reason (from HID_ERR_AUTH_FAILED) */ 176 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; 179 L2CA_ConnectRsp (p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, L2CAP_CONN_OK, L2CAP_CONN_OK); 182 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); 188 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ 189 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED 210 tHID_HOST_DEV_CTB *p_dev; local 322 tHID_HOST_DEV_CTB *p_dev = (tHID_HOST_DEV_CTB *) p_ref_data; local 380 tHID_HOST_DEV_CTB *p_dev = NULL; local 460 tHID_HOST_DEV_CTB *p_dev; local 1017 tHID_HOST_DEV_CTB *p_dev = &hh_cb.devices[dhandle]; local 1093 tHID_HOST_DEV_CTB *p_dev = &hh_cb.devices[dhandle]; local [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_hh.c | 155 extern void bta_hh_co_send_hid_info(btif_hh_device_t *p_dev, char *dev_name, UINT16 vendor_id, 169 static void sync_lockstate_on_connect(btif_hh_device_t *p_dev); 170 //static void hh_update_keyboard_lockstates(btif_hh_device_t *p_dev); 280 static void update_keyboard_lockstates(btif_hh_device_t *p_dev) 290 __FUNCTION__, p_dev->dev_handle, btif_hh_keylockstates); 296 bda = (BD_ADDR*) (&p_dev->bd_addr); 297 BTA_HhSendData(p_dev->dev_handle, *bda, p_buf); 309 static void sync_lockstate_on_connect(btif_hh_device_t *p_dev) 316 update_keyboard_lockstates(p_dev); 328 toggle_os_keylockstates(p_dev->fd, keylockstates) 411 btif_hh_device_t *p_dev = btif_hh_find_connected_dev_by_bda(bd_addr); local 432 btif_hh_device_t *p_dev = btif_hh_find_connected_dev_by_bda(bd_addr); local 503 btif_hh_device_t *p_dev; local 587 btif_hh_device_t *p_dev; local 692 btif_hh_device_t *p_dev; local 746 btif_hh_device_t *p_dev = NULL; local 1185 btif_hh_device_t *p_dev; local 1273 btif_hh_device_t *p_dev; local 1305 btif_hh_device_t *p_dev; local 1393 btif_hh_device_t *p_dev; local 1428 btif_hh_device_t *p_dev; local 1472 btif_hh_device_t *p_dev; local 1518 btif_hh_device_t *p_dev; local 1589 btif_hh_device_t *p_dev; local 1657 btif_hh_device_t *p_dev; local [all...] |
/external/bluetooth/bluedroid/stack/gatt/ |
gatt_utils.c | 2399 tGATT_BG_CONN_DEV *p_dev = NULL; local 2493 tGATT_BG_CONN_DEV *p_dev = NULL; local 2519 tGATT_BG_CONN_DEV *p_dev = NULL; local 2554 tGATT_BG_CONN_DEV *p_dev = NULL; local [all...] |