/system/bt/service/ipc/binder/ |
bluetooth_gatt_server_binder_server.cc | 91 auto gatt_cb = GetGattServerCallback(server_id); 92 if (!gatt_cb.get()) { 97 gatt_cb->OnServiceAdded(status, service); 155 auto gatt_cb = GetGattServerCallback(server_id); 156 if (!gatt_cb.get()) { 161 gatt_cb->OnNotificationSent(device_address, error); 182 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()); local 183 if (!gatt_cb.get()) { 188 gatt_cb->OnCharacteristicReadRequest( 199 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()) local 246 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()); local 264 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()); local 281 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()); local 298 auto gatt_cb = GetGattServerCallback(gatt_server->GetInstanceId()); local [all...] |
/system/bt/stack/gatt/ |
gatt_main.cc | 81 tGATT_CB gatt_cb; variable 98 memset(&gatt_cb, 0, sizeof(tGATT_CB)); 102 gatt_cb.trace_level = GATT_INITIAL_TRACE_LEVEL; 104 gatt_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ 106 gatt_cb.def_mtu_size = GATT_DEF_BLE_MTU_SIZE; 107 gatt_cb.sign_op_queue = fixed_queue_new(SIZE_MAX); 108 gatt_cb.srv_chg_clt_q = fixed_queue_new(SIZE_MAX); 134 gatt_cb.hdl_cfg.gatt_start_hdl = GATT_GATT_START_HANDLE; 135 gatt_cb.hdl_cfg.gap_start_hdl = GATT_GAP_START_HANDLE; 136 gatt_cb.hdl_cfg.app_start_hdl = GATT_APP_START_HANDLE [all...] |
gatt_utils.cc | 138 if (gatt_cb.cb_info.p_srv_chg_callback) { 142 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_REMOVE_CLIENT, 145 osi_free(fixed_queue_try_remove_from_queue(gatt_cb.srv_chg_clt_q, p_buf)); 161 if (fixed_queue_is_empty(gatt_cb.srv_chg_clt_q)) return; 163 list_t* list = fixed_queue_get_list(gatt_cb.srv_chg_clt_q); 174 if (gatt_cb.cb_info.p_srv_chg_callback) 175 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT, 220 fixed_queue_enqueue(gatt_cb.srv_chg_clt_q, p_buf); 231 for (auto& elem : *gatt_cb.hdl_list_info) { 247 auto end_it = gatt_cb.hdl_list_info->end() [all...] |
gatt_sr.cc | 296 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { 299 gatt_cb.err_status); 301 gatt_send_error_rsp(p_tcb, gatt_cb.err_status, gatt_cb.req_op_code, 302 gatt_cb.handle, false); 358 if (gatt_cb.enable_err_rsp && gatt_cb.req_op_code == op_code) { 361 gatt_cb.err_status); 365 gatt_send_error_rsp(p_tcb, gatt_cb.err_status, gatt_cb.req_op_code, handle [all...] |
gatt_attr.cc | 83 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, 101 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; 123 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; 149 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; 276 gatt_cb.gatt_if = GATT_Register(&app_uuid, &gatt_profile_cback); 277 GATT_StartIf(gatt_cb.gatt_if); 292 GATTS_AddService(gatt_cb.gatt_if, service, 296 gatt_cb.handle_of_h_r = service[1].attribute_handle; 298 GATT_TRACE_ERROR("gatt_profile_db_init: gatt_if=%d", gatt_cb.gatt_if); 444 if (GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &p_clcb->conn_id [all...] |
gatt_api.cc | 58 if (new_level != 0xFF) gatt_cb.trace_level = new_level; 60 return (gatt_cb.trace_level); 68 auto lst_ptr = gatt_cb.hdl_list_info; 115 gatt_cb.cb_info = *p_cb_info; 200 gatt_cb.last_primary_s_handle = 0; 202 for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) 203 if (el.is_primary) gatt_cb.last_primary_s_handle = el.s_hdl; 245 s_hdl = gatt_cb.hdl_cfg.gatt_start_hdl; 248 s_hdl = gatt_cb.hdl_cfg.gap_start_hdl; 250 if (!gatt_cb.hdl_list_info->empty()) [all...] |
gatt_auth.cc | 217 if (gatt_cb.cl_rcb[i].in_use && gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb) { 218 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if,
|
gatt_cl.cc | 649 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { 664 for (i = 0, p_reg = gatt_cb.cl_rcb; i < GATT_MAX_APPS; i++, p_reg++) { [all...] |
gatt_int.h | 408 extern tGATT_CB gatt_cb;
|
/system/bt/include/ |
bt_trace.h | 616 if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) \ 621 if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) \ 626 if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) \ 631 if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) \ 636 if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) \ [all...] |