/external/bluetooth/bluedroid/btif/co/ |
bta_gattc_co.c | 41 ** conn_id: connection ID of this cache operation attach to. 47 void bta_gattc_co_cache_open(BD_ADDR server_bda, UINT16 evt, UINT16 conn_id, BOOLEAN to_save) 52 bta_gattc_ci_cache_open(server_bda, evt, status, conn_id); 66 ** conn_id: connection ID of this cache operation attach to. 70 void bta_gattc_co_cache_load(BD_ADDR server_bda, UINT16 evt, UINT16 start_index, UINT16 conn_id) 76 bta_gattc_ci_cache_load(server_bda, evt, num_attr, attr, status, conn_id); 90 ** conn_id: connection ID of this cache operation attach to. 95 tBTA_GATTC_NV_ATTR *p_attr_list, UINT16 attr_index, UINT16 conn_id) 99 bta_gattc_ci_cache_save(server_bda, evt, status, conn_id); 110 ** conn_id: connection ID of this cache operation attach to [all...] |
/external/libnfc-nci/src/nfc/nfc/ |
nfc_utils.c | 53 if (nfc_cb.conn_cb[xx].conn_id == NFC_ILLEGAL_CONN_ID) 55 nfc_cb.conn_cb[xx].conn_id = NFC_PEND_CONN_ID; /* to indicate this cb is used */ 74 void nfc_set_conn_id (tNFC_CONN_CB * p_cb, UINT8 conn_id) 81 p_cb->conn_id = conn_id; 83 nfc_cb.conn_id[conn_id] = handle; 84 NFC_TRACE_DEBUG2 ("nfc_set_conn_id conn_id:%d, handle:%d", conn_id, handle); 123 tNFC_CONN_CB * nfc_find_conn_cb_by_conn_id (UINT8 conn_id) [all...] |
/external/bluetooth/bluedroid/bta/include/ |
bta_gattc_co.h | 38 ** conn_id: connection ID of this cache operation attach to. 45 UINT16 conn_id, BOOLEAN to_save); 55 ** conn_id: connection ID of this cache operation attach to. 60 BTA_API extern void bta_gattc_co_cache_close(BD_ADDR server_bda, UINT16 conn_id); 74 ** conn_id: connection ID of this cache operation attach to. 80 UINT16 attr_index, UINT16 conn_id); 93 ** conn_id: connection ID of this cache operation attach to. 98 UINT16 start_index, UINT16 conn_id);
|
bta_gattc_ci.h | 75 tBTA_GATT_STATUS status, UINT16 conn_id); 95 tBTA_GATT_STATUS status, UINT16 conn_id); 112 tBTA_GATT_STATUS status, UINT16 conn_id);
|
bta_gatt_api.h | 279 UINT16 conn_id; member in struct:__anon418 289 UINT16 conn_id; member in struct:__anon419 298 UINT16 conn_id; member in struct:__anon420 304 UINT16 conn_id; member in struct:__anon421 310 UINT16 conn_id; member in struct:__anon422 318 UINT16 conn_id; member in struct:__anon423 326 UINT16 conn_id; member in struct:__anon424 334 UINT16 conn_id; member in struct:__anon425 348 UINT16 conn_id; member in struct:__anon426 495 UINT16 conn_id; member in struct:__anon431 544 UINT16 conn_id; member in struct:__anon436 [all...] |
/external/bluetooth/bluedroid/stack/srvc/ |
srvc_eng.c | 32 static void srvc_eng_s_request_cback (UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *p_data); 33 static void srvc_eng_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 34 static void srvc_eng_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data); 74 return p_clcb->conn_id; 114 tSRVC_CLCB *srvc_eng_find_clcb_by_conn_id(UINT16 conn_id) 121 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) 138 UINT8 srvc_eng_find_clcb_idx_by_conn_id(UINT16 conn_id) 145 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) 453 UINT16 conn_id = srvc_eng_find_conn_id_by_bd_addr(remote_bda); local [all...] |
srvc_eng_int.h | 39 UINT16 conn_id; member in struct:__anon1276 74 extern tSRVC_CLCB *srvc_eng_find_clcb_by_conn_id(UINT16 conn_id); 79 extern void srvc_eng_release_channel (UINT16 conn_id) ;
|
srvc_dis.c | 171 void dis_gatt_c_read_dis_value_cmpl(UINT16 conn_id) 173 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); 177 srvc_eng_release_channel(conn_id); 199 BOOLEAN dis_gatt_c_read_dis_req(UINT16 conn_id) 214 if (GATTC_Read(conn_id, GATT_READ_BY_TYPE, ¶m) == GATT_SUCCESS) 225 dis_gatt_c_read_dis_value_cmpl(conn_id); 244 UINT16 conn_id = p_clcb->conn_id; local 306 dis_gatt_c_read_dis_req(conn_id); 425 UINT16 conn_id; local [all...] |
/external/bluetooth/bluedroid/bta/gatt/ |
bta_gattc_ci.c | 52 UINT16 conn_id) 59 p_evt->hdr.layer_specific = conn_id; 84 UINT16 conn_id) 93 p_evt->hdr.layer_specific = conn_id; 118 *8 conn_id - for this NV operation for. 124 UINT16 conn_id) 131 p_evt->hdr.layer_specific = conn_id;
|
bta_gattc_api.c | 205 ** Parameters conn_id: connectino ID to be closed. 210 void BTA_GATTC_Close(UINT16 conn_id) 218 p_buf->layer_specific = conn_id; 234 ** Parameters conn_id: connection ID. 241 void BTA_GATTC_ServiceSearchRequest (UINT16 conn_id, tBT_UUID *p_srvc_uuid) 251 p_buf->hdr.layer_specific = conn_id; 274 ** Parameters conn_id: connection ID which identify the server. 285 tBTA_GATT_STATUS BTA_GATTC_GetFirstChar (UINT16 conn_id, tBTA_GATT_SRVC_ID *p_srvc_id, 295 if ((status = bta_gattc_query_cache(conn_id, BTA_GATTC_ATTR_TYPE_CHAR, p_srvc_id, NULL, 312 ** Parameters conn_id: connection ID which identify the server [all...] |
bta_gattc_cache.c | 39 static void bta_gattc_char_dscpt_disc_cmpl(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb); 40 static tBTA_GATT_STATUS bta_gattc_sdp_service_disc(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb); 462 tBTA_GATT_STATUS bta_gattc_discover_pri_service(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, UINT8 disc_type) 465 return bta_gattc_discover_procedure(conn_id, p_server_cb, disc_type); 467 return bta_gattc_sdp_service_disc(conn_id, p_server_cb); 478 tBTA_GATT_STATUS bta_gattc_discover_procedure(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, UINT8 disc_type) 502 return GATTC_Discover (conn_id, disc_type, ¶m); 514 tBTA_GATT_STATUS bta_gattc_start_disc_include_srvc(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) 516 return bta_gattc_discover_procedure(conn_id, p_srvc_cb, GATT_DISC_INC_SRVC); 527 tBTA_GATT_STATUS bta_gattc_start_disc_char(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb [all...] |
bta_gatts_api.c | 388 void BTA_GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_id, UINT16 data_len, 399 p_buf->hdr.layer_specific = conn_id; 420 ** Parameters conn_id - connection identifier. 428 void BTA_GATTS_SendRsp (UINT16 conn_id, UINT32 trans_id, 439 p_buf->hdr.layer_specific = conn_id; 523 ** Parameters conn_id: connectino ID to be closed. 528 void BTA_GATTS_Close(UINT16 conn_id) 535 p_buf->layer_specific = conn_id;
|
bta_gattc_int.h | 484 BD_ADDR remote_bda, UINT16 conn_id); 492 extern tBTA_GATTC_CLCB * bta_gattc_find_clcb_by_conn_id (UINT16 conn_id); 499 extern tBTA_GATTC_SERV * bta_gattc_find_scb_by_cid (UINT16 conn_id); 514 extern void bta_gattc_clear_notif_registration(UINT16 conn_id); 521 extern void bta_gattc_disc_res_cback (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_RES *p_data); 522 extern void bta_gattc_disc_cmpl_cback (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status); 523 extern tBTA_GATT_STATUS bta_gattc_discover_procedure(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, UINT8 disc_type); 524 extern tBTA_GATT_STATUS bta_gattc_discover_pri_service(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, UINT8 disc_type); 526 extern tBTA_GATT_STATUS bta_gattc_query_cache(UINT16 conn_id, UINT8 query_type, tBTA_GATT_SRVC_ID *p_srvc_id, 531 extern BOOLEAN bta_gattc_cache_save(tBTA_GATTC_SERV *p_srvc_cb, UINT16 conn_id); [all...] |
bta_gatts_act.c | 42 static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 43 static void bta_gatts_send_request_cback (UINT16 conn_id, 762 APPL_TRACE_ERROR1("bta_gatts_close fail conn_id=%d", p_msg->hdr.layer_specific); 828 static void bta_gatts_send_request_cback (UINT16 conn_id, 838 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda)) 842 APPL_TRACE_DEBUG3 ("bta_gatts_send_request_cback conn_id=%d trans_id=%d req_type=%d", conn_id, trans_id, req_type); 853 cb_data.req_data.conn_id = conn_id; 866 APPL_TRACE_ERROR1("request received on unknown connectino ID: %d", conn_id); [all...] |
/hardware/libhardware/include/hardware/ |
bt_gatt_client.h | 91 typedef void (*connect_callback)(int conn_id, int status, int client_if, bt_bdaddr_t* bda); 94 typedef void (*disconnect_callback)(int conn_id, int status, 101 typedef void (*search_complete_callback)(int conn_id, int status); 104 typedef void (*search_result_callback)( int conn_id, btgatt_srvc_id_t *srvc_id); 107 typedef void (*get_characteristic_callback)(int conn_id, int status, 112 typedef void (*get_descriptor_callback)(int conn_id, int status, 117 typedef void (*get_included_service_callback)(int conn_id, int status, 121 typedef void (*register_for_notification_callback)(int conn_id, 129 typedef void (*notify_callback)(int conn_id, btgatt_notify_params_t *p_data); 132 typedef void (*read_characteristic_callback)(int conn_id, int status [all...] |
bt_gatt_server.h | 51 typedef void (*connection_callback)(int conn_id, int server_if, int connected, 86 typedef void (*request_read_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, 93 typedef void (*request_write_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, 98 typedef void (*request_exec_write_callback)(int conn_id, int trans_id, 136 int conn_id ); 165 int conn_id, int len, int confirm, 169 bt_status_t (*send_response)(int conn_id, int trans_id,
|
/external/bluetooth/bluedroid/stack/gatt/ |
gatt_attr.c | 42 static void gatt_profile_request_cback (UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *p_data); 43 static void gatt_profile_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 73 return p_clcb->conn_id; 114 tGATT_PROFILE_CLCB *gatt_profile_clcb_alloc (UINT16 conn_id, BD_ADDR bda) 124 p_clcb->conn_id = conn_id; 141 BOOLEAN gatt_profile_clcb_dealloc (UINT16 conn_id) 148 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) 167 static void gatt_profile_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type [all...] |
gatt_api.c | 587 ** Parameter conn_id: connection identifier. 595 tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_handle, UINT16 val_len, UINT8 *p_val) 602 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); 603 UINT8 tcb_idx = GATT_GET_TCB_IDX(conn_id); 611 GATT_TRACE_ERROR1 ("GATTS_HandleValueIndication Unknown conn_id: %u ", conn_id); 614 indication.conn_id = conn_id; 658 ** Parameter conn_id: connection identifier. 666 tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle 1324 UINT16 conn_id; local [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_gatt_test.c | 53 UINT16 conn_id; member in struct:__anon675 103 static void btif_test_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, 106 ALOGD("%s: conn_id=%d, connected=%d", __FUNCTION__, conn_id, connected); 107 test_cb.conn_id = connected ? conn_id : 0; 110 static void btif_test_command_complete_cback(UINT16 conn_id, tGATTC_OPTYPE op, 113 ALOGD ("%s: op_code=0x%02x, conn_id=0x%x. status=0x%x", 114 __FUNCTION__, op, conn_id, status); 126 GATTC_SendHandleValueConfirm(conn_id, p_data->handle) [all...] |
btif_gatt_client.c | 121 uint16_t conn_id; member in struct:__anon670 346 , p_data->read.conn_id, p_data->read.status, &data); 358 , p_data->write.conn_id, p_data->write.status, &data 366 , p_data->exec_cmpl.conn_id, p_data->exec_cmpl.status 374 , p_data->search_cmpl.conn_id, p_data->search_cmpl.status); 383 , p_data->srvc_res.conn_id, &data); 393 , p_data->read.conn_id, p_data->read.status, &data); 405 , p_data->write.conn_id, p_data->write.status, &data); 423 , p_data->notify.conn_id, &data); 427 BTA_GATTC_SendIndConfirm(p_data->notify.conn_id, [all...] |
btif_gatt_server.c | 93 uint16_t conn_id; member in struct:__anon674 198 p_data->conn.conn_id, p_data->conn.server_if, TRUE, &bda); 208 p_data->conn.conn_id, p_data->conn.server_if, FALSE, &bda); 289 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, 302 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, 318 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, 393 if (p_cb->conn_id != 0) 394 BTA_GATTS_Close(p_cb->conn_id); 444 BTA_GATTS_HandleValueIndication(p_cb->conn_id, p_cb->attr_handle, 456 BTA_GATTS_SendRsp(p_cb->conn_id, p_cb->trans_id [all...] |
/external/bluetooth/bluedroid/stack/gap/ |
gap_ble.c | 56 static void gap_ble_s_attr_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE op_code, tGATTS_DATA *p_data); 59 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 60 static void gap_ble_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data); 108 tGAP_CLCB *gap_ble_find_clcb_by_conn_id(UINT16 conn_id) 115 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) 133 tGAP_CLCB *gap_clcb_alloc (UINT16 conn_id, BD_ADDR bda) 143 p_clcb->conn_id = conn_id; 161 tGAP_CLCB *gap_find_alloc_clcb (UINT16 conn_id, BD_ADDR bda [all...] |
/external/bluetooth/bluedroid/stack/include/ |
gatt_api.h | 312 UINT16 conn_id; member in struct:__anon1065 562 typedef void (tGATT_DISC_RES_CB) (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_DISC_RES *p_data); 565 typedef void (tGATT_DISC_CMPL_CB) (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGATT_STATUS status); 568 typedef void (tGATT_CMPL_CBACK) (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data); 571 typedef void (tGATT_CONN_CBACK) (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 574 typedef void (tGATT_REQ_CBACK )(UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type, tGATTS_DATA *p_data); 847 ** Parameter conn_id: connection identifier. 855 GATT_API extern tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, 865 ** Parameter conn_id: connection identifier. [all...] |
/packages/apps/Bluetooth/jni/ |
com_android_bluetooth_gatt.cpp | 229 void btgattc_open_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) 240 clientIf, conn_id, status, address); 245 void btgattc_close_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) 255 clientIf, conn_id, status, address); 260 void btgattc_search_complete_cb(int conn_id, int status) 264 conn_id, status); 268 void btgattc_search_result_cb(int conn_id, btgatt_srvc_id_t *srvc_id) 271 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchResult, conn_id, 276 void btgattc_get_characteristic_cb(int conn_id, int status, 282 , conn_id, status, SRVC_ID_PARAMS(srvc_id), GATT_ID_PARAMS(char_id [all...] |
/external/libnfc-nci/src/nfc/int/ |
nfc_int.h | 114 UINT8 conn_id; /* the connection id assigned by NFCC for this conn */ member in struct:__anon20907 152 UINT8 conn_id[NFC_MAX_CONN_ID+1]; /* index: conn_id; conn_id[]: index(1 based) to conn_cb[] */ member in struct:__anon20910 216 NFC_API extern tNFC_CONN_CB * nfc_find_conn_cb_by_conn_id (UINT8 conn_id); 218 NFC_API extern void nfc_set_conn_id (tNFC_CONN_CB * p_cb, UINT8 conn_id); 235 NFC_API extern void nfc_ncif_error_status (UINT8 conn_id, UINT8 status); 245 NFC_API extern void nfc_ncif_report_conn_close_evt (UINT8 conn_id, tNFC_STATUS status);
|