Home
last modified time | relevance | path

Searched refs:sdp_cb (Results 1 – 14 of 14) sorted by relevance

/system/nfc/src/nfc/llcp/
Dllcp_sdp.cc71 if (llcp_cb.sdp_cb.p_snl) { in llcp_sdp_check_send_snl()
74 llcp_cb.sdp_cb.p_snl->len += LLCP_PDU_HEADER_SIZE; in llcp_sdp_check_send_snl()
75 llcp_cb.sdp_cb.p_snl->offset -= LLCP_PDU_HEADER_SIZE; in llcp_sdp_check_send_snl()
77 p = (uint8_t*)(llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset; in llcp_sdp_check_send_snl()
81 GKI_enqueue(&llcp_cb.lcb.sig_xmit_q, llcp_cb.sdp_cb.p_snl); in llcp_sdp_check_send_snl()
82 llcp_cb.sdp_cb.p_snl = nullptr; in llcp_sdp_check_send_snl()
107 p = (uint8_t*)(llcp_cb.sdp_cb.p_snl + 1) + llcp_cb.sdp_cb.p_snl->offset + in llcp_sdp_add_sdreq()
108 llcp_cb.sdp_cb.p_snl->len; in llcp_sdp_add_sdreq()
115 llcp_cb.sdp_cb.p_snl->len += LLCP_SDREQ_MIN_LEN + name_len; in llcp_sdp_add_sdreq()
137 if (!llcp_cb.sdp_cb.p_snl) { in llcp_sdp_send_sdreq()
[all …]
Dllcp_api.cc1489 if (!llcp_cb.sdp_cb.transac[i].p_cback) { in LLCP_DiscoverService()
1490 llcp_cb.sdp_cb.transac[i].tid = llcp_cb.sdp_cb.next_tid; in LLCP_DiscoverService()
1491 llcp_cb.sdp_cb.next_tid++; in LLCP_DiscoverService()
1492 llcp_cb.sdp_cb.transac[i].p_cback = p_cback; in LLCP_DiscoverService()
1494 status = llcp_sdp_send_sdreq(llcp_cb.sdp_cb.transac[i].tid, p_name); in LLCP_DiscoverService()
1497 llcp_cb.sdp_cb.transac[i].p_cback = nullptr; in LLCP_DiscoverService()
1500 *p_tid = llcp_cb.sdp_cb.transac[i].tid; in LLCP_DiscoverService()
/system/bt/stack/sdp/
Dsdp_main.cc42 tSDP_CB sdp_cb; variable
69 memset(&sdp_cb, 0, sizeof(tSDP_CB)); in sdp_init()
72 sdp_cb.ccb[i].sdp_conn_timer = alarm_new("sdp.sdp_conn_timer"); in sdp_init()
76 sdp_cb.l2cap_my_cfg.mtu_present = true; in sdp_init()
77 sdp_cb.l2cap_my_cfg.mtu = SDP_MTU_SIZE; in sdp_init()
79 sdp_cb.max_attr_list_size = SDP_MTU_SIZE - 16; in sdp_init()
80 sdp_cb.max_recs_per_search = SDP_MAX_DISC_SERVER_RECS; in sdp_init()
82 sdp_cb.trace_level = BT_TRACE_LEVEL_WARNING; in sdp_init()
84 sdp_cb.reg_info.pL2CA_ConnectInd_Cb = sdp_connect_ind; in sdp_init()
85 sdp_cb.reg_info.pL2CA_ConnectCfm_Cb = sdp_connect_cfm; in sdp_init()
[all …]
Dsdp_db.cc55 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_service_search()
60 p_rec = &sdp_cb.server_db.record[0]; in sdp_db_service_search()
145 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_find_record()
148 for (p_rec = &sdp_cb.server_db.record[0]; p_rec < p_end; p_rec++) { in sdp_db_find_record()
249 tSDP_DB* p_db = &sdp_cb.server_db; in SDP_CreateRecord()
293 tSDP_RECORD* p_rec = &sdp_cb.server_db.record[0]; in SDP_DeleteRecord()
295 if (handle == 0 || sdp_cb.server_db.num_records == 0) { in SDP_DeleteRecord()
297 sdp_cb.server_db.num_records = 0; in SDP_DeleteRecord()
300 sdp_cb.server_db.di_primary_handle = 0; in SDP_DeleteRecord()
305 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { in SDP_DeleteRecord()
[all …]
Dsdp_discovery.cc144 UINT16_TO_BE_STREAM(p, sdp_cb.max_recs_per_search); in sdp_snd_service_search_req()
292 if (total > sdp_cb.max_recs_per_search) total = sdp_cb.max_recs_per_search; in process_service_search_rsp()
293 if (p_ccb->num_handles > sdp_cb.max_recs_per_search) in process_service_search_rsp()
294 p_ccb->num_handles = sdp_cb.max_recs_per_search; in process_service_search_rsp()
472 UINT16_TO_BE_STREAM(p, sdp_cb.max_attr_list_size); in process_service_attr_rsp()
593 UINT16_TO_BE_STREAM(p, sdp_cb.max_attr_list_size); in process_service_search_attr_rsp()
Dsdp_api.cc916 if (p_device_info->primary_record && sdp_cb.server_db.di_primary_handle) in SDP_SetLocalDiRecord()
917 handle = sdp_cb.server_db.di_primary_handle; in SDP_SetLocalDiRecord()
1025 sdp_cb.server_db.di_primary_handle = handle; in SDP_SetLocalDiRecord()
1041 if (new_level != 0xFF) sdp_cb.trace_level = new_level; in SDP_SetTraceLevel()
1043 return (sdp_cb.trace_level); in SDP_SetTraceLevel()
Dsdpint.h181 extern tSDP_CB sdp_cb;
Dsdp_utils.cc304 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid()
329 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db()
352 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_allocate_ccb()
/system/bt/profile/avrcp/tests/
Davrcp_connection_handler_test.cc47 void SetUpSdp(tAVRC_FIND_CBACK* sdp_cb, bool browsing, bool absolute_volume) { in SetUpSdp() argument
50 .WillOnce(DoAll(SaveArg<3>(sdp_cb), Return(0))); in SetUpSdp()
184 tAVRC_FIND_CBACK sdp_cb; in TEST_F() local
185 SetUpSdp(&sdp_cb, false, false); in TEST_F()
198 sdp_cb.Run(0); in TEST_F()
225 tAVRC_FIND_CBACK sdp_cb; in TEST_F() local
226 SetUpSdp(&sdp_cb, false, false); in TEST_F()
234 sdp_cb.Run(0); in TEST_F()
264 tAVRC_FIND_CBACK sdp_cb; in TEST_F() local
265 SetUpSdp(&sdp_cb, false, true); in TEST_F()
[all …]
/system/bt/internal_include/
Dbt_trace.h328 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) \
333 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) \
338 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) \
343 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) \
348 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) \
/system/nfc/src/nfa/p2p/
Dnfa_p2p_act.cc187 if ((nfa_p2p_cb.sdp_cb[xx].local_sap != LLCP_INVALID_SAP) && in nfa_p2p_sdp_cback()
188 (nfa_p2p_cb.sdp_cb[xx].tid == tid)) { in nfa_p2p_sdp_cback()
189 local_sap = nfa_p2p_cb.sdp_cb[xx].local_sap; in nfa_p2p_sdp_cback()
195 nfa_p2p_cb.sdp_cb[xx].local_sap = LLCP_INVALID_SAP; in nfa_p2p_sdp_cback()
218 if (nfa_p2p_cb.sdp_cb[xx].local_sap == LLCP_INVALID_SAP) { in nfa_p2p_start_sdp()
220 &(nfa_p2p_cb.sdp_cb[xx].tid)) == in nfa_p2p_start_sdp()
222 nfa_p2p_cb.sdp_cb[xx].local_sap = local_sap; in nfa_p2p_start_sdp()
Dnfa_p2p_main.cc484 nfa_p2p_cb.sdp_cb[xx].local_sap = LLCP_INVALID_SAP; in nfa_p2p_init()
/system/nfc/src/nfa/include/
Dnfa_p2p_int.h250 tNFA_P2P_SDP_CB sdp_cb[LLCP_MAX_SDP_TRANSAC]; member
/system/nfc/src/nfc/include/
Dllcp_int.h219 tLLCP_SDP_CB sdp_cb; /* SDP control block */ member