Searched refs:gatt_if (Results 1 - 24 of 24) sorted by relevance

/system/bt/stack/gatt/
H A Dgatt_api.cc143 * Parameter gatt_if : application if
152 uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, argument
156 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
164 LOG(ERROR) << "Inavlid gatt_if=" << +gatt_if;
278 elem.gatt_if = gatt_if;
326 * Parameter gatt_if : application interface
334 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, argument
338 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
418 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
480 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
530 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
580 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
628 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
684 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
762 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
816 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
946 tGATT_IF gatt_if = 0; local
989 GATT_Deregister(tGATT_IF gatt_if) argument
990 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; local
1056 GATT_StartIf(tGATT_IF gatt_if) argument
1064 VLOG(1) << __func__ << " gatt_if=" << gatt_if; local
1096 GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, tBT_TRANSPORT transport, bool opportunistic) argument
1103 GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, tBT_TRANSPORT transport, bool opportunistic, uint8_t initiating_phys) argument
1147 GATT_CancelConnect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct) argument
1149 LOG(INFO) << __func__ << ": gatt_if=" << +gatt_if; local
1209 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
1239 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
1271 GATT_GetConnIdIfConnected(tGATT_IF gatt_if, const RawAddress& bd_addr, uint16_t* p_conn_id, tBT_TRANSPORT transport) argument
[all...]
H A Dgatt_utils.cc699 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
700 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
836 tGATT_REG* gatt_get_regcb(tGATT_IF gatt_if) { argument
837 uint8_t ii = (uint8_t)gatt_if;
841 LOG(WARNING) << "gatt_if out of range = " << +ii;
845 // Index for cl_rcb is always 1 less than gatt_if.
849 LOG(WARNING) << "gatt_if found but not in use.";
893 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local
896 tGATT_REG* p_reg = gatt_get_regcb(gatt_if);
1054 void gatt_sr_update_cback_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, boo argument
1079 gatt_sr_update_prep_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, bool is_inc, bool is_reset_first) argument
1107 gatt_cancel_open(tGATT_IF gatt_if, const RawAddress& bda) argument
1312 gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV* p_dev, tGATT_IF gatt_if) argument
1341 tGATT_IF gatt_if = p_reg->gatt_if; local
1364 gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, const RawAddress& bd_addr) argument
1388 tGATT_IF gatt_if = p_reg->gatt_if; local
1402 gatt_deregister_bgdev_list(tGATT_IF gatt_if) argument
1442 gatt_update_auto_connect_dev(tGATT_IF gatt_if, bool add, const RawAddress& bd_addr) argument
1450 LOG(ERROR) << __func__ << " gatt_if is not registered " << +gatt_if; local
[all...]
H A Dgatt_attr.cc49 static void gatt_connect_cback(UNUSED_ATTR tGATT_IF gatt_if,
85 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id,
88 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id,
241 static void gatt_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, argument
280 gatt_cb.gatt_if = GATT_Register(Uuid::From128BitBE(tmp), &gatt_profile_cback);
281 GATT_StartIf(gatt_cb.gatt_if);
294 GATTS_AddService(gatt_cb.gatt_if, service,
300 VLOG(1) << __func__ << ": gatt_if=" << +gatt_cb.gatt_if;
445 if (GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bd
[all...]
H A Dgatt_int.h35 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) \
36 ((uint16_t)((((uint8_t)(tcb_idx)) << 8) | ((uint8_t)(gatt_if))))
193 tGATT_IF gatt_if; /* one based */ member in struct:__anon1006
262 tGATT_IF gatt_if; /* this service is belong to which application */ member in struct:__anon1009
335 std::unordered_set<tGATT_IF> gatt_if; member in struct:__anon1013
366 tGATT_IF gatt_if; member in struct:__anon1015
410 extern void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb,
476 extern bool gatt_update_auto_connect_dev(tGATT_IF gatt_if, bool add,
478 extern bool gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV* p_dev, tGATT_IF gatt_if);
479 extern bool gatt_remove_bg_dev_for_app(tGATT_IF gatt_if,
[all...]
H A Dgatt_main.cc267 bool gatt_update_app_hold_link_status(tGATT_IF gatt_if, tGATT_TCB* p_tcb, argument
273 auto ret = holders.insert(gatt_if);
275 VLOG(1) << "added gatt_if=" << +gatt_if;
277 VLOG(1) << "attempt to add already existing gatt_if=" << +gatt_if;
283 if (!holders.erase(gatt_if)) {
284 VLOG(1) << "attempt to remove nonexisting gatt_if=" << +gatt_if;
288 VLOG(1) << "removed gatt_if
303 gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, bool is_add, bool check_acl_link) argument
[all...]
H A Dgatt_sr.cc228 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, argument
234 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; local
236 gatt_sr_update_cback_cnt(tcb, gatt_if, false, false);
244 gatt_sr_update_prep_cnt(tcb, gatt_if, true, false);
291 tGATT_IF gatt_if; local
326 gatt_if = (tGATT_IF)(i + 1);
327 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_if);
426 gatt_sr_process_app_rsp(tcb, it->gatt_if, trans_id, op_code,
769 GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_cb.cl_rcb[i].gatt_if);
[all...]
H A Dgatt_db.cc682 uint16_t conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if);
686 gatt_sr_update_cback_cnt(tcb, el.gatt_if, true, true);
H A Dgatt_auth.cc218 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if,
H A Dgatt_cl.cc678 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, p_reg->gatt_if);
/system/bt/bta/gatt/
H A Dbta_gatts_act.cc47 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bda,
55 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
58 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
160 GATT_Deregister(p_cb->rcb[i].gatt_if);
213 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if =
215 if (!p_cb->rcb[first_unuse].gatt_if) {
221 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if;
272 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) {
277 GATT_Deregister(p_cb->rcb[i].gatt_if);
307 cb_data.srvc_oper.server_if = p_rcb->gatt_if;
373 tGATT_IF gatt_if; local
501 tGATT_IF gatt_if; local
543 tGATT_IF gatt_if; local
585 bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bdaddr, uint16_t conn_id, bool connected, tGATT_DISCONN_REASON reason, tGATT_TRANSPORT transport) argument
620 LOG(ERROR) << __func__ << " server_if=" << +gatt_if << " not found"; local
624 bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, uint8_t tx_phy, uint8_t rx_phy, uint8_t status) argument
629 LOG(ERROR) << __func__ << ": server_if=" << +gatt_if << " not found"; local
642 bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, uint16_t interval, uint16_t latency, uint16_t timeout, uint8_t status) argument
647 LOG(ERROR) << __func__ << ": server_if=" << +gatt_if << " not found"; local
672 tGATT_IF gatt_if; local
[all...]
H A Dbta_gatts_utils.cc71 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg;
92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i;
H A Dbta_gattc_act.cc68 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
71 static void bta_gattc_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
460 tGATT_IF gatt_if; local
467 GATT_GetConnectionInfor(p_data->hdr.layer_specific, &gatt_if, p_clcb->bda,
1213 tGATT_IF gatt_if; local
1216 if (!GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) {
1223 tBTA_GATTC_RCB* p_clrcb = bta_gattc_cl_get_regcb(gatt_if);
1252 p_clcb = bta_gattc_clcb_alloc(gatt_if, remote_bda, transport);
1336 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, argument
1339 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if);
1342 LOG(ERROR) << __func__ << ": client_if=" << +gatt_if << " not found"; local
1355 bta_gattc_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, uint16_t interval, uint16_t latency, uint16_t timeout, uint8_t status) argument
1361 LOG(ERROR) << __func__ << ": client_if=" << gatt_if << " not found"; local
[all...]
H A Dbta_gatts_int.h130 tGATT_IF gatt_if; member in struct:__anon134
H A Dbta_gattc_utils.cc369 tGATT_IF gatt_if; local
375 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) {
376 p_clrcb = bta_gattc_cl_get_regcb(gatt_if);
/system/bt/stack/include/
H A Dgatt_api.h566 typedef void(tGATT_CONN_CBACK)(tGATT_IF gatt_if, const RawAddress& bda,
579 typedef void(tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, const RawAddress& bda);
582 typedef void(tGATT_PHY_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id,
587 typedef void(tGATT_CONN_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id,
709 extern uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service,
718 * Parameter gatt_if : application interface
726 extern bool GATTS_DeleteService(tGATT_IF gatt_if, bluetooth::Uuid* p_svc_uuid,
941 * Parameters gatt_if: applicaiton interface.
946 extern void GATT_Deregister(tGATT_IF gatt_if);
956 * Parameter gatt_if
[all...]
/system/bt/stack/srvc/
H A Dsrvc_eng_int.h51 tGATT_IF gatt_if; member in struct:__anon1353
H A Dsrvc_eng.cc32 static void srvc_eng_connect_cback(UNUSED_ATTR tGATT_IF gatt_if,
336 static void srvc_eng_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, argument
414 srvc_eng_cb.gatt_if = GATT_Register(app_uuid, &srvc_gatt_cback);
415 GATT_StartIf(srvc_eng_cb.gatt_if);
417 VLOG(1) << "Srvc_Init: gatt_if=" << +srvc_eng_cb.gatt_if;
H A Dsrvc_dis.cc360 status = GATTS_AddService(srvc_eng_cb.gatt_if, service,
451 GATT_GetConnIdIfConnected(srvc_eng_cb.gatt_if, peer_bda, &conn_id,
458 return GATT_Connect(srvc_eng_cb.gatt_if, peer_bda, true, BT_TRANSPORT_LE,
H A Dsrvc_battery.cc233 GATTS_AddService(srvc_eng_cb.gatt_if, service, i);
/system/bt/btif/src/
H A Dbtif_gatt_test.cc48 tGATT_IF gatt_if; member in struct:__anon567
185 test_cb.gatt_if = GATT_Register(bluetooth::Uuid::From128BitBE(tmp),
187 GATT_StartIf(test_cb.gatt_if);
189 GATT_Deregister(test_cb.gatt_if);
190 test_cb.gatt_if = 0;
205 if (!GATT_Connect(test_cb.gatt_if, *params->bda1, true, BT_TRANSPORT_LE,
/system/bt/stack/gap/
H A Dgap_ble.cc76 tGATT_IF gatt_if; member in namespace:__anon988
368 if (GATT_GetConnIdIfConnected(gatt_if, peer_bda, &p_clcb->conn_id,
372 if (!GATT_Connect(gatt_if, p_clcb->bda, true, BT_TRANSPORT_LE, true))
404 gatt_if = GATT_Register(app_uuid, &gap_cback);
406 GATT_StartIf(gatt_if);
437 GATTS_AddService(gatt_if, service,
571 if (!GATT_CancelConnect(gatt_if, peer_bda, true)) {
/system/bt/bta/hearing_aid/
H A Dhearing_aid.cc252 : gatt_if(0),
266 instance->gatt_if = client_id;
275 BTA_GATTC_Open(gatt_if, address, true, GATT_TRANSPORT_LE, false);
296 BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false);
639 BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false);
1010 BTA_GATTC_CancelOpen(gatt_if, address, true);
1023 BTA_GATTC_CancelOpen(gatt_if, address, false);
1062 BTA_GATTC_AppDeregister(gatt_if);
1075 uint8_t gatt_if; member in class:__anon148::HearingAidImpl
/system/bt/bta/hh/
H A Dbta_hh_le.cc168 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF;
179 bta_hh_cb.gatt_if = client_id;
182 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF;
205 return (bta_hh_cb.gatt_if == client_if);
218 void bta_hh_le_deregister(void) { BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); }
280 BTA_GATTC_Open(bta_hh_cb.gatt_if, remote_bda, true, GATT_TRANSPORT_LE, false);
568 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr,
578 bta_hh_cb.gatt_if, p_dev_cb->addr, p_rpt->char_inst_id);
585 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr,
595 bta_hh_cb.gatt_if, p_dev_c
[all...]
H A Dbta_hh_int.h289 tGATT_IF gatt_if; member in struct:__anon179

Completed in 247 milliseconds