Home
last modified time | relevance | path

Searched refs:bta_hh_cb (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_utils.cc69 if ((link_spec == bta_hh_cb.kdev[xx].link_spec && in bta_hh_find_cb()
73 bta_hh_cb.kdev[xx].hid_handle); in bta_hh_find_cb()
80 bta_hh_cb.kdev[xx].in_use, xx, bta_hh_cb.kdev[xx].hid_handle, in bta_hh_find_cb()
81 bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
87 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
88 bta_hh_cb.kdev[xx].link_spec = link_spec; in bta_hh_find_cb()
107 return &bta_hh_cb.kdev[idx]; in bta_hh_get_cb()
128 bta_hh_cb.le_cb_index[le_hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
134 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
319 (void**)&bta_hh_cb.kdev[xx].dscp_info.descriptor.dsc_list); in bta_hh_cleanup_disable()
[all …]
Dbta_hh_act.cc92 memset(&bta_hh_cb, 0, sizeof(tBTA_HH_CB)); in bta_hh_api_enable()
95 bta_hh_cb.p_cback = p_cback; in bta_hh_api_enable()
98 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
99 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
100 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
105 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
124 if (bta_hh_cb.p_cback) { in bta_hh_api_enable()
125 (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh); in bta_hh_api_enable()
143 if (bta_hh_cb.p_cback == NULL) return; in bta_hh_api_disable()
146 if (!bta_hh_cb.cnt_num) { in bta_hh_api_disable()
[all …]
Dbta_hh_le.cc183 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
185 for (xx = 0; xx < ARRAY_SIZE(bta_hh_cb.le_cb_index); xx++) in bta_hh_le_enable()
186 bta_hh_cb.le_cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_le_enable()
194 bta_hh_cb.gatt_if = client_id; in bta_hh_le_enable()
197 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
202 if (bta_hh_cb.p_cback) { in bta_hh_le_enable()
204 (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh); in bta_hh_le_enable()
223 void bta_hh_le_deregister(void) { BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); } in bta_hh_le_deregister()
236 for (i = 0; i < ARRAY_SIZE(bta_hh_cb.le_cb_index); i++) { in bta_hh_le_get_le_dev_hdl()
237 if (bta_hh_cb.le_cb_index[i] == cb_index) return BTA_HH_GET_LE_DEV_HDL(i); in bta_hh_le_get_le_dev_hdl()
[all …]
Dbta_hh_main.cc42 tBTA_HH_CB bta_hh_cb; variable
206 fmt::ptr(bta_hh_cb.p_cback)); in bta_hh_sm_execute()
208 if (bta_hh_cb.p_cback != NULL) { in bta_hh_sm_execute()
273 if (cback_event) (*bta_hh_cb.p_cback)(cback_event, &cback_data); in bta_hh_sm_execute()
331 if ((index != BTA_HH_IDX_INVALID) && (!bta_hh_cb.kdev[index].in_use)) { in bta_hh_hdl_event()
341 if (index != BTA_HH_IDX_INVALID) p_cb = &bta_hh_cb.kdev[index]; in bta_hh_hdl_event()
Dbta_hh_int.h248 extern tBTA_HH_CB bta_hh_cb;
/packages/modules/Bluetooth/system/bta/test/
Dbta_hh_test.cc55 bta_hh_cb.p_cback = nullptr; in TearDown()
96 bta_hh_cb.p_cback = [](tBTA_HH_EVT event, tBTA_HH* p_data) { in TEST_F()