/system/bt/stack/btm/ |
D | btm_scn.cc | 59 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()
|
D | btm_scn.h | 21 bool BTM_FreeSCN(uint8_t scn); 22 bool BTM_TryAllocateSCN(uint8_t scn); 23 bool BTM_TryAllocateSCN(uint8_t scn);
|
D | btm_int_types.h | 378 friend bool BTM_TryAllocateSCN(uint8_t scn); 379 friend bool BTM_FreeSCN(uint8_t scn);
|
D | btm_client_interface.cc | 44 .scn =
|
/system/bt/btif/src/ |
D | btif_sock_rfc.cc | 72 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/ |
D | mock_stack_btm_scn.cc | 35 bool BTM_FreeSCN(uint8_t scn) { in BTM_FreeSCN() argument 39 bool BTM_TryAllocateSCN(uint8_t scn) { in BTM_TryAllocateSCN() argument
|
D | mock_stack_rfcomm_port_api.cc | 100 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/ |
D | stack_rfcomm_test.cc | 132 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 …]
|
D | stack_rfcomm_test_utils.h | 53 uint8_t GetDlci(bool on_originator_side, uint8_t scn);
|
D | stack_rfcomm_test_utils.cc | 31 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/ |
D | bta_hf_client_sdp.cc | 93 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()
|
D | bta_hf_client_int.h | 198 uint8_t scn; member 240 extern bool bta_hf_client_add_record(char* p_service_name, uint8_t scn,
|
/system/bt/stack/rfcomm/ |
D | port_api.cc | 75 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 …]
|
D | rfc_port_fsm.cc | 119 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()
|
D | port_int.h | 137 uint8_t scn; /* Service channel number */ member
|
/system/bt/bta/test/ |
D | bta_hf_client_add_record_test.cc | 67 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/ |
D | bta_jv_act.cc | 230 << ", 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 …]
|
D | bta_jv_int.h | 102 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/ |
D | port_api.h | 184 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,
|
D | btm_client_interface.h | 52 bool (*BTM_TryAllocateSCN)(uint8_t scn); 53 bool (*BTM_FreeSCN)(uint8_t scn); 54 } scn; member
|
D | btm_api.h | 174 bool BTM_TryAllocateSCN(uint8_t scn); 185 bool BTM_FreeSCN(uint8_t scn);
|
/system/bt/bta/ag/ |
D | bta_ag_sdp.cc | 126 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()
|
D | bta_ag_int.h | 190 uint8_t scn; member 335 uint8_t scn, tBTA_AG_FEAT features,
|
/system/bt/btif/include/ |
D | btif_sock_sdp.h | 36 int add_rfc_sdp_rec(const char* name, bluetooth::Uuid uuid, int scn);
|
/system/bt/bta/include/ |
D | bta_jv_api.h | 176 int scn; /* channel # */ member 332 uint8_t scn; /* BTA_JV_GET_SCN_EVT */ member
|