/system/bt/stack/gatt/ |
H A D | gatt_api.cc | 187 * Parameter gatt_if : application if 196 uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, argument 200 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); 210 LOG(ERROR) << "Inavlid gatt_if=" << +gatt_if; 330 elem.gatt_if = gatt_if; 381 * Parameter gatt_if : application interface 389 bool GATTS_DeleteService(tGATT_IF gatt_if, tBT_UUID* p_svc_uuid, argument 393 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); 473 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 535 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 585 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 635 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 684 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 740 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 818 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 872 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 1002 tGATT_IF gatt_if = 0; local 1048 GATT_Deregister(tGATT_IF gatt_if) argument 1049 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; local 1115 GATT_StartIf(tGATT_IF gatt_if) argument 1123 VLOG(1) << __func__ << " gatt_if=" << gatt_if; local 1155 GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, tBT_TRANSPORT transport, bool opportunistic) argument 1162 GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct, tBT_TRANSPORT transport, bool opportunistic, uint8_t initiating_phys) argument 1206 GATT_CancelConnect(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct) argument 1208 LOG(INFO) << __func__ << ": gatt_if=" << +gatt_if; local 1268 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 1298 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 1330 GATT_GetConnIdIfConnected(tGATT_IF gatt_if, const RawAddress& bd_addr, uint16_t* p_conn_id, tBT_TRANSPORT transport) argument [all...] |
H A D | gatt_utils.cc | 826 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 827 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); 965 tGATT_REG* gatt_get_regcb(tGATT_IF gatt_if) { argument 966 uint8_t ii = (uint8_t)gatt_if; 970 LOG(WARNING) << "gatt_if out of range = " << +ii; 974 // Index for cl_rcb is always 1 less than gatt_if. 978 LOG(WARNING) << "gatt_if found but not in use."; 1022 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 1025 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); 1183 void gatt_sr_update_cback_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, boo argument 1208 gatt_sr_update_prep_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, bool is_inc, bool is_reset_first) argument 1236 gatt_cancel_open(tGATT_IF gatt_if, const RawAddress& bda) argument 1479 gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV* p_dev, tGATT_IF gatt_if) argument 1508 tGATT_IF gatt_if = p_reg->gatt_if; local 1531 gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, const RawAddress& bd_addr) argument 1555 tGATT_IF gatt_if = p_reg->gatt_if; local 1569 gatt_deregister_bgdev_list(tGATT_IF gatt_if) argument 1609 gatt_update_auto_connect_dev(tGATT_IF gatt_if, bool add, const RawAddress& bd_addr) argument 1619 LOG(ERROR) << __func__ << " gatt_if is not registered " << +gatt_if; local [all...] |
H A D | gatt_attr.cc | 49 static void gatt_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, 85 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, 239 static void gatt_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, argument 279 gatt_cb.gatt_if = GATT_Register(&app_uuid, &gatt_profile_cback); 280 GATT_StartIf(gatt_cb.gatt_if); 295 GATTS_AddService(gatt_cb.gatt_if, service, 301 LOG(ERROR) << StringPrintf("gatt_profile_db_init: gatt_if=%d", 302 gatt_cb.gatt_if); 448 if (GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &p_clcb->conn_id, 453 GATT_Connect(gatt_cb.gatt_if, remote_bd [all...] |
H A D | gatt_int.h | 35 #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:__anon911 262 tGATT_IF gatt_if; /* this service is belong to which application */ member in struct:__anon914 335 std::unordered_set<tGATT_IF> gatt_if; member in struct:__anon918 366 tGATT_IF gatt_if; member in struct:__anon920 410 extern void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, 477 extern bool gatt_update_auto_connect_dev(tGATT_IF gatt_if, bool add, 479 extern bool gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV* p_dev, tGATT_IF gatt_if); 480 extern bool gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, [all...] |
H A D | gatt_main.cc | 266 bool gatt_update_app_hold_link_status(tGATT_IF gatt_if, tGATT_TCB* p_tcb, argument 272 auto ret = holders.insert(gatt_if); 274 VLOG(1) << "added gatt_if=" << +gatt_if; 276 VLOG(1) << "attempt to add already existing gatt_if=" << +gatt_if; 282 if (!holders.erase(gatt_if)) { 283 VLOG(1) << "attempt to remove nonexisting gatt_if=" << +gatt_if; 287 VLOG(1) << "removed gatt_if 302 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 D | gatt_sr.cc | 226 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, argument 232 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; local 234 gatt_sr_update_cback_cnt(tcb, gatt_if, false, false); 242 gatt_sr_update_prep_cnt(tcb, gatt_if, true, false); 289 tGATT_IF gatt_if; local 324 gatt_if = (tGATT_IF)(i + 1); 325 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_if); 424 gatt_sr_process_app_rsp(tcb, it->gatt_if, trans_id, op_code, 767 GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_cb.cl_rcb[i].gatt_if); [all...] |
H A D | gatt_db.cc | 749 uint16_t conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if); 753 gatt_sr_update_cback_cnt(tcb, el.gatt_if, true, true);
|
H A D | gatt_auth.cc | 218 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if,
|
H A D | gatt_cl.cc | 656 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, p_reg->gatt_if);
|
/system/bt/bta/gatt/ |
H A D | bta_gatts_act.cc | 45 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bda, 53 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 56 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 158 GATT_Deregister(p_cb->rcb[i].gatt_if); 214 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if = 216 if (!p_cb->rcb[first_unuse].gatt_if) { 222 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; 273 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { 278 GATT_Deregister(p_cb->rcb[i].gatt_if); 308 cb_data.srvc_oper.server_if = p_rcb->gatt_if; 375 tGATT_IF gatt_if; local 496 tGATT_IF gatt_if; local 536 tGATT_IF gatt_if; local 578 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 618 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 636 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 666 tGATT_IF gatt_if; local [all...] |
H A D | bta_gatts_utils.cc | 92 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg; 113 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i;
|
H A D | bta_gattc_act.cc | 65 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 68 static void bta_gattc_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 557 tBTA_GATTC_IF gatt_if; local 565 GATT_GetConnectionInfor(p_data->hdr.layer_specific, &gatt_if, p_clcb->bda, 1540 tBTA_GATTC_IF gatt_if; local 1543 if (!GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { 1550 p_clrcb = bta_gattc_cl_get_regcb(gatt_if); 1577 p_clcb = bta_gattc_clcb_alloc(gatt_if, remote_bda, transport); 1692 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, argument 1695 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if); 1711 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 [all...] |
H A D | bta_gatts_int.h | 129 tBTA_GATTS_IF gatt_if; member in struct:__anon166
|
H A D | bta_gattc_utils.cc | 444 tBTA_GATTC_IF gatt_if; local 450 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { 451 p_clrcb = bta_gattc_cl_get_regcb(gatt_if);
|
/system/bt/stack/include/ |
H A D | gatt_api.h | 564 typedef void(tGATT_CONN_CBACK)(tGATT_IF gatt_if, const RawAddress& bda, 577 typedef void(tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, const RawAddress& bda); 580 typedef void(tGATT_PHY_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id, 585 typedef void(tGATT_CONN_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id, 711 extern uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, 720 * Parameter gatt_if : application interface 728 extern bool GATTS_DeleteService(tGATT_IF gatt_if, tBT_UUID* p_svc_uuid, 942 * Parameters gatt_if: applicaiton interface. 947 extern void GATT_Deregister(tGATT_IF gatt_if); 957 * Parameter gatt_if [all...] |
/system/bt/stack/srvc/ |
H A D | srvc_eng_int.h | 51 tGATT_IF gatt_if; member in struct:__anon1275
|
H A D | srvc_eng.cc | 32 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 413 srvc_eng_cb.gatt_if = GATT_Register(&app_uuid, &srvc_gatt_cback); 414 GATT_StartIf(srvc_eng_cb.gatt_if); 416 VLOG(1) << "Srvc_Init: gatt_if=" << +srvc_eng_cb.gatt_if;
|
H A D | srvc_dis.cc | 373 status = GATTS_AddService(srvc_eng_cb.gatt_if, service, 464 GATT_GetConnIdIfConnected(srvc_eng_cb.gatt_if, peer_bda, &conn_id, 471 return GATT_Connect(srvc_eng_cb.gatt_if, peer_bda, true, BT_TRANSPORT_LE,
|
H A D | srvc_battery.cc | 234 GATTS_AddService(srvc_eng_cb.gatt_if, service, i);
|
/system/bt/btif/src/ |
H A D | btif_gatt_test.cc | 47 tGATT_IF gatt_if; member in struct:__anon633 209 test_cb.gatt_if = GATT_Register(&app_uuid, &btif_test_callbacks); 210 GATT_StartIf(test_cb.gatt_if); 212 GATT_Deregister(test_cb.gatt_if); 213 test_cb.gatt_if = 0; 232 if (!GATT_Connect(test_cb.gatt_if, *params->bda1, true, BT_TRANSPORT_LE,
|
/system/bt/stack/gap/ |
H A D | gap_ble.cc | 75 tGATT_IF gatt_if; member in namespace:__anon896 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)) 403 gatt_if = GATT_Register(&app_uuid, &gap_cback); 405 GATT_StartIf(gatt_if); 438 GATTS_AddService(gatt_if, service, 572 if (!GATT_CancelConnect(gatt_if, peer_bda, true)) {
|
/system/bt/bta/hh/ |
H A D | bta_hh_le.cc | 325 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; 335 bta_hh_cb.gatt_if = client_id; 338 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; 357 return (bta_hh_cb.gatt_if == client_if); 370 void bta_hh_le_deregister(void) { BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); } 403 BTA_GATTC_Open(bta_hh_cb.gatt_if, remote_bda, true, BTA_GATT_TRANSPORT_LE, 699 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, 709 bta_hh_cb.gatt_if, p_dev_cb->addr, p_rpt->char_inst_id); 716 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, 726 bta_hh_cb.gatt_if, p_dev_c [all...] |
H A D | bta_hh_int.h | 289 tBTA_GATTC_IF gatt_if; member in struct:__anon209
|