Home
last modified time | relevance | path

Searched refs:p_srcb (Results 1 – 4 of 4) sorted by relevance

/system/bt/bta/gatt/
Dbta_gattc_utils.cc142 p_clcb->p_srcb = bta_gattc_find_srcb(remote_bda); in bta_gattc_clcb_alloc()
143 if (p_clcb->p_srcb == NULL) in bta_gattc_clcb_alloc()
144 p_clcb->p_srcb = bta_gattc_srcb_alloc(remote_bda); in bta_gattc_clcb_alloc()
146 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL) { in bta_gattc_clcb_alloc()
147 p_clcb->p_srcb->num_clcb++; in bta_gattc_clcb_alloc()
195 tBTA_GATTC_SERV* p_srcb = p_clcb->p_srcb; in bta_gattc_clcb_dealloc() local
196 if (p_srcb->num_clcb) p_srcb->num_clcb--; in bta_gattc_clcb_dealloc()
201 if (p_srcb->num_clcb == 0) { in bta_gattc_clcb_dealloc()
202 p_srcb->connected = false; in bta_gattc_clcb_dealloc()
203 p_srcb->state = BTA_GATTC_SERV_IDLE; in bta_gattc_clcb_dealloc()
[all …]
Dbta_gattc_cache.cc64 const Descriptor* bta_gattc_get_descriptor_srcb(tBTA_GATTC_SERV* p_srcb,
66 const Characteristic* bta_gattc_get_characteristic_srcb(tBTA_GATTC_SERV* p_srcb,
186 p_clcb->p_srcb->state = BTA_GATTC_SERV_SAVE; in bta_gattc_explore_srvc_finished()
189 bta_gattc_cache_write(p_clcb->p_srcb->server_bda, in bta_gattc_explore_srvc_finished()
190 p_clcb->p_srcb->gatt_database.Serialize()); in bta_gattc_explore_srvc_finished()
193 bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_SUCCESS); in bta_gattc_explore_srvc_finished()
403 for (const Service& service : p_clcb->p_srcb->gatt_database.Services()) { in bta_gattc_search_service()
422 const std::list<Service>* bta_gattc_get_services_srcb(tBTA_GATTC_SERV* p_srcb) { in bta_gattc_get_services_srcb() argument
423 if (!p_srcb || p_srcb->gatt_database.IsEmpty()) return NULL; in bta_gattc_get_services_srcb()
425 return &p_srcb->gatt_database.Services(); in bta_gattc_get_services_srcb()
[all …]
Dbta_gattc_act.cc110 void bta_gattc_reset_discover_st(tBTA_GATTC_SERV* p_srcb, tGATT_STATUS status);
462 VLOG(1) << __func__ << ": server cache state=" << +p_clcb->p_srcb->state; in bta_gattc_conn()
472 p_clcb->p_srcb->connected = true; in bta_gattc_conn()
474 if (p_clcb->p_srcb->mtu == 0) p_clcb->p_srcb->mtu = GATT_DEF_BLE_MTU_SIZE; in bta_gattc_conn()
477 if (p_clcb->p_srcb->gatt_database.IsEmpty() || in bta_gattc_conn()
478 p_clcb->p_srcb->state != BTA_GATTC_SERV_IDLE) { in bta_gattc_conn()
479 if (p_clcb->p_srcb->state == BTA_GATTC_SERV_IDLE) { in bta_gattc_conn()
480 p_clcb->p_srcb->state = BTA_GATTC_SERV_LOAD; in bta_gattc_conn()
481 if (bta_gattc_cache_load(p_clcb->p_srcb)) { in bta_gattc_conn()
482 p_clcb->p_srcb->state = BTA_GATTC_SERV_IDLE; in bta_gattc_conn()
[all …]
Dbta_gattc_int.h249 tBTA_GATTC_SERV* p_srcb; /* server cache CB */ member
404 tBTA_GATTC_SERV* p_srcb,
411 extern void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV* p_srcb,
433 tBTA_GATTC_SERV* p_srcb, uint16_t handle);
435 tBTA_GATTC_SERV* p_srcb, uint16_t handle);
446 extern void bta_gattc_reset_discover_st(tBTA_GATTC_SERV* p_srcb,
454 extern bool bta_gattc_cache_load(tBTA_GATTC_SERV* p_srcb);