/system/bt/bta/hh/ |
D | bta_hh_api.cc | 106 void BTA_HhClose(uint8_t dev_handle) { in BTA_HhClose() argument 110 p_buf->layer_specific = (uint16_t)dev_handle; in BTA_HhClose() 144 static void bta_hh_snd_write_dev(uint8_t dev_handle, uint8_t t_type, in bta_hh_snd_write_dev() argument 151 p_buf->hdr.layer_specific = (uint16_t)dev_handle; in bta_hh_snd_write_dev() 173 void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, in BTA_HhSetReport() argument 177 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_REPORT, r_type, 0, 0, in BTA_HhSetReport() 181 bta_hh_snd_write_dev(dev_handle, HID_TRANS_DATA, r_type, 0, 0, p_data); in BTA_HhSetReport() 192 void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, in BTA_HhGetReport() argument 196 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, buf_size, in BTA_HhGetReport() 208 void BTA_HhSetProtoMode(uint8_t dev_handle, tBTA_HH_PROTO_MODE p_type) { in BTA_HhSetProtoMode() argument [all …]
|
D | bta_hh_utils.cc | 471 uint8_t bta_hh_dev_handle_to_cb_idx(uint8_t dev_handle) { in bta_hh_dev_handle_to_cb_idx() argument 475 if (BTA_HH_IS_LE_DEV_HDL(dev_handle)) { in bta_hh_dev_handle_to_cb_idx() 476 if (BTA_HH_IS_LE_DEV_HDL_VALID(dev_handle)) in bta_hh_dev_handle_to_cb_idx() 477 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx() 480 dev_handle, index); in bta_hh_dev_handle_to_cb_idx() 485 if (dev_handle < BTA_HH_MAX_KNOWN) in bta_hh_dev_handle_to_cb_idx() 486 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
|
D | bta_hh_act.cc | 47 static void bta_hh_cback(uint8_t dev_handle, const RawAddress& addr, 524 uint8_t dev_handle = in bta_hh_open_cmpl_act() local 528 conn.handle = dev_handle; in bta_hh_open_cmpl_act() 555 if ((HID_HostWriteDev(dev_handle, HID_TRANS_SET_PROTOCOL, in bta_hh_open_cmpl_act() 584 uint8_t dev_handle = in bta_hh_open_act() local 588 APPL_TRACE_EVENT("%s: Device[%d] connected", __func__, dev_handle); in bta_hh_open_act() 601 p_cb->incoming_hid_handle = dev_handle; in bta_hh_open_act() 936 uint8_t dev_handle; in bta_hh_maint_dev_act() local 955 &dev_handle) == HID_SUCCESS) { in bta_hh_maint_dev_act() 956 dev_info.handle = dev_handle; in bta_hh_maint_dev_act() [all …]
|
D | bta_hh_int.h | 344 extern uint8_t bta_hh_dev_handle_to_cb_idx(uint8_t dev_handle);
|
/system/bt/stack/hid/ |
D | hidh_api.cc | 359 tHID_STATUS HID_HostRemoveDev(uint8_t dev_handle) { in HID_HostRemoveDev() argument 362 if ((dev_handle >= HID_HOST_MAX_DEVICES) || in HID_HostRemoveDev() 363 (!hh_cb.devices[dev_handle].in_use)) in HID_HostRemoveDev() 366 HID_HostCloseDev(dev_handle); in HID_HostRemoveDev() 367 hh_cb.devices[dev_handle].in_use = false; in HID_HostRemoveDev() 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() 371 hh_cb.devices[dev_handle].attr_mask = 0; in HID_HostRemoveDev() 385 tHID_STATUS HID_HostOpenDev(uint8_t dev_handle) { in HID_HostOpenDev() argument [all …]
|
/system/bt/bta/include/ |
D | bta_hh_api.h | 350 extern void BTA_HhClose(uint8_t dev_handle); 373 extern void BTA_HhGetProtoMode(uint8_t dev_handle); 383 extern void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, 395 extern void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, 406 extern void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate); 417 extern void BTA_HhGetIdle(uint8_t dev_handle); 428 extern void BTA_HhSendCtrl(uint8_t dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type); 439 extern void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate); 450 extern void BTA_HhGetIdle(uint8_t dev_handle); 461 extern void BTA_HhSendData(uint8_t dev_handle, const RawAddress& dev_bda, [all …]
|
D | bta_hh_co.h | 49 extern void bta_hh_co_data(uint8_t dev_handle, uint8_t* p_rpt, uint16_t len, 65 extern void bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, 78 extern void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id); 90 extern void bta_hh_co_set_rpt_rsp(uint8_t dev_handle, uint8_t status); 102 extern void bta_hh_co_get_rpt_rsp(uint8_t dev_handle, uint8_t status,
|
/system/bt/stack/include/ |
D | hidh_api.h | 84 uint8_t dev_handle, const RawAddress& addr, 151 extern tHID_STATUS HID_HostRemoveDev(uint8_t dev_handle); 163 extern tHID_STATUS HID_HostOpenDev(uint8_t dev_handle); 174 extern tHID_STATUS HID_HostWriteDev(uint8_t dev_handle, uint8_t t_type, 187 extern tHID_STATUS HID_HostCloseDev(uint8_t dev_handle);
|
/system/bt/btif/co/ |
D | bta_hh_co.cc | 292 void bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, in bta_hh_co_open() argument 297 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_open() 299 dev_handle); in bta_hh_co_open() 306 p_dev->dev_handle == dev_handle) { in bta_hh_co_open() 337 p_dev->dev_handle = dev_handle; in bta_hh_co_open() 386 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) { in bta_hh_co_close() argument 390 APPL_TRACE_WARNING("%s: dev_handle = %d, app_id = %d", __func__, dev_handle, in bta_hh_co_close() 392 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_close() 394 dev_handle); in bta_hh_co_close() 404 p_dev->dev_handle == dev_handle) { in bta_hh_co_close() [all …]
|
/system/bt/btif/src/ |
D | btif_hh.cc | 272 p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates() 278 BTA_HhSendData(p_dev->dev_handle, p_dev->bd_addr, p_buf); in update_keyboard_lockstates() 334 btif_hh_cb.devices[i].dev_handle == handle) { in btif_hh_find_connected_dev_by_handle() 438 btif_hh_cb.added_devices[i].dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_add_added_dev() 466 BTA_HhRemoveDev(p_added_dev->dev_handle); in btif_hh_remove_device() 469 p_added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 486 p_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 544 BTA_HhSendCtrl(p_dev->dev_handle, BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG); in btif_hh_virtual_unplug() 552 BTA_HhClose(p_dev->dev_handle); in btif_hh_virtual_unplug() 599 if (added_dev->dev_handle == BTA_HH_INVALID_HANDLE) { in btif_hh_connect() [all …]
|
/system/bt/btif/include/ |
D | btif_hh.h | 61 uint8_t dev_handle; member 78 uint8_t dev_handle; member
|
/system/core/adb/client/ |
D | usb_libusb.cpp | 575 info->transfer->dev_handle = h->device_handle; in usb_write() 598 info->transfer->dev_handle = h->device_handle; in usb_read()
|