/packages/modules/Bluetooth/system/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() 143 static void bta_hh_snd_write_dev(uint8_t dev_handle, uint8_t t_type, in bta_hh_snd_write_dev() argument 150 p_buf->hdr.layer_specific = (uint16_t)dev_handle; in bta_hh_snd_write_dev() 172 void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, in BTA_HhSetReport() argument 174 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_REPORT, r_type, 0, 0, p_data); in BTA_HhSetReport() 185 void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, in BTA_HhGetReport() argument 189 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, buf_size, in BTA_HhGetReport() 201 void BTA_HhSetProtoMode(uint8_t dev_handle, tBTA_HH_PROTO_MODE p_type) { in BTA_HhSetProtoMode() argument 202 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 | 349 uint8_t bta_hh_dev_handle_to_cb_idx(uint8_t dev_handle) { in bta_hh_dev_handle_to_cb_idx() argument 352 if (BTA_HH_IS_LE_DEV_HDL(dev_handle)) { in bta_hh_dev_handle_to_cb_idx() 353 if (BTA_HH_IS_LE_DEV_HDL_VALID(dev_handle)) in bta_hh_dev_handle_to_cb_idx() 354 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx() 356 log::verbose("dev_handle={} index={}", dev_handle, index); in bta_hh_dev_handle_to_cb_idx() 360 if (dev_handle < BTA_HH_MAX_KNOWN) in bta_hh_dev_handle_to_cb_idx() 361 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
|
D | bta_hh_act.cc | 66 static void bta_hh_cback(uint8_t dev_handle, const RawAddress& addr, 559 uint8_t dev_handle = in bta_hh_open_cmpl_act() local 563 conn.handle = dev_handle; in bta_hh_open_cmpl_act() 588 HID_HostWriteDev(dev_handle, HID_TRANS_SET_PROTOCOL, in bta_hh_open_cmpl_act() 617 uint8_t dev_handle = in bta_hh_open_act() local 620 log::verbose("Device[{}] connected", dev_handle); in bta_hh_open_act() 632 p_cb->incoming_hid_handle = dev_handle; in bta_hh_open_act() 935 uint8_t dev_handle; in bta_hh_maint_dev_act() local 959 &dev_handle) == HID_SUCCESS) { in bta_hh_maint_dev_act() 960 dev_info.handle = dev_handle; in bta_hh_maint_dev_act() [all …]
|
D | bta_hh_int.h | 291 uint8_t bta_hh_dev_handle_to_cb_idx(uint8_t dev_handle);
|
/packages/modules/Bluetooth/system/stack/hid/ |
D | hidh_api.cc | 434 tHID_STATUS HID_HostRemoveDev(uint8_t dev_handle) { in HID_HostRemoveDev() argument 437 if ((dev_handle >= HID_HOST_MAX_DEVICES) || in HID_HostRemoveDev() 438 (!hh_cb.devices[dev_handle].in_use)) { in HID_HostRemoveDev() 445 HID_HostCloseDev(dev_handle); in HID_HostRemoveDev() 446 hh_cb.devices[dev_handle].in_use = false; in HID_HostRemoveDev() 447 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev() 448 hh_cb.devices[dev_handle].conn.ctrl_cid = in HID_HostRemoveDev() 449 hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev() 450 hh_cb.devices[dev_handle].attr_mask = 0; in HID_HostRemoveDev() 464 tHID_STATUS HID_HostOpenDev(uint8_t dev_handle) { in HID_HostOpenDev() argument [all …]
|
/packages/modules/Bluetooth/system/bta/include/ |
D | bta_hh_api.h | 413 void BTA_HhClose(uint8_t dev_handle); 436 void BTA_HhGetProtoMode(uint8_t dev_handle); 446 void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, 458 void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, 469 void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate); 480 void BTA_HhGetIdle(uint8_t dev_handle); 491 void BTA_HhSendCtrl(uint8_t dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type); 502 void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate); 513 void BTA_HhGetIdle(uint8_t dev_handle); 524 void BTA_HhSendData(uint8_t dev_handle, const tAclLinkSpec& link_spec, [all …]
|
D | bta_hh_co.h | 55 void bta_hh_co_data(uint8_t dev_handle, uint8_t* p_rpt, uint16_t len); 68 bool bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, uint16_t attr_mask, 81 void bta_hh_co_set_rpt_rsp(uint8_t dev_handle, uint8_t status); 93 void bta_hh_co_get_rpt_rsp(uint8_t dev_handle, uint8_t status,
|
/packages/modules/Bluetooth/system/btif/co/ |
D | bta_hh_co.cc | 430 bool bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, in bta_hh_co_open() argument 435 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_open() 436 log::warn("dev_handle ({}) is invalid", dev_handle); in bta_hh_co_open() 441 btif_hh_device_t* p_dev = btif_hh_find_dev_by_handle(dev_handle); in bta_hh_co_open() 448 p_dev->app_id, dev_handle); in bta_hh_co_open() 457 log::verbose("New HID device added for handle {}", dev_handle); in bta_hh_co_open() 462 p_dev->uhid.dev_handle = dev_handle; in bta_hh_co_open() 478 p_dev->dev_handle = dev_handle; in bta_hh_co_open() 505 p_dev->dev_handle, p_dev->dev_status, p_dev->link_spec); in bta_hh_co_close() 539 void bta_hh_co_data(uint8_t dev_handle, uint8_t* p_rpt, uint16_t len) { in bta_hh_co_data() argument [all …]
|
/packages/modules/Bluetooth/system/stack/include/ |
D | hidh_api.h | 83 uint8_t dev_handle, const RawAddress& addr, 161 tHID_STATUS HID_HostRemoveDev(uint8_t dev_handle); 173 tHID_STATUS HID_HostOpenDev(uint8_t dev_handle); 184 tHID_STATUS HID_HostWriteDev(uint8_t dev_handle, uint8_t t_type, uint8_t param, 196 tHID_STATUS HID_HostCloseDev(uint8_t dev_handle);
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_hh.cc | 265 log::verbose("setting report on dev_handle {} to 0x{:x}", p_dev->dev_handle, in update_keyboard_lockstates() 272 BTA_HhSendData(p_dev->dev_handle, p_dev->link_spec, p_buf); in update_keyboard_lockstates() 341 btif_hh_cb.devices[i].dev_handle == handle) { in btif_hh_find_connected_dev_by_handle() 360 p_dev->dev_handle == handle) { in btif_hh_find_dev_by_handle() 613 dev.dev_handle = BTA_HH_INVALID_HANDLE; in hh_add_device() 679 BTA_HhRemoveDev(p_added_dev->dev_handle); in btif_hh_remove_device() 682 p_added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 710 p_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device() 756 BTA_HhSendCtrl(p_dev->dev_handle, BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG); in btif_hh_virtual_unplug() 765 BTA_HhClose(p_dev->dev_handle); in btif_hh_virtual_unplug() [all …]
|
/packages/modules/Bluetooth/system/btif/include/ |
D | btif_hh.h | 91 uint8_t dev_handle; member 104 uint8_t dev_handle; member 117 uint8_t dev_handle; member
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_bta_hh_utils.h | 87 std::function<uint8_t(uint8_t dev_handle)> body{ 89 uint8_t operator()(uint8_t dev_handle) { return body(dev_handle); }; in operator()
|
D | mock_bta_hh_utils.cc | 73 uint8_t bta_hh_dev_handle_to_cb_idx(uint8_t dev_handle) { in bta_hh_dev_handle_to_cb_idx() argument 75 return test::mock::bta_hh_utils::bta_hh_dev_handle_to_cb_idx(dev_handle); in bta_hh_dev_handle_to_cb_idx()
|
/packages/modules/Bluetooth/system/btif/test/ |
D | btif_hh_test.cc | 206 btif_hh_cb.devices[0].dev_handle = kHhHandle; in SetUp()
|