HomeSort by relevance Sort by last modified time
    Searched refs:server_if (Results 1 - 21 of 21) sorted by null

  /system/bt/service/doc/
IBluetoothGattServer.txt 32 * 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,
IBluetoothGattServerCallback.txt 25 * BLE_STATUS_SUCCESS) if the server was successfully registered. |server_if|
29 void onServerRegistered(in int status, in int server_if);
  /system/bt/include/hardware/
bt_gatt_server.h 45 typedef void (*register_server_callback)(int status, int server_if,
50 typedef void (*connection_callback)(int conn_id, int server_if, int connected,
55 int status, int server_if, std::vector<btgatt_db_element_t> service);
58 typedef void (*service_stopped_callback)(int status, int server_if,
62 typedef void (*service_deleted_callback)(int status, int server_if,
144 bt_status_t (*unregister_server)(int server_if);
147 bt_status_t (*connect)(int server_if, const RawAddress& bd_addr,
151 bt_status_t (*disconnect)(int server_if, const RawAddress& bd_addr,
155 bt_status_t (*add_service)(int server_if,
159 bt_status_t (*stop_service)(int server_if, int service_handle)
    [all...]
  /system/bt/test/suite/gatt/
gatt_unittest.cc 69 int server_if = server_interface_id(); local
79 gatt_server_interface()->add_service(server_if, service);
82 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if added.";
86 gatt_server_interface()->stop_service(server_if, service_handle());
91 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if stopped.";
94 gatt_server_interface()->delete_service(server_if, service_handle());
99 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if deleted."
    [all...]
gatt_test.cc 109 int server_if, const bluetooth::Uuid& 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;
gatt_test.h 70 int server_if, const bluetooth::Uuid& 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/bta/gatt/
bta_gatts_api.cc 106 void BTA_GATTS_AppDeregister(tGATT_IF server_if) {
111 p_buf->server_if = server_if;
116 void bta_gatts_add_service_impl(tGATT_IF server_if,
120 bta_gatts_find_app_rcb_idx_by_app_if(&bta_gatts_cb, server_if);
125 cb.Run(GATT_ERROR, server_if, std::move(service));
131 cb.Run(GATT_ERROR, server_if, std::move(service));
135 uint16_t status = GATTS_AddService(server_if, service.data(), service.size());
139 cb.Run(GATT_ERROR, server_if, std::move(service));
149 cb.Run(GATT_SUCCESS, server_if, std::move(service))
    [all...]
bta_gatts_utils.cc 65 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if) {
71 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg;
88 tGATT_IF server_if) {
92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i;
bta_gatts_int.h 69 tGATT_IF server_if; member in struct:__anon1326
76 tGATT_IF server_if; member in struct:__anon1327
104 tGATT_IF server_if; member in struct:__anon1331
179 extern tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if);
181 tGATT_IF server_if);
bta_gatts_act.cc 205 cb_data.reg_oper.server_if = BTA_GATTS_INVALID_IF;
213 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if =
221 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if;
245 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) {
246 GATT_StartIf(p_msg->int_start_if.server_if);
249 << +p_msg->int_start_if.server_if;
267 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if;
272 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) {
307 cb_data.srvc_oper.server_if = p_rcb->gatt_if
    [all...]
bta_gattc_act.cc     [all...]
  /system/bt/service/hal/
fake_bluetooth_gatt_interface.h 55 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, int srvc_handle)
    [all...]
fake_bluetooth_gatt_interface.cc 66 bt_status_t FakeUnregisterServer(int server_if) {
67 if (g_server_handler) return g_server_handler->UnregisterServer(server_if);
72 bt_status_t FakeAddService(int server_if,
75 return g_server_handler->AddService(server_if, std::move(service));
80 bt_status_t FakeDeleteService(int server_if, int srvc_handle) {
82 return g_server_handler->DeleteService(server_if, srvc_handle);
87 bt_status_t FakeSendIndication(int server_if, int attribute_handle, int conn_id,
90 return g_server_handler->SendIndication(server_if, attribute_handle,
209 int status, int server_if, const Uuid& app_uuid) {
211 observer.RegisterServerCallback(this, status, server_if, app_uuid)
    [all...]
bluetooth_gatt_interface.h 122 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,
bluetooth_gatt_interface.cc 227 void RegisterServerCallback(int status, int server_if,
230 VLOG(2) << __func__ << " - status: " << status << " server_if: " << server_if; local
234 RegisterServerCallback(g_interface, status, server_if, app_uuid));
237 void ConnectionCallback(int conn_id, int server_if, int connected,
241 << " server_if: " << server_if << " connected: " << connected;
245 ConnectionCallback(g_interface, conn_id, server_if, connected, bda));
249 int status, int server_if,
252 VLOG(2) << __func__ << " - status: " << status << " server_if: " << server_i
    [all...]
  /system/bt/btif/src/
btif_gatt_server.cc 133 p_data->reg_oper.status, p_data->reg_oper.server_if,
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,
276 static bt_status_t btif_gatts_unregister_app(int server_if) {
278 return do_in_jni_thread(Bind(&BTA_GATTS_AppDeregister, server_if));
281 static void btif_gatts_open_impl(int server_if, const RawAddress& address,
320 BTA_GATTS_Open(server_if, address, is_direct, transport);
323 static bt_status_t btif_gatts_open(int server_if, const RawAddress& bd_addr
    [all...]
  /system/bt/service/
gatt_server_old.cc 116 int server_if; member in struct:bluetooth::gatt::ServerInternals
132 void RegisterServerCallback(int status, int server_if,
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;
143 void ServiceAddedCallback(int status, int server_if,
145 LOG_INFO(LOG_TAG, "%s: status:%d server_if:%d count:%zu svc_handle:%d",
146 __func__, status, server_if, service.size(),
150 g_internal->server_if = server_if
    [all...]
gatt_server.h 199 int server_if,
  /system/bt/bta/include/
bta_gatt_api.h 205 tGATT_IF server_if; member in struct:__anon1503
213 tGATT_IF server_if; member in struct:__anon1504
301 tGATT_IF server_if; member in struct:__anon1508
307 tGATT_IF server_if; member in struct:__anon1509
316 tGATT_IF server_if; member in struct:__anon1510
322 tGATT_IF server_if; member in struct:__anon1511
340 tGATT_IF server_if; member in struct:__anon1514
348 tGATT_IF server_if; member in struct:__anon1515
872 * Parameters server_if: server interface
877 extern void BTA_GATTS_AppDeregister(tGATT_IF server_if);
    [all...]
  /packages/apps/Bluetooth/jni/
com_android_bluetooth_gatt.cpp 563 void btgatts_register_app_cb(int status, int server_if, const Uuid& uuid) {
567 server_if, UUID_PARAMS(uuid));
570 void btgatts_connection_cb(int conn_id, int server_if, int connected,
578 address.get(), connected, conn_id, server_if);
581 void btgatts_service_added_cb(int status, int server_if,
597 server_if, array.get());
600 void btgatts_service_stopped_cb(int status, int server_if, int srvc_handle) {
604 server_if, srvc_handle);
607 void btgatts_service_deleted_cb(int status, int server_if, int srvc_handle) {
611 server_if, srvc_handle)
    [all...]
  /system/bt/service/example/heart_rate/
heart_rate_server.cc 227 Status HeartRateServer::OnServerRegistered(int status, int server_if) {
238 server_if_ = server_if;
240 LOG(INFO) << "Heart Rate server registered - server_if: " << server_if_;

Completed in 347 milliseconds