Searched defs:server_if (Results 1 - 11 of 11) sorted by relevance

/system/bt/test/suite/gatt/
H A Dgatt_unittest.cc88 int server_if = server_interface_id(); local
98 gatt_server_interface()->add_service(server_if, service);
101 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if added.";
105 gatt_server_interface()->stop_service(server_if, service_handle());
110 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if stopped.";
113 gatt_server_interface()->delete_service(server_if, service_handle());
118 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if delete
[all...]
H A Dgatt_test.cc109 int server_if, const bt_uuid_t& uuid) {
111 server_interface_id_ = server_if;
117 int server_if, std::vector<btgatt_db_element_t> service) {
119 server_interface_id_ = server_if;
126 int server_if, int srvc_handle) {
128 server_interface_id_ = server_if;
135 int server_if, int srvc_handle) {
137 server_interface_id_ = server_if;
107 RegisterServerCallback( bluetooth::hal::BluetoothGattInterface* , int status, int server_if, const bt_uuid_t& uuid) argument
115 ServiceAddedCallback( bluetooth::hal::BluetoothGattInterface* , int status, int server_if, std::vector<btgatt_db_element_t> service) argument
124 ServiceStoppedCallback( bluetooth::hal::BluetoothGattInterface* , int status, int server_if, int srvc_handle) argument
133 ServiceDeletedCallback( bluetooth::hal::BluetoothGattInterface* , int status, int server_if, int srvc_handle) argument
/system/bt/bta/gatt/
H A Dbta_gatts_utils.cc86 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tBTA_GATTS_IF server_if) { argument
92 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg;
109 tBTA_GATTS_IF server_if) {
113 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i;
108 bta_gatts_find_app_rcb_idx_by_app_if(tBTA_GATTS_CB* p_cb, tBTA_GATTS_IF server_if) argument
H A Dbta_gatts_api.cc106 void BTA_GATTS_AppDeregister(tBTA_GATTS_IF server_if) { argument
111 p_buf->server_if = server_if;
124 * Parameters server_if: server interface.
131 extern uint16_t BTA_GATTS_AddService(tBTA_GATTS_IF server_if, argument
134 bta_gatts_find_app_rcb_idx_by_app_if(&bta_gatts_cb, server_if);
143 uint16_t status = GATTS_AddService(server_if, service.data(), service.size());
275 * Parameters server_if: server interface.
284 void BTA_GATTS_Open(tBTA_GATTS_IF server_if, const RawAddress& remote_bda, argument
290 p_buf->server_if
312 BTA_GATTS_CancelOpen(tBTA_GATTS_IF server_if, const RawAddress& remote_bda, bool is_direct) argument
[all...]
H A Dbta_gatts_int.h68 tBTA_GATTS_IF server_if; member in struct:__anon159
75 tBTA_GATTS_IF server_if; member in struct:__anon160
103 tBTA_GATTS_IF server_if; member in struct:__anon164
180 tBTA_GATTS_IF server_if);
182 tBTA_GATTS_IF server_if);
/system/bt/btif/src/
H A Dbtif_gatt_server.cc134 p_data->reg_oper.status, p_data->reg_oper.server_if, app_uuid);
146 p_data->conn.server_if, true, p_data->conn.remote_bda);
152 p_data->conn.server_if, false, p_data->conn.remote_bda);
158 p_data->srvc_oper.status, p_data->srvc_oper.server_if,
164 p_data->srvc_oper.status, p_data->srvc_oper.server_if,
278 static bt_status_t btif_gatts_unregister_app(int server_if) { argument
280 return do_in_jni_thread(Bind(&BTA_GATTS_AppDeregister, server_if));
283 static void btif_gatts_open_impl(int server_if, const RawAddress& address, argument
322 BTA_GATTS_Open(server_if, address, is_direct, transport);
325 static bt_status_t btif_gatts_open(int server_if, cons argument
332 btif_gatts_close_impl(int server_if, const RawAddress& address, int conn_id) argument
344 btif_gatts_close(int server_if, const RawAddress& bd_addr, int conn_id) argument
351 add_service_impl(int server_if, vector<btgatt_db_element_t> service) argument
373 btif_gatts_add_service(int server_if, vector<btgatt_db_element_t> service) argument
380 btif_gatts_stop_service(int server_if, int service_handle) argument
385 btif_gatts_delete_service(int server_if, int service_handle) argument
391 btif_gatts_send_indication(int server_if, int attribute_handle, int conn_id, int confirm, vector<uint8_t> value) argument
[all...]
/system/bt/service/example/heart_rate/
H A Dheart_rate_server.cc227 Status HeartRateServer::OnServerRegistered(int status, int server_if) { argument
238 server_if_ = server_if;
240 LOG(INFO) << "Heart Rate server registered - server_if: " << server_if_;
/system/bt/service/hal/
H A Dfake_bluetooth_gatt_interface.cc66 bt_status_t FakeUnregisterServer(int server_if) { argument
67 if (g_server_handler) return g_server_handler->UnregisterServer(server_if);
72 bt_status_t FakeAddService(int server_if, argument
75 return g_server_handler->AddService(server_if, std::move(service));
80 bt_status_t FakeDeleteService(int server_if, int srvc_handle) { argument
82 return g_server_handler->DeleteService(server_if, srvc_handle);
87 bt_status_t FakeSendIndication(int server_if, int attribute_handle, int conn_id, argument
90 return g_server_handler->SendIndication(server_if, attribute_handle,
205 int status, int server_if, const bt_uuid_t& app_uuid) {
207 RegisterServerCallback(this, status, server_if, app_uui
204 NotifyRegisterServerCallback( int status, int server_if, const bt_uuid_t& app_uuid) argument
210 NotifyServerConnectionCallback( int conn_id, int server_if, int connected, const RawAddress& bda) argument
217 NotifyServiceAddedCallback( int status, int server_if, std::vector<btgatt_db_element_t> service) argument
[all...]
H A Dbluetooth_gatt_interface.cc224 void RegisterServerCallback(int status, int server_if, argument
227 VLOG(2) << __func__ << " - status: " << status << " server_if: " << server_if; local
231 RegisterServerCallback(g_interface, status, server_if, app_uuid));
234 void ConnectionCallback(int conn_id, int server_if, int connected, argument
238 << " server_if: " << server_if << " connected: " << connected;
242 ConnectionCallback(g_interface, conn_id, server_if, connected, bda));
246 int status, int server_if,
249 VLOG(2) << __func__ << " - status: " << status << " server_if
245 ServiceAddedCallback( int status, int server_if, std::vector<btgatt_db_element_t> service) argument
258 ServiceStoppedCallback(int status, int server_if, int srvc_handle) argument
268 ServiceDeletedCallback(int status, int server_if, int srvc_handle) argument
[all...]
/system/bt/service/
H A Dgatt_server_old.cc116 int server_if; member in struct:bluetooth::gatt::ServerInternals
132 void RegisterServerCallback(int status, int server_if, argument
134 LOG_INFO(LOG_TAG, "%s: status:%d server_if:%d app_uuid:%p", __func__, status,
135 server_if, &app_uuid);
137 g_internal->server_if = server_if;
142 void ServiceAddedCallback(int status, int server_if, argument
144 LOG_INFO(LOG_TAG, "%s: status:%d server_if:%d count:%zu svc_handle:%d",
145 __func__, status, server_if, service.size(),
149 g_internal->server_if
330 ConnectionCallback(int conn_id, int server_if, int connected, const RawAddress& bda) argument
365 ServiceStoppedCallback(int status, int server_if, int srvc_handle) argument
[all...]
/system/bt/bta/include/
H A Dbta_gatt_api.h310 tBTA_GATTC_IF server_if; member in struct:__anon334
318 tBTA_GATTC_IF server_if; member in struct:__anon335
475 tBTA_GATTS_IF server_if; member in struct:__anon339
481 tBTA_GATTS_IF server_if; member in struct:__anon340
490 tBTA_GATTS_IF server_if; member in struct:__anon341
496 tBTA_GATTS_IF server_if; member in struct:__anon342
514 tBTA_GATTS_IF server_if; member in struct:__anon345
522 tBTA_GATTS_IF server_if; member in struct:__anon346
1032 * Parameters server_if: server interface
1037 extern void BTA_GATTS_AppDeregister(tBTA_GATTS_IF server_if);
[all...]

Completed in 1065 milliseconds