/system/bt/bta/hh/ |
D | bta_hh_api.cc | 99 void BTA_HhClose(uint8_t dev_handle) { in BTA_HhClose() argument 103 p_buf->layer_specific = (uint16_t)dev_handle; in BTA_HhClose() 136 static void bta_hh_snd_write_dev(uint8_t dev_handle, uint8_t t_type, in bta_hh_snd_write_dev() argument 143 p_buf->hdr.layer_specific = (uint16_t)dev_handle; in bta_hh_snd_write_dev() 165 void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, in BTA_HhSetReport() argument 167 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_REPORT, r_type, 0, 0, p_data); in BTA_HhSetReport() 178 void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, in BTA_HhGetReport() argument 182 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, buf_size, in BTA_HhGetReport() 194 void BTA_HhSetProtoMode(uint8_t dev_handle, tBTA_HH_PROTO_MODE p_type) { in BTA_HhSetProtoMode() argument 195 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_PROTOCOL, (uint8_t)p_type, 0, in BTA_HhSetProtoMode() [all …]
|
D | bta_hh_utils.cc | 335 uint8_t bta_hh_dev_handle_to_cb_idx(uint8_t dev_handle) { in bta_hh_dev_handle_to_cb_idx() argument 338 if (BTA_HH_IS_LE_DEV_HDL(dev_handle)) { in bta_hh_dev_handle_to_cb_idx() 339 if (BTA_HH_IS_LE_DEV_HDL_VALID(dev_handle)) in bta_hh_dev_handle_to_cb_idx() 340 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx() 343 dev_handle, index); in bta_hh_dev_handle_to_cb_idx() 347 if (dev_handle < BTA_HH_MAX_KNOWN) in bta_hh_dev_handle_to_cb_idx() 348 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
|
D | bta_hh_act.cc | 58 static void bta_hh_cback(uint8_t dev_handle, const RawAddress& addr, 518 uint8_t dev_handle = in bta_hh_open_cmpl_act() local 522 conn.handle = dev_handle; in bta_hh_open_cmpl_act() 550 if ((HID_HostWriteDev(dev_handle, HID_TRANS_SET_PROTOCOL, in bta_hh_open_cmpl_act() 579 uint8_t dev_handle = in bta_hh_open_act() local 582 APPL_TRACE_EVENT("%s: Device[%d] connected", __func__, dev_handle); in bta_hh_open_act() 594 p_cb->incoming_hid_handle = dev_handle; in bta_hh_open_act() 926 uint8_t dev_handle; in bta_hh_maint_dev_act() local 944 &dev_handle) == HID_SUCCESS) { in bta_hh_maint_dev_act() 945 dev_info.handle = dev_handle; in bta_hh_maint_dev_act() [all …]
|
D | bta_hh_int.h | 297 extern uint8_t bta_hh_dev_handle_to_cb_idx(uint8_t dev_handle);
|
/system/bt/test/mock/ |
D | mock_bta_hh_api.cc | 47 void BTA_HhClose(uint8_t dev_handle) { mock_function_count_map[__func__]++; } in BTA_HhClose() argument 49 void BTA_HhGetDscpInfo(uint8_t dev_handle) { in BTA_HhGetDscpInfo() argument 52 void BTA_HhGetIdle(uint8_t dev_handle) { mock_function_count_map[__func__]++; } in BTA_HhGetIdle() argument 53 void BTA_HhGetProtoMode(uint8_t dev_handle) { in BTA_HhGetProtoMode() argument 56 void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, in BTA_HhGetReport() argument 63 void BTA_HhRemoveDev(uint8_t dev_handle) { in BTA_HhRemoveDev() argument 66 void BTA_HhSendCtrl(uint8_t dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type) { in BTA_HhSendCtrl() argument 69 void BTA_HhSendData(uint8_t dev_handle, UNUSED_ATTR const RawAddress& dev_bda, in BTA_HhSendData() argument 73 void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate) { in BTA_HhSetIdle() argument 76 void BTA_HhSetProtoMode(uint8_t dev_handle, tBTA_HH_PROTO_MODE p_type) { in BTA_HhSetProtoMode() argument [all …]
|
D | mock_btif_co_bta_hh_co.cc | 46 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) { in bta_hh_co_close() argument 49 void bta_hh_co_data(uint8_t dev_handle, uint8_t* p_rpt, uint16_t len, in bta_hh_co_data() argument 56 void bta_hh_co_get_rpt_rsp(uint8_t dev_handle, uint8_t status, uint8_t* p_rpt, in bta_hh_co_get_rpt_rsp() argument 60 void bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, in bta_hh_co_open() argument 70 void bta_hh_co_set_rpt_rsp(uint8_t dev_handle, uint8_t status) { in bta_hh_co_set_rpt_rsp() argument
|
D | mock_stack_hidh.cc | 42 tHID_STATUS HID_HostCloseDev(uint8_t dev_handle) { in HID_HostCloseDev() argument 56 tHID_STATUS HID_HostOpenDev(uint8_t dev_handle) { in HID_HostOpenDev() argument 64 tHID_STATUS HID_HostRemoveDev(uint8_t dev_handle) { in HID_HostRemoveDev() argument 68 tHID_STATUS HID_HostWriteDev(uint8_t dev_handle, uint8_t t_type, uint8_t param, in HID_HostWriteDev() argument
|
/system/bt/stack/hid/ |
D | hidh_api.cc | 360 tHID_STATUS HID_HostRemoveDev(uint8_t dev_handle) { in HID_HostRemoveDev() argument 363 if ((dev_handle >= HID_HOST_MAX_DEVICES) || in HID_HostRemoveDev() 364 (!hh_cb.devices[dev_handle].in_use)) in HID_HostRemoveDev() 367 HID_HostCloseDev(dev_handle); in HID_HostRemoveDev() 368 hh_cb.devices[dev_handle].in_use = false; in HID_HostRemoveDev() 369 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev() 370 hh_cb.devices[dev_handle].conn.ctrl_cid = in HID_HostRemoveDev() 371 hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev() 372 hh_cb.devices[dev_handle].attr_mask = 0; in HID_HostRemoveDev() 386 tHID_STATUS HID_HostOpenDev(uint8_t dev_handle) { in HID_HostOpenDev() argument [all …]
|
/system/bt/bta/include/ |
D | bta_hh_co.h | 51 extern void bta_hh_co_data(uint8_t dev_handle, uint8_t* p_rpt, uint16_t len, 67 extern void bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, 80 extern void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id); 92 extern void bta_hh_co_set_rpt_rsp(uint8_t dev_handle, uint8_t status); 104 extern void bta_hh_co_get_rpt_rsp(uint8_t dev_handle, uint8_t status,
|
D | bta_hh_api.h | 369 extern void BTA_HhClose(uint8_t dev_handle); 392 extern void BTA_HhGetProtoMode(uint8_t dev_handle); 402 extern void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, 414 extern void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, 425 extern void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate); 436 extern void BTA_HhGetIdle(uint8_t dev_handle); 447 extern void BTA_HhSendCtrl(uint8_t dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type); 458 extern void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate); 469 extern void BTA_HhGetIdle(uint8_t dev_handle); 480 extern void BTA_HhSendData(uint8_t dev_handle, const RawAddress& dev_bda, [all …]
|
/system/bt/stack/include/ |
D | hidh_api.h | 79 uint8_t dev_handle, const RawAddress& addr, 146 extern tHID_STATUS HID_HostRemoveDev(uint8_t dev_handle); 158 extern tHID_STATUS HID_HostOpenDev(uint8_t dev_handle); 169 extern tHID_STATUS HID_HostWriteDev(uint8_t dev_handle, uint8_t t_type, 182 extern tHID_STATUS HID_HostCloseDev(uint8_t dev_handle);
|
/system/bt/btif/co/ |
D | bta_hh_co.cc | 317 void bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, in bta_hh_co_open() argument 322 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_open() 324 dev_handle); in bta_hh_co_open() 331 p_dev->dev_handle == dev_handle) { in bta_hh_co_open() 362 p_dev->dev_handle = dev_handle; in bta_hh_co_open() 411 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) { in bta_hh_co_close() argument 415 APPL_TRACE_WARNING("%s: dev_handle = %d, app_id = %d", __func__, dev_handle, in bta_hh_co_close() 417 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_close() 419 dev_handle); in bta_hh_co_close() 429 p_dev->dev_handle == dev_handle) { in bta_hh_co_close() [all …]
|
/system/bt/btif/src/ |
D | btif_hh.cc | 239 p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates() 245 BTA_HhSendData(p_dev->dev_handle, p_dev->bd_addr, p_buf); in update_keyboard_lockstates() 301 btif_hh_cb.devices[i].dev_handle == handle) { in btif_hh_find_connected_dev_by_handle() 405 btif_hh_cb.added_devices[i].dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_add_added_dev() 433 BTA_HhRemoveDev(p_added_dev->dev_handle); in btif_hh_remove_device() 436 p_added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 458 p_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 517 BTA_HhSendCtrl(p_dev->dev_handle, BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG); in btif_hh_virtual_unplug() 526 BTA_HhClose(p_dev->dev_handle); in btif_hh_virtual_unplug() 573 if (added_dev->dev_handle == BTA_HH_INVALID_HANDLE) { in btif_hh_connect() [all …]
|
/system/bt/btif/include/ |
D | btif_hh.h | 81 uint8_t dev_handle; member 99 uint8_t dev_handle; member
|