/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_gatt_api.h | 197 std::function<tGATT_STATUS(tGATT_IF gatt_if, btgatt_db_element_t* service, 199 body{[](tGATT_IF /* gatt_if */, btgatt_db_element_t* /* service */, 201 tGATT_STATUS operator()(tGATT_IF gatt_if, btgatt_db_element_t* service, in operator() 213 std::function<bool(tGATT_IF gatt_if, Uuid* p_svc_uuid, uint16_t svc_inst)> 214 body{[](tGATT_IF /* gatt_if */, Uuid* /* p_svc_uuid */, 216 bool operator()(tGATT_IF gatt_if, Uuid* p_svc_uuid, uint16_t svc_inst) { in operator() 299 std::function<bool(tGATT_IF gatt_if, const RawAddress& bd_addr, 301 body{[](tGATT_IF /* gatt_if */, const RawAddress& /* bd_addr */, 303 bool operator()(tGATT_IF gatt_if, const RawAddress& bd_addr, bool is_direct) { in operator() 315 std::function<bool(tGATT_IF gatt_if, const RawAddress& bd_addr, [all …]
|
D | mock_bta_gattc_api.cc | 58 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF /* client_if */, in BTA_GATTC_DeregisterForNotifications() argument 64 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF /* client_if */, in BTA_GATTC_RegisterForNotifications() argument 70 void BTA_GATTC_AppDeregister(tGATT_IF /* client_if */) { in BTA_GATTC_AppDeregister() argument 78 void BTA_GATTC_CancelOpen(tGATT_IF /* client_if */, in BTA_GATTC_CancelOpen() argument 104 void BTA_GATTC_Open(tGATT_IF /* client_if */, in BTA_GATTC_Open() argument 110 void BTA_GATTC_Open(tGATT_IF /* client_if */, in BTA_GATTC_Open() argument 117 void BTA_GATTC_Open(tGATT_IF /* client_if */, in BTA_GATTC_Open() argument
|
D | mock_bta_gatts_api.cc | 36 void BTA_GATTS_AppDeregister(tGATT_IF /* server_if */) { in BTA_GATTS_AppDeregister() argument 44 void BTA_GATTS_CancelOpen(tGATT_IF /* server_if */, in BTA_GATTS_CancelOpen() argument 50 void BTA_GATTS_AddService(tGATT_IF /* server_if */, in BTA_GATTS_AddService() argument 64 void BTA_GATTS_Open(tGATT_IF /* server_if */, in BTA_GATTS_Open() argument 77 void bta_gatts_add_service_impl(tGATT_IF /* server_if */, in bta_gatts_add_service_impl() argument
|
D | mock_stack_gatt_api.cc | 100 tGATT_IF GATT_Register::return_value = 0; 159 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService() 164 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, in GATTS_DeleteService() 197 bool GATT_CancelConnect(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_CancelConnect() 203 bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in GATT_Connect() 211 void GATT_Deregister(tGATT_IF gatt_if) { in GATT_Deregister() 219 bool GATT_GetConnIdIfConnected(tGATT_IF gatt_if, const RawAddress& bd_addr, in GATT_GetConnIdIfConnected() 225 bool GATT_GetConnectionInfor(uint16_t conn_id, tGATT_IF* p_gatt_if, in GATT_GetConnectionInfor() 231 tGATT_IF GATT_Register(const Uuid& app_uuid128, const std::string& name, in GATT_Register() 243 void GATT_StartIf(tGATT_IF gatt_if) { in GATT_StartIf() [all …]
|
D | mock_bta_vc_device.cc | 34 tGATT_IF /* gatt_if */, GATT_READ_OP_CB /* chrc_read_cb */, in EnqueueInitialRequests() argument 61 tGATT_IF /* gatt_if */, uint16_t /* handle */, uint16_t /* ccc_handle */, in subscribe_for_notifications() argument 75 void VolumeControlDevice::Disconnect(tGATT_IF /* gatt_if */) { in Disconnect() argument 79 tGATT_IF /* gatt_if */, GATT_READ_OP_CB /* chrc_read_cb */, in EnqueueRemainingRequests() argument
|
D | mock_bta_hh_utils.h | 181 std::function<bool(tGATT_IF client_if)> body{ 182 [this](tGATT_IF /* client_if */) { return return_value; }}; 183 bool operator()(tGATT_IF client_if) { return body(client_if); }; in operator()
|
D | mock_stack_gatt_main.cc | 38 uint8_t /* initiating_phys */, tGATT_IF /* gatt_if */) { in gatt_connect() argument 100 void gatt_update_app_use_link_flag(tGATT_IF /* gatt_if */, in gatt_update_app_use_link_flag() argument
|
/packages/modules/Bluetooth/system/bta/test/common/ |
D | bta_gatt_api_mock.h | 32 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 …]
|
D | bta_gatt_api_mock.cc | 40 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister() 45 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() 53 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() 59 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen() 103 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications() 111 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF client_if, in BTA_GATTC_DeregisterForNotifications()
|
/packages/modules/Bluetooth/system/bta/include/ |
D | bta_gatt_api.h | 131 tGATT_IF client_if; 172 tGATT_IF client_if; 181 tGATT_IF client_if; 203 tGATT_IF client_if; 209 tGATT_IF client_if; 214 tGATT_IF server_if; 222 tGATT_IF server_if; 236 tGATT_IF server_if; 355 tGATT_IF server_if; 361 tGATT_IF server_if; [all …]
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | bta_gatts_int.h | 76 tGATT_IF server_if; 83 tGATT_IF server_if; 111 tGATT_IF server_if; 120 tGATT_IF server_if; 143 tGATT_IF gatt_if; 191 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if); 193 tGATT_IF server_if);
|
D | bta_gatts_act.cc | 49 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bda, 57 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 60 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 63 static void bta_gatts_subrate_chg_cback(tGATT_IF gatt_if, uint16_t conn_id, 367 tGATT_IF gatt_if; in bta_gatts_indicate_handle() 503 tGATT_IF gatt_if; in bta_gatts_close() 547 tGATT_IF gatt_if; in bta_gatts_send_request_cback() 588 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bdaddr, in bta_gatts_conn_cback() 625 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gatts_phy_update_cback() 643 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gatts_conn_update_cback() [all …]
|
D | bta_gatts_api.cc | 115 void BTA_GATTS_AppDeregister(tGATT_IF server_if) { in BTA_GATTS_AppDeregister() 125 void bta_gatts_add_service_impl(tGATT_IF server_if, in bta_gatts_add_service_impl() 178 void BTA_GATTS_AddService(tGATT_IF server_if, in BTA_GATTS_AddService() 315 void BTA_GATTS_Open(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_Open() 349 void BTA_GATTS_CancelOpen(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_CancelOpen()
|
D | bta_gattc_int.h | 105 tGATT_IF client_if; 116 tGATT_IF client_if; 205 tGATT_IF client_if; 275 tGATT_IF client_if; /* client interface with BTE stack for this application */ 431 tBTA_GATTC_CLCB* bta_gattc_clcb_alloc(tGATT_IF client_if, 436 tBTA_GATTC_CLCB* bta_gattc_find_alloc_clcb(tGATT_IF client_if, 465 bool bta_gattc_mark_bg_conn(tGATT_IF client_if, const RawAddress& remote_bda, 467 bool bta_gattc_check_bg_conn(tGATT_IF client_if, const RawAddress& remote_bda,
|
D | bta_gattc_api.cc | 97 static void app_deregister_impl(tGATT_IF client_if) { in app_deregister_impl() 118 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister() 139 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() 147 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() 171 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() 193 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen() 670 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications() 733 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF client_if, in BTA_GATTC_DeregisterForNotifications()
|
D | bta_gatts_utils.cc | 65 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if) { in bta_gatts_find_app_rcb_by_app_if() 88 tGATT_IF server_if) { in bta_gatts_find_app_rcb_idx_by_app_if()
|
D | bta_gattc_act.cc | 58 static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bda, 67 static void bta_gattc_enc_cmpl_cback(tGATT_IF gattc_if, const RawAddress& bda); 69 static void bta_gattc_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 72 static void bta_gattc_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, 75 static void bta_gattc_subrate_chg_cback(tGATT_IF gatt_if, uint16_t conn_id, 331 static void bta_gattc_process_enc_cmpl(tGATT_IF client_if, in bta_gattc_process_enc_cmpl() 522 tGATT_IF gatt_if; in bta_gattc_conn() 1377 tGATT_IF client_if = p_clreg->client_if; in bta_gattc_deregister_cmpl() 1399 static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr, in bta_gattc_conn_cback() 1430 static void bta_gattc_enc_cmpl_cback(tGATT_IF gattc_if, const RawAddress& bda) { in bta_gattc_enc_cmpl_cback() [all …]
|
/packages/modules/Bluetooth/system/stack/include/ |
D | gatt_api.h | 717 typedef void(tGATT_CONN_CBACK)(tGATT_IF gatt_if, const RawAddress& bda, 730 typedef void(tGATT_ENC_CMPL_CB)(tGATT_IF gatt_if, const RawAddress& bda); 733 typedef void(tGATT_PHY_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id, 738 typedef void(tGATT_CONN_UPDATE_CB)(tGATT_IF gatt_if, uint16_t conn_id, 743 typedef void(tGATT_SUBRATE_CHG_CB)(tGATT_IF gatt_if, uint16_t conn_id, 855 [[nodiscard]] tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, 873 [[nodiscard]] bool GATTS_DeleteService(tGATT_IF gatt_if, 1147 [[nodiscard]] tGATT_IF GATT_Register(const bluetooth::Uuid& p_app_uuid128, 1162 void GATT_Deregister(tGATT_IF gatt_if); 1177 void GATT_StartIf(tGATT_IF gatt_if); [all …]
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_int.h | 43 #define GATT_GET_GATT_IF(conn_id) ((tGATT_IF)((uint8_t)(conn_id))) 195 tGATT_IF gatt_if{0}; /* one based */ 289 tGATT_IF gatt_if; /* this service is belong to which application */ 308 std::unordered_set<tGATT_IF> app_hold_link; 412 tGATT_IF gatt_if; 475 tGATT_IF gatt_if); 478 uint8_t initiating_phys, tGATT_IF gatt_if); 480 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 …]
|
D | gatt_api.cc | 169 tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in GATTS_AddService() 366 bool GATTS_DeleteService(tGATT_IF gatt_if, Uuid* p_svc_uuid, in GATTS_DeleteService() 448 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueIndication() 545 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_HandleValueNotification() 642 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTS_SendRsp() 690 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ConfigureMTU() 873 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Discover() 939 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Read() 1046 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_Write() 1094 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); in GATTC_ExecuteWrite() [all …]
|
/packages/modules/Bluetooth/system/bta/vc/ |
D | devices.h | 116 void Disconnect(tGATT_IF gatt_if); 118 void DeregisterNotifications(tGATT_IF gatt_if); 143 bool EnqueueInitialRequests(tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, 145 void EnqueueRemainingRequests(tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, 162 bool subscribe_for_notifications(tGATT_IF gatt_if, uint16_t handle, 217 void Disconnect(tGATT_IF gatt_if) { in Disconnect()
|
D | device.cc | 36 void VolumeControlDevice::DeregisterNotifications(tGATT_IF gatt_if) { in DeregisterNotifications() 52 void VolumeControlDevice::Disconnect(tGATT_IF gatt_if) { in Disconnect() 231 bool VolumeControlDevice::subscribe_for_notifications(tGATT_IF gatt_if, in subscribe_for_notifications() 260 tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, in EnqueueInitialRequests() 295 tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb, in EnqueueRemainingRequests()
|
/packages/modules/Bluetooth/system/stack/test/gatt/ |
D | stack_gatt_test.cc | 72 return sizeof(bluetooth::Uuid) + sizeof(tGATT_CBACK) + sizeof(tGATT_IF) + in actual_sizeof_tGATT_REG() 82 void tGATT_CONN_CBACK(tGATT_IF gatt_if, const RawAddress& bda, uint16_t conn_id, in tGATT_CONN_CBACK() 88 void tGATT_ENC_CMPL_CB(tGATT_IF gatt_if, const RawAddress& bda) {} in tGATT_ENC_CMPL_CB() 89 void tGATT_PHY_UPDATE_CB(tGATT_IF gatt_if, uint16_t conn_id, uint8_t tx_phy, in tGATT_PHY_UPDATE_CB() 91 void tGATT_CONN_UPDATE_CB(tGATT_IF gatt_if, uint16_t conn_id, uint16_t interval, in tGATT_CONN_UPDATE_CB() 159 tGATT_IF apps[GATT_MAX_APPS - 1]; in TEST_F()
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_gatt_client.h | 31 void (*BTA_GATTC_CancelOpen)(tGATT_IF client_if, const RawAddress& remote_bda, 42 void (*BTA_GATTC_Open)(tGATT_IF client_if, const RawAddress& remote_bda,
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_test_fixtures.h | 35 constexpr tGATT_IF kGattRegisteredIf = 5; 68 bool eatt_support) -> tGATT_IF { return kGattRegisteredIf; }; in SetUp()
|