Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_cache.cc67 const Descriptor* bta_gattc_get_descriptor_srcb(tBTA_GATTC_SERV* p_srcb,
69 const Characteristic* bta_gattc_get_characteristic_srcb(tBTA_GATTC_SERV* p_srcb,
308 p_clcb->p_srcb->state = BTA_GATTC_SERV_SAVE; in bta_gattc_explore_srvc_finished()
311 Octet16 hash = p_clcb->p_srcb->gatt_database.Hash(); in bta_gattc_explore_srvc_finished()
312 bool success = bta_gattc_hash_write(hash, p_clcb->p_srcb->gatt_database); in bta_gattc_explore_srvc_finished()
317 p_clcb->p_srcb->server_bda.ToRedactedStringForLogging()); in bta_gattc_explore_srvc_finished()
318 bta_gattc_cache_link(p_clcb->p_srcb->server_bda, hash); in bta_gattc_explore_srvc_finished()
326 bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_SUCCESS); in bta_gattc_explore_srvc_finished()
596 for (const Service& service : p_clcb->p_srcb->gatt_database.Services()) { in bta_gattc_search_service()
614 const std::list<Service>* bta_gattc_get_services_srcb(tBTA_GATTC_SERV* p_srcb) { in bta_gattc_get_services_srcb() argument
[all …]
Dbta_gattc_act.cc120 void bta_gattc_reset_discover_st(tBTA_GATTC_SERV* p_srcb, tGATT_STATUS status);
523 log::verbose("server cache state={}", p_clcb->p_srcb->state); in bta_gattc_conn()
536 p_clcb->p_srcb->connected = true; in bta_gattc_conn()
538 if (p_clcb->p_srcb->mtu == 0) p_clcb->p_srcb->mtu = GATT_DEF_BLE_MTU_SIZE; in bta_gattc_conn()
551 if (p_clcb->p_srcb->gatt_database.IsEmpty() || in bta_gattc_conn()
552 p_clcb->p_srcb->state != BTA_GATTC_SERV_IDLE) { in bta_gattc_conn()
553 if (p_clcb->p_srcb->state == BTA_GATTC_SERV_IDLE) { in bta_gattc_conn()
554 p_clcb->p_srcb->state = BTA_GATTC_SERV_LOAD; in bta_gattc_conn()
563 ? bta_gattc_cache_load(p_clcb->p_srcb->server_bda) in bta_gattc_conn()
570 if (!db.IsEmpty()) p_clcb->p_srcb->gatt_database = db; in bta_gattc_conn()
[all …]
Dbta_gattc_utils.cc154 p_clcb->p_srcb = bta_gattc_find_srcb(remote_bda); in bta_gattc_clcb_alloc()
155 if (p_clcb->p_srcb == NULL) in bta_gattc_clcb_alloc()
156 p_clcb->p_srcb = bta_gattc_srcb_alloc(remote_bda); in bta_gattc_clcb_alloc()
158 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL) { in bta_gattc_clcb_alloc()
159 p_clcb->p_srcb->num_clcb++; in bta_gattc_clcb_alloc()
201 void bta_gattc_server_disconnected(tBTA_GATTC_SERV* p_srcb) { in bta_gattc_server_disconnected() argument
202 if (p_srcb && p_srcb->connected) { in bta_gattc_server_disconnected()
203 p_srcb->connected = false; in bta_gattc_server_disconnected()
204 p_srcb->state = BTA_GATTC_SERV_IDLE; in bta_gattc_server_disconnected()
205 p_srcb->mtu = 0; in bta_gattc_server_disconnected()
[all …]
Dbta_gattc_int.h289 tBTA_GATTC_SERV* p_srcb; /* server cache CB */ member
435 void bta_gattc_server_disconnected(tBTA_GATTC_SERV* p_srcb);
463 tBTA_GATTC_SERV* p_srcb,
470 void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV* p_srcb,
488 tBTA_GATTC_SERV* p_srcb, uint16_t handle);
490 tBTA_GATTC_SERV* p_srcb, uint16_t handle);
511 void bta_gattc_reset_discover_st(tBTA_GATTC_SERV* p_srcb, tGATT_STATUS status);
/packages/modules/Bluetooth/system/bta/test/
Dbta_gatt_test.cc138 .p_srcb = &service_control_block,
286 client_channel_control_block.p_srcb->srvc_hdl_chg = 1; in TEST_F()