Searched refs:server_if (Results 1 - 19 of 19) sorted by relevance

/system/bt/service/doc/
H A DIBluetoothGattServer.txt32 * Unregisters a previously registered server with interface ID |server_if|.
34 void unregisterServer(in int server_if);
59 boolean sendResponse(in int server_if, in String device_address,
72 boolean sendNotification(in int server_if, in String device_address,
H A DIBluetoothGattServerCallback.txt25 * BLE_STATUS_SUCCESS) if the server was successfully registered. |server_if|
29 void onServerRegistered(in int status, in int server_if);
/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
H A Dgatt_test.h70 int server_if, const bt_uuid_t& uuid) override;
73 int server_if, std::vector<btgatt_db_element_t> service) override;
76 int server_if, int srvc_handle) override;
79 int server_if, int srvc_handle) override;
/system/bt/service/hal/
H A Dfake_bluetooth_gatt_interface.h55 virtual bt_status_t UnregisterServer(int server_if) = 0;
57 int server_if, std::vector<btgatt_db_element_t> service) = 0;
58 virtual bt_status_t DeleteService(int server_if, int srvc_handle) = 0;
59 virtual bt_status_t SendIndication(int server_if, int attribute_handle,
93 void NotifyRegisterServerCallback(int status, int server_if,
95 void NotifyServerConnectionCallback(int conn_id, int server_if, int connected,
97 void NotifyServiceAddedCallback(int status, int server_if,
99 void NotifyCharacteristicAddedCallback(int status, int server_if,
102 void NotifyDescriptorAddedCallback(int status, int server_if,
105 void NotifyServiceStartedCallback(int status, int server_if, in
[all...]
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.h122 int status, int server_if,
126 int conn_id, int server_if, int connected,
130 BluetoothGattInterface* gatt_iface, int status, int server_if,
134 int status, int server_if,
138 int status, int server_if,
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/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/bta/gatt/
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);
H A Dbta_gatts_act.cc204 cb_data.reg_oper.server_if = BTA_GATTS_INVALID_IF;
214 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if =
222 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if;
246 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) {
247 GATT_StartIf(p_msg->int_start_if.server_if);
250 p_msg->int_start_if.server_if);
268 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if;
273 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) {
308 cb_data.srvc_oper.server_if
[all...]
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_gattc_act.cc1704 cb_data.phy_update.server_if = gatt_if;
/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...]
H A Dgatt_server.h199 int server_if,
/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...]
/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_;

Completed in 213 milliseconds