/aosp12/system/bt/stack/btm/ |
H A 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()
|
H A 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);
|
H A D | btm_int_types.h | 378 friend bool BTM_TryAllocateSCN(uint8_t scn); 379 friend bool BTM_FreeSCN(uint8_t scn);
|
H A D | btm_client_interface.cc | 44 .scn =
|
/aosp12/system/bt/btif/src/ |
H A 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() 381 if (slot->scn == 0) { in create_server_sdp_record() 390 if (slot->scn <= 0) return; in free_rfc_slot_scn() 398 slot->scn = 0; in free_rfc_slot_scn() 447 sizeof(slot->scn)) == sizeof(slot->scn); in send_app_scn() 544 slot->app_uid, slot->scn, in on_cli_rfc_connect() 664 int new_scn = p_data->scn; in jv_dm_cback() 667 rs->scn = new_scn; in jv_dm_cback() [all …]
|
/aosp12/system/bt/stack/test/rfcomm/ |
H A D | stack_rfcomm_test.cc | 132 void StartServerPort(uint16_t uuid, uint8_t scn, uint16_t mtu, in StartServerPort() argument 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() 225 CreateQuickUaPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectServerPort() 264 uint8_t scn, uint16_t mtu, in StartClientPort() argument 333 true, GetDlci(false, scn), true, mtu, in ConnectClientPort() 347 false, GetDlci(false, scn), false, mtu, in ConnectClientPort() 363 CreateQuickSabmPacket(GetDlci(false, scn), lcid, acl_handle)); in ConnectClientPort() [all …]
|
H A 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()
|
H A D | stack_rfcomm_test_utils.h | 53 uint8_t GetDlci(bool on_originator_side, uint8_t scn);
|
/aosp12/system/bt/stack/rfcomm/ |
H A 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 …]
|
H A 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()
|
/aosp12/system/bt/bta/hf_client/ |
H A 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()
|
H A 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,
|
/aosp12/system/bt/bta/jv/ |
H A D | bta_jv_act.cc | 290 p_cb->scn = 0; in bta_jv_free_rfc_cb() 640 uint8_t scn = 0; in bta_jv_get_channel_id() local 656 scn = (uint8_t)channel; in bta_jv_get_channel_id() 660 bta_jv.scn = scn; in bta_jv_get_channel_id() 694 if (scn > 0 && scn <= BTA_JV_MAX_SCN && bta_jv_cb.scn[scn - 1]) { in bta_jv_free_scn() 696 bta_jv_cb.scn[scn - 1] = false; in bta_jv_free_scn() 697 BTM_FreeSCN(scn); in bta_jv_free_scn() 706 L2CA_FreeLePSM(scn); in bta_jv_free_scn() 731 dcomp.scn = 0; in bta_jv_start_discovery_cback() 1301 p_cb->scn = 0; in bta_jv_rfcomm_connect() [all …]
|
H A 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);
|
/aosp12/system/bt/test/mock/ |
H A 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
|
H A 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
|
/aosp12/packages/apps/Bluetooth/jni/ |
H A D | com_android_bluetooth_sdp.cpp | 250 jstring name_str, jint mas_id, jint scn, in sdpCreateMapMasRecordNative() argument 268 record.mas.hdr.rfcomm_channel_number = scn; in sdpCreateMapMasRecordNative() 289 jstring name_str, jint scn, in sdpCreateMapMnsRecordNative() argument 307 record.mns.hdr.rfcomm_channel_number = scn; in sdpCreateMapMnsRecordNative() 357 jstring name_str, jint scn, in sdpCreatePbapPseRecordNative() argument 376 record.pse.hdr.rfcomm_channel_number = scn; in sdpCreatePbapPseRecordNative() 396 jstring name_str, jint scn, in sdpCreateOppOpsRecordNative() argument 414 record.ops.hdr.rfcomm_channel_number = scn; in sdpCreateOppOpsRecordNative() 445 jstring name_str, jint scn, in sdpCreateSapsRecordNative() argument 462 record.mas.hdr.rfcomm_channel_number = scn; in sdpCreateSapsRecordNative()
|
/aosp12/system/bt/bta/ag/ |
H A 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()
|
H A D | bta_ag_int.h | 190 uint8_t scn; member 335 uint8_t scn, tBTA_AG_FEAT features,
|
/aosp12/system/bt/bta/test/ |
H A 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()
|
/aosp12/system/bt/stack/include/ |
H A 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,
|
H A D | btm_client_interface.h | 52 bool (*BTM_TryAllocateSCN)(uint8_t scn); 53 bool (*BTM_FreeSCN)(uint8_t scn); 54 } scn; member
|
H A D | btm_api.h | 174 bool BTM_TryAllocateSCN(uint8_t scn); 185 bool BTM_FreeSCN(uint8_t scn);
|
/aosp12/system/bt/btif/include/ |
H A D | btif_sock_sdp.h | 36 int add_rfc_sdp_rec(const char* name, bluetooth::Uuid uuid, int scn);
|
/aosp12/system/bt/bta/include/ |
H A D | bta_jv_api.h | 176 int scn; /* channel # */ member 332 uint8_t scn; /* BTA_JV_GET_SCN_EVT */ member
|