Searched refs:gatt_cb (Results 1 – 9 of 9) sorted by relevance
/system/bt/service/ipc/binder/ |
D | bluetooth_gatt_server_binder_server.cc | 91 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/ |
D | gatt_main.cc | 87 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() 121 false /* enable_snoop */, nullptr, gatt_cb.def_mtu_size)) { in gatt_init() 130 gatt_cb.hdl_cfg.gatt_start_hdl = GATT_GATT_START_HANDLE; in gatt_init() 131 gatt_cb.hdl_cfg.gap_start_hdl = GATT_GAP_START_HANDLE; in gatt_init() 132 gatt_cb.hdl_cfg.app_start_hdl = GATT_APP_START_HANDLE; in gatt_init() 134 gatt_cb.hdl_list_info = new std::list<tGATT_HDL_LIST_ELEM>(); in gatt_init() [all …]
|
D | gatt_utils.cc | 117 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 …]
|
D | gatt_attr.cc | 90 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr() 93 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr() 111 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_conn_id() 133 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_bd_addr() 160 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_clcb_alloc() 195 if (handle == gatt_cb.handle_sr_supported_feat) { in read_attr_value() 199 UINT8_TO_STREAM(p, gatt_cb.gatt_svr_supported_feat_mask); in read_attr_value() 200 p_value->len = sizeof(gatt_cb.gatt_svr_supported_feat_mask); in read_attr_value() 204 if (handle == gatt_cb.handle_cl_supported_feat) { in read_attr_value() 217 if (handle == gatt_cb.handle_of_h_r) { in read_attr_value() [all …]
|
D | gatt_sr.cc | 296 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 …]
|
D | gatt_api.cc | 45 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 …]
|
D | gatt_auth.cc | 219 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()
|
D | gatt_cl.cc | 662 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()
|
D | gatt_int.h | 402 extern tGATT_CB gatt_cb;
|