Home
last modified time | relevance | path

Searched refs:tGATT_IF (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_gatt_api.h215 std::function<tGATT_STATUS(tGATT_IF gatt_if, btgatt_db_element_t* service,
217 body{[](tGATT_IF gatt_if, btgatt_db_element_t* service, int count) {
220 tGATT_STATUS operator()(tGATT_IF gatt_if, btgatt_db_element_t* service, in operator()
232 std::function<bool(tGATT_IF gatt_if, Uuid* p_svc_uuid, uint16_t svc_inst)>
233 body{[](tGATT_IF gatt_if, Uuid* p_svc_uuid, uint16_t svc_inst) {
236 bool operator()(tGATT_IF gatt_if, Uuid* p_svc_uuid, uint16_t svc_inst) { in operator()
316 std::function<bool(tGATT_IF gatt_if, const RawAddress& bd_addr,
318 body{[](tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct) {
321 bool operator()(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct) { in operator()
333 std::function<bool(tGATT_IF gatt_if, const RawAddress& bd_addr,
[all …]
Dmock_stack_gatt_api.cc101 tGATT_IF GATT_Register::return_value = 0;
160 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService()
165 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, in GATTS_DeleteService()
198 bool GATT_CancelConnect(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_CancelConnect()
204 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in GATT_Connect()
212 void GATT_Deregister(tGATT_IF gatt_if) { in GATT_Deregister()
220 bool GATT_GetConnIdIfConnected(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_GetConnIdIfConnected()
226 bool GATT_GetConnectionInfor(uint16_t conn_id, tGATT_IF* p_gatt_if, in GATT_GetConnectionInfor()
232 tGATT_IF GATT_Register(const Uuid& app_uuid128, const std::string& name, in GATT_Register()
244 void GATT_StartIf(tGATT_IF gatt_if) { in GATT_StartIf()
[all …]
Dmock_bta_gattc_api.cc68 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF client_if, in BTA_GATTC_DeregisterForNotifications()
74 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications()
80 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister()
87 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen()
111 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
115 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
120 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
Dmock_bta_gatts_api.cc45 void BTA_GATTS_AppDeregister(tGATT_IF server_if) { in BTA_GATTS_AppDeregister()
52 void BTA_GATTS_CancelOpen(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_CancelOpen()
57 void BTA_GATTS_AddService(tGATT_IF server_if, in BTA_GATTS_AddService()
70 void BTA_GATTS_Open(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_Open()
81 void bta_gatts_add_service_impl(tGATT_IF server_if, in bta_gatts_add_service_impl()
Dmock_bta_vc_device.cc37 tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, in EnqueueInitialRequests()
63 bool VolumeControlDevice::subscribe_for_notifications(tGATT_IF gatt_if, in subscribe_for_notifications()
80 void VolumeControlDevice::Disconnect(tGATT_IF gatt_if) { in Disconnect()
84 tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, in EnqueueRemainingRequests()
Dmock_stack_gatt_main.cc49 tGATT_IF gatt_if) { in gatt_connect()
57 bool gatt_update_app_hold_link_status(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_hold_link_status()
115 void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb, in gatt_update_app_use_link_flag()
Dmock_bta_hh_utils.h189 std::function<bool(tGATT_IF client_if)> body{
190 [this](tGATT_IF client_if) { return return_value; }};
191 bool operator()(tGATT_IF client_if) { return body(client_if); }; in operator()
/packages/modules/Bluetooth/system/bta/include/
Dbta_gatt_api.h135 tGATT_IF client_if;
176 tGATT_IF client_if;
185 tGATT_IF client_if;
207 tGATT_IF client_if;
213 tGATT_IF client_if;
218 tGATT_IF server_if;
226 tGATT_IF server_if;
240 tGATT_IF server_if;
332 tGATT_IF server_if;
338 tGATT_IF server_if;
[all …]
/packages/modules/Bluetooth/system/bta/test/common/
Dbta_gatt_api_mock.h32 virtual void AppDeregister(tGATT_IF client_if) = 0;
33 virtual void Open(tGATT_IF client_if, const RawAddress& remote_bda,
36 virtual void Open(tGATT_IF client_if, const RawAddress& remote_bda,
38 virtual void CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda,
49 virtual tGATT_STATUS RegisterForNotifications(tGATT_IF client_if,
52 virtual tGATT_STATUS DeregisterForNotifications(tGATT_IF client_if,
64 MOCK_METHOD((void), AppDeregister, (tGATT_IF client_if), (override));
66 (tGATT_IF client_if, const RawAddress& remote_bda,
71 (tGATT_IF client_if, const RawAddress& remote_bda,
74 (tGATT_IF client_if, const RawAddress& remote_bda,
[all …]
Dbta_gatt_api_mock.cc36 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister()
41 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
49 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
55 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen()
94 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications()
102 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF client_if, in BTA_GATTC_DeregisterForNotifications()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_int.h76 tGATT_IF server_if;
83 tGATT_IF server_if;
111 tGATT_IF server_if;
119 tGATT_IF server_if;
142 tGATT_IF gatt_if;
190 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if);
192 tGATT_IF server_if);
Dbta_gatts_act.cc45 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,
59 static void bta_gatts_subrate_chg_cback(tGATT_IF gatt_if, uint16_t conn_id,
365 tGATT_IF gatt_if; in bta_gatts_indicate_handle()
493 tGATT_IF gatt_if; in bta_gatts_close()
537 tGATT_IF gatt_if; in bta_gatts_send_request_cback()
579 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bdaddr, in bta_gatts_conn_cback()
616 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gatts_phy_update_cback()
634 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gatts_conn_update_cback()
[all …]
Dbta_gattc_int.h91 tGATT_IF client_if;
102 tGATT_IF client_if;
177 tGATT_IF client_if;
251 tGATT_IF client_if; /* client interface with BTE stack for this application */
407 tBTA_GATTC_CLCB* bta_gattc_clcb_alloc(tGATT_IF client_if,
412 tBTA_GATTC_CLCB* bta_gattc_find_alloc_clcb(tGATT_IF client_if,
441 bool bta_gattc_mark_bg_conn(tGATT_IF client_if, const RawAddress& remote_bda,
443 bool bta_gattc_check_bg_conn(tGATT_IF client_if, const RawAddress& remote_bda,
Dbta_gatts_api.cc113 void BTA_GATTS_AppDeregister(tGATT_IF server_if) { in BTA_GATTS_AppDeregister()
123 void bta_gatts_add_service_impl(tGATT_IF server_if, in bta_gatts_add_service_impl()
176 void BTA_GATTS_AddService(tGATT_IF server_if, in BTA_GATTS_AddService()
313 void BTA_GATTS_Open(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_Open()
345 void BTA_GATTS_CancelOpen(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_CancelOpen()
Dbta_gattc_api.cc94 static void app_deregister_impl(tGATT_IF client_if) { in app_deregister_impl()
115 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister()
136 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
143 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
167 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open()
189 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen()
671 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications()
734 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF client_if, in BTA_GATTC_DeregisterForNotifications()
Dbta_gattc_act.cc57 static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bda,
66 static void bta_gattc_enc_cmpl_cback(tGATT_IF gattc_if, const RawAddress& bda);
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,
74 static void bta_gattc_subrate_chg_cback(tGATT_IF gatt_if, uint16_t conn_id,
325 static void bta_gattc_process_enc_cmpl(tGATT_IF client_if, in bta_gattc_process_enc_cmpl()
506 tGATT_IF gatt_if; in bta_gattc_conn()
1274 tGATT_IF client_if = p_clreg->client_if; in bta_gattc_deregister_cmpl()
1296 static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr, in bta_gattc_conn_cback()
1329 static void bta_gattc_enc_cmpl_cback(tGATT_IF gattc_if, const RawAddress& bda) { in bta_gattc_enc_cmpl_cback()
[all …]
Dbta_gatts_utils.cc64 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if) { in bta_gatts_find_app_rcb_by_app_if()
87 tGATT_IF server_if) { in bta_gatts_find_app_rcb_idx_by_app_if()
Dbta_gattc_utils.cc134 tBTA_GATTC_CLCB* bta_gattc_clcb_alloc(tGATT_IF client_if, in bta_gattc_clcb_alloc()
180 tBTA_GATTC_CLCB* bta_gattc_find_alloc_clcb(tGATT_IF client_if, in bta_gattc_find_alloc_clcb()
512 tGATT_IF gatt_if; in bta_gattc_clear_notif_registration()
549 bool bta_gattc_mark_bg_conn(tGATT_IF client_if, in bta_gattc_mark_bg_conn()
608 bool bta_gattc_check_bg_conn(tGATT_IF client_if, const RawAddress& remote_bda, in bta_gattc_check_bg_conn()
/packages/modules/Bluetooth/system/stack/include/
Dgatt_api.h736 typedef void(tGATT_CONN_CBACK)(tGATT_IF gatt_if, const RawAddress& bda,
749 typedef void(tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, const RawAddress& bda);
752 typedef void(tGATT_PHY_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id,
757 typedef void(tGATT_CONN_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id,
762 typedef void(tGATT_SUBRATE_CHG_CB)(tGATT_IF gatt_if, uint16_t conn_id,
874 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service,
891 bool GATTS_DeleteService(tGATT_IF gatt_if, bluetooth::Uuid* p_svc_uuid,
1154 tGATT_IF GATT_Register(const bluetooth::Uuid& p_app_uuid128,
1169 void GATT_Deregister(tGATT_IF gatt_if);
1184 void GATT_StartIf(tGATT_IF gatt_if);
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_int.h44 #define GATT_GET_GATT_IF(conn_id) ((tGATT_IF)((uint8_t)(conn_id)))
202 tGATT_IF gatt_if{0}; /* one based */
300 tGATT_IF gatt_if; /* this service is belong to which application */
319 std::unordered_set<tGATT_IF> app_hold_link;
418 tGATT_IF gatt_if;
481 tGATT_IF gatt_if);
484 uint8_t initiating_phys, tGATT_IF gatt_if);
486 void gatt_update_app_use_link_flag(tGATT_IF gatt_if, tGATT_TCB* p_tcb,
564 bool gatt_auto_connect_dev_remove(tGATT_IF gatt_if, const RawAddress& bd_addr);
569 tGATT_STATUS gatt_sr_process_app_rsp(tGATT_TCB& tcb, tGATT_IF gatt_if,
[all …]
Dgatt_api.cc165 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService()
364 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, in GATTS_DeleteService()
445 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication()
542 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueNotification()
639 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_SendRsp()
689 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ConfigureMTU()
876 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Discover()
944 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Read()
1053 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Write()
1102 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ExecuteWrite()
[all …]
/packages/modules/Bluetooth/system/bta/vc/
Ddevices.h115 void Disconnect(tGATT_IF gatt_if);
117 void DeregisterNotifications(tGATT_IF gatt_if);
142 bool EnqueueInitialRequests(tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb,
144 void EnqueueRemainingRequests(tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb,
161 bool subscribe_for_notifications(tGATT_IF gatt_if, uint16_t handle,
216 void Disconnect(tGATT_IF gatt_if) { in Disconnect()
Ddevice.cc32 void VolumeControlDevice::DeregisterNotifications(tGATT_IF gatt_if) { in DeregisterNotifications()
48 void VolumeControlDevice::Disconnect(tGATT_IF gatt_if) { in Disconnect()
229 bool VolumeControlDevice::subscribe_for_notifications(tGATT_IF gatt_if, in subscribe_for_notifications()
258 tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, in EnqueueInitialRequests()
293 tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, in EnqueueRemainingRequests()
/packages/modules/Bluetooth/system/stack/test/gatt/
Dstack_gatt_test.cc39 return sizeof(bluetooth::Uuid) + sizeof(tGATT_CBACK) + sizeof(tGATT_IF) + in actual_sizeof_tGATT_REG()
49 void tGATT_CONN_CBACK(tGATT_IF gatt_if, const RawAddress& bda, uint16_t conn_id, in tGATT_CONN_CBACK()
55 void tGATT_ENC_CMPL_CB(tGATT_IF gatt_if, const RawAddress& bda) {} in tGATT_ENC_CMPL_CB()
56 void tGATT_PHY_UPDATE_CB(tGATT_IF gatt_if, uint16_t conn_id, uint8_t tx_phy, in tGATT_PHY_UPDATE_CB()
58 void tGATT_CONN_UPDATE_CB(tGATT_IF gatt_if, uint16_t conn_id, uint16_t interval, in tGATT_CONN_UPDATE_CB()
125 tGATT_IF apps[GATT_MAX_APPS - 1]; in TEST_F()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_gatt_test.cc49 tGATT_IF gatt_if;
70 static void btif_test_connect_cback(tGATT_IF, const RawAddress&, in btif_test_connect_cback() argument

12