Home
last modified time | relevance | path

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

/system/bt/bta/gatt/
Dbta_gattc_cache.cc53 tBTA_GATTC_SERV* p_srvc_cb);
144 tGATT_STATUS bta_gattc_init_cache(tBTA_GATTC_SERV* p_srvc_cb) { in bta_gattc_init_cache() argument
146 std::vector<tBTA_GATTC_SERVICE>().swap(p_srvc_cb->srvc_cache); in bta_gattc_init_cache()
147 std::vector<tBTA_GATTC_SERVICE>().swap(p_srvc_cb->pending_discovery); in bta_gattc_init_cache()
292 tBTA_GATTC_SERV* p_srvc_cb) { in bta_gattc_start_disc_char_dscp() argument
294 auto& characteristic = p_srvc_cb->pending_char; in bta_gattc_start_disc_char_dscp()
298 if (std::next(p_srvc_cb->pending_char) != in bta_gattc_start_disc_char_dscp()
299 p_srvc_cb->pending_service->characteristics.end()) { in bta_gattc_start_disc_char_dscp()
301 end_handle = std::next(p_srvc_cb->pending_char)->declaration_handle - 1; in bta_gattc_start_disc_char_dscp()
304 end_handle = p_srvc_cb->pending_service->e_handle; in bta_gattc_start_disc_char_dscp()
[all …]
Dbta_gatts_main.cc86 tBTA_GATTS_SRVC_CB* p_srvc_cb = bta_gatts_find_srvc_cb_by_srvc_id( in bta_gatts_hdl_event() local
89 if (p_srvc_cb != NULL) in bta_gatts_hdl_event()
90 bta_gatts_delete_service(p_srvc_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
98 tBTA_GATTS_SRVC_CB* p_srvc_cb = bta_gatts_find_srvc_cb_by_srvc_id( in bta_gatts_hdl_event() local
101 if (p_srvc_cb != NULL) in bta_gatts_hdl_event()
102 bta_gatts_stop_service(p_srvc_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
Dbta_gatts_act.cc302 void bta_gatts_delete_service(tBTA_GATTS_SRVC_CB* p_srvc_cb, in bta_gatts_delete_service() argument
304 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_delete_service()
308 cb_data.srvc_oper.service_id = p_srvc_cb->service_id; in bta_gatts_delete_service()
310 if (GATTS_DeleteService(p_rcb->gatt_if, &p_srvc_cb->service_uuid, in bta_gatts_delete_service()
311 p_srvc_cb->service_id)) { in bta_gatts_delete_service()
313 memset(p_srvc_cb, 0, sizeof(tBTA_GATTS_SRVC_CB)); in bta_gatts_delete_service()
330 void bta_gatts_stop_service(tBTA_GATTS_SRVC_CB* p_srvc_cb, in bta_gatts_stop_service() argument
332 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_stop_service()
335 GATTS_StopService(p_srvc_cb->service_id); in bta_gatts_stop_service()
337 cb_data.srvc_oper.service_id = p_srvc_cb->service_id; in bta_gatts_stop_service()
[all …]
Dbta_gatts_int.h166 extern void bta_gatts_delete_service(tBTA_GATTS_SRVC_CB* p_srvc_cb,
168 extern void bta_gatts_stop_service(tBTA_GATTS_SRVC_CB* p_srvc_cb,
Dbta_gattc_int.h447 extern tGATT_STATUS bta_gattc_init_cache(tBTA_GATTC_SERV* p_srvc_cb);
450 extern void bta_gattc_cache_save(tBTA_GATTC_SERV* p_srvc_cb, uint16_t conn_id);
Dbta_gattc_act.cc1090 tBTA_GATTC_SERV* p_srvc_cb = bta_gattc_find_srvr_cache(remote_bda); in bta_gattc_process_api_refresh() local
1091 if (p_srvc_cb) { in bta_gattc_process_api_refresh()
1093 if (p_srvc_cb->connected && p_srvc_cb->num_clcb != 0) { in bta_gattc_process_api_refresh()
1097 if (p_clcb->in_use && p_clcb->p_srcb == p_srvc_cb) { in bta_gattc_process_api_refresh()
1110 std::vector<tBTA_GATTC_SERVICE>().swap(p_srvc_cb->srvc_cache); in bta_gattc_process_api_refresh()