Searched refs:conn_id (Results 1 - 25 of 39) sorted by relevance

12

/system/bt/stack/srvc/
H A Dsrvc_eng.c34 static void srvc_eng_s_request_cback (UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *p_data);
35 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
37 static void srvc_eng_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data);
78 return p_clcb->conn_id;
118 tSRVC_CLCB *srvc_eng_find_clcb_by_conn_id(UINT16 conn_id) argument
125 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id)
142 UINT8 srvc_eng_find_clcb_idx_by_conn_id(UINT16 conn_id) argument
149 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id)
166 srvc_eng_clcb_alloc(UINT16 conn_id, BD_ADDR bda) argument
193 srvc_eng_clcb_dealloc(UINT16 conn_id) argument
266 srvc_eng_s_request_cback(UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type, tGATTS_DATA *p_data) argument
323 srvc_eng_c_cmpl_cback(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data) argument
351 srvc_eng_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) argument
408 srvc_eng_release_channel(UINT16 conn_id) argument
470 UINT16 conn_id = srvc_eng_find_conn_id_by_bd_addr(remote_bda); local
[all...]
H A Dsrvc_eng_int.h39 UINT16 conn_id; member in struct:__anon1296
74 extern tSRVC_CLCB *srvc_eng_find_clcb_by_conn_id(UINT16 conn_id);
79 extern void srvc_eng_release_channel (UINT16 conn_id) ;
H A Dsrvc_dis.c200 static void dis_gatt_c_read_dis_value_cmpl(UINT16 conn_id) argument
202 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id);
206 srvc_eng_release_channel(conn_id);
210 LOG_INFO(LOG_TAG, "%s conn_id:%d attr_mask = 0x%04x", __func__, conn_id,
227 BOOLEAN dis_gatt_c_read_dis_req(UINT16 conn_id) argument
245 if (GATTC_Read(conn_id, GATT_READ_BY_TYPE, &param) == GATT_SUCCESS)
254 dis_gatt_c_read_dis_value_cmpl(conn_id);
273 UINT16 conn_id = p_clcb->conn_id; local
446 UINT16 conn_id; local
[all...]
/system/bt/stack/gatt/
H A Dgatt_attr.c43 static void gatt_request_cback(UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *p_data);
44 static void gatt_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
46 static void gatt_disc_res_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_RES *p_data);
47 static void gatt_disc_cmpl_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status);
48 static void gatt_cl_op_cmpl_cback(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status,
76 UINT16 conn_id = GATT_INVALID_CONN_ID; local
77 GATT_GetConnIdIfConnected (gatt_cb.gatt_if, remote_bda, &conn_id, BT_TRANSPORT_LE);
78 return conn_id;
90 static tGATT_PROFILE_CLCB *gatt_profile_find_clcb_by_conn_id(UINT16 conn_id) argument
97 if (p_clcb->in_use && p_clcb->conn_id
137 gatt_profile_clcb_alloc(UINT16 conn_id, BD_ADDR bda, tBT_TRANSPORT tranport) argument
183 gatt_request_cback(UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type, tGATTS_DATA *p_data) argument
232 gatt_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) argument
309 gatt_disc_res_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_RES *p_data) argument
347 gatt_disc_cmpl_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status) argument
373 gatt_cl_op_cmpl_cback(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data) argument
[all...]
H A Dgatt_api.c587 ** Parameter conn_id: connection identifier.
595 tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_handle, UINT16 val_len, UINT8 *p_val) argument
602 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
603 UINT8 tcb_idx = GATT_GET_TCB_IDX(conn_id);
611 GATT_TRACE_ERROR ("GATTS_HandleValueIndication Unknown conn_id: %u ", conn_id);
618 indication.conn_id = conn_id;
659 ** Parameter conn_id: connection identifier.
667 tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT1 argument
718 GATTS_SendRsp(UINT16 conn_id, UINT32 trans_id, tGATT_STATUS status, tGATTS_RSP *p_msg) argument
772 GATTC_ConfigureMTU(UINT16 conn_id, UINT16 mtu) argument
825 GATTC_Discover(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_PARAM *p_param) argument
894 GATTC_Read(UINT16 conn_id, tGATT_READ_TYPE type, tGATT_READ_PARAM *p_read) argument
982 GATTC_Write(UINT16 conn_id, tGATT_WRITE_TYPE type, tGATT_VALUE *p_write) argument
1046 GATTC_ExecuteWrite(UINT16 conn_id, BOOLEAN is_execute) argument
1097 GATTC_SendHandleValueConfirm(UINT16 conn_id, UINT16 handle) argument
1325 UINT16 conn_id; local
1482 GATT_Disconnect(UINT16 conn_id) argument
1516 GATT_GetConnectionInfor(UINT16 conn_id, tGATT_IF *p_gatt_if, BD_ADDR bd_addr, tBT_TRANSPORT *p_transport) argument
[all...]
/system/bt/service/hal/
H A Dbluetooth_gatt_interface.cpp95 void ConnectCallback(int conn_id, int status, int client_if, bt_bdaddr_t* bda) { argument
103 << " - conn_id: " << conn_id;
106 ConnectCallback(g_interface, conn_id, status, client_if, *bda));
109 void DisconnectCallback(int conn_id, int status, int client_if, argument
115 VLOG(2) << __func__ << " - conn_id: " << conn_id
120 DisconnectCallback(g_interface, conn_id, status, client_if, *bda));
123 void SearchCompleteCallback(int conn_id, int status) { argument
127 VLOG(2) << __func__ << " - conn_id
133 RegisterForNotificationCallback(int conn_id, int registered, int status, uint16_t handle) argument
145 NotifyCallback(int conn_id, btgatt_notify_params_t *p_data) argument
159 WriteCharacteristicCallback(int conn_id, int status, uint16_t handle) argument
170 WriteDescriptorCallback(int conn_id, int status, uint16_t handle) argument
190 MtuChangedCallback(int conn_id, int status, int mtu) argument
237 GetGattDbCallback(int conn_id, btgatt_db_element_t *db, int size) argument
246 ServicesRemovedCallback(int conn_id, uint16_t start_handle, uint16_t end_handle) argument
257 ServicesAddedCallback(int conn_id, btgatt_db_element_t *added, int added_count) argument
277 ConnectionCallback(int conn_id, int server_if, int connected, bt_bdaddr_t* bda) argument
364 RequestReadCallback(int conn_id, int trans_id, bt_bdaddr_t* bda, int attr_handle, int offset, bool is_long) argument
377 RequestWriteCallback(int conn_id, int trans_id, bt_bdaddr_t* bda, int attr_handle, int offset, int length, bool need_rsp, bool is_prep, uint8_t* value) argument
394 RequestExecWriteCallback(int conn_id, int trans_id, bt_bdaddr_t* bda, int exec_write) argument
415 IndicationSentCallback(int conn_id, int status) argument
424 MtuChangedCallback(int conn_id, int mtu) argument
[all...]
H A Dbluetooth_gatt_interface.h66 int conn_id,
73 int conn_id,
80 int conn_id,
85 int conn_id, int status, int registered, uint16_t handle);
89 int conn_id, btgatt_notify_params_t* p_data);
93 int conn_id, int status, uint16_t handle);
97 int conn_id, int status, uint16_t handle);
105 int conn_id, int status, int mtu);
125 int conn_id,
131 int conn_id,
[all...]
H A Dfake_bluetooth_gatt_interface.h43 int conn_id) = 0;
78 int conn_id, int len, int confirm,
80 virtual bt_status_t SendResponse(int conn_id, int trans_id, int status,
97 void NotifyConnectCallback(int conn_id, int status, int client_if,
99 void NotifyDisconnectCallback(int conn_id, int status, int client_if,
110 void NotifyServerConnectionCallback(int conn_id, int server_if,
123 void NotifyRequestReadCallback(int conn_id, int trans_id,
126 void NotifyRequestWriteCallback(int conn_id, int trans_id,
130 void NotifyRequestExecWriteCallback(int conn_id, int trans_id,
132 void NotifyIndicationSentCallback(int conn_id, in
[all...]
H A Dfake_bluetooth_gatt_interface.cpp59 int conn_id) {
61 return g_client_handler->Disconnect(client_if, bd_addr, conn_id);
158 int conn_id, int len, int confirm,
162 conn_id, len, confirm, value);
167 bt_status_t FakeSendResponse(int conn_id, int trans_id, int status, argument
170 return g_server_handler->SendResponse(conn_id, trans_id, status, response);
264 int conn_id, int status, int client_if, const bt_bdaddr_t& bda) {
266 ConnectCallback(this, conn_id, status, client_if, bda));
270 int conn_id, int status, int client_if, const bt_bdaddr_t& bda) {
272 DisconnectCallback(this, conn_id, statu
58 FakeDisconnect(int client_if, const bt_bdaddr_t *bd_addr, int conn_id) argument
157 FakeSendIndication(int server_if, int attribute_handle, int conn_id, int len, int confirm, char* value) argument
263 NotifyConnectCallback( int conn_id, int status, int client_if, const bt_bdaddr_t& bda) argument
269 NotifyDisconnectCallback( int conn_id, int status, int client_if, const bt_bdaddr_t& bda) argument
306 NotifyServerConnectionCallback( int conn_id, int server_if, int connected, const bt_bdaddr_t& bda) argument
349 NotifyRequestReadCallback( int conn_id, int trans_id, const bt_bdaddr_t& bda, int attr_handle, int offset, bool is_long) argument
358 NotifyRequestWriteCallback( int conn_id, int trans_id, const bt_bdaddr_t& bda, int attr_handle, int offset, int length, bool need_rsp, bool is_prep, uint8_t* value) argument
370 NotifyRequestExecWriteCallback( int conn_id, int trans_id, const bt_bdaddr_t& bda, int exec_write) argument
377 NotifyIndicationSentCallback( int conn_id, int status) argument
[all...]
/system/bt/bta/gatt/
H A Dbta_gattc_api.c187 ** Parameters conn_id: connectino ID to be closed.
192 void BTA_GATTC_Close(UINT16 conn_id) argument
197 p_buf->layer_specific = conn_id;
209 ** Parameters conn_id: connection ID.
215 void BTA_GATTC_ConfigureMTU (UINT16 conn_id, UINT16 mtu) argument
221 p_buf->hdr.layer_specific = conn_id;
236 ** Parameters conn_id: connection ID.
243 void BTA_GATTC_ServiceSearchRequest (UINT16 conn_id, tBT_UUID *p_srvc_uuid) argument
249 p_buf->hdr.layer_specific = conn_id;
266 ** Parameters conn_id
271 BTA_GATTC_GetServices(UINT16 conn_id) argument
287 BTA_GATTC_GetCharacteristic(UINT16 conn_id, UINT16 handle) argument
303 BTA_GATTC_GetDescriptor(UINT16 conn_id, UINT16 handle) argument
319 BTA_GATTC_GetGattDb(UINT16 conn_id, UINT16 start_handle, UINT16 end_handle, btgatt_db_element_t **db, int *count) argument
337 BTA_GATTC_ReadCharacteristic(UINT16 conn_id, UINT16 handle, tBTA_GATT_AUTH_REQ auth_req) argument
363 BTA_GATTC_ReadCharDescr(UINT16 conn_id, UINT16 handle, tBTA_GATT_AUTH_REQ auth_req) argument
390 BTA_GATTC_ReadMultiple(UINT16 conn_id, tBTA_GATTC_MULTI *p_read_multi, tBTA_GATT_AUTH_REQ auth_req) argument
422 BTA_GATTC_WriteCharValue( UINT16 conn_id, UINT16 handle, tBTA_GATTC_WRITE_TYPE write_type, UINT16 len, UINT8 *p_value, tBTA_GATT_AUTH_REQ auth_req) argument
462 BTA_GATTC_WriteCharDescr(UINT16 conn_id, UINT16 handle, tBTA_GATTC_WRITE_TYPE write_type, tBTA_GATT_UNFMT *p_data, tBTA_GATT_AUTH_REQ auth_req) argument
506 BTA_GATTC_PrepareWrite(UINT16 conn_id, UINT16 handle, UINT16 offset, UINT16 len, UINT8 *p_value, tBTA_GATT_AUTH_REQ auth_req) argument
542 BTA_GATTC_ExecuteWrite(UINT16 conn_id, BOOLEAN is_execute) argument
566 BTA_GATTC_SendIndConfirm(UINT16 conn_id, UINT16 handle) argument
[all...]
H A Dbta_gattc_cache.c48 static void bta_gattc_char_dscpt_disc_cmpl(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb);
49 static tBTA_GATT_STATUS bta_gattc_sdp_service_disc(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb);
371 tBTA_GATT_STATUS bta_gattc_discover_pri_service(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, argument
374 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id);
380 status = bta_gattc_discover_procedure(conn_id, p_server_cb, disc_type);
382 status = bta_gattc_sdp_service_disc(conn_id, p_server_cb);
396 tBTA_GATT_STATUS bta_gattc_discover_procedure(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, argument
421 return GATTC_Discover (conn_id, disc_type, &param);
433 tBTA_GATT_STATUS bta_gattc_start_disc_include_srvc(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) argument
435 return bta_gattc_discover_procedure(conn_id, p_srvc_c
446 bta_gattc_start_disc_char(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) argument
461 bta_gattc_start_disc_char_dscp(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) argument
478 bta_gattc_explore_srvc(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) argument
531 bta_gattc_incl_srvc_disc_cmpl(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) argument
547 bta_gattc_char_disc_cmpl(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) argument
580 bta_gattc_char_dscpt_disc_cmpl(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) argument
813 bta_gattc_sdp_service_disc(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb) argument
859 bta_gattc_disc_res_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_RES *p_data) argument
928 bta_gattc_disc_cmpl_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status) argument
1022 bta_gattc_get_services(UINT16 conn_id) argument
1054 bta_gattc_get_service_for_handle(UINT16 conn_id, UINT16 handle) argument
1076 bta_gattc_get_characteristic(UINT16 conn_id, UINT16 handle) argument
1107 bta_gattc_get_descriptor(UINT16 conn_id, UINT16 handle) argument
1311 bta_gattc_get_gatt_db(UINT16 conn_id, UINT16 start_handle, UINT16 end_handle, btgatt_db_element_t **db, int *count) argument
1424 bta_gattc_cache_save(tBTA_GATTC_SERV *p_srvc_cb, UINT16 conn_id) argument
[all...]
H A Dbta_gattc_int.h446 BD_ADDR remote_bda, UINT16 conn_id, tBTA_TRANSPORT transport, UINT16 mtu);
455 extern tBTA_GATTC_CLCB * bta_gattc_find_clcb_by_conn_id (UINT16 conn_id);
462 extern tBTA_GATTC_SERV * bta_gattc_find_scb_by_cid (UINT16 conn_id);
473 extern void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV *p_srcb, UINT16 conn_id, UINT16 start_handle, UINT16 end_handle);
477 extern void bta_gattc_disc_res_cback (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_RES *p_data);
478 extern void bta_gattc_disc_cmpl_cback (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status);
479 extern tBTA_GATT_STATUS bta_gattc_discover_procedure(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, UINT8 disc_type);
480 extern tBTA_GATT_STATUS bta_gattc_discover_pri_service(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, UINT8 disc_type);
482 extern const list_t* bta_gattc_get_services(UINT16 conn_id);
483 extern const tBTA_GATTC_SERVICE* bta_gattc_get_service_for_handle(UINT16 conn_id, UINT1
[all...]
H A Dbta_gattc_act.c49 static void bta_gattc_conn_cback(tGATT_IF gattc_if, BD_ADDR bda, UINT16 conn_id,
53 static void bta_gattc_cmpl_cback(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status,
55 static void bta_gattc_cmpl_sendmsg(UINT16 conn_id, tGATTC_OPTYPE op,
61 static void bta_gattc_cong_cback (UINT16 conn_id, BOOLEAN congested);
554 UINT16 conn_id; local
576 &conn_id,
582 gattc_data.hdr.layer_specific = p_clcb->bta_conn_id = conn_id;
698 APPL_TRACE_DEBUG("bta_gattc_conn conn_id=%d",p_data->hdr.layer_specific);
771 cb_data.close.conn_id = p_data->hdr.layer_specific;
794 APPL_TRACE_DEBUG("bta_gattc_close conn_id
1545 bta_gattc_conn_cback(tGATT_IF gattc_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) argument
1670 bta_gattc_process_srvc_chg_ind(UINT16 conn_id, tBTA_GATTC_RCB *p_clrcb, tBTA_GATTC_SERV *p_srcb, tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_NOTIFY *p_notify, tGATT_VALUE *att_value) argument
1781 bta_gattc_process_indicate(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_CL_COMPLETE *p_data) argument
1861 bta_gattc_cmpl_cback(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data) argument
1900 bta_gattc_cmpl_sendmsg(UINT16 conn_id, tGATTC_OPTYPE op, tBTA_GATT_STATUS status, tGATT_CL_COMPLETE *p_data) argument
1929 bta_gattc_cong_cback(UINT16 conn_id, BOOLEAN congested) argument
1960 UINT16 conn_id; local
[all...]
H A Dbta_gatts_api.c331 void BTA_GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_id, UINT16 data_len, argument
338 p_buf->hdr.layer_specific = conn_id;
355 ** Parameters conn_id - connection identifier.
363 void BTA_GATTS_SendRsp (UINT16 conn_id, UINT32 trans_id, argument
370 p_buf->hdr.layer_specific = conn_id;
444 ** Parameters conn_id: connectino ID to be closed.
449 void BTA_GATTS_Close(UINT16 conn_id) argument
454 p_buf->layer_specific = conn_id;
H A Dbta_gatts_act.c44 static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id,
47 static void bta_gatts_send_request_cback (UINT16 conn_id,
50 static void bta_gatts_cong_cback (UINT16 conn_id, BOOLEAN congested);
659 cb_data.req_data.conn_id = p_msg->api_indicate.hdr.layer_specific;
685 UINT16 conn_id; local
697 &conn_id, p_msg->api_open.transport))
770 APPL_TRACE_ERROR("bta_gatts_close fail conn_id=%d", p_msg->hdr.layer_specific);
838 static void bta_gatts_send_request_cback (UINT16 conn_id, argument
849 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda, &transport))
853 APPL_TRACE_DEBUG ("bta_gatts_send_request_cback conn_id
891 bta_gatts_conn_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tGATT_TRANSPORT transport) argument
946 bta_gatts_cong_cback(UINT16 conn_id, BOOLEAN congested) argument
[all...]
/system/bt/btif/src/
H A Dbtif_gatt_test.c50 UINT16 conn_id; member in struct:__anon656
100 static void btif_test_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, argument
108 LOG_DEBUG(LOG_TAG, "%s: conn_id=%d, connected=%d", __FUNCTION__, conn_id, connected);
109 test_cb.conn_id = connected ? conn_id : 0;
112 static void btif_test_command_complete_cback(UINT16 conn_id, tGATTC_OPTYPE op, argument
115 LOG_DEBUG(LOG_TAG, "%s: op_code=0x%02x, conn_id=0x%x. status=0x%x",
116 __FUNCTION__, op, conn_id, status);
128 GATTC_SendHandleValueConfirm(conn_id, p_dat
137 btif_test_discovery_result_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_RES *p_data) argument
189 btif_test_discovery_complete_cback(UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status) argument
[all...]
H A Dbtif_gatt_server.c92 uint16_t conn_id; member in struct:__anon655
193 p_data->conn.conn_id, p_data->conn.server_if, TRUE, &bda);
203 p_data->conn.conn_id, p_data->conn.server_if, FALSE, &bda);
284 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda,
297 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda,
313 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda,
320 p_data->req_data.conn_id, p_data->req_data.status);
325 , p_data->congest.conn_id
332 , p_data->req_data.conn_id
438 if (p_cb->conn_id !
552 btif_gatts_close(int server_if, const bt_bdaddr_t *bd_addr, int conn_id) argument
646 btif_gatts_send_indication(int server_if, int attribute_handle, int conn_id, int len, int confirm, char* p_value) argument
661 btif_gatts_send_response(int conn_id, int trans_id, int status, btgatt_response_t *response) argument
[all...]
H A Dbtif_gatt_client.c160 uint16_t conn_id; member in struct:__anon649
186 uint16_t conn_id; member in struct:__anon650
473 , p_data->read.conn_id, p_data->read.status, &data);
481 p_data->write.conn_id, p_data->write.status, p_data->write.handle);
488 , p_data->exec_cmpl.conn_id, p_data->exec_cmpl.status
496 , p_data->search_cmpl.conn_id, p_data->search_cmpl.status);
506 , p_data->read.conn_id, p_data->read.status, &data);
513 p_data->write.conn_id, p_data->write.status, p_data->write.handle);
528 HAL_CBACK(bt_gatt_callbacks, client->notify_cb, p_data->notify.conn_id, &data);
531 BTA_GATTC_SendIndConfirm(p_data->notify.conn_id, p_dat
1648 btif_gattc_close( int client_if, const bt_bdaddr_t *bd_addr, int conn_id) argument
1737 btif_gattc_search_service(int conn_id, bt_uuid_t *filter_uuid ) argument
1749 btif_gattc_get_gatt_db(int conn_id) argument
1760 btif_gattc_read_char(int conn_id, uint16_t handle, int auth_req) argument
1771 btif_gattc_read_char_descr(int conn_id, uint16_t handle, int auth_req) argument
1782 btif_gattc_write_char(int conn_id, uint16_t handle, int write_type, int len, int auth_req, char* p_value) argument
1797 btif_gattc_write_char_descr(int conn_id, uint16_t handle, int write_type, int len, int auth_req, char* p_value) argument
1813 btif_gattc_execute_write(int conn_id, int execute) argument
1857 btif_gattc_configure_mtu(int conn_id, int mtu) argument
[all...]
/system/bt/bta/include/
H A Dbta_gatt_api.h255 UINT16 conn_id; member in struct:__anon353
263 UINT16 conn_id; member in struct:__anon354
270 UINT16 conn_id; member in struct:__anon355
276 UINT16 conn_id; member in struct:__anon356
282 UINT16 conn_id; member in struct:__anon357
288 UINT16 conn_id; member in struct:__anon358
296 UINT16 conn_id; member in struct:__anon359
306 UINT16 conn_id; member in struct:__anon360
314 UINT16 conn_id; member in struct:__anon361
324 UINT16 conn_id; member in struct:__anon362
332 UINT16 conn_id; member in struct:__anon363
479 UINT16 conn_id; member in struct:__anon367
522 UINT16 conn_id; member in struct:__anon372
529 UINT16 conn_id; member in struct:__anon373
535 UINT16 conn_id; /* connection ID */ member in struct:__anon374
[all...]
/system/bt/service/
H A Dgatt_server.h225 Connection(int conn_id, const bt_bdaddr_t& bdaddr) argument
226 : conn_id(conn_id), bdaddr(bdaddr) {}
227 Connection() : conn_id(-1) {
231 int conn_id; member in struct:bluetooth::GattServer::Connection
259 int conn_id, int server_id,
289 int conn_id, int trans_id,
295 int conn_id, int trans_id,
301 int conn_id, int trans_id,
305 int conn_id, in
[all...]
H A Dgatt_server.cpp358 connection->conn_id, request_id, error, &response);
408 if (pending_indications_.find(conn->conn_id) !=
411 << " is already pending for connection: " << conn->conn_id;
422 conn->conn_id,
436 pending_indications_[conn->conn_id] = pending_ind;
450 int conn_id, int server_id,
460 VLOG(1) << __func__ << " conn_id: " << conn_id << " connected: " << connected
466 conn_id_map_.erase(conn_id);
474 if ((*conn_iter)->conn_id !
448 ConnectionCallback( hal::BluetoothGattInterface* , int conn_id, int server_id, int connected, const bt_bdaddr_t& bda) argument
634 RequestReadCallback( hal::BluetoothGattInterface* , int conn_id, int trans_id, const bt_bdaddr_t& bda, int attribute_handle, int offset, bool is_long) argument
689 RequestWriteCallback( hal::BluetoothGattInterface* , int conn_id, int trans_id, const bt_bdaddr_t& bda, int attr_handle, int offset, int length, bool need_rsp, bool is_prep, uint8_t* value) argument
758 RequestExecWriteCallback( hal::BluetoothGattInterface* , int conn_id, int trans_id, const bt_bdaddr_t& bda, int exec_write) argument
793 IndicationSentCallback( hal::BluetoothGattInterface* , int conn_id, int status) argument
908 GetConnection( int conn_id, const bt_bdaddr_t& bda, int request_id) argument
926 << " connection: " << conn_id; local
[all...]
H A Dlow_energy_client.cpp360 std::map<const bt_bdaddr_t, int>::iterator conn_id; local
363 conn_id = connection_ids_.find(bda);
364 if (conn_id == connection_ids_.end()) {
371 GetClientHALInterface()->disconnect(client_id_, &bda, conn_id->second);
387 std::map<const bt_bdaddr_t, int>::iterator conn_id; local
390 conn_id = connection_ids_.find(bda);
391 if (conn_id == connection_ids_.end()) {
398 GetClientHALInterface()->configure_mtu(conn_id->second, mtu);
587 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status,
596 auto success = connection_ids_.emplace(bda, conn_id);
586 ConnectCallback( hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, int client_id, const bt_bdaddr_t& bda) argument
607 DisconnectCallback( hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, int client_id, const bt_bdaddr_t& bda) argument
626 MtuChangedCallback( hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, int mtu) argument
[all...]
/system/bt/stack/include/
H A Dgatt_api.h313 UINT16 conn_id; member in struct:__anon1137
559 typedef void (tGATT_DISC_RES_CB) (UINT16 conn_id, tGATT_DISC_TYPE disc_type,
563 typedef void (tGATT_DISC_CMPL_CB) (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status);
566 typedef void (tGATT_CMPL_CBACK) (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status,
570 typedef void (tGATT_CONN_CBACK) (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
574 typedef void (tGATT_REQ_CBACK )(UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type,
578 typedef void (tGATT_CONGESTION_CBACK )(UINT16 conn_id, BOOLEAN congested);
854 ** Parameter conn_id: connection identifier.
862 extern tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id,
872 ** Parameter conn_id
[all...]
/system/bt/bta/hh/
H A Dbta_hh_le.c78 UINT16 conn_id; member in struct:__anon227
90 static void mark_as_executing(UINT16 conn_id) { argument
92 *executing_conn_id = conn_id;
100 UINT16 *conn_id = context; local
102 if (*conn_id == *conn_id2)
108 static void mark_as_not_executing(UINT16 conn_id) { argument
110 list_foreach(gatt_op_queue_executing, rm_exec_conn_id, &conn_id);
114 UINT16 *conn_id = context; local
116 if (*conn_id == *conn_id2)
123 UINT16 *conn_id local
131 gatt_op_queue_clean(UINT16 conn_id) argument
139 UINT16 *conn_id = context; local
147 gatt_execute_next_op(UINT16 conn_id) argument
200 gatt_queue_read_op(UINT8 op_type, UINT16 conn_id, UINT16 handle) argument
214 gatt_queue_write_op(UINT8 op_type, UINT16 conn_id, UINT16 handle, UINT16 len, UINT8 *p_value, tBTA_GATTC_WRITE_TYPE write_type) argument
457 bta_hh_le_find_dev_cb_by_conn_id(UINT16 conn_id) argument
649 find_descriptor_by_short_uuid(UINT16 conn_id, UINT16 char_handle, UINT16 short_uuid) argument
[all...]
/system/bt/stack/gap/
H A Dgap_ble.c43 static void gap_ble_s_attr_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE op_code, tGATTS_DATA *p_data);
46 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected,
48 static void gap_ble_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data);
97 tGAP_CLCB *gap_ble_find_clcb_by_conn_id(UINT16 conn_id) argument
104 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id)
328 void gap_ble_s_attr_request_cback (UINT16 conn_id, UINT32 trans_id, argument
368 GATTS_SendRsp (conn_id, trans_id, status, &rsp_msg);
526 if (GATTC_Read(p_clcb->conn_id, GATT_READ_BY_TYPE, &param) == GATT_SUCCESS)
566 GATT_Disconnect(p_clcb->conn_id);
581 gap_ble_c_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tGATT_TRANSPORT transport) argument
618 gap_ble_c_cmpl_cback(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data) argument
[all...]

Completed in 413 milliseconds

12