/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 | 308 UINT16 conn_id; member in struct:__anon5398 318 UINT16 conn_id; member in struct:__anon5399 327 UINT16 conn_id; member in struct:__anon5400 333 UINT16 conn_id; member in struct:__anon5401 339 UINT16 conn_id; member in struct:__anon5402 345 UINT16 conn_id; member in struct:__anon5403 353 UINT16 conn_id; member in struct:__anon5404 363 UINT16 conn_id; member in struct:__anon5405 371 UINT16 conn_id; member in struct:__anon5406 382 UINT16 conn_id; member in struct:__anon5407 391 UINT16 conn_id; member in struct:__anon5408 539 UINT16 conn_id; member in struct:__anon5412 588 UINT16 conn_id; member in struct:__anon5417 595 UINT16 conn_id; member in struct:__anon5418 601 UINT16 conn_id; \/* connection ID *\/ member in struct:__anon5419 [all...] |
/external/bluetooth/bluedroid/stack/srvc/ |
srvc_eng.c | 34 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) 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) 149 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) 472 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:__anon6346 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 | 200 void dis_gatt_c_read_dis_value_cmpl(UINT16 conn_id) 202 tSRVC_CLCB *p_clcb = srvc_eng_find_clcb_by_conn_id(conn_id); 206 srvc_eng_release_channel(conn_id); 228 BOOLEAN dis_gatt_c_read_dis_req(UINT16 conn_id) 246 if (GATTC_Read(conn_id, GATT_READ_BY_TYPE, ¶m) == GATT_SUCCESS) 255 dis_gatt_c_read_dis_value_cmpl(conn_id); 274 UINT16 conn_id = p_clcb->conn_id; local 337 dis_gatt_c_read_dis_req(conn_id); 457 UINT16 conn_id; local [all...] |
/external/bluetooth/bluedroid/bta/gatt/ |
bta_gattc_ci.c | 53 UINT16 conn_id) 61 p_evt->hdr.layer_specific = conn_id; 86 UINT16 conn_id) 96 p_evt->hdr.layer_specific = conn_id; 121 *8 conn_id - for this NV operation for. 127 UINT16 conn_id) 135 p_evt->hdr.layer_specific = conn_id;
|
bta_gattc_api.c | 206 ** Parameters conn_id: connectino ID to be closed. 211 void BTA_GATTC_Close(UINT16 conn_id) 219 p_buf->layer_specific = conn_id; 233 ** Parameters conn_id: connection ID. 239 void BTA_GATTC_ConfigureMTU (UINT16 conn_id, UINT16 mtu) 246 p_buf->hdr.layer_specific = conn_id; 263 ** Parameters conn_id: connection ID. 270 void BTA_GATTC_ServiceSearchRequest (UINT16 conn_id, tBT_UUID *p_srvc_uuid) 280 p_buf->hdr.layer_specific = conn_id; 303 ** Parameters conn_id: connection ID which identify the server [all...] |
bta_gattc_cache.c | 40 static void bta_gattc_char_dscpt_disc_cmpl(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb); 41 static tBTA_GATT_STATUS bta_gattc_sdp_service_disc(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb); 463 tBTA_GATT_STATUS bta_gattc_discover_pri_service(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, 466 tBTA_GATTC_CLCB *p_clcb = bta_gattc_find_clcb_by_conn_id(conn_id); 472 status = bta_gattc_discover_procedure(conn_id, p_server_cb, disc_type); 474 status = bta_gattc_sdp_service_disc(conn_id, p_server_cb); 488 tBTA_GATT_STATUS bta_gattc_discover_procedure(UINT16 conn_id, tBTA_GATTC_SERV *p_server_cb, 513 return GATTC_Discover (conn_id, disc_type, ¶m); 525 tBTA_GATT_STATUS bta_gattc_start_disc_include_srvc(UINT16 conn_id, tBTA_GATTC_SERV *p_srvc_cb) 527 return bta_gattc_discover_procedure(conn_id, p_srvc_cb, GATT_DISC_INC_SRVC) [all...] |
bta_gattc_act.c | 47 static void bta_gattc_conn_cback(tGATT_IF gattc_if, BD_ADDR bda, UINT16 conn_id, 51 static void bta_gattc_cmpl_cback(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, 56 static void bta_gattc_cong_cback (UINT16 conn_id, BOOLEAN congested); 557 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); 765 cb_data.close.conn_id = p_data->hdr.layer_specific; 789 APPL_TRACE_DEBUG("bta_gattc_close conn_id=%d",p_clcb->bta_conn_id); 792 cb_data.close.conn_id = p_clcb->bta_conn_id 2192 UINT16 conn_id; local [all...] |
bta_gatts_act.c | 43 static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, 46 static void bta_gatts_send_request_cback (UINT16 conn_id, 49 static void bta_gatts_cong_cback (UINT16 conn_id, BOOLEAN congested); 684 cb_data.req_data.conn_id = p_msg->api_indicate.hdr.layer_specific; 710 UINT16 conn_id; local 722 &conn_id, p_msg->api_open.transport)) 795 APPL_TRACE_ERROR("bta_gatts_close fail conn_id=%d", p_msg->hdr.layer_specific); 863 static void bta_gatts_send_request_cback (UINT16 conn_id, 874 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda, &transport)) 878 APPL_TRACE_DEBUG ("bta_gatts_send_request_cback conn_id=%d trans_id=%d req_type=%d" [all...] |
bta_gatts_api.c | 386 void BTA_GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_id, UINT16 data_len, 397 p_buf->hdr.layer_specific = conn_id; 418 ** Parameters conn_id - connection identifier. 426 void BTA_GATTS_SendRsp (UINT16 conn_id, UINT32 trans_id, 437 p_buf->hdr.layer_specific = conn_id; 524 ** Parameters conn_id: connectino ID to be closed. 529 void BTA_GATTS_Close(UINT16 conn_id) 536 p_buf->layer_specific = conn_id;
|
/external/bluetooth/bluedroid/stack/gatt/ |
gatt_attr.c | 43 static void gatt_profile_request_cback (UINT16 conn_id, UINT32 trans_id, UINT8 op_code, tGATTS_DATA *p_data); 44 static void gatt_profile_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, 76 return p_clcb->conn_id; 118 tGATT_PROFILE_CLCB *gatt_profile_clcb_alloc (UINT16 conn_id, BD_ADDR bda, tBT_TRANSPORT tranport) 128 p_clcb->conn_id = conn_id; 146 BOOLEAN gatt_profile_clcb_dealloc (UINT16 conn_id) 153 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) 172 static void gatt_profile_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE type [all...] |
gatt_api.c | 588 ** Parameter conn_id: connection identifier. 596 tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_handle, UINT16 val_len, UINT8 *p_val) 603 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); 604 UINT8 tcb_idx = GATT_GET_TCB_IDX(conn_id); 612 GATT_TRACE_ERROR ("GATTS_HandleValueIndication Unknown conn_id: %u ", conn_id); 619 indication.conn_id = conn_id; 660 ** Parameter conn_id: connection identifier. 668 tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle 1335 UINT16 conn_id; local [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, 111 typedef void (*indication_sent_callback)(int conn_id, int status); 118 typedef void (*congestion_callback)(int conn_id, bool congested); 152 int conn_id ); 181 int conn_id, int len, int confirm, 185 bt_status_t (*send_response)(int conn_id, int trans_id,
|
/external/bluetooth/bluedroid/btif/co/ |
bta_gattc_co.c | 79 ** conn_id: connection ID of this cache operation attach to. 85 void bta_gattc_co_cache_open(BD_ADDR server_bda, UINT16 evt, UINT16 conn_id, BOOLEAN to_save) 93 bta_gattc_ci_cache_open(server_bda, evt, status, conn_id); 107 ** conn_id: connection ID of this cache operation attach to. 111 void bta_gattc_co_cache_load(BD_ADDR server_bda, UINT16 evt, UINT16 start_index, UINT16 conn_id) 125 bta_gattc_ci_cache_load(server_bda, evt, num_attr, attr, status, conn_id); 140 ** conn_id: connection ID of this cache operation attach to. 145 tBTA_GATTC_NV_ATTR *p_attr_list, UINT16 attr_index, UINT16 conn_id) 156 bta_gattc_ci_cache_save(server_bda, evt, status, conn_id); 167 ** conn_id: connection ID of this cache operation attach to [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_gatt_test.c | 53 UINT16 conn_id; member in struct:__anon5694 103 static void btif_test_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, 111 ALOGD("%s: conn_id=%d, connected=%d", __FUNCTION__, conn_id, connected); 112 test_cb.conn_id = connected ? conn_id : 0; 115 static void btif_test_command_complete_cback(UINT16 conn_id, tGATTC_OPTYPE op, 118 ALOGD ("%s: op_code=0x%02x, conn_id=0x%x. status=0x%x", 119 __FUNCTION__, op, conn_id, status); 131 GATTC_SendHandleValueConfirm(conn_id, p_data->handle) [all...] |
btif_gatt_server.c | 93 uint16_t conn_id; member in struct:__anon5693 199 p_data->conn.conn_id, p_data->conn.server_if, TRUE, &bda); 209 p_data->conn.conn_id, p_data->conn.server_if, FALSE, &bda); 290 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, 303 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, 319 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, 326 p_data->req_data.conn_id, p_data->req_data.status); 331 , p_data->congest.conn_id 430 if (p_cb->conn_id != 0) 431 BTA_GATTS_Close(p_cb->conn_id); [all...] |
btif_gatt_client.c | 166 uint16_t conn_id; member in struct:__anon5687 191 uint16_t conn_id; member in struct:__anon5688 438 , p_data->read.conn_id, p_data->read.status, &data); 450 , p_data->write.conn_id, p_data->write.status, &data 458 , p_data->exec_cmpl.conn_id, p_data->exec_cmpl.status 466 , p_data->search_cmpl.conn_id, p_data->search_cmpl.status); 475 , p_data->srvc_res.conn_id, &data); 485 , p_data->read.conn_id, p_data->read.status, &data); 497 , p_data->write.conn_id, p_data->write.status, &data); 515 , p_data->notify.conn_id, &data) [all...] |
/external/bluetooth/bluedroid/stack/include/ |
gatt_api.h | 312 UINT16 conn_id; member in struct:__anon6147 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. [all...] |
/external/bluetooth/bluedroid/stack/gap/ |
gap_ble.c | 57 static void gap_ble_s_attr_request_cback (UINT16 conn_id, UINT32 trans_id, tGATTS_REQ_TYPE op_code, tGATTS_DATA *p_data); 60 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, 62 static void gap_ble_c_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op, tGATT_STATUS status, tGATT_CL_COMPLETE *p_data); 111 tGAP_CLCB *gap_ble_find_clcb_by_conn_id(UINT16 conn_id) 118 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) 136 tGAP_CLCB *gap_clcb_alloc (UINT16 conn_id, BD_ADDR bda) 146 p_clcb->conn_id = conn_id; 164 tGAP_CLCB *gap_find_alloc_clcb (UINT16 conn_id, BD_ADDR bda [all...] |
/packages/apps/Bluetooth/jni/ |
com_android_bluetooth_gatt.cpp | 244 void btgattc_open_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) 255 clientIf, conn_id, status, address); 260 void btgattc_close_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) 270 clientIf, conn_id, status, address); 275 void btgattc_search_complete_cb(int conn_id, int status) 279 conn_id, status); 283 void btgattc_search_result_cb(int conn_id, btgatt_srvc_id_t *srvc_id) 286 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchResult, conn_id, 291 void btgattc_get_characteristic_cb(int conn_id, int status, 297 , 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:__anon28167 152 UINT8 conn_id[NFC_MAX_CONN_ID+1]; /* index: conn_id; conn_id[]: index(1 based) to conn_cb[] */ member in struct:__anon28170 217 NFC_API extern tNFC_CONN_CB * nfc_find_conn_cb_by_conn_id (UINT8 conn_id); 219 NFC_API extern void nfc_set_conn_id (tNFC_CONN_CB * p_cb, UINT8 conn_id); 236 NFC_API extern void nfc_ncif_error_status (UINT8 conn_id, UINT8 status); 246 NFC_API extern void nfc_ncif_report_conn_close_evt (UINT8 conn_id, tNFC_STATUS status);
|