/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_sco_hfp_hal_linux.cc | 96 .inner = {.codec = codec::CVSD}, in cache_codec_capabilities() 104 .inner = {.codec = codec::MSBC_TRANSPARENT}, in cache_codec_capabilities() 114 .inner = {.codec = codec::MSBC, .data_path = rp->hci_data_path_id}, in cache_codec_capabilities() 121 (uint64_t)c.inner.codec, c.inner.data_path, c.inner.data.size(), in cache_codec_capabilities() 238 uint8_t codec; member 242 bool is_connected, int codec) { in mgmt_notify_sco_connection_change() argument 253 cp->codec = codec; in mgmt_notify_sco_connection_change() 312 if (c.inner.codec == MSBC_TRANSPARENT && in is_coding_format_supported() 316 if (c.inner.codec == MSBC && coding_format == ESCO_CODING_FORMAT_MSBC) { in is_coding_format_supported() 341 if (c.inner.codec & codecs) { in get_codec_capabilities() [all …]
|
D | btm_sco_hfp_hal.h | 32 enum codec : uint64_t { enum 40 codec codec; member 56 return codec::MSBC_TRANSPARENT; in esco_coding_to_codec() 58 return codec::MSBC; in esco_coding_to_codec() 60 return codec::LC3; in esco_coding_to_codec() 65 return codec::CVSD; in esco_coding_to_codec() 97 size_t get_packet_size(int codec); 101 int codec);
|
D | btm_sco_hfp_hal.cc | 37 .codec = codec::CVSD, in init() 42 .codec = codec::MSBC, in init() 68 if (c.codec & codecs) { in get_codec_capabilities()
|
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/ |
D | a2dp_provider_info.cc | 115 CodecInfo const& codec, btav_a2dp_codec_index_t* ext_index) { in assignSourceCodecIndex() argument 116 switch (codec.id.getTag()) { in assignSourceCodecIndex() 121 switch (codec.id.get<CodecId::a2dp>()) { in assignSourceCodecIndex() 131 int vendor_id = codec.id.get<CodecId::vendor>().id; in assignSourceCodecIndex() 132 int codec_id = codec.id.get<CodecId::vendor>().codecId; in assignSourceCodecIndex() 170 CodecInfo const& codec, btav_a2dp_codec_index_t* ext_index) { in assignSinkCodecIndex() argument 171 switch (codec.id.getTag()) { in assignSinkCodecIndex() 176 switch (codec.id.get<CodecId::a2dp>()) { in assignSinkCodecIndex() 186 int vendor_id = codec.id.get<CodecId::vendor>().id; in assignSinkCodecIndex() 187 int codec_id = codec.id.get<CodecId::vendor>().codecId; in assignSinkCodecIndex() [all …]
|
D | le_audio_utils.cc | 32 ::aidl::android::hardware::bluetooth::audio::CodecId codec; in GetAidlCodecIdFromStackFormat() 35 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::LC3; in GetAidlCodecIdFromStackFormat() 37 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::CVSD; in GetAidlCodecIdFromStackFormat() 39 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::MSBC; in GetAidlCodecIdFromStackFormat() 44 codec = vc; in GetAidlCodecIdFromStackFormat() 48 return codec; in GetAidlCodecIdFromStackFormat() 53 ::bluetooth::le_audio::types::LeAudioCodecId codec; in GetStackCodecIdFromAidlFormat() 56 codec.vendor_codec_id = 0x00; in GetStackCodecIdFromAidlFormat() 57 codec.vendor_company_id = 0x00; in GetStackCodecIdFromAidlFormat() 61 codec.coding_format = 0x06; in GetStackCodecIdFromAidlFormat() [all …]
|
D | a2dp_encoding_aidl.cc | 58 using ::bluetooth::audio::aidl::codec::A2dpAacToHalConfig; 59 using ::bluetooth::audio::aidl::codec::A2dpAptxToHalConfig; 60 using ::bluetooth::audio::aidl::codec::A2dpCodecToHalBitsPerSample; 61 using ::bluetooth::audio::aidl::codec::A2dpCodecToHalChannelMode; 62 using ::bluetooth::audio::aidl::codec::A2dpCodecToHalSampleRate; 63 using ::bluetooth::audio::aidl::codec::A2dpLdacToHalConfig; 64 using ::bluetooth::audio::aidl::codec::A2dpOpusToHalConfig; 65 using ::bluetooth::audio::aidl::codec::A2dpSbcToHalConfig; 401 return ::bluetooth::audio::aidl::codec::UpdateOffloadingCapabilities( in update_codec_offloading_capabilities() 582 bluetooth::audio::aidl::codec::IsCodecOffloadingEnabled(codec_config); in setup_codec() [all …]
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_ag_test.cc | 78 [this](esco_codec_t codec) { in SetUp() argument 79 this->codec = codec; in SetUp() 96 esco_codec_t codec; member in BtaAgTest 116 tBTA_AG_PEER_CODEC codec = bta_ag_parse_qac((char*)test_strings[0]); in TEST_F_WITH_FLAGS() local 117 codec = bta_ag_parse_qac((char*)test_strings[0]); in TEST_F_WITH_FLAGS() 118 ASSERT_TRUE(codec & BTA_AG_SCO_APTX_SWB_SETTINGS_Q0_MASK); in TEST_F_WITH_FLAGS() 119 ASSERT_TRUE(codec & BTA_AG_SCO_APTX_SWB_SETTINGS_Q1_MASK); in TEST_F_WITH_FLAGS() 120 ASSERT_TRUE(codec & BTA_AG_SCO_APTX_SWB_SETTINGS_Q2_MASK); in TEST_F_WITH_FLAGS() 121 ASSERT_TRUE(codec & BTA_AG_SCO_APTX_SWB_SETTINGS_Q3_MASK); in TEST_F_WITH_FLAGS() 123 codec = bta_ag_parse_qac((char*)test_strings[1]); in TEST_F_WITH_FLAGS() [all …]
|
D | bta_ag_sco_test.cc | 43 [this](esco_codec_t codec) { in SetUp() argument 44 this->codec = codec; in SetUp() 53 esco_codec_t codec; member in BtaAgScoParameterSelectionTest 69 this->codec = ESCO_CODEC_UNKNOWN; in TEST_P() 73 ASSERT_EQ(this->codec, ESCO_CODEC_CVSD_S4); in TEST_P() 75 ASSERT_EQ(this->codec, ESCO_CODEC_CVSD_S3); in TEST_P() 91 this->codec = ESCO_CODEC_UNKNOWN; in TEST_P() 101 ASSERT_EQ(this->codec, ESCO_CODEC_CVSD_S4); in TEST_P() 103 ASSERT_EQ(this->codec, ESCO_CODEC_CVSD_S3); in TEST_P()
|
/packages/modules/Bluetooth/system/device/src/ |
D | esco_parameters.cc | 368 enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec, bool offload) { in esco_parameters_for_codec() argument 369 log::assert_that((int)codec >= 0, "codec index {}< 0", (int)codec); in esco_parameters_for_codec() 370 log::assert_that(codec < ESCO_NUM_CODECS, "codec index {} > {}", (int)codec, in esco_parameters_for_codec() 383 if (codec == ESCO_CODEC_LC3_T1 || codec == ESCO_CODEC_LC3_T2) { in esco_parameters_for_codec() 385 enh_esco_params_t param = default_esco_parameters[codec]; in esco_parameters_for_codec() 397 if (codec == ESCO_CODEC_SWB_Q0 || codec == ESCO_CODEC_SWB_Q1 || in esco_parameters_for_codec() 398 codec == ESCO_CODEC_SWB_Q2 || codec == ESCO_CODEC_SWB_Q3) { in esco_parameters_for_codec() 401 return default_esco_parameters[codec]; in esco_parameters_for_codec() 404 log::assert_that(codec < ESCO_LEGACY_NUM_CODECS, "legacy codec index {} > {}", in esco_parameters_for_codec() 405 (int)codec, ESCO_LEGACY_NUM_CODECS); in esco_parameters_for_codec() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/ |
D | AudioCodecTest.java | 23 private void assertEquals(AudioCodec codec, int type, String rtpmap, String fmtp) { in assertEquals() argument 25 assertEquals(codec.type, type); in assertEquals() 27 assertTrue(codec.type >= 96 && codec.type <= 127); in assertEquals() 29 assertEquals(codec.rtpmap.compareToIgnoreCase(rtpmap), 0); in assertEquals() 30 assertEquals(codec.fmtp, fmtp); in assertEquals() 68 for (AudioCodec codec : codecs) { in testGetCodecs() 69 assertFalse(types[codec.type]); in testGetCodecs() 70 types[codec.type] = true; in testGetCodecs()
|
/packages/modules/Bluetooth/system/stack/mmc/ |
D | README.md | 3 MMC is a service running in minijail that isolates codec implementations from 5 spawns codec servers on demand to communicate with their corresponding codec 10 ### 1. Implement codec server 20 ### 2. Add codec proto message in [mmc_config.proto](https://cs.android.com/android/platform/superp… 22 * Define a proto message for the new codec, generally, it may include: 28 ### 3. Add codec support in MMC daemon 34 * BT process accesses codec implementations via `CodecClient`.
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_device_esco_parameters.cc | 42 enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec) { in esco_parameters_for_codec() argument 44 return test::mock::device_esco_parameters::esco_parameters_for_codec(codec); in esco_parameters_for_codec() 47 enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec, bool /* b */) { in esco_parameters_for_codec() argument 49 return test::mock::device_esco_parameters::esco_parameters_for_codec(codec); in esco_parameters_for_codec()
|
D | mock_stack_btm_sco_hfp_hal.h | 93 size_t operator()(int codec) { return body(codec); }; in operator() 143 std::function<void(RawAddress device, bool is_connected, int codec)> body{ 145 void operator()(RawAddress device, bool is_connected, int codec) { in operator() 146 body(device, is_connected, codec); in operator()
|
D | mock_device_esco_parameters.h | 41 std::function<enh_esco_params_t(esco_codec_t codec)> body{ 43 enh_esco_params_t operator()(esco_codec_t codec) { return body(codec); }; in operator()
|
D | mock_stack_btm_sco_hfp_hal.cc | 93 size_t get_packet_size(int codec) { in get_packet_size() argument 95 return test::mock::stack_btm_sco_hfp_hal::get_packet_size(codec); in get_packet_size() 115 int codec) { in notify_sco_connection_change() argument 118 device, is_connected, codec); in notify_sco_connection_change()
|
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/ |
D | a2dp_encoding_hidl.cc | 56 using ::bluetooth::audio::hidl::codec::A2dpAacToHalConfig; 57 using ::bluetooth::audio::hidl::codec::A2dpAptxToHalConfig; 58 using ::bluetooth::audio::hidl::codec::A2dpCodecToHalBitsPerSample; 59 using ::bluetooth::audio::hidl::codec::A2dpCodecToHalChannelMode; 60 using ::bluetooth::audio::hidl::codec::A2dpCodecToHalSampleRate; 61 using ::bluetooth::audio::hidl::codec::A2dpLdacToHalConfig; 62 using ::bluetooth::audio::hidl::codec::A2dpSbcToHalConfig; 63 using ::bluetooth::audio::hidl::codec::CodecConfiguration; 246 *codec_config = ::bluetooth::audio::hidl::codec::kInvalidCodecConfiguration; in a2dp_get_selected_hal_codec_config() 286 ::bluetooth::audio::hidl::codec::kInvalidCodecConfiguration; in a2dp_get_selected_hal_codec_config() [all …]
|
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/ |
D | libbt_audio_hal_client_interface_fuzzer.cpp | 54 using ::bluetooth::audio::hidl::codec::A2dpAacToHalConfig; 55 using ::bluetooth::audio::hidl::codec::A2dpAptxToHalConfig; 56 using ::bluetooth::audio::hidl::codec::A2dpCodecToHalBitsPerSample; 57 using ::bluetooth::audio::hidl::codec::A2dpCodecToHalChannelMode; 58 using ::bluetooth::audio::hidl::codec::A2dpCodecToHalSampleRate; 59 using ::bluetooth::audio::hidl::codec::A2dpLdacToHalConfig; 60 using ::bluetooth::audio::hidl::codec::A2dpSbcToHalConfig; 61 using ::bluetooth::audio::hidl::codec::BitsPerSample; 62 using ::bluetooth::audio::hidl::codec::ChannelMode; 63 using ::bluetooth::audio::hidl::codec::CodecConfiguration; [all …]
|
/packages/modules/Bluetooth/system/tools/scripts/ |
D | dump_hearingaid_audio.py | 146 codec, data = unpack_data(data, 1) 147 if codec == 0x01: 148 codec = "G722" 150 elif codec == 0x02: 151 codec = "G722" 154 codec = "Unknown" 156 update_audio_data(CONNECTION_HANDLE, result[CONNECTION_HANDLE], CODEC, codec) 537 codec.", 573 update_audio_data(PEER_ADDRESS, fake_name, CODEC, arg.codec) 584 update_audio_data(PEER_ADDRESS, fake_name, CODEC, arg.codec)
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | le_audio_utils.cc | 329 auto config = confs.at(0).codec; in fillStreamParamsToBtLeAudioCodecConfig() 452 conf.codec.GetSamplingFrequencyHz() != group_config.sample_rate) { in GetAudioSessionCodecConfigFromAudioSetConfiguration() 459 group_config.sample_rate = conf.codec.GetSamplingFrequencyHz(); in GetAudioSessionCodecConfigFromAudioSetConfiguration() 462 conf.codec.GetDataIntervalUs() != group_config.data_interval_us) { in GetAudioSessionCodecConfigFromAudioSetConfiguration() 469 group_config.data_interval_us = conf.codec.GetDataIntervalUs(); in GetAudioSessionCodecConfigFromAudioSetConfiguration() 472 conf.codec.GetBitsPerSample() != group_config.bits_per_sample) { in GetAudioSessionCodecConfigFromAudioSetConfiguration() 479 group_config.bits_per_sample = conf.codec.GetBitsPerSample(); in GetAudioSessionCodecConfigFromAudioSetConfiguration() 480 group_config.num_channels += conf.codec.GetChannelCountPerIsoStream(); in GetAudioSessionCodecConfigFromAudioSetConfiguration() 496 if (cfgs.at(0).codec.GetChannelCountPerIsoStream() == 1) { in GetStrategyForAseConfig()
|
D | codec_manager.cc | 418 adsp_config.codec.params.GetAsCoreCodecConfig(); in UpdateSupportedBroadcastConfig() 423 auto all_channels = adsp_config.codec.channel_count_per_iso_stream; in UpdateSupportedBroadcastConfig() 864 return IsLc3ConfigMatched(software_ase_config.codec, adsp_ase_config.codec); in IsAseConfigurationMatched() 880 if (offload_preference_set.find(conf.codec.id.coding_format) == in IsAudioSetConfigurationMatched() 996 conf.codec.id.coding_format, conf.codec.GetSamplingFrequencyHz(), in storeLocalCapa() 997 conf.codec.GetDataIntervalUs(), in storeLocalCapa() 998 conf.codec.GetChannelCountPerIsoStream()); in storeLocalCapa() 1002 .codec_type = (conf.codec.id.coding_format == in storeLocalCapa() 1009 conf.codec.GetSamplingFrequencyHz()), in storeLocalCapa() 1014 conf.codec.GetChannelCountPerIsoStream()), in storeLocalCapa() [all …]
|
D | le_audio_set_configuration_provider_json.cc | 183 CodecConfigSetting codec; in CodecConfigSettingFromFlat() local 186 codec.id = types::LeAudioCodecId({ in CodecConfigSettingFromFlat() 195 codec.params.Add( in CodecConfigSettingFromFlat() 199 return codec; in CodecConfigSettingFromFlat() 384 const auto& core_config = subconfig.codec.params.GetAsCoreCodecConfig(); in processSubconfig() 386 subconfig.codec.GetChannelCountPerIsoStream() * in processSubconfig() 586 << +ent.codec.GetChannelCountPerIsoStream() << "\n"; in Dump() 658 if (conf.codec.GetSamplingFrequencyHz() >= in CheckConfigurationIsBiDirSwb() 676 return cfg.codec.GetSamplingFrequencyHz() >= in CheckConfigurationIsDualBiDirSwb()
|
D | audio_set_scenarios.fbs | 19 /// Each scenario can list any number of codec configurations by their names in 24 /// The referenced codec configurations are defined by the 26 /// Multiple scenarios can reference same codec configurations.
|
D | devices_test.cc | 568 const CodecConfigSetting& codec, uint8_t direction) { in GetVendorAseConfigurationsForRequirements() argument 589 codec, {.target_latency = kTargetLatencyLower, in GetVendorAseConfigurationsForRequirements() 648 endpoint_cfg.codec.channel_count_per_iso_stream = in GetVendorAseConfigurationsForRequirements() 659 endpoint_cfg.codec.params.Add( in GetVendorAseConfigurationsForRequirements() 681 CodecConfigSetting codec = bluetooth::le_audio::CodecManager::GetInstance() in MockVendorCodecProvider() local 687 requirements, codec, kLeAudioDirectionSink); in MockVendorCodecProvider() 692 requirements, codec, kLeAudioDirectionSource); in MockVendorCodecProvider() 923 snk_pac_builder.Add(entry.codec, data[i].audio_channel_counts_snk); in TestSingleAseConfiguration() 927 src_pac_builder.Add(entry.codec, data[i].audio_channel_counts_src); in TestSingleAseConfiguration() 976 for (auto codec : {kVendorCodecOne, kVendorCodecOneSwb}) { in TestGroupAseVendorConfiguration() [all …]
|
/packages/modules/Bluetooth/system/stack/mmc/codec_server/ |
D | a2dp_aac_mmc_encoder.cc | 60 const AVCodec* codec = avcodec_find_encoder(AV_CODEC_ID_AAC); in init() local 61 if (!codec) { in init() 67 avctx_ = avcodec_alloc_context3(codec); in init() 100 int rc = avcodec_open2(avctx_, codec, NULL); in init()
|
/packages/modules/Bluetooth/system/bta/ag/ |
D | bta_ag_api.cc | 231 void BTA_AgSetCodec(uint16_t handle, tBTA_AG_PEER_CODEC codec) { in BTA_AgSetCodec() argument 233 data.api_setcodec.codec = codec; in BTA_AgSetCodec()
|