/external/bluetooth/bluedroid/stack/gatt/ |
gatt_api.c | 132 ** Parameter gatt_if : application if 141 UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, 150 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); 158 GATT_TRACE_ERROR1 ("Inavlid gatt_if=%d", gatt_if); 386 ** Parameter gatt_if : application interface 393 BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_inst) 400 tGATT_REG *p_reg = gatt_get_regcb(gatt_if); 456 ** Parameter gatt_if : service handle. 463 tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle 602 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 672 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 716 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 769 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); local 821 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); local 890 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); local 978 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); local 1052 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); local 1189 tGATT_IF gatt_if=0; local 1471 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); local 1508 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local [all...] |
gatt_attr.c | 43 static void gatt_profile_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 215 static void gatt_profile_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, 256 gatt_cb.gatt_if = GATT_Register(&app_uuid, &gatt_profile_cback); 257 GATT_StartIf(gatt_cb.gatt_if); 259 service_handle = GATTS_CreateService (gatt_cb.gatt_if , &uuid, 0, GATTP_MAX_ATTR_NUM, TRUE); 272 status = GATTS_StartService (gatt_cb.gatt_if, service_handle, GATTP_TRANSPORT_SUPPORTED ); 274 GATT_TRACE_DEBUG2 ("gatt_profile_db_init: gatt_if=%d start status%d", 275 gatt_cb.gatt_if, status);
|
gatt_utils.c | 1324 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id); local 1525 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id); local 2299 tGATT_IF gatt_if = p_reg->gatt_if; local 2450 tGATT_IF gatt_if = p_reg->gatt_if; local [all...] |
gatt_int.h | 35 #define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) ((UINT16) ((((UINT8)(tcb_idx) ) << 8) | ((UINT8) (gatt_if)))) 224 tGATT_IF gatt_if; /* this service is belong to which application */ member in struct:__anon3113 240 tGATT_IF gatt_if; /* one based */ member in struct:__anon3114 441 tGATT_IF gatt_if[GATT_MAX_APPS]; member in struct:__anon3127 464 tGATT_IF gatt_if; member in struct:__anon3129 528 extern void gatt_update_app_use_link_flag ( tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOOLEAN check_acl_link); 595 extern BOOLEAN gatt_update_auto_connect_dev (tGATT_IF gatt_if, BOOLEAN add, BD_ADDR bd_addr, BOOLEAN is_initiator); 596 extern BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if); 597 extern BOOLEAN gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, BD_ADDR bd_addr) [all...] |
gatt_main.c | 225 void gatt_update_app_hold_link_status (tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add) 239 if (p_tcb->app_hold_link[i] == gatt_if) 256 p_tcb->app_hold_link[i] = gatt_if; 263 GATT_TRACE_DEBUG4("gatt_update_app_hold_link_status found=%d[1-found] idx=%d gatt_if=%d is_add=%d", found, i, gatt_if, is_add); 277 void gatt_update_app_use_link_flag (tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOOLEAN check_acl_link) 282 gatt_update_app_hold_link_status(gatt_if, p_tcb, is_add); 357 GATT_TRACE_ERROR1("Max TCB for gatt_if [%d] reached.", p_reg->gatt_if); 363 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE) [all...] |
gatt_sr.c | 258 tGATT_STATUS gatt_sr_process_app_rsp (tGATT_TCB *p_tcb, tGATT_IF gatt_if, 264 GATT_TRACE_DEBUG1("gatt_sr_process_app_rsp gatt_if=%d", gatt_if); 266 gatt_sr_update_cback_cnt(p_tcb, gatt_if, FALSE, FALSE); 277 gatt_sr_update_prep_cnt(p_tcb, gatt_if, TRUE, FALSE); 332 tGATT_IF gatt_if; local 363 gatt_if = (tGATT_IF) (i+1); 364 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_if); 492 gatt_sr_process_app_rsp(p_tcb, gatt_cb.sr_reg[i_rcb].gatt_if ,trans_id, op_code, GATT_SUCCESS, p_msg); 930 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, gatt_cb.cl_rcb[i].gatt_if); [all...] |
gatt_db.c | [all...] |
gatt_cl.c | 676 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); [all...] |
/external/bluetooth/bluedroid/bta/gatt/ |
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); 182 p_cb->rcb[first_unuse].gatt_if = GATT_Register(&p_msg->api_reg.app_uuid, &bta_gatts_cback); 183 if ( !p_cb->rcb[first_unuse].gatt_if) 192 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; 256 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) 262 GATT_Deregister(p_cb->rcb[i].gatt_if); 307 service_id = GATTS_CreateService (p_cb->rcb[rcb_idx].gatt_if, 325 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if; 364 cb_data.add_result.server_if = p_rcb->gatt_if; 399 cb_data.add_result.server_if = p_rcb->gatt_if; 690 tGATT_IF gatt_if; local 731 tGATT_IF gatt_if; local [all...] |
bta_gatts_utils.c | 97 if (p_reg->in_use && p_reg->gatt_if == server_if) 119 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if)
|
bta_gatts_int.h | 184 tBTA_GATTS_IF gatt_if; member in struct:__anon2537
|
bta_gattc_utils.c | 588 tBTA_GATTC_IF gatt_if; local 592 if (GATT_GetConnectionInfor(conn_id, &gatt_if, remote_bda)) 594 if ((p_clrcb = bta_gattc_cl_get_regcb(gatt_if)) != NULL)
|
bta_gattc_act.c | 619 tBTA_GATTC_IF gatt_if; local 628 GATT_GetConnectionInfor(p_data->hdr.layer_specific, &gatt_if, p_clcb->bda); 1787 tBTA_GATTC_IF gatt_if; local [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_gatt_test.c | 52 tGATT_IF gatt_if; member in struct:__anon2943 103 static void btif_test_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, 216 test_cb.gatt_if = GATT_Register(&app_uuid, &btif_test_callbacks); 217 GATT_StartIf(test_cb.gatt_if); 219 GATT_Deregister(test_cb.gatt_if); 220 test_cb.gatt_if = 0; 237 if ( !GATT_Connect(test_cb.gatt_if, params->bda1->address, TRUE) )
|
/external/bluetooth/bluedroid/stack/include/ |
gatt_api.h | 564 typedef void (tGATT_CONN_CBACK) (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 713 ** Parameter gatt_if : application if 722 GATT_API extern UINT16 GATTS_CreateService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, 792 ** Parameter gatt_if : application interface 799 GATT_API extern BOOLEAN GATTS_DeleteService (tGATT_IF gatt_if, tBT_UUID *p_svc_uuid, UINT16 svc_inst); 807 ** Parameter gatt_if : service handle. 814 GATT_API extern tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle, [all...] |
/external/bluetooth/bluedroid/stack/gap/ |
gap_ble.c | 60 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason); 488 gap_cb.gatt_if = GATT_Register(&app_uuid, &gap_cback); 490 GATT_StartIf(gap_cb.gatt_if); 493 service_handle = GATTS_CreateService (gap_cb.gatt_if, &uuid, 0, GAP_MAX_ATTR_NUM, TRUE); 516 status = GATTS_StartService(gap_cb.gatt_if, service_handle, GAP_TRANSPORT_SUPPORTED ); 518 GAP_TRACE_EVENT3 ("GAP App gatt_if: %d s_hdl = %d start_status=%d", 519 gap_cb.gatt_if, service_handle, status); 610 static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, 843 GATT_Connect(gap_cb.gatt_if, p_clcb->bda, TRUE); 883 if (!GATT_CancelConnect(gap_cb.gatt_if, peer_bda, TRUE) [all...] |
gap_int.h | 180 tGATT_IF gatt_if; member in struct:__anon3103
|