Home
last modified time | relevance | path

Searched refs:scn (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Bluetooth/system/bta/test/
Dbta_rfcomm_scn_test.cc50 for (uint8_t scn = 2; scn <= RFCOMM_MAX_SCN; scn++) { in TEST_F() local
51 ASSERT_TRUE(BTA_TryAllocateSCN(scn)); in TEST_F()
62 for (uint8_t scn = 2; scn <= RFCOMM_MAX_SCN; scn++) { in TEST_F() local
63 ASSERT_EQ(BTA_AllocateSCN(), scn); in TEST_F()
69 for (uint8_t scn = 2; scn < RFCOMM_MAX_SCN; scn++) { in TEST_F() local
70 ASSERT_EQ(BTA_AllocateSCN(), scn); in TEST_F()
77 for (uint8_t scn = 2; scn <= RFCOMM_MAX_SCN; scn++) { in TEST_F() local
78 ASSERT_EQ(BTA_AllocateSCN(), scn); in TEST_F()
Dbta_hf_client_add_record_test.cc38 uint8_t scn = 0; in TEST_F() local
40 bta_hf_client_add_record("Handsfree", scn, features, sdp_handle); in TEST_F()
Dbta_jv_test.cc213 ASSERT_EQ(kScn, p_data->disc_comp.scn); in TEST_F()
/packages/modules/Bluetooth/system/bta/rfcomm/
Dbta_rfcomm_scn.cc82 bool BTA_TryAllocateSCN(uint8_t scn) { in BTA_TryAllocateSCN() argument
86 if ((scn > RFCOMM_MAX_SCN) || (scn == 1) || (scn == 0)) return false; in BTA_TryAllocateSCN()
89 if (!bta_jv_cb.scn_in_use[scn - 1]) { in BTA_TryAllocateSCN()
90 bta_jv_cb.scn_in_use[scn - 1] = true; in BTA_TryAllocateSCN()
91 log::debug("Allocating scn: {}", scn); in BTA_TryAllocateSCN()
94 log::debug("Unable to allocate scn {}", scn); in BTA_TryAllocateSCN()
107 bool BTA_FreeSCN(uint8_t scn) { in BTA_FreeSCN() argument
111 if (scn < RFCOMM_MAX_SCN && scn > 1) { in BTA_FreeSCN()
112 bta_jv_cb.scn_in_use[scn - 1] = false; in BTA_FreeSCN()
113 log::debug("Freed SCN: {}", scn); in BTA_FreeSCN()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_rfc.cc71 int scn; // Server channel number member
106 static void handle_discovery_comp(tBTA_JV_STATUS status, int scn, uint32_t id);
116 rfc_slots[i].scn = -1; in btsock_rfc_init()
215 slot->scn = channel; in alloc_rfc_slot()
244 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
387 slot->security, slot->scn, slot->addr, rfcomm_cback, slot->id); in btsock_rfc_connect()
391 bta_jv_status_text(ret), slot->scn, slot->addr); in btsock_rfc_connect()
424 if (slot->scn == 0) { in create_server_sdp_record()
428 add_rfc_sdp_rec(slot->service_name, slot->service_uuid, slot->scn); in create_server_sdp_record()
433 if (slot->scn <= 0) return; in free_rfc_slot_scn()
[all …]
/packages/modules/Bluetooth/system/stack/test/rfcomm/
Dstack_rfcomm_test.cc135 void StartServerPort(uint16_t uuid, uint8_t scn, uint16_t mtu, in StartServerPort() argument
141 uuid, scn, true, mtu, RawAddress::kAny, server_handle, in StartServerPort()
189 uint8_t scn, uint16_t mtu, uint16_t acl_handle, in ConnectServerPort() argument
194 CreateQuickPnPacket(true, GetDlci(false, scn), true, mtu, in ConnectServerPort()
198 CreateQuickPnPacket(false, GetDlci(false, scn), false, mtu, in ConnectServerPort()
213 CreateQuickSabmPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectServerPort()
217 scn, NotNull(), NotNull())) in ConnectServerPort()
229 CreateQuickUaPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectServerPort()
239 CreateQuickMscPacket(true, GetDlci(false, scn), lcid, acl_handle, true, in ConnectServerPort()
242 CreateQuickMscPacket(false, GetDlci(false, scn), lcid, acl_handle, in ConnectServerPort()
[all …]
Dstack_rfcomm_test_utils.cc30 uint8_t GetDlci(bool on_originator_side, uint8_t scn) { in GetDlci() argument
31 return static_cast<uint8_t>((scn << 1) + (on_originator_side ? 1 : 0)); in GetDlci()
Dstack_rfcomm_test_utils.h51 uint8_t GetDlci(bool on_originator_side, uint8_t scn);
/packages/modules/Bluetooth/system/stack/rfcomm/
Dport_api.cc111 int RFCOMM_CreateConnectionWithSecurity(uint16_t uuid, uint8_t scn, in RFCOMM_CreateConnectionWithSecurity() argument
119 if ((scn == 0) || (scn > RFCOMM_MAX_SCN)) { in RFCOMM_CreateConnectionWithSecurity()
123 bd_addr, static_cast<int>(scn), is_server, static_cast<int>(mtu), uuid); in RFCOMM_CreateConnectionWithSecurity()
132 dlci = static_cast<uint8_t>((scn << 1) + 1); in RFCOMM_CreateConnectionWithSecurity()
134 dlci = (scn << 1); in RFCOMM_CreateConnectionWithSecurity()
151 p_port->rfc.p_mcb ? p_port->rfc.p_mcb->state : 0, bd_addr, scn, in RFCOMM_CreateConnectionWithSecurity()
165 bd_addr, scn, is_server, mtu, uuid, dlci); in RFCOMM_CreateConnectionWithSecurity()
196 p_port->scn = scn; in RFCOMM_CreateConnectionWithSecurity()
226 bd_addr, scn, is_server, mtu, uuid, dlci, p_port->default_signal_state, in RFCOMM_CreateConnectionWithSecurity()
233 *p_handle, scn, dlci, mtu)); in RFCOMM_CreateConnectionWithSecurity()
[all …]
Drfc_port_fsm.cc464 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
469 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
478 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
489 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
506 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
511 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
517 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
524 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
538 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
545 p_port->bd_addr, p_port->handle, p_port->dlci, p_port->scn); in rfc_port_sm_opened()
[all …]
Dport_int.h162 uint8_t scn; /* Service channel number */
/packages/modules/Bluetooth/system/bta/jv/
Dbta_jv_act.cc318 p_pcb->state, p_cb->scn, fmt::ptr(p_pcb), p_pcb->rfcomm_slot_id); in bta_jv_free_rfc_cb()
323 log::verbose("state={}, scn={}, user_data={}", p_pcb->state, p_cb->scn, in bta_jv_free_rfc_cb()
331 p_cb->scn, p_pcb->rfcomm_slot_id); in bta_jv_free_rfc_cb()
335 log::verbose(": state: BTA_JV_ST_SR_OPEN, scn={} user_data={}", p_cb->scn, in bta_jv_free_rfc_cb()
342 p_pcb->state, p_cb->scn, fmt::ptr(p_pcb), p_pcb->handle, in bta_jv_free_rfc_cb()
376 p_cb->scn = 0; in bta_jv_free_rfc_cb()
723 uint8_t scn = 0; in bta_jv_get_channel_id() local
726 scn = static_cast<uint8_t>(channel); in bta_jv_get_channel_id()
731 scn = BTA_AllocateSCN(); in bta_jv_get_channel_id()
732 if (scn == 0) { in bta_jv_get_channel_id()
[all …]
Dbta_jv_int.h107 uint8_t scn; /* the scn of the server */ member
150 void bta_jv_free_scn(tBTA_JV_CONN_TYPE type, uint16_t scn);
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_sdp.cpp221 jstring name_str, jint mas_id, jint scn, in sdpCreateMapMasRecordNative() argument
239 record.mas.hdr.rfcomm_channel_number = scn; in sdpCreateMapMasRecordNative()
260 jstring name_str, jint scn, in sdpCreateMapMnsRecordNative() argument
278 record.mns.hdr.rfcomm_channel_number = scn; in sdpCreateMapMnsRecordNative()
328 jstring name_str, jint scn, in sdpCreatePbapPseRecordNative() argument
347 record.pse.hdr.rfcomm_channel_number = scn; in sdpCreatePbapPseRecordNative()
367 jstring name_str, jint scn, in sdpCreateOppOpsRecordNative() argument
385 record.ops.hdr.rfcomm_channel_number = scn; in sdpCreateOppOpsRecordNative()
416 jstring name_str, jint scn, in sdpCreateSapsRecordNative() argument
433 record.mas.hdr.rfcomm_channel_number = scn; in sdpCreateSapsRecordNative()
/packages/modules/Bluetooth/system/bta/hf_client/
Dbta_hf_client_sdp.cc100 bool bta_hf_client_add_record(const char* p_service_name, uint8_t scn, in bta_hf_client_add_record() argument
123 proto_elem_list[1].params[0] = scn; in bta_hf_client_add_record()
196 client_cb_arr->scn = BTA_AllocateSCN(); in bta_hf_client_create_record()
197 bta_hf_client_add_record(p_service_name, client_cb_arr->scn, in bta_hf_client_create_record()
224 BTA_FreeSCN(client_cb->scn); in bta_hf_client_del_record()
Dbta_hf_client_int.h201 uint8_t scn; member
241 bool bta_hf_client_add_record(const char* p_service_name, uint8_t scn,
Dbta_hf_client_rfc.cc199 UUID_SERVCLASS_HF_HANDSFREE, bta_hf_client_cb_arr.scn, true, in bta_hf_client_start_server()
/packages/modules/Bluetooth/system/bta/include/
Dbta_rfcomm_scn.h22 bool BTA_FreeSCN(uint8_t scn);
23 bool BTA_TryAllocateSCN(uint8_t scn);
Dbta_jv_api.h250 int scn; /* channel # */
411 uint8_t scn; /* BTA_JV_GET_SCN_EVT */
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_sdp.cc149 uint8_t scn, tBTA_AG_FEAT features, in bta_ag_add_record() argument
173 proto_elem_list[1].params[0] = scn; in bta_ag_add_record()
257 bta_ag_cb.profile[i].scn = BTA_AllocateSCN(); in bta_ag_create_records()
259 bta_ag_cb.profile[i].scn, data.api_register.features, in bta_ag_create_records()
310 BTA_FreeSCN(bta_ag_cb.profile[i].scn); in bta_ag_del_records()
Dbta_ag_int.h215 uint8_t scn; member
404 uint8_t scn, tBTA_AG_FEAT features, uint32_t sdp_handle);
Dbta_ag_rfc.cc265 bta_ag_uuid[i], bta_ag_cb.profile[i].scn, true, BTA_AG_MTU, in bta_ag_start_servers()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_sock_sdp.h37 int add_rfc_sdp_rec(const char* name, bluetooth::Uuid uuid, int scn);
/packages/modules/Bluetooth/system/stack/include/
Dport_api.h229 uint16_t uuid, uint8_t scn, bool is_server, uint16_t mtu,
/packages/modules/Bluetooth/system/gd/hal/
Dsnoop_logger.h137 uint8_t scn; member

12