Home
last modified time | relevance | path

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

/system/bt/bta/test/
Dbta_hf_client_add_record_test.cc44 uint8_t scn = 0; in TEST_F() local
47 bta_hf_client_add_record("Handsfree", scn, features, sdp_handle); in TEST_F()
50 scn++; in TEST_F()
52 bta_hf_client_add_record("Handsfree", scn, features, sdp_handle); in TEST_F()
/system/bt/btif/src/
Dbtif_sock_rfc.cc85 int scn; // Server channel number member
129 rfc_slots[i].scn = -1; in btsock_rfc_init()
222 slot->scn = channel; in alloc_rfc_slot()
250 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
364 BTA_JvRfcommConnect(slot->security, slot->role, slot->scn, slot->addr, in btsock_rfc_connect()
398 if (slot->scn == 0) { in create_server_sdp_record()
402 add_rfc_sdp_rec(slot->service_name, slot->service_uuid, slot->scn); in create_server_sdp_record()
407 if (slot->scn <= 0) return; in free_rfc_slot_scn()
414 if (slot->f.server) BTM_FreeSCN(slot->scn); in free_rfc_slot_scn()
415 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.cc90 bool bta_hf_client_add_record(const char* p_service_name, uint8_t scn, in bta_hf_client_add_record() argument
112 proto_elem_list[1].params[0] = scn; in bta_hf_client_add_record()
181 client_cb_arr->scn = BTM_AllocateSCN(); in bta_hf_client_create_record()
182 bta_hf_client_add_record(p_service_name, client_cb_arr->scn, in bta_hf_client_create_record()
206 BTM_FreeSCN(client_cb->scn); in bta_hf_client_del_record()
Dbta_hf_client_rfc.cc186 BTM_SEC_PROTO_RFCOMM, bta_hf_client_cb_arr.scn); in bta_hf_client_start_server()
189 UUID_SERVCLASS_HF_HANDSFREE, bta_hf_client_cb_arr.scn, true, in bta_hf_client_start_server()
Dbta_hf_client_int.h191 uint8_t scn; member
235 extern bool bta_hf_client_add_record(char* p_service_name, uint8_t scn,
/system/bt/stack/rfcomm/
Dport_api.cc104 int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server, in RFCOMM_CreateConnection() argument
109 if ((scn == 0) || (scn >= PORT_MAX_RFC_PORTS)) { in RFCOMM_CreateConnection()
112 << ", scn=" << static_cast<int>(scn) in RFCOMM_CreateConnection()
124 dlci = static_cast<uint8_t>((scn << 1) + 1); in RFCOMM_CreateConnection()
126 dlci = (scn << 1); in RFCOMM_CreateConnection()
142 << ", bd_addr=" << bd_addr << ", scn=" << std::to_string(scn) in RFCOMM_CreateConnection()
157 << ", scn=" << std::to_string(scn) << ", is_server=" << is_server in RFCOMM_CreateConnection()
189 p_port->scn = scn; in RFCOMM_CreateConnection()
217 << ", scn=" << std::to_string(scn) << ", is_server=" << is_server in RFCOMM_CreateConnection()
Dport_int.h135 uint8_t scn; /* Service channel number */ member
/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()
659 uint8_t scn = 0; in bta_jv_get_channel_id() local
674 bta_jv_cb.scn[channel - 1] = true; in bta_jv_get_channel_id()
675 scn = (uint8_t)channel; in bta_jv_get_channel_id()
679 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/include/
Dbtm_api.h198 extern bool BTM_TryAllocateSCN(uint8_t scn);
209 extern bool BTM_FreeSCN(uint8_t scn);
Dport_api.h184 extern int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server,
/system/bt/bta/mce/
Dbta_mce_act.cc90 evt_data.mas[found].scn = pe.params[0]; in bta_mce_search_cback()
/system/bt/stack/btm/
Dbtm_acl.cc1587 bool BTM_TryAllocateSCN(uint8_t scn) { in BTM_TryAllocateSCN() argument
1591 if ((scn >= BTM_MAX_SCN) || (scn == 1)) return false; in BTM_TryAllocateSCN()
1594 if (!btm_cb.btm_scn[scn - 1]) { in BTM_TryAllocateSCN()
1595 btm_cb.btm_scn[scn - 1] = true; in BTM_TryAllocateSCN()
1611 bool BTM_FreeSCN(uint8_t scn) { in BTM_FreeSCN() argument
1613 if (scn <= BTM_MAX_SCN) { in BTM_FreeSCN()
1614 btm_cb.btm_scn[scn - 1] = false; in BTM_FreeSCN()
/system/bt/main/shim/
Dbtm_api.h1071 bool BTM_TryAllocateSCN(uint8_t scn);
1082 bool BTM_FreeSCN(uint8_t scn);