Home
last modified time | relevance | path

Searched refs:codecConfig (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_client_interface_fuzzer.cpp254 CodecConfiguration codecConfig = {}; in SbcCodecConfigurationsGenerator() local
255 codecConfig.config.sbcConfig(sbc); in SbcCodecConfigurationsGenerator()
256 codecConfig.codecType = CodecType::SBC; in SbcCodecConfigurationsGenerator()
257 codecConfig.peerMtu = mFdp->PickValueInArray(kPeerMtus); in SbcCodecConfigurationsGenerator()
258 codecConfig.isScmstEnabled = mFdp->ConsumeBool(); in SbcCodecConfigurationsGenerator()
259 codecConfig.encodedAudioBitrate = mFdp->ConsumeIntegral<uint32_t>(); in SbcCodecConfigurationsGenerator()
261 return codecConfig; in SbcCodecConfigurationsGenerator()
280 CodecConfiguration codecConfig = {}; in AacCodecConfigurationsGenerator() local
281 codecConfig.config.aacConfig(aac); in AacCodecConfigurationsGenerator()
282 codecConfig.codecType = CodecType::AAC; in AacCodecConfigurationsGenerator()
[all …]
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/src/com/android/bluetooth/a2dp/
DA2dpCodecConfig.java137 BluetoothCodecConfig codecConfig = codecConfigArray[i]; in enableOptionalCodecs() local
138 if (!codecConfig.isMandatoryCodec()) { in enableOptionalCodecs()
158 BluetoothCodecConfig codecConfig = codecConfigArray[i]; in disableOptionalCodecs() local
159 if (codecConfig.isMandatoryCodec()) { in disableOptionalCodecs()
160 codecConfig.setCodecPriority(BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST); in disableOptionalCodecs()
169 private int getPrioitizedCodecType(BluetoothCodecConfig codecConfig, in getPrioitizedCodecType() argument
171 BluetoothCodecConfig prioritizedCodecConfig = codecConfig; in getPrioitizedCodecType()
261 BluetoothCodecConfig codecConfig; in assignCodecConfigPriorities() local
264 codecConfig = new BluetoothCodecConfig.Builder() in assignCodecConfigPriorities()
268 codecConfigArray[0] = codecConfig; in assignCodecConfigPriorities()
[all …]
DA2dpService.java768 BluetoothCodecConfig codecConfig) { in setCodecConfigPreference() argument
771 + Objects.toString(codecConfig)); in setCodecConfigPreference()
780 if (codecConfig == null) { in setCodecConfigPreference()
789 mA2dpCodecConfig.setCodecConfigPreference(device, codecStatus, codecConfig); in setCodecConfigPreference()
992 BluetoothCodecConfig codecConfig = codecStatus.getCodecConfig(); in codecConfigUpdated() local
995 mAdapterService.obfuscateAddress(device), codecConfig.getCodecType(), in codecConfigUpdated()
996 codecConfig.getCodecPriority(), codecConfig.getSampleRate(), in codecConfigUpdated()
997 codecConfig.getBitsPerSample(), codecConfig.getChannelMode(), in codecConfigUpdated()
998 codecConfig.getCodecSpecific1(), codecConfig.getCodecSpecific2(), in codecConfigUpdated()
999 codecConfig.getCodecSpecific3(), codecConfig.getCodecSpecific4(), metricId); in codecConfigUpdated()
[all …]
DA2dpStateMachine.java643 for (BluetoothCodecConfig codecConfig : in processCodecConfigEvent()
645 Log.d(TAG, "A2DP Codec Local Capability: " + codecConfig); in processCodecConfigEvent()
647 for (BluetoothCodecConfig codecConfig : in processCodecConfigEvent()
649 Log.d(TAG, "A2DP Codec Selectable Capability: " + codecConfig); in processCodecConfigEvent()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeAudioCodecStatus.java128 private boolean isCodecConfigSelectable(BluetoothLeAudioCodecConfig codecConfig, in isCodecConfigSelectable() argument
130 if (codecConfig.getCodecType() != selectableConfig.getCodecType()) { in isCodecConfigSelectable()
133 if ((codecConfig.getFrameDuration() != BluetoothLeAudioCodecConfig.FRAME_DURATION_NONE) in isCodecConfigSelectable()
134 && ((codecConfig.getFrameDuration() & selectableConfig.getFrameDuration()) == 0)) { in isCodecConfigSelectable()
137 if ((codecConfig.getChannelCount() != BluetoothLeAudioCodecConfig.CHANNEL_COUNT_NONE) in isCodecConfigSelectable()
138 && ((codecConfig.getChannelCount() & selectableConfig.getChannelCount()) == 0)) { in isCodecConfigSelectable()
141 if ((codecConfig.getSampleRate() != BluetoothLeAudioCodecConfig.SAMPLE_RATE_NONE) in isCodecConfigSelectable()
142 && ((codecConfig.getSampleRate() & selectableConfig.getSampleRate()) == 0)) { in isCodecConfigSelectable()
145 if ((codecConfig.getBitsPerSample() != BluetoothLeAudioCodecConfig.BITS_PER_SAMPLE_NONE) in isCodecConfigSelectable()
146 && ((codecConfig.getBitsPerSample() & selectableConfig.getBitsPerSample()) == 0)) { in isCodecConfigSelectable()
[all …]
DBluetoothCodecStatus.java53 public BluetoothCodecStatus(@Nullable BluetoothCodecConfig codecConfig, in BluetoothCodecStatus() argument
56 mCodecConfig = codecConfig; in BluetoothCodecStatus()
108 public boolean isCodecConfigSelectable(@Nullable BluetoothCodecConfig codecConfig) { in isCodecConfigSelectable() argument
109 if (codecConfig == null || !codecConfig.hasSingleSampleRate() in isCodecConfigSelectable()
110 || !codecConfig.hasSingleBitsPerSample() || !codecConfig.hasSingleChannelMode()) { in isCodecConfigSelectable()
114 if (codecConfig.getCodecType() != selectableConfig.getCodecType()) { in isCodecConfigSelectable()
117 int sampleRate = codecConfig.getSampleRate(); in isCodecConfigSelectable()
122 int bitsPerSample = codecConfig.getBitsPerSample(); in isCodecConfigSelectable()
127 int channelMode = codecConfig.getChannelMode(); in isCodecConfigSelectable()
228 public @NonNull Builder setCodecConfig(@NonNull BluetoothCodecConfig codecConfig) { in setCodecConfig() argument
[all …]
DBluetoothA2dp.java823 @NonNull BluetoothCodecConfig codecConfig) { in setCodecConfigPreference() argument
826 if (codecConfig == null) { in setCodecConfigPreference()
836 service.setCodecConfigPreference(device, codecConfig, mAttributionSource); in setCodecConfigPreference()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java402 BluetoothCodecConfig codecConfig = null; in getCodecValue() local
414 codecConfig = codecStatus.getCodecConfig(); in getCodecValue()
419 if (codecConfig == null) return null; in getCodecValue()
421 Log.d(TAG, "GetCodecValue: " + codecConfig.toString()); in getCodecValue()
433 return codecConfig; in getCodecValue()
454 BluetoothCodecConfig codecConfig = new BluetoothCodecConfig.Builder() in setCodecValue() local
487 mBluetoothA2dp.setCodecConfigPreference(getA2dpActiveDevice(), codecConfig); in setCodecValue() local
531 BluetoothCodecConfig codecConfig = null; in verifyCodeConfig() local
532 codecConfig = getCodecValue(false); in verifyCodeConfig()
533 if (codecConfig == null) return false; in verifyCodeConfig()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java92 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange() local
98 setCodecConfigPreference(activeDevice, codecConfig); in onPreferenceChange()
121 BluetoothCodecConfig codecConfig; in updateState() local
123 codecConfig = getCodecConfig(activeDevice); in updateState()
126 final int index = getCurrentA2dpSettingIndex(codecConfig); in updateState()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothDialogPreferenceController.java90 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onIndexUpdated() local
93 bluetoothA2dp.setCodecConfigPreference(activeDevice, codecConfig); in onIndexUpdated()
101 final BluetoothCodecConfig codecConfig = getCurrentCodecConfig(); in getCurrentConfigIndex() local
102 if (codecConfig == null) { in getCurrentConfigIndex()
106 return getCurrentIndexByConfig(codecConfig); in getCurrentConfigIndex()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpCodecConfigTest.java684 for (BluetoothCodecConfig codecConfig : sDefaultCodecConfigs) { in getDefaultCodecConfigByType()
685 if (codecConfig.getCodecType() != codecType) { in getDefaultCodecConfigByType()
689 codecConfig.getCodecType(), in getDefaultCodecConfigByType()
691 ? codecPriority : codecConfig.getCodecPriority()), in getDefaultCodecConfigByType()
692 codecConfig.getSampleRate(), codecConfig.getBitsPerSample(), in getDefaultCodecConfigByType()
693 codecConfig.getChannelMode(), codecConfig.getCodecSpecific1(), in getDefaultCodecConfigByType()
694 codecConfig.getCodecSpecific2(), codecConfig.getCodecSpecific3(), in getDefaultCodecConfigByType()
695 codecConfig.getCodecSpecific4()); in getDefaultCodecConfigByType()
DA2dpServiceTest.java575 BluetoothCodecConfig codecConfig = codecConfigSbc; in testProcessAudioStateChangedCodecConfigChangedEvents() local
580 BluetoothCodecStatus codecStatus = new BluetoothCodecStatus(codecConfig, in testProcessAudioStateChangedCodecConfigChangedEvents()
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl_unittest.cc499 audio_config.codecConfig(codec_config); in TEST_F()
573 audio_config.codecConfig(codec_config); in TEST_F()
644 audio_config.codecConfig(codec_config); in TEST_F()
711 audio_config.codecConfig(codec_config); in TEST_F()
751 audio_config.codecConfig(codec_config); in TEST_F()
775 audio_config.codecConfig(codec_config); in TEST_F()
Dclient_interface_hidl.cc512 AudioConfiguration::hidl_discriminator::codecConfig); in UpdateAudioConfig()
541 AudioConfiguration_2_1::hidl_discriminator::codecConfig); in UpdateAudioConfig_2_1()
Da2dp_encoding_hidl.cc455 audio_config.codecConfig(codec_config); in setup_codec()
/packages/modules/Bluetooth/system/binder/android/bluetooth/
DIBluetoothA2dp.aidl76 …decConfigPreference(in BluetoothDevice device, in BluetoothCodecConfig codecConfig, in Attribution… in setCodecConfigPreference() argument
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_le_audio.cpp99 btle_audio_codec_config_t codecConfig) { in prepareCodecConfigObj() argument
103 (jint)codecConfig.codec_type, 0, 0, 0, 0, 0, 0, 0, 0); in prepareCodecConfigObj()