Home
last modified time | relevance | path

Searched refs:api_sndcmd (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_main.cc233 cback_event = (p_data->api_sndcmd.t_type - HID_TRANS_GET_REPORT) + in bta_hh_sm_execute()
235 osi_free_and_reset((void**)&p_data->api_sndcmd.p_data); in bta_hh_sm_execute()
236 if (p_data->api_sndcmd.t_type == HID_TRANS_SET_PROTOCOL || in bta_hh_sm_execute()
237 p_data->api_sndcmd.t_type == HID_TRANS_SET_REPORT || in bta_hh_sm_execute()
238 p_data->api_sndcmd.t_type == HID_TRANS_SET_IDLE) { in bta_hh_sm_execute()
241 (uint8_t)p_data->api_sndcmd.hdr.layer_specific; in bta_hh_sm_execute()
242 } else if (p_data->api_sndcmd.t_type != HID_TRANS_DATA && in bta_hh_sm_execute()
243 p_data->api_sndcmd.t_type != HID_TRANS_CONTROL) { in bta_hh_sm_execute()
245 (uint8_t)p_data->api_sndcmd.hdr.layer_specific; in bta_hh_sm_execute()
248 } else if (p_data->api_sndcmd.t_type == HID_TRANS_CONTROL && in bta_hh_sm_execute()
[all …]
Dbta_hh_act.cc1026 static uint8_t convert_api_sndcmd_param(const tBTA_HH_CMD_DATA& api_sndcmd) { in convert_api_sndcmd_param() argument
1027 uint8_t api_sndcmd_param = api_sndcmd.param; in convert_api_sndcmd_param()
1028 if (api_sndcmd.t_type == HID_TRANS_SET_PROTOCOL) { in convert_api_sndcmd_param()
1029 api_sndcmd_param = (api_sndcmd.param == BTA_HH_PROTO_RPT_MODE) in convert_api_sndcmd_param()
1038 (p_data->api_sndcmd.t_type - HID_TRANS_GET_REPORT) + BTA_HH_GET_RPT_EVT; in bta_hh_write_dev_act()
1045 convert_api_sndcmd_param(p_data->api_sndcmd); in bta_hh_write_dev_act()
1048 p_data->api_sndcmd.t_type, in bta_hh_write_dev_act()
1050 p_data->api_sndcmd.data, in bta_hh_write_dev_act()
1051 p_data->api_sndcmd.rpt_id, in bta_hh_write_dev_act()
1052 p_data->api_sndcmd.p_data); in bta_hh_write_dev_act()
[all …]
Dbta_hh_le.cc2033 switch (p_data->api_sndcmd.t_type) { in bta_hh_le_write_dev_act()
2036 bta_hh_le_set_protocol_mode(p_cb, p_data->api_sndcmd.param); in bta_hh_le_write_dev_act()
2044 bta_hh_le_get_rpt(p_cb, p_data->api_sndcmd.param, in bta_hh_le_write_dev_act()
2045 p_data->api_sndcmd.rpt_id); in bta_hh_le_write_dev_act()
2049 bta_hh_le_write_rpt(p_cb, p_data->api_sndcmd.param, in bta_hh_le_write_dev_act()
2050 p_data->api_sndcmd.p_data, BTA_HH_SET_RPT_EVT); in bta_hh_le_write_dev_act()
2055 bta_hh_le_write_rpt(p_cb, p_data->api_sndcmd.param, in bta_hh_le_write_dev_act()
2056 p_data->api_sndcmd.p_data, BTA_HH_DATA_EVT); in bta_hh_le_write_dev_act()
2062 if (p_data->api_sndcmd.param == BTA_HH_CTRL_SUSPEND || in bta_hh_le_write_dev_act()
2063 p_data->api_sndcmd.param == BTA_HH_CTRL_EXIT_SUSPEND) { in bta_hh_le_write_dev_act()
[all …]
Dbta_hh_int.h125 tBTA_HH_CMD_DATA api_sndcmd; member