Home
last modified time | relevance | path

Searched refs:server_if (Results 1 – 21 of 21) sorted by relevance

/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_api.cc114 void BTA_GATTS_AppDeregister(tGATT_IF server_if) { in BTA_GATTS_AppDeregister() argument
118 p_buf->server_if = server_if; in BTA_GATTS_AppDeregister()
123 static void bta_gatts_add_service_impl(tGATT_IF server_if, std::vector<btgatt_db_element_t> service, in bta_gatts_add_service_impl() argument
125 uint8_t rcb_idx = bta_gatts_find_app_rcb_idx_by_app_if(&bta_gatts_cb, server_if); in bta_gatts_add_service_impl()
130 cb.Run(GATT_ERROR, server_if, std::move(service)); in bta_gatts_add_service_impl()
136 cb.Run(GATT_ERROR, server_if, std::move(service)); in bta_gatts_add_service_impl()
140 tGATT_STATUS status = GATTS_AddService(server_if, service.data(), service.size()); in bta_gatts_add_service_impl()
144 cb.Run(GATT_ERROR, server_if, std::move(service)); in bta_gatts_add_service_impl()
154 cb.Run(GATT_SUCCESS, server_if, std::move(service)); in bta_gatts_add_service_impl()
173 void BTA_GATTS_AddService(tGATT_IF server_if, std::vector<btgatt_db_element_t> service, in BTA_GATTS_AddService() argument
[all …]
Dbta_gatts_act.cc190 cb_data.reg_oper.server_if = BTA_GATTS_INVALID_IF; in bta_gatts_register()
198 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if = GATT_Register( in bta_gatts_register()
206 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register()
230 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) { in bta_gatts_start_if()
231 GATT_StartIf(p_msg->int_start_if.server_if); in bta_gatts_start_if()
233 log::error("Unable to start app.: Unknown interface={}", p_msg->int_start_if.server_if); in bta_gatts_start_if()
251 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if; in bta_gatts_deregister()
255 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister()
289 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service()
318 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_stop_service()
[all …]
Dbta_gatts_int.h76 tGATT_IF server_if; member
83 tGATT_IF server_if; member
111 tGATT_IF server_if; member
120 tGATT_IF server_if; member
189 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if);
190 uint8_t bta_gatts_find_app_rcb_idx_by_app_if(tBTA_GATTS_CB* p_cb, tGATT_IF server_if);
Dbta_gatts_utils.cc65 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if) { in bta_gatts_find_app_rcb_by_app_if() argument
70 if (p_reg->in_use && p_reg->gatt_if == server_if) { in bta_gatts_find_app_rcb_by_app_if()
88 uint8_t bta_gatts_find_app_rcb_idx_by_app_if(tBTA_GATTS_CB* p_cb, tGATT_IF server_if) { in bta_gatts_find_app_rcb_idx_by_app_if() argument
92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) { in bta_gatts_find_app_rcb_idx_by_app_if()
Dbta_gattc_act.cc1686 cb_data.phy_update.server_if = gatt_if; in bta_gattc_phy_update_cback()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_gatt_server.cc153 p_data->reg_oper.server_if, p_data->reg_oper.uuid); in btapp_gatts_handle_cback()
164 p_data->conn.server_if, true, p_data->conn.remote_bda); in btapp_gatts_handle_cback()
170 p_data->conn.server_if, false, p_data->conn.remote_bda); in btapp_gatts_handle_cback()
176 p_data->srvc_oper.server_if, p_data->srvc_oper.service_id); in btapp_gatts_handle_cback()
181 p_data->srvc_oper.server_if, p_data->srvc_oper.service_id); in btapp_gatts_handle_cback()
290 static bt_status_t btif_gatts_unregister_app(int server_if) { in btif_gatts_unregister_app() argument
292 return do_in_jni_thread(Bind(&BTA_GATTS_AppDeregister, server_if)); in btif_gatts_unregister_app()
295 static void btif_gatts_open_impl_use_address_type(int server_if, const RawAddress& address, in btif_gatts_open_impl_use_address_type() argument
325 BTA_GATTS_Open(server_if, address, addr_type, is_direct, transport); in btif_gatts_open_impl_use_address_type()
328 static bt_status_t btif_gatts_open(int server_if, const RawAddress& bd_addr, uint8_t addr_type, in btif_gatts_open() argument
[all …]
/packages/modules/Bluetooth/system/include/hardware/
Dbt_gatt_server.h45 typedef void (*register_server_callback)(int status, int server_if,
50 typedef void (*connection_callback)(int conn_id, int server_if, int connected,
54 typedef void (*service_added_callback)(int status, int server_if,
58 typedef void (*service_stopped_callback)(int status, int server_if, int srvc_handle);
61 typedef void (*service_deleted_callback)(int status, int server_if, int srvc_handle);
143 bt_status_t (*unregister_server)(int server_if);
146 bt_status_t (*connect)(int server_if, const RawAddress& bd_addr, uint8_t addr_type,
150 bt_status_t (*disconnect)(int server_if, const RawAddress& bd_addr, int conn_id);
153 bt_status_t (*add_service)(int server_if, const btgatt_db_element_t* service,
157 bt_status_t (*stop_service)(int server_if, int service_handle);
[all …]
/packages/modules/Bluetooth/system/test/suite/gatt/
Dgatt_unittest.cc74 int server_if = server_interface_id(); in TEST_F() local
92 gatt_server_interface()->add_service(server_if, service.data(), service.size()); in TEST_F()
95 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if added."; in TEST_F()
99 gatt_server_interface()->stop_service(server_if, service_handle()); in TEST_F()
103 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if stopped."; in TEST_F()
106 gatt_server_interface()->delete_service(server_if, service_handle()); in TEST_F()
110 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if deleted."; in TEST_F()
113 gatt_server_interface()->unregister_server(server_if); in TEST_F()
Dgatt_test.cc36 void RegisterServerCallback(int status, int server_if, const bluetooth::Uuid& /*uuid*/) { in RegisterServerCallback() argument
38 instance->server_interface_id_ = server_if; in RegisterServerCallback()
42 void ServiceAddedCallback(int status, int server_if, const btgatt_db_element_t* service, in ServiceAddedCallback() argument
45 instance->server_interface_id_ = server_if; in ServiceAddedCallback()
50 void ServiceStoppedCallback(int status, int server_if, int srvc_handle) { in ServiceStoppedCallback() argument
52 instance->server_interface_id_ = server_if; in ServiceStoppedCallback()
57 void ServiceDeletedCallback(int status, int server_if, int srvc_handle) { in ServiceDeletedCallback() argument
59 instance->server_interface_id_ = server_if; in ServiceDeletedCallback()
Dgatt_test.h67 friend void RegisterServerCallback(int status, int server_if, const bluetooth::Uuid& uuid);
68 friend void ServiceAddedCallback(int status, int server_if, const btgatt_db_element_t* service,
70 friend void ServiceStoppedCallback(int status, int server_if, int srvc_handle);
71 friend void ServiceDeletedCallback(int status, int server_if, int srvc_handle);
/packages/modules/Bluetooth/system/bta/include/
Dbta_gatt_api.h213 tGATT_IF server_if; member
221 tGATT_IF server_if; member
239 tGATT_IF server_if; member
356 tGATT_IF server_if; member
362 tGATT_IF server_if; member
371 tGATT_IF server_if; member
377 tGATT_IF server_if; member
394 tGATT_IF server_if; member
402 tGATT_IF server_if; member
411 tGATT_IF server_if; member
[all …]
/packages/modules/Bluetooth/system/bta/test/common/
Dbta_gatt_api_mock.cc131 void BTA_GATTS_AppDeregister(tGATT_IF server_if) { in BTA_GATTS_AppDeregister() argument
133 gatt_server_interface->AppDeregister(server_if); in BTA_GATTS_AppDeregister()
140 void BTA_GATTS_CancelOpen(tGATT_IF server_if, const RawAddress& remote_bda, bool is_direct) { in BTA_GATTS_CancelOpen() argument
142 gatt_server_interface->CancelOpen(server_if, remote_bda, is_direct); in BTA_GATTS_CancelOpen()
148 void BTA_GATTS_AddService(tGATT_IF server_if, std::vector<btgatt_db_element_t> service, in BTA_GATTS_AddService() argument
151 gatt_server_interface->AddService(server_if, service, cb); in BTA_GATTS_AddService()
162 void BTA_GATTS_Open(tGATT_IF server_if, const RawAddress& remote_bda, tBLE_ADDR_TYPE addr_type, in BTA_GATTS_Open() argument
165 gatt_server_interface->Open(server_if, remote_bda, addr_type, is_direct, transport); in BTA_GATTS_Open()
Dbta_gatt_api_mock.h113 virtual void AppDeregister(tGATT_IF server_if) = 0;
137 MOCK_METHOD((void), AppDeregister, (tGATT_IF server_if), (override));
139 (tGATT_IF server_if, const RawAddress& remote_bda, tBLE_ADDR_TYPE type,
143 (tGATT_IF server_if, const RawAddress& remote_bda, bool is_direct));
146 (tGATT_IF server_if, std::vector<btgatt_db_element_t> service,
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/
Dgatt_shim.cc35 void ServerReadPhyCallback(int server_if, RawAddress addr, uint8_t tx_phy, uint8_t rx_phy, in ServerReadPhyCallback() argument
37 bluetooth::topshim::rust::server_read_phy_callback(server_if, addr, tx_phy, rx_phy, status); in ServerReadPhyCallback()
51 int GattServerIntf::server_read_phy(int server_if, RawAddress addr) { in server_read_phy() argument
53 base::Bind(&internal::ServerReadPhyCallback, server_if, addr)); in server_read_phy()
Dgatt_shim.h46 int server_read_phy(int server_if, RawAddress bt_addr);
/packages/modules/Bluetooth/system/bta/gmap/
Dgmap_server.cc190 server_if_ = p_data->reg_oper.server_if; in OnGattServerRegister()
219 base::BindRepeating([](tGATT_STATUS status, int server_if, in OnGattServerRegister()
221 OnServiceAdded(status, server_if, service); in OnGattServerRegister()
225 void GmapServer::OnServiceAdded(tGATT_STATUS status, int server_if, in OnServiceAdded() argument
227 log::info("status: {}, server_if: {}", gatt_status_text(status), server_if); in OnServiceAdded()
Dgmap_server_test.cc71 uint8_t server_if = 10; in TEST_F() local
73 gatts_cb_data.reg_oper.server_if = server_if; in TEST_F()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dgatt.rs120 server_if: i32, in server_read_phy()
130 server_if: i32, in server_read_phy_callback()
1429 pub fn unregister_server(&self, server_if: i32) -> BtStatus { in unregister_server()
1430 BtStatus::from(ccall!(self, unregister_server, server_if)) in unregister_server()
1436 server_if: i32, in connect()
1442 BtStatus::from(ccall!(self, connect, server_if, addr, addr_type, is_direct, transport)) in connect()
1446 pub fn disconnect(&self, server_if: i32, addr: &RawAddress, conn_id: i32) -> BtStatus { in disconnect()
1447 BtStatus::from(ccall!(self, disconnect, server_if, addr, conn_id)) in disconnect()
1451 pub fn add_service(&self, server_if: i32, service: &[BtGattDbElement]) -> BtStatus { in add_service()
1453 BtStatus::from(ccall!(self, add_service, server_if, service_ptr.into(), service.len())) in add_service()
[all …]
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_gatt.cpp577 static void btgatts_register_app_cb(int status, int server_if, const Uuid& uuid) { in btgatts_register_app_cb() argument
583 bluetooth::gatt::open_server(server_if); in btgatts_register_app_cb()
589 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onServerRegistered, status, server_if, in btgatts_register_app_cb()
593 static void btgatts_connection_cb(int conn_id, int server_if, int connected, in btgatts_connection_cb() argument
603 conn_id, server_if); in btgatts_connection_cb()
606 static void btgatts_service_added_cb(int status, int server_if, const btgatt_db_element_t* service, in btgatts_service_added_cb() argument
618 bluetooth::gatt::add_service(server_if, std::move(service_records)); in btgatts_service_added_cb()
635 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onServiceAdded, status, server_if, in btgatts_service_added_cb()
639 static void btgatts_service_stopped_cb(int status, int server_if, int srvc_handle) { in btgatts_service_stopped_cb() argument
640 bluetooth::gatt::remove_service(server_if, srvc_handle); in btgatts_service_stopped_cb()
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Dgmap_server.h82 static void OnServiceAdded(tGATT_STATUS status, int server_if,
/packages/modules/Bluetooth/system/bta/ras/
Dras_server.cc296 server_if_ = p_data->reg_oper.server_if; in OnGattServerRegister()
378 base::BindRepeating([](tGATT_STATUS status, int server_if, in OnGattServerRegister()
381 instance->OnServiceAdded(status, server_if, service); in OnGattServerRegister()
718 void OnServiceAdded(tGATT_STATUS status, int server_if, in OnServiceAdded() argument
720 log::info("status: {}, server_if: {}", gatt_status_text(status), server_if); in OnServiceAdded()