Home
last modified time | relevance | path

Searched refs:srvc_cb (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_utils.cc47 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb()
48 p_cb->srvc_cb[i].in_use = true; in bta_gatts_alloc_srvc_cb()
49 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb()
110 if (p_cb->srvc_cb[i].in_use && p_cb->srvc_cb[i].service_id == service_id) { in bta_gatts_find_srvc_cb_by_srvc_id()
112 return &p_cb->srvc_cb[i]; in bta_gatts_find_srvc_cb_by_srvc_id()
132 (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
133 p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
134 attr_id >= p_cb->srvc_cb[i].service_id && in bta_gatts_find_srvc_cb_by_attr_id()
135 attr_id < p_cb->srvc_cb[i + 1].service_id) || in bta_gatts_find_srvc_cb_by_attr_id()
137 (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
[all …]
Dbta_gatts_api.cc147 memset(&bta_gatts_cb.srvc_cb[srvc_idx], 0, sizeof(tBTA_GATTS_SRVC_CB)); in bta_gatts_add_service_impl()
153 bta_gatts_cb.srvc_cb[srvc_idx].service_uuid = service[0].uuid; in bta_gatts_add_service_impl()
156 bta_gatts_cb.srvc_cb[srvc_idx].service_id = service[0].attribute_handle; in bta_gatts_add_service_impl()
157 bta_gatts_cb.srvc_cb[srvc_idx].idx = srvc_idx; in bta_gatts_add_service_impl()
Dbta_gatts_int.h159 tBTA_GATTS_SRVC_CB srvc_cb[BTA_GATTS_MAX_SRVC_NUM]; member