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.cc65 if ((bda == bta_hh_cb.kdev[xx].addr && !bda.IsEmpty())) { in bta_hh_find_cb()
68 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb()
75 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
76 bta_hh_cb.kdev[xx].hid_handle, bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
82 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
83 bta_hh_cb.kdev[xx].addr = bda; in bta_hh_find_cb()
114 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = in bta_hh_clean_up_kdev()
118 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
242 tBTA_HH_KB_CB* p_kb = &bta_hh_cb.kb_cb; in bta_hh_parse_keybd_rpt()
379 tBTA_HH_CB* p_cb = &bta_hh_cb; in bta_hh_read_ssr_param()
[all …]
Dbta_hh_act.cc76 memset(&bta_hh_cb, 0, sizeof(tBTA_HH_CB)); in bta_hh_api_enable()
83 bta_hh_cb.p_cback = p_data->api_enable.p_cback; in bta_hh_api_enable()
88 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
89 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
90 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
95 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
107 (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh); in bta_hh_api_enable()
124 if (bta_hh_cb.p_cback == NULL) return; in bta_hh_api_disable()
127 if (!bta_hh_cb.cnt_num) { in bta_hh_api_disable()
131 bta_hh_cb.w4_disable = true; in bta_hh_api_disable()
[all …]
Dbta_hh_le.cc167 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
169 for (xx = 0; xx < ARRAY_SIZE(bta_hh_cb.le_cb_index); xx++) in bta_hh_le_enable()
170 bta_hh_cb.le_cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_le_enable()
178 bta_hh_cb.gatt_if = client_id; in bta_hh_le_enable()
181 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
186 if (bta_hh_cb.p_cback) { in bta_hh_le_enable()
188 (*bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, &bta_hh); in bta_hh_le_enable()
204 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if()
217 void bta_hh_le_deregister(void) { BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); } in bta_hh_le_deregister()
245 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.cc210 tBTA_HH_CB bta_hh_cb; variable
246 if (bta_hh_cb.p_cback != NULL) { in bta_hh_sm_execute()
312 if (cback_event) (*bta_hh_cb.p_cback)(cback_event, &cback_data); in bta_hh_sm_execute()
403 (!bta_hh_cb.kdev[index].in_use)) { in bta_hh_hdl_event()
412 if (index != BTA_HH_IDX_INVALID) p_cb = &bta_hh_cb.kdev[index]; in bta_hh_hdl_event()
Dbta_hh_int.h298 extern tBTA_HH_CB bta_hh_cb;