/system/bt/bta/hh/ |
D | bta_hh_api.c | 112 void BTA_HhClose(UINT8 dev_handle) in BTA_HhClose() argument 117 p_buf->layer_specific = (UINT16)dev_handle; in BTA_HhClose() 151 static void bta_hh_snd_write_dev(UINT8 dev_handle, UINT8 t_type, UINT8 param, in bta_hh_snd_write_dev() argument 158 p_buf->hdr.layer_specific = (UINT16)dev_handle; in bta_hh_snd_write_dev() 180 void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, BT_HDR *p_data) in BTA_HhSetReport() argument 182 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_REPORT, r_type, 0, 0, p_data); in BTA_HhSetReport() 193 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) in BTA_HhGetReport() argument 197 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, in BTA_HhGetReport() 209 void BTA_HhSetProtoMode(UINT8 dev_handle, tBTA_HH_PROTO_MODE p_type) in BTA_HhSetProtoMode() argument 211 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_PROTOCOL, (UINT8)p_type, in BTA_HhSetProtoMode() [all …]
|
D | bta_hh_act.c | 46 static void bta_hh_cback (UINT8 dev_handle, BD_ADDR addr, UINT8 event, 555 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_cmpl_act() local 559 conn.handle = dev_handle; in bta_hh_open_cmpl_act() 587 if ((HID_HostWriteDev(dev_handle, in bta_hh_open_cmpl_act() 623 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_act() local 627 APPL_TRACE_EVENT ("bta_hh_open_act: Device[%d] connected", dev_handle); in bta_hh_open_act() 641 p_cb->incoming_hid_handle = dev_handle; in bta_hh_open_act() 976 UINT8 dev_handle; in bta_hh_maint_dev_act() local 997 if (HID_HostAddDev(p_dev_info->bda, p_dev_info->attr_mask, &dev_handle)\ in bta_hh_maint_dev_act() 1000 dev_info.handle = dev_handle; in bta_hh_maint_dev_act() [all …]
|
D | bta_hh_utils.c | 485 UINT8 bta_hh_dev_handle_to_cb_idx(UINT8 dev_handle) in bta_hh_dev_handle_to_cb_idx() argument 490 if (BTA_HH_IS_LE_DEV_HDL(dev_handle)) in bta_hh_dev_handle_to_cb_idx() 492 if (BTA_HH_IS_LE_DEV_HDL_VALID(dev_handle)) in bta_hh_dev_handle_to_cb_idx() 493 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx() 495 … APPL_TRACE_DEBUG("bta_hh_dev_handle_to_cb_idx dev_handle = %d index = %d", dev_handle, index); in bta_hh_dev_handle_to_cb_idx() 501 if (dev_handle < BTA_HH_MAX_KNOWN ) in bta_hh_dev_handle_to_cb_idx() 502 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
|
D | bta_hh_int.h | 365 extern UINT8 bta_hh_dev_handle_to_cb_idx(UINT8 dev_handle);
|
/system/bt/stack/hid/ |
D | hidh_api.c | 393 tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle ) in HID_HostRemoveDev() argument 398 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostRemoveDev() 401 HID_HostCloseDev( dev_handle ) ; in HID_HostRemoveDev() 402 hh_cb.devices[dev_handle].in_use = FALSE; in HID_HostRemoveDev() 403 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev() 404 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev() 405 hh_cb.devices[dev_handle].attr_mask = 0; in HID_HostRemoveDev() 419 tHID_STATUS HID_HostOpenDev ( UINT8 dev_handle ) in HID_HostOpenDev() argument 424 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostOpenDev() 427 if( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN ) in HID_HostOpenDev() [all …]
|
/system/bt/bta/include/ |
D | bta_hh_api.h | 369 extern void BTA_HhClose(UINT8 dev_handle); 391 extern void BTA_HhGetProtoMode(UINT8 dev_handle); 401 extern void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 413 extern void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 424 extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate); 435 extern void BTA_HhGetIdle(UINT8 dev_handle); 446 extern void BTA_HhSendCtrl(UINT8 dev_handle, 458 extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate); 470 extern void BTA_HhGetIdle(UINT8 dev_handle); 481 extern void BTA_HhSendData(UINT8 dev_handle, BD_ADDR dev_bda, BT_HDR *p_buf); [all …]
|
D | bta_hh_co.h | 49 extern void bta_hh_co_data(UINT8 dev_handle, UINT8 *p_rpt, UINT16 len, 64 extern void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class, 77 extern void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id);
|
/system/bt/stack/include/ |
D | hidh_api.h | 79 typedef void (tHID_HOST_DEV_CALLBACK) (UINT8 dev_handle, 151 extern tHID_STATUS HID_HostRemoveDev (UINT8 dev_handle ); 163 extern tHID_STATUS HID_HostOpenDev (UINT8 dev_handle ); 174 extern tHID_STATUS HID_HostWriteDev(UINT8 dev_handle, UINT8 t_type, 187 extern tHID_STATUS HID_HostCloseDev(UINT8 dev_handle );
|
/system/bt/btif/co/ |
D | bta_hh_co.c | 277 void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class, tBTA_HH_ATTR_MASK attr_mask, in bta_hh_co_open() argument 283 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_open() 285 __FUNCTION__, dev_handle); in bta_hh_co_open() 292 p_dev->dev_handle == dev_handle) { in bta_hh_co_open() 325 p_dev->dev_handle = dev_handle; in bta_hh_co_open() 372 void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id) in bta_hh_co_close() argument 377 APPL_TRACE_WARNING("%s: dev_handle = %d, app_id = %d", __FUNCTION__, dev_handle, app_id); in bta_hh_co_close() 378 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_close() 379 APPL_TRACE_WARNING("%s: Oops, dev_handle (%d) is invalid...", __FUNCTION__, dev_handle); in bta_hh_co_close() 385 if (p_dev->dev_status != BTHH_CONN_STATE_UNKNOWN && p_dev->dev_handle == dev_handle) { in bta_hh_co_close() [all …]
|
/system/bt/btif/include/ |
D | btif_hh.h | 61 UINT8 dev_handle; member 77 UINT8 dev_handle; member
|
/system/bt/btif/src/ |
D | btif_hh.c | 278 __FUNCTION__, p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates() 285 BTA_HhSendData(p_dev->dev_handle, *bda, p_buf); in update_keyboard_lockstates() 339 btif_hh_cb.devices[i].dev_handle == handle) in btif_hh_find_connected_dev_by_handle() 458 btif_hh_cb.added_devices[i].dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_add_added_dev() 488 BTA_HhRemoveDev(p_added_dev->dev_handle); in btif_hh_remove_device() 491 p_added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 507 p_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 570 BTA_HhSendCtrl(p_dev->dev_handle, BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG); in btif_hh_virtual_unplug() 618 if (added_dev->dev_handle == BTA_HH_INVALID_HANDLE) { in btif_hh_connect() 622 added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_connect() [all …]
|