/system/bt/bta/gatt/ |
D | bta_gatts_act.cc | 47 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); in bta_gatts_api_disable() 213 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if = in bta_gatts_register() 215 if (!p_cb->rcb[first_unuse].gatt_if) { in bta_gatts_register() 221 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register() 272 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister() 277 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_deregister() 307 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service() [all …]
|
D | bta_gatts_utils.cc | 71 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg; in bta_gatts_find_app_rcb_by_app_if() 92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i; in bta_gatts_find_app_rcb_idx_by_app_if()
|
D | bta_gattc_act.cc | 68 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, 461 tGATT_IF gatt_if; in bta_gattc_conn() local 468 GATT_GetConnectionInfor(p_data->hdr.layer_specific, &gatt_if, p_clcb->bda, in bta_gattc_conn() 1220 tGATT_IF gatt_if; in bta_gattc_process_indicate() local 1223 if (!GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_process_indicate() 1230 tBTA_GATTC_RCB* p_clrcb = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_process_indicate() 1259 p_clcb = bta_gattc_clcb_alloc(gatt_if, remote_bda, transport); in bta_gattc_process_indicate() 1343 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gattc_phy_update_cback() argument 1346 tBTA_GATTC_RCB* p_clreg = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_phy_update_cback() [all …]
|
D | bta_gattc_utils.cc | 369 tGATT_IF gatt_if; in bta_gattc_clear_notif_registration() local 375 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda, &transport)) { in bta_gattc_clear_notif_registration() 376 p_clrcb = bta_gattc_cl_get_regcb(gatt_if); in bta_gattc_clear_notif_registration()
|
D | bta_gatts_int.h | 130 tGATT_IF gatt_if; member
|
/system/bt/stack/gatt/ |
D | gatt_api.cc | 152 uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService() argument 156 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_AddService() 164 LOG(ERROR) << "Inavlid gatt_if=" << +gatt_if; in GATTS_AddService() 277 elem.gatt_if = gatt_if; in GATTS_AddService() 333 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, in GATTS_DeleteService() argument 337 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_DeleteService() 413 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication() local 415 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueIndication() 472 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueNotification() local 474 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in GATTS_HandleValueNotification() [all …]
|
D | gatt_main.cc | 199 tGATT_IF gatt_if) { in gatt_connect() argument 210 gatt_update_app_use_link_flag(gatt_if, p_tcb, true, true); in gatt_connect() 215 return connection_manager::direct_connect_add(gatt_if, rem_bda); in gatt_connect() 272 bool gatt_update_app_hold_link_status(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_hold_link_status() argument 278 auto ret = holders.insert(gatt_if); in gatt_update_app_hold_link_status() 280 VLOG(1) << "added gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status() 282 VLOG(1) << "attempt to add already existing gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status() 288 if (!holders.erase(gatt_if)) { in gatt_update_app_hold_link_status() 289 VLOG(1) << "attempt to remove nonexisting gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status() 293 VLOG(1) << "removed gatt_if=" << +gatt_if; in gatt_update_app_hold_link_status() [all …]
|
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, in gatt_profile_find_conn_id_by_bd_addr() 88 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr() 241 static void gatt_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, in gatt_connect_cback() argument 280 gatt_cb.gatt_if = GATT_Register(Uuid::From128BitBE(tmp), &gatt_profile_cback); in gatt_profile_db_init() 281 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init() 294 GATTS_AddService(gatt_cb.gatt_if, service, in gatt_profile_db_init() 300 VLOG(1) << __func__ << ": gatt_if=" << +gatt_cb.gatt_if; in gatt_profile_db_init() 439 if (GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &p_clcb->conn_id, in GATT_ConfigServiceChangeCCC() 444 GATT_Connect(gatt_cb.gatt_if, remote_bda, true, transport, true); in GATT_ConfigServiceChangeCCC()
|
D | gatt_int.h | 35 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) \ argument 36 ((uint16_t)((((uint8_t)(tcb_idx)) << 8) | ((uint8_t)(gatt_if)))) 193 tGATT_IF gatt_if; /* one based */ member 262 tGATT_IF gatt_if; /* this service is belong to which application */ member 361 tGATT_IF gatt_if; member 402 tGATT_IF gatt_if); 404 extern void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, 470 extern bool gatt_auto_connect_dev_remove(tGATT_IF gatt_if, 476 extern tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, 486 extern bool gatt_cancel_open(tGATT_IF gatt_if, const RawAddress& bda); [all …]
|
D | gatt_utils.cc | 710 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in gatt_sr_send_req_callback() local 711 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_sr_send_req_callback() 847 tGATT_REG* gatt_get_regcb(tGATT_IF gatt_if) { in gatt_get_regcb() argument 848 uint8_t ii = (uint8_t)gatt_if; in gatt_get_regcb() 904 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in gatt_clcb_alloc() local 907 tGATT_REG* p_reg = gatt_get_regcb(gatt_if); in gatt_clcb_alloc() 1065 void gatt_sr_update_cback_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, bool is_inc, in gatt_sr_update_cback_cnt() argument 1067 uint8_t idx = ((uint8_t)gatt_if) - 1; in gatt_sr_update_cback_cnt() 1090 void gatt_sr_update_prep_cnt(tGATT_TCB& tcb, tGATT_IF gatt_if, bool is_inc, in gatt_sr_update_prep_cnt() argument 1092 uint8_t idx = ((uint8_t)gatt_if) - 1; in gatt_sr_update_prep_cnt() [all …]
|
D | gatt_sr.cc | 229 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if, in gatt_sr_process_app_rsp() argument 235 VLOG(1) << __func__ << " gatt_if=" << +gatt_if; in gatt_sr_process_app_rsp() 237 gatt_sr_update_cback_cnt(tcb, gatt_if, false, false); in gatt_sr_process_app_rsp() 245 gatt_sr_update_prep_cnt(tcb, gatt_if, true, false); in gatt_sr_process_app_rsp() 292 tGATT_IF gatt_if; in gatt_process_exec_write_req() local 327 gatt_if = (tGATT_IF)(i + 1); in gatt_process_exec_write_req() 328 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_if); in gatt_process_exec_write_req() 427 gatt_sr_process_app_rsp(tcb, it->gatt_if, trans_id, op_code, in gatt_process_read_multi_req() 770 GATT_CREATE_CONN_ID(tcb.tcb_idx, gatt_cb.cl_rcb[i].gatt_if); in gatts_process_mtu_req() 916 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if); in gatts_process_write_req() [all …]
|
D | gatt_db.cc | 682 uint16_t conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, el.gatt_if); in gatts_send_app_read_request() 686 gatt_sr_update_cback_cnt(tcb, el.gatt_if, true, true); in gatts_send_app_read_request()
|
D | gatt_auth.cc | 220 (*gatt_cb.cl_rcb[i].app_cb.p_enc_cmpl_cb)(gatt_cb.cl_rcb[i].gatt_if, in gatt_notify_enc_cmpl()
|
D | gatt_cl.cc | 681 conn_id = GATT_CREATE_CONN_ID(tcb.tcb_idx, p_reg->gatt_if); in gatt_process_notification()
|
/system/bt/stack/include/ |
D | gatt_api.h | 558 typedef void(tGATT_CONN_CBACK)(tGATT_IF gatt_if, const RawAddress& bda, 571 typedef void(tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, const RawAddress& bda); 574 typedef void(tGATT_PHY_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id, 579 typedef void(tGATT_CONN_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id, 701 extern uint16_t GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, 718 extern bool GATTS_DeleteService(tGATT_IF gatt_if, bluetooth::Uuid* p_svc_uuid, 944 extern void GATT_Deregister(tGATT_IF gatt_if); 959 extern void GATT_StartIf(tGATT_IF gatt_if); 981 extern bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, 984 extern bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, [all …]
|
/system/bt/btif/src/ |
D | btif_gatt_test.cc | 48 tGATT_IF gatt_if; member 185 test_cb.gatt_if = GATT_Register(bluetooth::Uuid::From128BitBE(tmp), in btif_gattc_test_command_impl() 187 GATT_StartIf(test_cb.gatt_if); in btif_gattc_test_command_impl() 189 GATT_Deregister(test_cb.gatt_if); in btif_gattc_test_command_impl() 190 test_cb.gatt_if = 0; in btif_gattc_test_command_impl() 205 if (!GATT_Connect(test_cb.gatt_if, *params->bda1, true, BT_TRANSPORT_LE, in btif_gattc_test_command_impl()
|
/system/bt/stack/gap/ |
D | gap_ble.cc | 76 tGATT_IF gatt_if; variable 368 if (GATT_GetConnIdIfConnected(gatt_if, peer_bda, &p_clcb->conn_id, in accept_client_operation() 372 if (!GATT_Connect(gatt_if, p_clcb->bda, true, BT_TRANSPORT_LE, true)) in accept_client_operation() 404 gatt_if = GATT_Register(app_uuid, &gap_cback); in gap_attr_db_init() 406 GATT_StartIf(gatt_if); in gap_attr_db_init() 437 GATTS_AddService(gatt_if, service, in gap_attr_db_init() 571 if (!GATT_CancelConnect(gatt_if, peer_bda, true)) { in GAP_BleCancelReadPeerDevName()
|
/system/bt/stack/srvc/ |
D | srvc_eng.cc | 31 static void srvc_eng_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, 327 static void srvc_eng_connect_cback(UNUSED_ATTR tGATT_IF gatt_if, in srvc_eng_connect_cback() argument 405 srvc_eng_cb.gatt_if = GATT_Register(app_uuid, &srvc_gatt_cback); in srvc_eng_init() 406 GATT_StartIf(srvc_eng_cb.gatt_if); in srvc_eng_init() 408 VLOG(1) << "Srvc_Init: gatt_if=" << +srvc_eng_cb.gatt_if; in srvc_eng_init()
|
D | srvc_eng_int.h | 51 tGATT_IF gatt_if; member
|
D | srvc_dis.cc | 360 status = GATTS_AddService(srvc_eng_cb.gatt_if, service, in DIS_SrInit() 451 GATT_GetConnIdIfConnected(srvc_eng_cb.gatt_if, peer_bda, &conn_id, in DIS_ReadDISInfo() 458 return GATT_Connect(srvc_eng_cb.gatt_if, peer_bda, true, BT_TRANSPORT_LE, in DIS_ReadDISInfo()
|
/system/bt/bta/hh/ |
D | bta_hh_le.cc | 168 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable() 179 bta_hh_cb.gatt_if = client_id; in bta_hh_le_enable() 182 bta_hh_cb.gatt_if = BTA_GATTS_INVALID_IF; in bta_hh_le_enable() 205 return (bta_hh_cb.gatt_if == client_if); in bta_hh_le_is_hh_gatt_if() 218 void bta_hh_le_deregister(void) { BTA_GATTC_AppDeregister(bta_hh_cb.gatt_if); } in bta_hh_le_deregister() 280 BTA_GATTC_Open(bta_hh_cb.gatt_if, remote_bda, true, GATT_TRANSPORT_LE, false); in bta_hh_le_open_conn() 568 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif() 578 bta_hh_cb.gatt_if, p_dev_cb->addr, p_rpt->char_inst_id); in bta_hh_le_register_input_notif() 585 BTA_GATTC_RegisterForNotifications(bta_hh_cb.gatt_if, p_dev_cb->addr, in bta_hh_le_register_input_notif() 595 bta_hh_cb.gatt_if, p_dev_cb->addr, p_rpt->char_inst_id); in bta_hh_le_register_input_notif() [all …]
|
D | bta_hh_int.h | 289 tGATT_IF gatt_if; member
|
/system/bt/bta/hearing_aid/ |
D | hearing_aid.cc | 241 gatt_if(0), in HearingAidImpl() 274 instance->gatt_if = client_id; in HearingAidImpl() 315 BTA_GATTC_Open(gatt_if, address, true, GATT_TRANSPORT_LE, false); in Connect() 321 BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false); in AddToWhiteList() 336 BTA_GATTC_Open(gatt_if, dev_info.address, false, GATT_TRANSPORT_LE, in AddFromStorage() 918 BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false); in OnGapConnection() 933 gatt_if, address, hearingDevice->audio_status_handle); in OnGapConnection() 1444 BTA_GATTC_CancelOpen(gatt_if, address, true); in Disconnect() 1529 BTA_GATTC_AppDeregister(gatt_if); in CleanUp() 1540 uint8_t gatt_if; member in __anon6e38dbc00111::HearingAidImpl
|