• Home
  • Raw
  • Download

Lines Matching refs:p_clcb

136   tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id);  in bta_gattc_discover_pri_service()  local
137 if (!p_clcb) return GATT_ERROR; in bta_gattc_discover_pri_service()
139 if (p_clcb->transport == BTA_TRANSPORT_LE) { in bta_gattc_discover_pri_service()
151 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_explore_next_service() local
152 if (!p_clcb) { in bta_gattc_explore_next_service()
171 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_explore_srvc_finished() local
172 if (!p_clcb) { in bta_gattc_explore_srvc_finished()
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()
322 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_disc_res_cback() local
325 if (!p_srvc_cb || !p_clcb || p_clcb->state != BTA_GATTC_DISCOVER_ST) return; in bta_gattc_disc_res_cback()
357 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_disc_cmpl_cback() local
359 if (p_clcb && (status != GATT_SUCCESS || p_clcb->status != GATT_SUCCESS)) { in bta_gattc_disc_cmpl_cback()
360 if (status == GATT_SUCCESS) p_clcb->status = status; in bta_gattc_disc_cmpl_cback()
361 bta_gattc_sm_execute(p_clcb, BTA_GATTC_DISCOVER_CMPL_EVT, NULL); in bta_gattc_disc_cmpl_cback()
402 void bta_gattc_search_service(tBTA_GATTC_CLCB* p_clcb, Uuid* p_uuid) { in bta_gattc_search_service() argument
403 for (const Service& service : p_clcb->p_srcb->gatt_database.Services()) { in bta_gattc_search_service()
410 if (!p_clcb->p_rcb->p_cback) continue; in bta_gattc_search_service()
414 cb_data.srvc_res.conn_id = p_clcb->bta_conn_id; in bta_gattc_search_service()
418 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_SEARCH_RES_EVT, &cb_data); in bta_gattc_search_service()
429 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_get_services() local
431 if (p_clcb == NULL) return NULL; in bta_gattc_get_services()
433 tBTA_GATTC_SERV* p_srcb = p_clcb->p_srcb; in bta_gattc_get_services()
469 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_get_characteristic() local
471 if (p_clcb == NULL) return NULL; in bta_gattc_get_characteristic()
473 tBTA_GATTC_SERV* p_srcb = p_clcb->p_srcb; in bta_gattc_get_characteristic()
496 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_get_descriptor() local
498 if (p_clcb == NULL) return NULL; in bta_gattc_get_descriptor()
500 tBTA_GATTC_SERV* p_srcb = p_clcb->p_srcb; in bta_gattc_get_descriptor()
522 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_get_owning_characteristic() local
523 if (!p_clcb) return NULL; in bta_gattc_get_owning_characteristic()
525 return bta_gattc_get_owning_characteristic_srcb(p_clcb->p_srcb, handle); in bta_gattc_get_owning_characteristic()
677 tBTA_GATTC_CLCB* p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); in bta_gattc_get_gatt_db() local
680 if (p_clcb == NULL) { in bta_gattc_get_gatt_db()
685 if (p_clcb->state != BTA_GATTC_CONN_ST) { in bta_gattc_get_gatt_db()
686 LOG(ERROR) << "server cache not available, CLCB state=" << +p_clcb->state; in bta_gattc_get_gatt_db()
690 if (!p_clcb->p_srcb || p_clcb->p_srcb->pending_discovery.InProgress() || in bta_gattc_get_gatt_db()
691 p_clcb->p_srcb->gatt_database.IsEmpty()) { in bta_gattc_get_gatt_db()
696 bta_gattc_get_gatt_db_impl(p_clcb->p_srcb, start_handle, end_handle, db, in bta_gattc_get_gatt_db()