Home
last modified time | relevance | path

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

/system/bt/bta/gatt/
Dbta_gattc_utils.cc150 p_clcb->p_srcb = bta_gattc_find_srcb(remote_bda); in bta_gattc_clcb_alloc()
151 if (p_clcb->p_srcb == NULL) in bta_gattc_clcb_alloc()
152 p_clcb->p_srcb = bta_gattc_srcb_alloc(remote_bda); in bta_gattc_clcb_alloc()
154 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL) { in bta_gattc_clcb_alloc()
155 p_clcb->p_srcb->num_clcb++; in bta_gattc_clcb_alloc()
203 tBTA_GATTC_SERV* p_srcb = p_clcb->p_srcb; in bta_gattc_clcb_dealloc() local
204 if (p_srcb->num_clcb) p_srcb->num_clcb--; in bta_gattc_clcb_dealloc()
209 if (p_srcb->num_clcb == 0) { in bta_gattc_clcb_dealloc()
210 p_srcb->connected = false; in bta_gattc_clcb_dealloc()
211 p_srcb->state = BTA_GATTC_SERV_IDLE; in bta_gattc_clcb_dealloc()
[all …]
Dbta_gattc_act.cc109 void bta_gattc_reset_discover_st(tBTA_GATTC_SERV* p_srcb, tGATT_STATUS status);
469 VLOG(1) << __func__ << ": server cache state=" << +p_clcb->p_srcb->state; in bta_gattc_conn()
479 p_clcb->p_srcb->connected = true; in bta_gattc_conn()
481 if (p_clcb->p_srcb->mtu == 0) p_clcb->p_srcb->mtu = GATT_DEF_BLE_MTU_SIZE; in bta_gattc_conn()
484 if (p_clcb->p_srcb->gatt_database.IsEmpty() || in bta_gattc_conn()
485 p_clcb->p_srcb->state != BTA_GATTC_SERV_IDLE) { in bta_gattc_conn()
486 if (p_clcb->p_srcb->state == BTA_GATTC_SERV_IDLE) { in bta_gattc_conn()
487 p_clcb->p_srcb->state = BTA_GATTC_SERV_LOAD; in bta_gattc_conn()
488 if (bta_gattc_cache_load(p_clcb->p_srcb)) { in bta_gattc_conn()
489 p_clcb->p_srcb->state = BTA_GATTC_SERV_IDLE; in bta_gattc_conn()
[all …]
Dbta_gattc_cache.cc56 const Descriptor* bta_gattc_get_descriptor_srcb(tBTA_GATTC_SERV* p_srcb,
58 const Characteristic* bta_gattc_get_characteristic_srcb(tBTA_GATTC_SERV* p_srcb,
227 p_clcb->p_srcb->state = BTA_GATTC_SERV_SAVE; in bta_gattc_explore_srvc_finished()
230 bta_gattc_cache_write(p_clcb->p_srcb->server_bda, in bta_gattc_explore_srvc_finished()
231 p_clcb->p_srcb->gatt_database.Serialize()); in bta_gattc_explore_srvc_finished()
242 bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_SUCCESS); in bta_gattc_explore_srvc_finished()
501 for (const Service& service : p_clcb->p_srcb->gatt_database.Services()) { in bta_gattc_search_service()
520 const std::list<Service>* bta_gattc_get_services_srcb(tBTA_GATTC_SERV* p_srcb) { in bta_gattc_get_services_srcb() argument
521 if (!p_srcb || p_srcb->gatt_database.IsEmpty()) return NULL; in bta_gattc_get_services_srcb()
523 return &p_srcb->gatt_database.Services(); in bta_gattc_get_services_srcb()
[all …]
Dbta_gattc_int.h252 tBTA_GATTC_SERV* p_srcb; /* server cache CB */ member
428 tBTA_GATTC_SERV* p_srcb,
435 extern void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV* p_srcb,
458 tBTA_GATTC_SERV* p_srcb, uint16_t handle);
460 tBTA_GATTC_SERV* p_srcb, uint16_t handle);
471 extern void bta_gattc_reset_discover_st(tBTA_GATTC_SERV* p_srcb,
479 extern bool bta_gattc_cache_load(tBTA_GATTC_SERV* p_srcb);
/system/bt/bta/test/
Dbta_gatt_test.cc134 .p_srcb = &service_control_block,
282 client_channel_control_block.p_srcb->srvc_hdl_chg = 1; in TEST_F()