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.cc43 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()
78 sdp_cb.l2cap_my_cfg.flush_to_present = true; in sdp_init()
79 sdp_cb.l2cap_my_cfg.flush_to = SDP_FLUSH_TO; in sdp_init()
81 sdp_cb.max_attr_list_size = SDP_MTU_SIZE - 16; in sdp_init()
82 sdp_cb.max_recs_per_search = SDP_MAX_DISC_SERVER_RECS; in sdp_init()
101 sdp_cb.trace_level = SDP_INITIAL_TRACE_LEVEL; in sdp_init()
[all …]
Dsdp_db.cc56 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_service_search()
61 p_rec = &sdp_cb.server_db.record[0]; in sdp_db_service_search()
146 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_find_record()
149 for (p_rec = &sdp_cb.server_db.record[0]; p_rec < p_end; p_rec++) { in sdp_db_find_record()
253 tSDP_DB* p_db = &sdp_cb.server_db; in SDP_CreateRecord()
299 tSDP_RECORD* p_rec = &sdp_cb.server_db.record[0]; in SDP_DeleteRecord()
301 if (handle == 0 || sdp_cb.server_db.num_records == 0) { in SDP_DeleteRecord()
303 sdp_cb.server_db.num_records = 0; in SDP_DeleteRecord()
306 sdp_cb.server_db.di_primary_handle = 0; in SDP_DeleteRecord()
311 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { in SDP_DeleteRecord()
[all …]
Dsdp_discovery.cc147 UINT16_TO_BE_STREAM(p, sdp_cb.max_recs_per_search); in sdp_snd_service_search_req()
295 if (total > sdp_cb.max_recs_per_search) total = sdp_cb.max_recs_per_search; in process_service_search_rsp()
296 if (p_ccb->num_handles > sdp_cb.max_recs_per_search) in process_service_search_rsp()
297 p_ccb->num_handles = sdp_cb.max_recs_per_search; in process_service_search_rsp()
475 UINT16_TO_BE_STREAM(p, sdp_cb.max_attr_list_size); in process_service_attr_rsp()
601 UINT16_TO_BE_STREAM(p, sdp_cb.max_attr_list_size); in process_service_search_attr_rsp()
Dsdp_api.cc917 if (p_device_info->primary_record && sdp_cb.server_db.di_primary_handle) in SDP_SetLocalDiRecord()
918 handle = sdp_cb.server_db.di_primary_handle; in SDP_SetLocalDiRecord()
1026 sdp_cb.server_db.di_primary_handle = handle; in SDP_SetLocalDiRecord()
1045 if (new_level != 0xFF) sdp_cb.trace_level = new_level; in SDP_SetTraceLevel()
1047 return (sdp_cb.trace_level); in SDP_SetTraceLevel()
Dsdpint.h190 extern tSDP_CB sdp_cb;
Dsdp_utils.cc309 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid()
334 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db()
357 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.cc48 void SetUpSdp(tAVRC_FIND_CBACK* sdp_cb, bool browsing, bool absolute_volume) { in SetUpSdp() argument
51 .WillOnce(DoAll(SaveArg<3>(sdp_cb), Return(0))); in SetUpSdp()
185 tAVRC_FIND_CBACK sdp_cb; in TEST_F() local
186 SetUpSdp(&sdp_cb, false, false); in TEST_F()
199 sdp_cb.Run(0); in TEST_F()
226 tAVRC_FIND_CBACK sdp_cb; in TEST_F() local
227 SetUpSdp(&sdp_cb, false, false); in TEST_F()
235 sdp_cb.Run(0); in TEST_F()
265 tAVRC_FIND_CBACK sdp_cb; in TEST_F() local
266 SetUpSdp(&sdp_cb, false, true); in TEST_F()
[all …]
/system/bt/internal_include/
Dbt_trace.h283 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) \
288 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) \
293 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) \
298 if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) \
303 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