Home
last modified time | relevance | path

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

/system/bt/bta/hh/
Dbta_hh_utils.cc63 if ((bda == bta_hh_cb.kdev[xx].addr && !bda.IsEmpty())) { in bta_hh_find_cb()
66 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb()
73 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
74 bta_hh_cb.kdev[xx].hid_handle, bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
80 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
81 bta_hh_cb.kdev[xx].addr = bda; in bta_hh_find_cb()
101 return &bta_hh_cb.kdev[idx]; in bta_hh_get_cb()
119 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = in bta_hh_clean_up_kdev()
122 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
306 (void**)&bta_hh_cb.kdev[xx].dscp_info.descriptor.dsc_list); in bta_hh_cleanup_disable()
[all …]
Dbta_hh_act.cc85 memset(&bta_hh_cb, 0, sizeof(tBTA_HH_CB)); in bta_hh_api_enable()
90 bta_hh_cb.p_cback = p_data->api_enable.p_cback; in bta_hh_api_enable()
95 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
96 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
97 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
102 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
112 (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh); in bta_hh_api_enable()
129 if (bta_hh_cb.p_cback == NULL) return; in bta_hh_api_disable()
132 if (!bta_hh_cb.cnt_num) { in bta_hh_api_disable()
136 bta_hh_cb.w4_disable = true; in bta_hh_api_disable()
[all …]
Dbta_hh_le.cc164 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
166 for (xx = 0; xx < ARRAY_SIZE(bta_hh_cb.le_cb_index); xx++) in bta_hh_le_enable()
167 bta_hh_cb.le_cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_le_enable()
175 bta_hh_cb.gatt_if = client_id; in bta_hh_le_enable()
178 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
183 if (bta_hh_cb.p_cback) { in bta_hh_le_enable()
185 (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh); in bta_hh_le_enable()
201 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if()
214 void bta_hh_le_deregister(void) { BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); } in bta_hh_le_deregister()
227 for (i = 0; i < ARRAY_SIZE(bta_hh_cb.le_cb_index); i++) { in bta_hh_le_get_le_dev_hdl()
[all …]
Dbta_hh_main.cc37 tBTA_HH_CB bta_hh_cb; variable
199 if (bta_hh_cb.p_cback != NULL) { in bta_hh_sm_execute()
265 if (cback_event) (*bta_hh_cb.p_cback)(cback_event, &cback_data); in bta_hh_sm_execute()
342 (!bta_hh_cb.kdev[index].in_use)) { in bta_hh_hdl_event()
351 if (index != BTA_HH_IDX_INVALID) p_cb = &bta_hh_cb.kdev[index]; in bta_hh_hdl_event()
Dbta_hh_int.h247 extern tBTA_HH_CB bta_hh_cb;