Home
last modified time | relevance | path

Searched refs:gatt_cb (Results 1 – 11 of 11) sorted by relevance

/aosp12/system/bt/service/ipc/binder/
H A Dbluetooth_gatt_server_binder_server.cc92 if (!gatt_cb.get()) { in AddService()
156 if (!gatt_cb.get()) { in SendNotification()
183 if (!gatt_cb.get()) { in OnCharacteristicReadRequest()
200 if (!gatt_cb.get()) { in OnDescriptorReadRequest()
205 gatt_cb->OnDescriptorReadRequest( in OnDescriptorReadRequest()
247 if (!gatt_cb.get()) { in OnCharacteristicWriteRequest()
265 if (!gatt_cb.get()) { in OnDescriptorWriteRequest()
270 gatt_cb->OnDescriptorWriteRequest( in OnDescriptorWriteRequest()
282 if (!gatt_cb.get()) { in OnExecuteWriteRequest()
287 gatt_cb->OnExecuteWriteRequest( in OnExecuteWriteRequest()
[all …]
/aosp12/system/bt/stack/gatt/
H A Dgatt_main.cc85 tGATT_CB gatt_cb; variable
102 gatt_cb = tGATT_CB(); in gatt_init()
147 gatt_cb.sign_op_queue = NULL; in gatt_free()
149 gatt_cb.srv_chg_clt_q = NULL; in gatt_free()
165 if (gatt_cb.tcb[i].eatt) in gatt_free()
169 gatt_cb.hdl_list_info->clear(); in gatt_free()
170 delete gatt_cb.hdl_list_info; in gatt_free()
171 gatt_cb.hdl_list_info = nullptr; in gatt_free()
172 gatt_cb.srv_list_info->clear(); in gatt_free()
173 delete gatt_cb.srv_list_info; in gatt_free()
[all …]
H A Dgatt_attr.cc212 if (handle == gatt_cb.handle_sr_supported_feat) { in read_attr_value()
228 if (handle == gatt_cb.handle_of_database_hash) { in read_attr_value()
235 if (handle == gatt_cb.handle_of_h_r) { in read_attr_value()
263 if (handle == gatt_cb.handle_cl_supported_feat) in proc_write_req()
377 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
416 GATTS_AddService(gatt_cb.gatt_if, service, in gatt_profile_db_init()
586 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_cl_op_cmpl_cback()
809 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_profile_get_eatt_support()
919 Octet16& db_hash = gatt_cb.database_hash; in gatt_sr_read_db_hash()
934 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_sr_read_cl_supp_feat()
[all …]
H A Dgatt_utils.cc260 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].ch_state == GATT_CH_OPEN) { in gatt_find_the_connected_bda()
350 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].peer_bda == bda) { in gatt_is_bda_connected()
393 p_tcb = &gatt_cb.tcb[tcb_idx]; in gatt_get_tcb_by_idx()
902 gatt_cb.enable_err_rsp = enable; in gatt_set_err_rsp()
904 gatt_cb.err_status = err_status; in gatt_set_err_rsp()
927 p_reg = &gatt_cb.cl_rcb[ii - 1]; in gatt_get_regcb()
961 if (gatt_cb.clcb[i].in_use && (gatt_cb.clcb[i].conn_id == conn_id)) { in gatt_is_clcb_allocated()
1008 p_clcb = &gatt_cb.clcb[i]; in gatt_clcb_alloc()
1178 if (gatt_cb.tcb[xx].in_use && in gatt_find_tcb_by_cid()
1182 p_tcb = &gatt_cb.tcb[xx]; in gatt_find_tcb_by_cid()
[all …]
H A Dgatt_sr.cc348 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { in gatt_process_exec_write_req()
351 << +gatt_cb.err_status; in gatt_process_exec_write_req()
353 gatt_send_error_rsp(tcb, cid, gatt_cb.err_status, gatt_cb.req_op_code, in gatt_process_exec_write_req()
422 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { in gatt_process_read_multi_req()
424 << +gatt_cb.err_status; in gatt_process_read_multi_req()
428 gatt_send_error_rsp(tcb, cid, gatt_cb.err_status, gatt_cb.req_op_code, in gatt_process_read_multi_req()
865 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { in gatts_process_read_by_type_req()
869 gatt_send_error_rsp(tcb, cid, gatt_cb.err_status, gatt_cb.req_op_code, in gatts_process_read_by_type_req()
1097 gatt_cb.handle = handle; in gatts_process_attribute_req()
1098 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { in gatts_process_attribute_req()
[all …]
H A Dgatt_api.cc48 auto lst_ptr = gatt_cb.hdl_list_info; in gatt_add_an_item_to_list()
95 gatt_cb.cb_info = *p_cb_info; in GATTS_NVRegister()
137 gatt_cb.last_service_handle = 0; in gatt_update_last_srv_info()
146 gatt_cb.database_hash = gatts_calculate_database_hash(gatt_cb.srv_list_info); in gatt_update_for_database_change()
150 tGATT_TCB& tcb = gatt_cb.tcb[i]; in gatt_update_for_database_change()
191 s_hdl = gatt_cb.hdl_cfg.gap_start_hdl; in GATTS_AddService()
193 if (!gatt_cb.hdl_list_info->empty()) { in GATTS_AddService()
293 auto lst_ptr = gatt_cb.srv_list_info; in GATTS_AddService()
386 gatt_cb.cb_info.p_nv_save_callback) in GATTS_DeleteService()
389 gatt_cb.hdl_list_info->erase(it); in GATTS_DeleteService()
[all …]
H A Dgatt_auth.cc217 if (gatt_cb.cl_rcb[i].in_use && gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb) { in gatt_notify_enc_cmpl()
218 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if, in gatt_notify_enc_cmpl()
H A Dgatt_cl.cc702 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
722 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
758 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
H A Dgatt_int.h434 extern tGATT_CB gatt_cb;
/aosp12/system/bt/stack/test/gatt/
H A Dgatt_sr_test.cc34 tGATT_CB gatt_cb; variable
190 gatt_cb.cl_rcb[el_.gatt_if - 1].in_use = true; in SetUp()
191 gatt_cb.cl_rcb[el_.gatt_if - 1].app_cb.p_req_cb = in SetUp()
213 gatt_cb.handle_of_database_hash = 0x0010; in SetUp()
/aosp12/system/bt/stack/test/
H A Dstack_gatt_sr_hash_test.cc27 tGATT_CB gatt_cb; variable