Home
last modified time | relevance | path

Searched refs:p_srvc_cb (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_cache.cc63 static void bta_gattc_explore_srvc_finished(tCONN_ID conn_id, tBTA_GATTC_SERV* p_srvc_cb);
110 void bta_gattc_init_cache(tBTA_GATTC_SERV* p_srvc_cb) { in bta_gattc_init_cache() argument
111 p_srvc_cb->gatt_database = gatt::Database(); in bta_gattc_init_cache()
112 p_srvc_cb->pending_discovery.Clear(); in bta_gattc_init_cache()
217 static void bta_gattc_explore_next_service(tCONN_ID conn_id, tBTA_GATTC_SERV* p_srvc_cb) { in bta_gattc_explore_next_service() argument
224 if (p_srvc_cb->pending_discovery.StartNextServiceExploration()) { in bta_gattc_explore_next_service()
225 const auto& service = p_srvc_cb->pending_discovery.CurrentlyExploredService(); in bta_gattc_explore_next_service()
239 const auto& descriptors = p_srvc_cb->pending_discovery.DescriptorHandlesToRead(); in bta_gattc_explore_next_service()
244 if (p_srvc_cb->read_multiple_not_supported || descriptors.size() == 1) { in bta_gattc_explore_next_service()
274 bta_gattc_explore_srvc_finished(conn_id, p_srvc_cb); in bta_gattc_explore_next_service()
[all …]
Dbta_gatts_main.cc87 tBTA_GATTS_SRVC_CB* p_srvc_cb = bta_gatts_find_srvc_cb_by_srvc_id( in bta_gatts_hdl_event() local
90 if (p_srvc_cb != NULL) { in bta_gatts_hdl_event()
91 bta_gatts_delete_service(p_srvc_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
100 tBTA_GATTS_SRVC_CB* p_srvc_cb = bta_gatts_find_srvc_cb_by_srvc_id( in bta_gatts_hdl_event() local
103 if (p_srvc_cb != NULL) { in bta_gatts_hdl_event()
104 bta_gatts_stop_service(p_srvc_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
Dbta_gatts_act.cc285 void bta_gatts_delete_service(tBTA_GATTS_SRVC_CB* p_srvc_cb, tBTA_GATTS_DATA* /*p_msg*/) { in bta_gatts_delete_service() argument
286 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_delete_service()
290 cb_data.srvc_oper.service_id = p_srvc_cb->service_id; in bta_gatts_delete_service()
292 if (GATTS_DeleteService(p_rcb->gatt_if, &p_srvc_cb->service_uuid, p_srvc_cb->service_id)) { in bta_gatts_delete_service()
294 memset(p_srvc_cb, 0, sizeof(tBTA_GATTS_SRVC_CB)); in bta_gatts_delete_service()
313 void bta_gatts_stop_service(tBTA_GATTS_SRVC_CB* p_srvc_cb, tBTA_GATTS_DATA* /* p_msg */) { in bta_gatts_stop_service() argument
314 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_stop_service()
317 GATTS_StopService(p_srvc_cb->service_id); in bta_gatts_stop_service()
319 cb_data.srvc_oper.service_id = p_srvc_cb->service_id; in bta_gatts_stop_service()
321 log::error("service_id={}", p_srvc_cb->service_id); in bta_gatts_stop_service()
[all …]
Dbta_gatts_int.h179 void bta_gatts_delete_service(tBTA_GATTS_SRVC_CB* p_srvc_cb, tBTA_GATTS_DATA* p_msg);
180 void bta_gatts_stop_service(tBTA_GATTS_SRVC_CB* p_srvc_cb, tBTA_GATTS_DATA* p_msg);
Dbta_gattc_act.cc1395 tBTA_GATTC_SERV* p_srvc_cb = bta_gattc_find_srvr_cache(remote_bda); in bta_gattc_process_api_refresh() local
1396 if (p_srvc_cb) { in bta_gattc_process_api_refresh()
1398 if (p_srvc_cb->connected && p_srvc_cb->num_clcb != 0) { in bta_gattc_process_api_refresh()
1402 if (p_clcb_i->in_use && p_clcb_i->p_srcb == p_srvc_cb) { in bta_gattc_process_api_refresh()
1415 p_srvc_cb->gatt_database.Clear(); in bta_gattc_process_api_refresh()
Dbta_gattc_int.h479 void bta_gattc_init_cache(tBTA_GATTC_SERV* p_srvc_cb);