/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/ |
D | libbt_audio_hal_client_interface_fuzzer.cpp | 254 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 …]
|
D | README.md | 31 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/ |
D | A2dpCodecConfig.java | 137 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 …]
|
D | A2dpService.java | 768 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 …]
|
D | A2dpStateMachine.java | 643 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/ |
D | BluetoothLeAudioCodecStatus.java | 128 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 …]
|
D | BluetoothCodecStatus.java | 53 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 …]
|
D | BluetoothA2dp.java | 823 @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/ |
D | A2dpReceiver.java | 402 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/ |
D | AbstractBluetoothA2dpPreferenceController.java | 92 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/ |
D | AbstractBluetoothDialogPreferenceController.java | 90 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/ |
D | A2dpCodecConfigTest.java | 684 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()
|
D | A2dpServiceTest.java | 575 BluetoothCodecConfig codecConfig = codecConfigSbc; in testProcessAudioStateChangedCodecConfigChangedEvents() local 580 BluetoothCodecStatus codecStatus = new BluetoothCodecStatus(codecConfig, in testProcessAudioStateChangedCodecConfigChangedEvents()
|
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/ |
D | client_interface_hidl_unittest.cc | 499 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()
|
D | client_interface_hidl.cc | 512 AudioConfiguration::hidl_discriminator::codecConfig); in UpdateAudioConfig() 541 AudioConfiguration_2_1::hidl_discriminator::codecConfig); in UpdateAudioConfig_2_1()
|
D | a2dp_encoding_hidl.cc | 455 audio_config.codecConfig(codec_config); in setup_codec()
|
/packages/modules/Bluetooth/system/binder/android/bluetooth/ |
D | IBluetoothA2dp.aidl | 76 …decConfigPreference(in BluetoothDevice device, in BluetoothCodecConfig codecConfig, in Attribution… in setCodecConfigPreference() argument
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_le_audio.cpp | 99 btle_audio_codec_config_t codecConfig) { in prepareCodecConfigObj() argument 103 (jint)codecConfig.codec_type, 0, 0, 0, 0, 0, 0, 0, 0); in prepareCodecConfigObj()
|