Home
last modified time | relevance | path

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

/system/bt/service/common/bluetooth/binder/
DIBluetoothGattServer.cpp55 int server_if = data.readInt32(); in onTransact() local
56 UnregisterServer(server_if); in onTransact()
64 int server_if = data.readInt32(); in onTransact() local
71 server_if, is_primary, *uuid, &out_id); in onTransact()
83 int server_if = data.readInt32(); in onTransact() local
91 server_if, *uuid, properties, permissions, &out_id); in onTransact()
103 int server_if = data.readInt32(); in onTransact() local
109 bool result = AddDescriptor(server_if, *uuid, permissions, &out_id); in onTransact()
121 int server_if = data.readInt32(); in onTransact() local
122 bool result = EndServiceDeclaration(server_if); in onTransact()
[all …]
DIBluetoothGattServer.h64 virtual void UnregisterServer(int server_if) = 0;
68 int server_if, bool is_primary, const bluetooth::UUID& uuid,
71 int server_if, const bluetooth::UUID& uuid,
75 int server_if, const bluetooth::UUID& uuid, int permissions,
77 virtual bool EndServiceDeclaration(int server_if) = 0;
80 int server_if,
87 int server_if,
127 void UnregisterServer(int server_if) override;
130 int server_if, bool is_primary, const bluetooth::UUID& uuid,
133 int server_if, const bluetooth::UUID& uuid,
[all …]
DIBluetoothGattServerCallback.cpp51 int server_if = data.readInt32(); in onTransact() local
52 OnServerRegistered(status, server_if); in onTransact()
149 int status, int server_if) { in OnServerRegistered() argument
155 data.writeInt32(server_if); in OnServerRegistered()
DIBluetoothGattServerCallback.h57 virtual void OnServerRegistered(int status, int server_if) = 0;
122 void OnServerRegistered(int status, int server_if) override;
DIBluetoothGattClientCallback.h90 void OnClientRegistered(int status, int server_if) override;
/system/bt/btif/src/
Dbtif_gatt_server.c98 uint8_t server_if; member
176 , p_data->reg_oper.server_if in btapp_gatts_handle_cback()
193 p_data->conn.conn_id, p_data->conn.server_if, TRUE, &bda); in btapp_gatts_handle_cback()
203 p_data->conn.conn_id, p_data->conn.server_if, FALSE, &bda); in btapp_gatts_handle_cback()
215 p_data->create.status, p_data->create.server_if, &srvc_id, in btapp_gatts_handle_cback()
224 p_data->add_result.server_if, in btapp_gatts_handle_cback()
236 p_data->add_result.server_if, in btapp_gatts_handle_cback()
250 p_data->add_result.server_if, in btapp_gatts_handle_cback()
260 p_data->srvc_oper.server_if, in btapp_gatts_handle_cback()
267 p_data->srvc_oper.server_if, in btapp_gatts_handle_cback()
[all …]
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cpp107 bt_status_t FakeUnregisterServer(int server_if) { in FakeUnregisterServer() argument
109 return g_server_handler->UnregisterServer(server_if); in FakeUnregisterServer()
115 int server_if, btgatt_srvc_id_t* srvc_id, int num_handles) { in FakeAddService() argument
117 return g_server_handler->AddService(server_if, srvc_id, num_handles); in FakeAddService()
122 bt_status_t FakeAddCharacteristic(int server_if, int srvc_handle, in FakeAddCharacteristic() argument
126 return g_server_handler->AddCharacteristic(server_if, srvc_handle, uuid, in FakeAddCharacteristic()
132 bt_status_t FakeAddDescriptor(int server_if, int srvc_handle, in FakeAddDescriptor() argument
137 server_if, srvc_handle, uuid, permissions); in FakeAddDescriptor()
143 int server_if, int srvc_handle, int transport) { in FakeStartService() argument
145 return g_server_handler->StartService(server_if, srvc_handle, transport); in FakeStartService()
[all …]
Dfake_bluetooth_gatt_interface.h65 virtual bt_status_t UnregisterServer(int server_if) = 0;
67 int server_if, btgatt_srvc_id_t* srvc_id, int num_handles) = 0;
68 virtual bt_status_t AddCharacteristic(int server_if, int srvc_handle,
71 virtual bt_status_t AddDescriptor(int server_if, int srvc_handle,
75 int server_if, int srvc_handle, int transport) = 0;
76 virtual bt_status_t DeleteService(int server_if, int srvc_handle) = 0;
77 virtual bt_status_t SendIndication(int server_if, int attribute_handle,
108 void NotifyRegisterServerCallback(int status, int server_if,
110 void NotifyServerConnectionCallback(int conn_id, int server_if,
113 void NotifyServiceAddedCallback(int status, int server_if,
[all …]
Dbluetooth_gatt_interface.cpp267 void RegisterServerCallback(int status, int server_if, bt_uuid_t* app_uuid) { in RegisterServerCallback() argument
269 VLOG(2) << __func__ << " - status: " << status << " server_if: " << server_if; in RegisterServerCallback()
274 RegisterServerCallback(g_interface, status, server_if, *app_uuid)); in RegisterServerCallback()
277 void ConnectionCallback(int conn_id, int server_if, int connected, in ConnectionCallback() argument
281 << " server_if: " << server_if << " connected: " << connected; in ConnectionCallback()
286 ConnectionCallback(g_interface, conn_id, server_if, connected, *bda)); in ConnectionCallback()
291 int server_if, in ServiceAddedCallback() argument
295 VLOG(2) << __func__ << " - status: " << status << " server_if: " << server_if in ServiceAddedCallback()
301 g_interface, status, server_if, *srvc_id, srvc_handle)); in ServiceAddedCallback()
305 int status, int server_if, in CharacteristicAddedCallback() argument
[all …]
Dbluetooth_gatt_interface.h149 int status, int server_if,
154 int conn_id, int server_if,
160 int status, int server_if,
166 int status, int server_if,
173 int status, int server_if,
180 int status, int server_if,
185 int status, int server_if,
190 int status, int server_if,
/system/bt/test/suite/gatt/
Dgatt_test.cpp125 int status, int server_if, const bt_uuid_t& uuid) { in RegisterServerCallback() argument
127 server_interface_id_ = server_if; in RegisterServerCallback()
133 int status, int server_if, const btgatt_srvc_id_t& srvc_id, in ServiceAddedCallback() argument
136 server_interface_id_ = server_if; in ServiceAddedCallback()
143 int status, int server_if, const bt_uuid_t& char_id, in CharacteristicAddedCallback() argument
146 server_interface_id_ = server_if; in CharacteristicAddedCallback()
154 int status, int server_if, const bt_uuid_t& descr_id, in DescriptorAddedCallback() argument
157 server_interface_id_ = server_if; in DescriptorAddedCallback()
165 int status, int server_if, int srvc_handle) { in ServiceStartedCallback() argument
167 server_interface_id_ = server_if; in ServiceStartedCallback()
[all …]
Dgatt_unittest.cpp124 int server_if = server_interface_id(); in TEST_F() local
125 gatt_server_interface()->add_service(server_if, &srvc_id, 4 /* # handles */); in TEST_F()
131 gatt_server_interface()->add_characteristic(server_if, srvc_handle, in TEST_F()
138 gatt_server_interface()->add_descriptor(server_if, srvc_handle, in TEST_F()
145 gatt_server_interface()->start_service(server_if, srvc_handle, 2 /*BREDR/LE*/); in TEST_F()
150 gatt_server_interface()->stop_service(server_if, srvc_handle); in TEST_F()
155 gatt_server_interface()->delete_service(server_if, srvc_handle); in TEST_F()
160 gatt_server_interface()->unregister_server(server_if); in TEST_F()
Dgatt_test.h69 int status, int server_if, const bt_uuid_t& uuid) override;
72 int status, int server_if, const btgatt_srvc_id_t& srvc_id,
76 int status, int server_if, const bt_uuid_t& char_id,
80 int status, int server_if, const bt_uuid_t& descr_id,
84 int status, int server_if, int srvc_handle) override;
87 int status, int server_if, int srvc_handle) override;
90 int status, int server_if, int srvc_handle) override;
/system/bt/bta/gatt/
Dbta_gatts_api.c113 void BTA_GATTS_AppDeregister(tBTA_GATTS_IF server_if) in BTA_GATTS_AppDeregister() argument
119 p_buf->server_if = server_if; in BTA_GATTS_AppDeregister()
143 void BTA_GATTS_CreateService(tBTA_GATTS_IF server_if, tBT_UUID *p_service_uuid, UINT8 inst, in BTA_GATTS_CreateService() argument
150 p_buf->server_if = server_if; in BTA_GATTS_CreateService()
396 void BTA_GATTS_Open(tBTA_GATTS_IF server_if, BD_ADDR remote_bda, BOOLEAN is_direct, in BTA_GATTS_Open() argument
403 p_buf->server_if = server_if; in BTA_GATTS_Open()
425 void BTA_GATTS_CancelOpen(tBTA_GATTS_IF server_if, BD_ADDR remote_bda, BOOLEAN is_direct) in BTA_GATTS_CancelOpen() argument
431 p_buf->server_if = server_if; in BTA_GATTS_CancelOpen()
474 void BTA_GATTS_Listen(tBTA_GATTS_IF server_if, BOOLEAN start, BD_ADDR_PTR target_bda) in BTA_GATTS_Listen() argument
480 p_buf->server_if = server_if; in BTA_GATTS_Listen()
Dbta_gatts_act.c218 cb_data.reg_oper.server_if = BTA_GATTS_INVALID_IF; in bta_gatts_register()
227 cb_data.reg_oper.server_if = in bta_gatts_register()
236 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register()
264 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) in bta_gatts_start_if()
266 GATT_StartIf(p_msg->int_start_if.server_if); in bta_gatts_start_if()
271 p_msg->int_start_if.server_if ); in bta_gatts_start_if()
290 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if; in bta_gatts_deregister()
295 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) in bta_gatts_deregister()
337 rcb_idx = bta_gatts_find_app_rcb_idx_by_app_if(p_cb, p_msg->api_create_svc.server_if); in bta_gatts_create_srvc()
363 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if; in bta_gatts_create_srvc()
[all …]
Dbta_gatts_int.h77 tBTA_GATTS_IF server_if; member
85 tBTA_GATTS_IF server_if; member
144 tBTA_GATTS_IF server_if; member
156 tBTA_GATTS_IF server_if; member
252 extern tBTA_GATTS_RCB *bta_gatts_find_app_rcb_by_app_if(tBTA_GATTS_IF server_if);
253 extern UINT8 bta_gatts_find_app_rcb_idx_by_app_if(tBTA_GATTS_CB *p_cb, tBTA_GATTS_IF server_if);
Dbta_gatts_utils.c89 tBTA_GATTS_RCB *bta_gatts_find_app_rcb_by_app_if(tBTA_GATTS_IF server_if) in bta_gatts_find_app_rcb_by_app_if() argument
96 if (p_reg->in_use && p_reg->gatt_if == server_if) in bta_gatts_find_app_rcb_by_app_if()
112 UINT8 bta_gatts_find_app_rcb_idx_by_app_if(tBTA_GATTS_CB *p_cb, tBTA_GATTS_IF server_if) in bta_gatts_find_app_rcb_idx_by_app_if() argument
118 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()
/system/bt/service/
Dgatt_server_old.cpp116 int server_if; member
133 void RegisterServerCallback(int status, int server_if, bt_uuid_t *app_uuid) { in RegisterServerCallback() argument
135 server_if, app_uuid); in RegisterServerCallback()
137 g_internal->server_if = server_if; in RegisterServerCallback()
145 server_if, &service_id, kNumBlueDroidHandles); in RegisterServerCallback()
148 void ServiceAddedCallback(int status, int server_if, btgatt_srvc_id_t *srvc_id, in ServiceAddedCallback() argument
151 __func__, status, server_if, srvc_id->id.inst_id, srvc_handle); in ServiceAddedCallback()
154 g_internal->server_if = server_if; in ServiceAddedCallback()
284 void ConnectionCallback(int conn_id, int server_if, int connected, in ConnectionCallback() argument
288 __func__, conn_id, server_if, connected, addr.c_str()); in ConnectionCallback()
[all …]
/system/bt/service/doc/
DIBluetoothGattServer.txt32 * Unregisters a previously registered server with interface ID |server_if|.
34 void unregisterServer(in int server_if);
53 boolean beginServiceDeclaration(in int server_if, in boolean is_primary,
63 boolean addCharacteristic(in int server_if, in ParcelUuid uuid,
74 boolean addDescriptor(in int server_if, in ParcelUuid uuid,
86 boolean endServiceDeclaration(in int server_if);
98 boolean sendResponse(in int server_if, in String device_address,
111 boolean sendNotification(in int server_if, in String device_address,
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/bta/include/
Dbta_gatt_api.h485 tBTA_GATTS_IF server_if; member
493 tBTA_GATTS_IF server_if; member
503 tBTA_GATTS_IF server_if; member
512 tBTA_GATTS_IF server_if; member
520 tBTA_GATTS_IF server_if; member
1059 extern void BTA_GATTS_AppDeregister(tBTA_GATTS_IF server_if);
1080 extern void BTA_GATTS_CreateService(tBTA_GATTS_IF server_if, tBT_UUID *p_service_uuid,
1232 extern void BTA_GATTS_Open(tBTA_GATTS_IF server_if, BD_ADDR remote_bda,
1250 extern void BTA_GATTS_CancelOpen(tBTA_GATTS_IF server_if, BD_ADDR remote_bda, BOOLEAN is_direct);
1281 extern void BTA_GATTS_Listen(tBTA_GATTS_IF server_if, BOOLEAN start,
/system/bt/service/example/heart_rate/
Dheart_rate_server.h55 void OnServerRegistered(int status, int server_if) override;
Dheart_rate_server.cpp215 void HeartRateServer::OnServerRegistered(int status, int server_if) { in OnServerRegistered() argument
226 server_if_ = server_if; in OnServerRegistered()