Home
last modified time | relevance | path

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

12

/system/bt/stack/btm/
Dbtm_scn.cc59 bool BTM_TryAllocateSCN(uint8_t scn) { in BTM_TryAllocateSCN() argument
63 if ((scn >= PORT_MAX_RFC_PORTS) || (scn == 1) || (scn == 0)) return false; in BTM_TryAllocateSCN()
66 if (!btm_cb.btm_scn[scn - 1]) { in BTM_TryAllocateSCN()
67 btm_cb.btm_scn[scn - 1] = true; in BTM_TryAllocateSCN()
83 bool BTM_FreeSCN(uint8_t scn) { in BTM_FreeSCN() argument
85 if (scn <= PORT_MAX_RFC_PORTS && scn > 0) { in BTM_FreeSCN()
86 btm_cb.btm_scn[scn - 1] = false; in BTM_FreeSCN()
Dbtm_scn.h21 bool BTM_FreeSCN(uint8_t scn);
22 bool BTM_TryAllocateSCN(uint8_t scn);
23 bool BTM_TryAllocateSCN(uint8_t scn);
Dbtm_int_types.h378 friend bool BTM_TryAllocateSCN(uint8_t scn);
379 friend bool BTM_FreeSCN(uint8_t scn);
Dbtm_client_interface.cc44 .scn =
/system/bt/btif/src/
Dbtif_sock_rfc.cc72 int scn; // Server channel number member
116 rfc_slots[i].scn = -1; in btsock_rfc_init()
209 slot->scn = channel; in alloc_rfc_slot()
237 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
347 BTA_JvRfcommConnect(slot->security, slot->role, slot->scn, slot->addr, in btsock_rfc_connect()
381 if (slot->scn == 0) { in create_server_sdp_record()
385 add_rfc_sdp_rec(slot->service_name, slot->service_uuid, slot->scn); in create_server_sdp_record()
390 if (slot->scn <= 0) return; in free_rfc_slot_scn()
397 if (slot->f.server) BTM_FreeSCN(slot->scn); in free_rfc_slot_scn()
398 slot->scn = 0; in free_rfc_slot_scn()
[all …]
/system/bt/test/mock/
Dmock_stack_btm_scn.cc35 bool BTM_FreeSCN(uint8_t scn) { in BTM_FreeSCN() argument
39 bool BTM_TryAllocateSCN(uint8_t scn) { in BTM_TryAllocateSCN() argument
Dmock_stack_rfcomm_port_api.cc100 int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server, in RFCOMM_CreateConnection() argument
106 int RFCOMM_CreateConnectionWithSecurity(uint16_t uuid, uint8_t scn, in RFCOMM_CreateConnectionWithSecurity() argument
127 void RFCOMM_ClearSecurityRecord(uint32_t scn) { in RFCOMM_ClearSecurityRecord() argument
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test.cc132 void StartServerPort(uint16_t uuid, uint8_t scn, uint16_t mtu, in StartServerPort() argument
137 ASSERT_EQ(RFCOMM_CreateConnection(uuid, scn, true, mtu, RawAddress::kAny, in StartServerPort()
185 uint8_t scn, uint16_t mtu, uint16_t acl_handle, in ConnectServerPort() argument
190 CreateQuickPnPacket(true, GetDlci(false, scn), true, mtu, in ConnectServerPort()
194 CreateQuickPnPacket(false, GetDlci(false, scn), false, mtu, in ConnectServerPort()
209 CreateQuickSabmPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectServerPort()
213 scn, NotNull(), NotNull())) in ConnectServerPort()
225 CreateQuickUaPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectServerPort()
235 CreateQuickMscPacket(true, GetDlci(false, scn), lcid, acl_handle, true, in ConnectServerPort()
238 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.cc93 bool bta_hf_client_add_record(const char* p_service_name, uint8_t scn, in bta_hf_client_add_record() argument
115 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()
207 RFCOMM_ClearSecurityRecord(client_cb->scn); in bta_hf_client_del_record()
Dbta_hf_client_int.h198 uint8_t scn; member
240 extern bool bta_hf_client_add_record(char* p_service_name, uint8_t scn,
/system/bt/stack/rfcomm/
Dport_api.cc75 int RFCOMM_CreateConnectionWithSecurity(uint16_t uuid, uint8_t scn, in RFCOMM_CreateConnectionWithSecurity() argument
81 rfcomm_security_records[scn] = sec_mask; in RFCOMM_CreateConnectionWithSecurity()
83 return RFCOMM_CreateConnection(uuid, scn, is_server, mtu, bd_addr, p_handle, in RFCOMM_CreateConnectionWithSecurity()
87 extern void RFCOMM_ClearSecurityRecord(uint32_t scn) { in RFCOMM_ClearSecurityRecord() argument
88 rfcomm_security_records.erase(scn); in RFCOMM_ClearSecurityRecord()
122 int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server, in RFCOMM_CreateConnection() argument
127 if ((scn == 0) || (scn >= PORT_MAX_RFC_PORTS)) { in RFCOMM_CreateConnection()
130 << ", scn=" << static_cast<int>(scn) in RFCOMM_CreateConnection()
142 dlci = static_cast<uint8_t>((scn << 1) + 1); in RFCOMM_CreateConnection()
144 dlci = (scn << 1); in RFCOMM_CreateConnection()
[all …]
Drfc_port_fsm.cc119 uint32_t scn = (uint32_t)(p_port->dlci / 2); in rfc_port_sm_state_closed() local
123 if (rfcomm_security_records.count(scn) == 0) { in rfc_port_sm_state_closed()
129 rfcomm_security_records[scn], in rfc_port_sm_state_closed()
150 if (rfcomm_security_records.count(scn) == 0) { in rfc_port_sm_state_closed()
156 rfcomm_security_records[scn], in rfc_port_sm_state_closed()
Dport_int.h137 uint8_t scn; /* Service channel number */ member
/system/bt/bta/test/
Dbta_hf_client_add_record_test.cc67 uint8_t scn = 0; in TEST_F() local
69 bta_hf_client_add_record("Handsfree", scn, features, sdp_handle); in TEST_F()
/system/bt/bta/jv/
Dbta_jv_act.cc230 << ", scn=" << p_cb->scn << ", p_pcb=" << p_pcb in bta_jv_free_rfc_cb()
236 VLOG(2) << __func__ << ": state=" << p_pcb->state << ", scn=" << p_cb->scn in bta_jv_free_rfc_cb()
243 VLOG(2) << __func__ << ": state: BTA_JV_ST_SR_LISTEN, scn=" << p_cb->scn in bta_jv_free_rfc_cb()
248 VLOG(2) << ": state: BTA_JV_ST_SR_OPEN, scn=" << p_cb->scn in bta_jv_free_rfc_cb()
253 << ", scn=" << p_cb->scn << ", p_pcb= " << p_pcb in bta_jv_free_rfc_cb()
289 RFCOMM_ClearSecurityRecord(p_cb->scn); in bta_jv_free_rfc_cb()
290 p_cb->scn = 0; in bta_jv_free_rfc_cb()
296 RFCOMM_ClearSecurityRecord(p_cb->scn); in bta_jv_free_rfc_cb()
640 uint8_t scn = 0; in bta_jv_get_channel_id() local
655 bta_jv_cb.scn[channel - 1] = true; in bta_jv_get_channel_id()
[all …]
Dbta_jv_int.h102 uint8_t scn; /* the scn of the server */ member
120 bool scn[BTA_JV_MAX_SCN]; /* SCN allocated by java */ member
149 extern void bta_jv_free_scn(int32_t type, uint16_t scn);
/system/bt/stack/include/
Dport_api.h184 extern int RFCOMM_CreateConnectionWithSecurity(uint16_t uuid, uint8_t scn,
191 extern void RFCOMM_ClearSecurityRecord(uint32_t scn);
193 extern int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server,
Dbtm_client_interface.h52 bool (*BTM_TryAllocateSCN)(uint8_t scn);
53 bool (*BTM_FreeSCN)(uint8_t scn);
54 } scn; member
Dbtm_api.h174 bool BTM_TryAllocateSCN(uint8_t scn);
185 bool BTM_FreeSCN(uint8_t scn);
/system/bt/bta/ag/
Dbta_ag_sdp.cc126 uint8_t scn, tBTA_AG_FEAT features, in bta_ag_add_record() argument
149 proto_elem_list[1].params[0] = scn; in bta_ag_add_record()
222 bta_ag_cb.profile[i].scn = BTM_AllocateSCN(); in bta_ag_create_records()
224 bta_ag_cb.profile[i].scn, data.api_register.features, in bta_ag_create_records()
271 BTM_FreeSCN(bta_ag_cb.profile[i].scn); in bta_ag_del_records()
272 RFCOMM_ClearSecurityRecord(bta_ag_cb.profile[i].scn); in bta_ag_del_records()
Dbta_ag_int.h190 uint8_t scn; member
335 uint8_t scn, tBTA_AG_FEAT features,
/system/bt/btif/include/
Dbtif_sock_sdp.h36 int add_rfc_sdp_rec(const char* name, bluetooth::Uuid uuid, int scn);
/system/bt/bta/include/
Dbta_jv_api.h176 int scn; /* channel # */ member
332 uint8_t scn; /* BTA_JV_GET_SCN_EVT */ member

12