Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_sock_rfc.cc85 int scn; // Server channel number member
129 rfc_slots[i].scn = -1; in btsock_rfc_init()
223 slot->scn = channel; in alloc_rfc_slot()
251 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
365 BTA_JvRfcommConnect(slot->security, slot->role, slot->scn, slot->addr, in btsock_rfc_connect()
400 if (slot->scn == 0) { in create_server_sdp_record()
404 add_rfc_sdp_rec(slot->service_name, slot->service_uuid, slot->scn); in create_server_sdp_record()
409 if (slot->scn <= 0) return; in free_rfc_slot_scn()
416 if (slot->f.server) BTM_FreeSCN(slot->scn); in free_rfc_slot_scn()
417 slot->scn = 0; in free_rfc_slot_scn()
[all …]
Dbtif_mce.cc60 insts[i].scn = evt_data->mas[i].scn; in btif_mce_mas_discovery_comp_evt()
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test.cc133 void StartServerPort(uint16_t uuid, uint8_t scn, uint16_t mtu, in StartServerPort() argument
138 ASSERT_EQ(RFCOMM_CreateConnection(uuid, scn, true, mtu, RawAddress::kAny, in StartServerPort()
186 uint8_t scn, uint16_t mtu, uint16_t acl_handle, in ConnectServerPort() argument
191 CreateQuickPnPacket(true, GetDlci(false, scn), true, mtu, in ConnectServerPort()
195 CreateQuickPnPacket(false, GetDlci(false, scn), false, mtu, in ConnectServerPort()
210 CreateQuickSabmPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectServerPort()
214 scn, NotNull(), NotNull())) in ConnectServerPort()
226 CreateQuickUaPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectServerPort()
236 CreateQuickMscPacket(true, GetDlci(false, scn), lcid, acl_handle, true, in ConnectServerPort()
239 CreateQuickMscPacket(false, GetDlci(false, scn), lcid, acl_handle, in ConnectServerPort()
[all …]
Dstack_rfcomm_test_utils.h53 uint8_t GetDlci(bool on_originator_side, uint8_t scn);
Dstack_rfcomm_test_utils.cc31 uint8_t GetDlci(bool on_originator_side, uint8_t scn) { in GetDlci() argument
32 return static_cast<uint8_t>((scn << 1) + (on_originator_side ? 1 : 0)); in GetDlci()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.cc89 bool bta_hf_client_add_record(const char* p_service_name, uint8_t scn, in bta_hf_client_add_record() argument
111 proto_elem_list[1].params[0] = scn; in bta_hf_client_add_record()
177 client_cb_arr->scn = BTM_AllocateSCN(); in bta_hf_client_create_record()
178 bta_hf_client_add_record(p_service_name, client_cb_arr->scn, in bta_hf_client_create_record()
202 BTM_FreeSCN(client_cb->scn); in bta_hf_client_del_record()
Dbta_hf_client_rfc.cc181 BTM_SEC_PROTO_RFCOMM, bta_hf_client_cb_arr.scn); in bta_hf_client_start_server()
184 UUID_SERVCLASS_HF_HANDSFREE, bta_hf_client_cb_arr.scn, true, in bta_hf_client_start_server()
Dbta_hf_client_int.h189 uint8_t scn; member
233 extern bool bta_hf_client_add_record(char* p_service_name, uint8_t scn,
/system/bt/bta/jv/
Dbta_jv_act.cc272 << ", scn=" << p_cb->scn << ", p_pcb=" << p_pcb in bta_jv_free_rfc_cb()
278 VLOG(2) << __func__ << ": state=" << p_pcb->state << ", scn=" << p_cb->scn in bta_jv_free_rfc_cb()
285 VLOG(2) << __func__ << ": state: BTA_JV_ST_SR_LISTEN, scn=" << p_cb->scn in bta_jv_free_rfc_cb()
290 VLOG(2) << ": state: BTA_JV_ST_SR_OPEN, scn=" << p_cb->scn in bta_jv_free_rfc_cb()
295 << ", scn=" << p_cb->scn << ", p_pcb= " << p_pcb in bta_jv_free_rfc_cb()
331 p_cb->scn = 0; in bta_jv_free_rfc_cb()
657 uint8_t scn = 0; in bta_jv_get_channel_id() local
672 bta_jv_cb.scn[channel - 1] = true; in bta_jv_get_channel_id()
673 scn = (uint8_t)channel; in bta_jv_get_channel_id()
677 bta_jv.scn = scn; in bta_jv_get_channel_id()
[all …]
Dbta_jv_int.h104 uint8_t scn; /* the scn of the server */ member
122 bool scn[BTA_JV_MAX_SCN]; /* SCN allocated by java */ member
147 extern void bta_jv_free_scn(int32_t type, uint16_t scn);
/system/bt/include/hardware/
Dbt_mce.h25 int scn; member
/system/bt/bta/ag/
Dbta_ag_sdp.cc129 uint8_t scn, tBTA_AG_FEAT features, in bta_ag_add_record() argument
152 proto_elem_list[1].params[0] = scn; in bta_ag_add_record()
225 bta_ag_cb.profile[i].scn = BTM_AllocateSCN(); in bta_ag_create_records()
227 bta_ag_cb.profile[i].scn, data.api_register.features, in bta_ag_create_records()
274 BTM_FreeSCN(bta_ag_cb.profile[i].scn); in bta_ag_del_records()
Dbta_ag_rfc.cc252 bta_ag_cb.profile[i].scn); in bta_ag_start_servers()
263 bta_ag_uuid[i], bta_ag_cb.profile[i].scn, true, BTA_AG_MTU, in bta_ag_start_servers()
Dbta_ag_int.h184 uint8_t scn; member
321 uint8_t scn, tBTA_AG_FEAT features,
/system/bt/btif/include/
Dbtif_sock_sdp.h34 int add_rfc_sdp_rec(const char* name, bluetooth::Uuid uuid, int scn);
/system/bt/bta/include/
Dbta_mce_api.h54 uint8_t scn; member
Dbta_jv_api.h178 int scn; /* channel # */ member
344 uint8_t scn; /* BTA_JV_GET_SCN_EVT */ member
/system/bt/stack/rfcomm/
Dport_api.cc115 int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server, in RFCOMM_CreateConnection() argument
120 if ((scn == 0) || (scn >= PORT_MAX_RFC_PORTS)) { in RFCOMM_CreateConnection()
123 << ", scn=" << static_cast<int>(scn) in RFCOMM_CreateConnection()
135 dlci = static_cast<uint8_t>((scn << 1) + 1); in RFCOMM_CreateConnection()
137 dlci = (scn << 1); in RFCOMM_CreateConnection()
153 << ", bd_addr=" << bd_addr << ", scn=" << std::to_string(scn) in RFCOMM_CreateConnection()
168 << ", scn=" << std::to_string(scn) << ", is_server=" << is_server in RFCOMM_CreateConnection()
200 p_port->scn = scn; in RFCOMM_CreateConnection()
228 << ", scn=" << std::to_string(scn) << ", is_server=" << is_server in RFCOMM_CreateConnection()
Dport_int.h152 uint8_t scn; /* Service channel number */ member
/system/bt/bta/mce/
Dbta_mce_act.cc90 evt_data.mas[found].scn = pe.params[0]; in bta_mce_search_cback()
/system/bt/stack/include/
Dbtm_api.h209 extern bool BTM_TryAllocateSCN(uint8_t scn);
220 extern bool BTM_FreeSCN(uint8_t scn);
Dport_api.h216 extern int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server,
/system/bt/stack/btm/
Dbtm_acl.cc1610 bool BTM_TryAllocateSCN(uint8_t scn) { in BTM_TryAllocateSCN() argument
1614 if ((scn >= BTM_MAX_SCN) || (scn == 1)) return false; in BTM_TryAllocateSCN()
1617 if (!btm_cb.btm_scn[scn - 1]) { in BTM_TryAllocateSCN()
1618 btm_cb.btm_scn[scn - 1] = true; in BTM_TryAllocateSCN()
1634 bool BTM_FreeSCN(uint8_t scn) { in BTM_FreeSCN() argument
1636 if (scn <= BTM_MAX_SCN) { in BTM_FreeSCN()
1637 btm_cb.btm_scn[scn - 1] = false; in BTM_FreeSCN()