Home
last modified time | relevance | path

Searched refs:codecType (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java197 int codecType = BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID; in processParameters() local
272 codecType = Integer.valueOf(tmpStr); in processParameters()
320 if (codecType == BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID in processParameters()
331 if (!setCodecValue(codecType, sampleRate, bitsPerSample, channelMode, in processParameters()
447 private boolean setCodecValue(int codecType, int sampleRate, int bitsPerSample, in setCodecValue() argument
450 Log.d(TAG, "SetCodecValue: Codec Type: " + codecType + " sampleRate: " + sampleRate in setCodecValue()
455 .setCodecType(codecType) in setCodecValue()
494 if (verifyCodeConfig(codecType, sampleRate, in setCodecValue()
504 if (!verifyCodeConfig(codecType, sampleRate, in setCodecValue()
529 private boolean verifyCodeConfig(int codecType, int sampleRate, int bitsPerSample, in verifyCodeConfig() argument
[all …]
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DBluetoothLeAudioCodecConfigTest.java36 int codecType = mCodecTypeArray[codecIdx]; in testBluetoothLeAudioCodecConfig_valid_get_methods() local
39 buildBluetoothLeAudioCodecConfig(codecType); in testBluetoothLeAudioCodecConfig_valid_get_methods()
41 if (codecType == BluetoothLeAudioCodecConfig.SOURCE_CODEC_TYPE_LC3) { in testBluetoothLeAudioCodecConfig_valid_get_methods()
44 if (codecType == BluetoothLeAudioCodecConfig.SOURCE_CODEC_TYPE_INVALID) { in testBluetoothLeAudioCodecConfig_valid_get_methods()
48 assertEquals(codecType, leAudioCodecConfig.getCodecType()); in testBluetoothLeAudioCodecConfig_valid_get_methods()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothCodecConfig.java253 public BluetoothCodecConfig(@SourceCodecType int codecType, @CodecPriority int codecPriority, in BluetoothCodecConfig() argument
258 mCodecType = codecType; in BluetoothCodecConfig()
281 public BluetoothCodecConfig(@SourceCodecType int codecType) { in BluetoothCodecConfig() argument
282 this(codecType, BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT, in BluetoothCodecConfig()
457 public static @NonNull String getCodecName(@SourceCodecType int codecType) { in getCodecName() argument
458 switch (codecType) { in getCodecName()
478 return "UNKNOWN CODEC(" + codecType + ")"; in getCodecName()
758 public @NonNull Builder setCodecType(@SourceCodecType int codecType) { in setCodecType() argument
759 mCodecType = codecType; in setCodecType()
DBluetoothLeAudioCodecConfig.java226 private BluetoothLeAudioCodecConfig(@SourceCodecType int codecType, in BluetoothLeAudioCodecConfig() argument
231 mCodecType = codecType; in BluetoothLeAudioCodecConfig()
254 int codecType = in.readInt();
263 return new BluetoothLeAudioCodecConfig(codecType, codecPriority, sampleRate,
444 public @NonNull Builder setCodecType(@SourceCodecType int codecType) { in setCodecType() argument
445 mCodecType = codecType; in setCodecType()
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dcodec_status_hidl.cc159 .codecType = CodecType::UNKNOWN,
225 codec_config->codecType = CodecType::SBC; in A2dpSbcToHalConfig()
317 codec_config->codecType = CodecType::AAC; in A2dpAacToHalConfig()
384 codec_config->codecType = CodecType::APTX; in A2dpAptxToHalConfig()
386 codec_config->codecType = CodecType::APTX_HD; in A2dpAptxToHalConfig()
421 codec_config->codecType = CodecType::LDAC; in A2dpLdacToHalConfig()
515 if (static_cast<CodecType>(capability.codecCapabilities().codecType & in UpdateOffloadingCapabilities()
533 if (codec_config.codecType != preference.codecCapabilities().codecType) in IsCodecOffloadingEnabled()
536 switch (codec_capability.codecType) { in IsCodecOffloadingEnabled()
563 << toString(codec_capability.codecType); in IsCodecOffloadingEnabled()
Dclient_interface_hidl_unittest.cc261 if (audio_capability.codecCapabilities().codecType == in IsCodecOffloadingSupported()
262 codec_config.codecType) { in IsCodecOffloadingSupported()
266 if (codec_capability.codecType != codec_config.codecType) { in IsCodecOffloadingSupported()
271 switch (codec_config.codecType) { in IsCodecOffloadingSupported()
443 codec_config.codecType = CodecType::SBC; in SbcCodecConfigurationsGenerator()
524 codec_config.codecType = CodecType::AAC; in AacCodecConfigurationsGenerator()
595 codec_config.codecType = CodecType::LDAC; in LdacCodecConfigurationsGenerator()
665 codec_config.codecType = codec_type; in AptxCodecConfigurationsGenerator()
770 codec_config.codecType = CodecType::UNKNOWN; in TEST_F()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dcodec_status_aidl.cc231 codec_config->codecType = CodecType::SBC; in A2dpSbcToHalConfig()
322 codec_config->codecType = CodecType::AAC; in A2dpAacToHalConfig()
388 codec_config->codecType = CodecType::APTX; in A2dpAptxToHalConfig()
390 codec_config->codecType = CodecType::APTX_HD; in A2dpAptxToHalConfig()
424 codec_config->codecType = CodecType::LDAC; in A2dpLdacToHalConfig()
486 codec_config->codecType = CodecType::OPUS; in A2dpOpusToHalConfig()
566 capability.get<AudioCapabilities::a2dpCapabilities>().codecType; in UpdateOffloadingCapabilities()
586 if (codec_config.codecType != in IsCodecOffloadingEnabled()
587 preference.get<AudioCapabilities::a2dpCapabilities>().codecType) { in IsCodecOffloadingEnabled()
592 switch (codec_capability.codecType) { in IsCodecOffloadingEnabled()
[all …]
Dle_audio_software_aidl.cc462 if (hal_capability.codecType != CodecType::LC3) { in hal_ucast_capability_to_stack_format()
464 << toString(hal_capability.codecType); in hal_ucast_capability_to_stack_format()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpCodecConfigTest.java642 for (int codecType : sOptionalCodecTypes) { in testDisableOptionalCodecs()
645 getDefaultCodecConfigByType(codecType, in testDisableOptionalCodecs()
673 for (int codecType : sOptionalCodecTypes) { in testEnableOptionalCodecs()
676 getDefaultCodecConfigByType(codecType, in testEnableOptionalCodecs()
683 private BluetoothCodecConfig getDefaultCodecConfigByType(int codecType, int codecPriority) { in getDefaultCodecConfigByType() argument
685 if (codecConfig.getCodecType() != codecType) { in getDefaultCodecConfigByType()
697 Assert.fail("getDefaultCodecConfigByType: No such codecType=" + codecType in getDefaultCodecConfigByType()
702 private BluetoothCodecConfig getCodecCapabilitiesByType(int codecType) { in getCodecCapabilitiesByType() argument
704 if (codecCapabilities.getCodecType() != codecType) { in getCodecCapabilitiesByType()
714 Assert.fail("getCodecCapabilitiesByType: No such codecType=" + codecType in getCodecCapabilitiesByType()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothA2dpConfigStore.java37 public void setCodecType(int codecType) { in setCodecType() argument
38 mCodecType = codecType; in setCodecType()
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_client_interface_fuzzer.cpp256 codecConfig.codecType = CodecType::SBC; in SbcCodecConfigurationsGenerator()
282 codecConfig.codecType = CodecType::AAC; in AacCodecConfigurationsGenerator()
311 codecConfig.codecType = CodecType::LDAC; in LdacCodecConfigurationsGenerator()
330 codecConfig.codecType = mFdp->PickValueInArray(codecTypes); in AptxCodecConfigurationsGenerator()
DREADME.md31 20. Codec Type (parameter name: `codecConfig.codecType`)
55 | `codecConfig.codecType` | 0.`CodecType::APTX` 1.`CodecType::APTX_HD` | Value obtained from Fuzzed…
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_a2dp.cpp248 jint codecType = env->CallIntMethod( in prepareCodecPreferences() local
268 .codec_type = static_cast<btav_a2dp_codec_index_t>(codecType), in prepareCodecPreferences()
Dcom_android_bluetooth_le_audio.cpp320 jint codecType = env->CallIntMethod( in prepareCodecPreferences() local
325 .codec_type = static_cast<btle_audio_codec_index_t>(codecType)}; in prepareCodecPreferences()
/packages/modules/Media/apex/framework/java/android/media/
DMediaTranscodingManager.java1113 trackFormat.codecType = TranscodingVideoCodecType.kAvc; in convertToVideoTrackFormat()
1115 trackFormat.codecType = TranscodingVideoCodecType.kHevc; in convertToVideoTrackFormat()
/packages/providers/MediaProvider/src/com/android/providers/media/
DTranscodeHelperImpl.java1171 String codecType = c.getString(0); in getVideoTrackFormat() local
1182 codecType, width, height); in getVideoTrackFormat()