Home
last modified time | relevance | path

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

/system/bt/service/ipc/binder/
Dbluetooth_gatt_server_binder_server.cc91 auto gatt_cb = GetGattServerCallback(server_id); in AddService() local
92 if (!gatt_cb.get()) { in AddService()
97 gatt_cb->OnServiceAdded(status, service); in AddService()
155 auto gatt_cb = GetGattServerCallback(server_id); in SendNotification() local
156 if (!gatt_cb.get()) { in SendNotification()
161 gatt_cb->OnNotificationSent(device_address, error); in SendNotification()
182 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()); in OnCharacteristicReadRequest() local
183 if (!gatt_cb.get()) { in OnCharacteristicReadRequest()
188 gatt_cb->OnCharacteristicReadRequest( in OnCharacteristicReadRequest()
199 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()); in OnDescriptorReadRequest() local
[all …]
/system/bt/stack/gatt/
Dgatt_main.cc87 tGATT_CB gatt_cb; variable
104 gatt_cb = tGATT_CB(); in gatt_init()
108 gatt_cb.def_mtu_size = GATT_DEF_BLE_MTU_SIZE; in gatt_init()
109 gatt_cb.sign_op_queue = fixed_queue_new(SIZE_MAX); in gatt_init()
110 gatt_cb.srv_chg_clt_q = fixed_queue_new(SIZE_MAX); in gatt_init()
137 gatt_cb.hdl_cfg.gatt_start_hdl = GATT_GATT_START_HANDLE; in gatt_init()
138 gatt_cb.hdl_cfg.gap_start_hdl = GATT_GAP_START_HANDLE; in gatt_init()
139 gatt_cb.hdl_cfg.app_start_hdl = GATT_APP_START_HANDLE; in gatt_init()
141 gatt_cb.hdl_list_info = new std::list<tGATT_HDL_LIST_ELEM>(); in gatt_init()
142 gatt_cb.srv_list_info = new std::list<tGATT_SRV_LIST_ELEM>(); in gatt_init()
[all …]
Dgatt_utils.cc117 if (gatt_cb.cb_info.p_srv_chg_callback) { in gatt_delete_dev_from_srv_chg_clt_list()
121 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_REMOVE_CLIENT, in gatt_delete_dev_from_srv_chg_clt_list()
124 osi_free(fixed_queue_try_remove_from_queue(gatt_cb.srv_chg_clt_q, p_buf)); in gatt_delete_dev_from_srv_chg_clt_list()
140 if (fixed_queue_is_empty(gatt_cb.srv_chg_clt_q)) return; in gatt_set_srv_chg()
142 list_t* list = fixed_queue_get_list(gatt_cb.srv_chg_clt_q); in gatt_set_srv_chg()
153 if (gatt_cb.cb_info.p_srv_chg_callback) in gatt_set_srv_chg()
154 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT, in gatt_set_srv_chg()
184 fixed_queue_enqueue(gatt_cb.srv_chg_clt_q, p_buf); in gatt_add_srv_chg_clt()
195 for (auto& elem : *gatt_cb.hdl_list_info) { in gatt_find_hdl_buffer_by_handle()
211 auto end_it = gatt_cb.hdl_list_info->end(); in gatt_find_hdl_buffer_by_app_id()
[all …]
Dgatt_attr.cc85 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
88 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
106 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_conn_id()
128 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_bd_addr()
155 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_clcb_alloc()
280 gatt_cb.gatt_if = GATT_Register(Uuid::From128BitBE(tmp), &gatt_profile_cback); in gatt_profile_db_init()
281 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
294 GATTS_AddService(gatt_cb.gatt_if, service, in gatt_profile_db_init()
298 gatt_cb.handle_of_h_r = service[1].attribute_handle; in gatt_profile_db_init()
300 VLOG(1) << __func__ << ": gatt_if=" << +gatt_cb.gatt_if; in gatt_profile_db_init()
[all …]
Dgatt_sr.cc296 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { in gatt_process_exec_write_req()
299 << +gatt_cb.err_status; in gatt_process_exec_write_req()
301 gatt_send_error_rsp(tcb, gatt_cb.err_status, gatt_cb.req_op_code, in gatt_process_exec_write_req()
302 gatt_cb.handle, false); in gatt_process_exec_write_req()
367 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { in gatt_process_read_multi_req()
369 << +gatt_cb.err_status; in gatt_process_read_multi_req()
373 gatt_send_error_rsp(tcb, gatt_cb.err_status, gatt_cb.req_op_code, handle, in gatt_process_read_multi_req()
385 if (it != gatt_cb.srv_list_info->end()) { in gatt_process_read_multi_req()
461 for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) { in gatt_build_primary_service_rsp()
494 if (gatt_cb.last_service_handle && in gatt_build_primary_service_rsp()
[all …]
Dgatt_api.cc45 auto lst_ptr = gatt_cb.hdl_list_info; in gatt_add_an_item_to_list()
92 gatt_cb.cb_info = *p_cb_info; in GATTS_NVRegister()
130 gatt_cb.last_service_handle = 0; in gatt_update_last_srv_info()
132 for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) { in gatt_update_last_srv_info()
133 gatt_cb.last_service_handle = el.s_hdl; in gatt_update_last_srv_info()
171 s_hdl = gatt_cb.hdl_cfg.gatt_start_hdl; in GATTS_AddService()
173 s_hdl = gatt_cb.hdl_cfg.gap_start_hdl; in GATTS_AddService()
175 if (!gatt_cb.hdl_list_info->empty()) { in GATTS_AddService()
176 s_hdl = gatt_cb.hdl_list_info->front().asgn_range.e_handle + 1; in GATTS_AddService()
179 if (s_hdl < gatt_cb.hdl_cfg.app_start_hdl) in GATTS_AddService()
[all …]
Dgatt_auth.cc219 if (gatt_cb.cl_rcb[i].in_use && gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb) { in gatt_notify_enc_cmpl()
220 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if, in gatt_notify_enc_cmpl()
Dgatt_cl.cc662 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
679 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { in gatt_process_notification()
Dgatt_int.h389 extern tGATT_CB gatt_cb;