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_act.c76 memset(&bta_hh_cb, 0, sizeof(tBTA_HH_CB)); in bta_hh_api_enable()
84 bta_hh_cb.p_cback = p_data->api_enable.p_cback; in bta_hh_api_enable()
90 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
91 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
92 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
97 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
108 (* bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, (tBTA_HH *)&status); in bta_hh_api_enable()
125 if (bta_hh_cb.p_cback == NULL) in bta_hh_api_disable()
129 if (!bta_hh_cb.cnt_num) in bta_hh_api_disable()
135 bta_hh_cb.w4_disable = TRUE; in bta_hh_api_disable()
[all …]
Dbta_hh_utils.c71 if ((!bdcmp (bda, bta_hh_cb.kdev[xx].addr) && in bta_hh_find_cb()
76 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb()
83 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
84 bta_hh_cb.kdev[xx].hid_handle, in bta_hh_find_cb()
85 bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
92 if (!bta_hh_cb.kdev[xx].in_use) in bta_hh_find_cb()
94 bdcpy(bta_hh_cb.kdev[xx].addr, bda); in bta_hh_find_cb()
128 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
131 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
261 tBTA_HH_KB_CB *p_kb = &bta_hh_cb.kb_cb; in bta_hh_parse_keybd_rpt()
[all …]
Dbta_hh_le.c344 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable()
347 bta_hh_cb.le_cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_le_enable()
374 bta_hh_cb.gatt_if = p_reg->client_if; in bta_hh_le_register_cmpl()
378 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_register_cmpl()
381 (* bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, (tBTA_HH *)&status); in bta_hh_le_register_cmpl()
396 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if()
411 BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); in bta_hh_le_deregister()
444 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = p_cb->index; in bta_hh_le_open_conn()
447 BTA_GATTC_Open(bta_hh_cb.gatt_if, remote_bda, TRUE, BTA_GATT_TRANSPORT_LE); in bta_hh_le_open_conn()
460 tBTA_HH_DEV_CB *p_dev_cb = &bta_hh_cb.kdev[0]; in bta_hh_le_find_dev_cb_by_conn_id()
[all …]
Dbta_hh_main.c255 tBTA_HH_CB bta_hh_cb; variable
292 if (bta_hh_cb.p_cback != NULL) in bta_hh_sm_execute()
364 (* bta_hh_cb.p_cback)(cback_event, &cback_data); in bta_hh_sm_execute()
460 (bta_hh_cb.kdev[index].in_use == FALSE)) { in bta_hh_hdl_event()
473 p_cb = &bta_hh_cb.kdev[index]; in bta_hh_hdl_event()
Dbta_hh_int.h317 extern tBTA_HH_CB bta_hh_cb;
320 #define bta_hh_cb (*bta_hh_cb_ptr) macro