/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothLeAudioCodecStatus.java | 132 BluetoothLeAudioCodecConfig codecConfig, BluetoothLeAudioCodecConfig selectableConfig) { in isCodecConfigSelectable() argument 133 if (codecConfig.getCodecType() != selectableConfig.getCodecType()) { in isCodecConfigSelectable() 136 if ((codecConfig.getFrameDuration() != BluetoothLeAudioCodecConfig.FRAME_DURATION_NONE) in isCodecConfigSelectable() 137 && ((codecConfig.getFrameDuration() & selectableConfig.getFrameDuration()) == 0)) { in isCodecConfigSelectable() 140 if ((codecConfig.getChannelCount() != BluetoothLeAudioCodecConfig.CHANNEL_COUNT_NONE) in isCodecConfigSelectable() 141 && ((codecConfig.getChannelCount() & selectableConfig.getChannelCount()) == 0)) { in isCodecConfigSelectable() 144 if ((codecConfig.getSampleRate() != BluetoothLeAudioCodecConfig.SAMPLE_RATE_NONE) in isCodecConfigSelectable() 145 && ((codecConfig.getSampleRate() & selectableConfig.getSampleRate()) == 0)) { in isCodecConfigSelectable() 148 if ((codecConfig.getBitsPerSample() != BluetoothLeAudioCodecConfig.BITS_PER_SAMPLE_NONE) in isCodecConfigSelectable() 149 && ((codecConfig.getBitsPerSample() & selectableConfig.getBitsPerSample()) == 0)) { in isCodecConfigSelectable() [all …]
|
D | BluetoothCodecStatus.java | 51 @Nullable BluetoothCodecConfig codecConfig, in BluetoothCodecStatus() 54 mCodecConfig = codecConfig; in BluetoothCodecStatus() 106 public boolean isCodecConfigSelectable(@Nullable BluetoothCodecConfig codecConfig) { in isCodecConfigSelectable() argument 107 if (codecConfig == null in isCodecConfigSelectable() 108 || !codecConfig.hasSingleSampleRate() in isCodecConfigSelectable() 109 || !codecConfig.hasSingleBitsPerSample() in isCodecConfigSelectable() 110 || !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() [all …]
|
D | BluetoothA2dp.java | 777 @NonNull BluetoothDevice device, @NonNull BluetoothCodecConfig codecConfig) { in setCodecConfigPreference() argument 780 if (codecConfig == null) { in setCodecConfigPreference() 790 service.setCodecConfigPreference(device, codecConfig, mAttributionSource); in setCodecConfigPreference()
|
/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() 170 BluetoothCodecConfig codecConfig, List<BluetoothCodecConfig> selectableCodecs) { in getPrioitizedCodecType() argument 171 BluetoothCodecConfig prioritizedCodecConfig = codecConfig; in getPrioitizedCodecType() 266 BluetoothCodecConfig codecConfig; in assignCodecConfigPriorities() local 268 codecConfig = in assignCodecConfigPriorities() 273 codecConfigArray[0] = codecConfig; in assignCodecConfigPriorities() [all …]
|
D | A2dpService.java | 757 public void setCodecConfigPreference(BluetoothDevice device, BluetoothCodecConfig codecConfig) { in setCodecConfigPreference() argument 758 Log.d(TAG, "setCodecConfigPreference(" + device + "): " + Objects.toString(codecConfig)); in setCodecConfigPreference() 766 if (codecConfig == null) { in setCodecConfigPreference() 775 mA2dpCodecConfig.setCodecConfigPreference(device, codecStatus, codecConfig); in setCodecConfigPreference() 977 BluetoothCodecConfig codecConfig = codecStatus.getCodecConfig(); in codecConfigUpdated() local 982 codecConfig.getCodecType(), in codecConfigUpdated() 983 codecConfig.getCodecPriority(), in codecConfigUpdated() 984 codecConfig.getSampleRate(), in codecConfigUpdated() 985 codecConfig.getBitsPerSample(), in codecConfigUpdated() 986 codecConfig.getChannelMode(), in codecConfigUpdated() [all …]
|
D | A2dpStateMachine.java | 733 for (BluetoothCodecConfig codecConfig : newCodecStatus.getCodecsLocalCapabilities()) { in processCodecConfigEvent() 734 Log.d(TAG, "A2DP Codec Local Capability: " + codecConfig); in processCodecConfigEvent() 736 for (BluetoothCodecConfig codecConfig : in processCodecConfigEvent() 738 Log.d(TAG, "A2DP Codec Selectable Capability: " + codecConfig); in processCodecConfigEvent()
|
/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/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 | BluetoothCodecListPreferenceController.java | 100 BluetoothCodecConfig codecConfig; in onPreferenceChange() local 102 codecConfig = mBluetoothA2dpConfigStore.createCodecConfigFromCodecType(); in onPreferenceChange() 104 codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange() 114 Log.d(TAG, "onPreferenceChange: setCodecConfigPreference: " + codecConfig.toString()); in onPreferenceChange() 116 bluetoothA2dp.setCodecConfigPreference(activeDevice, codecConfig); in onPreferenceChange()
|
D | AbstractBluetoothDialogPreferenceController.java | 89 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onIndexUpdated() local 92 bluetoothA2dp.setCodecConfigPreference(activeDevice, codecConfig); in onIndexUpdated() 100 final BluetoothCodecConfig codecConfig = getCurrentCodecConfig(); in getCurrentConfigIndex() local 101 if (codecConfig == null) { in getCurrentConfigIndex() 105 return getCurrentIndexByConfig(codecConfig); in getCurrentConfigIndex()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/nodes/ |
D | IVideoRendererNode.cpp | 228 tCodecConfig codecConfig; in ProcessData() local 232 if (ImsMediaVideoUtil::ParseAvcSps(buffer, size, &codecConfig)) in ProcessData() 234 CheckResolution(codecConfig.nWidth, codecConfig.nHeight); in ProcessData() 239 if (ImsMediaVideoUtil::ParseHevcSps(buffer, size, &codecConfig)) in ProcessData() 241 CheckResolution(codecConfig.nWidth, codecConfig.nHeight); in ProcessData()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpCodecConfigTest.java | 774 for (BluetoothCodecConfig codecConfig : sDefaultCodecConfigs) { in getDefaultCodecConfigByType() 775 if (codecConfig.getCodecType() != codecType) { in getDefaultCodecConfigByType() 779 codecConfig.getCodecType(), in getDefaultCodecConfigByType() 782 : codecConfig.getCodecPriority()), in getDefaultCodecConfigByType() 783 codecConfig.getSampleRate(), in getDefaultCodecConfigByType() 784 codecConfig.getBitsPerSample(), in getDefaultCodecConfigByType() 785 codecConfig.getChannelMode(), in getDefaultCodecConfigByType() 786 codecConfig.getCodecSpecific1(), in getDefaultCodecConfigByType() 787 codecConfig.getCodecSpecific2(), in getDefaultCodecConfigByType() 788 codecConfig.getCodecSpecific3(), in getDefaultCodecConfigByType() [all …]
|
D | A2dpServiceTest.java | 558 BluetoothCodecConfig codecConfig = codecConfigSbc; in testProcessAudioStateChangedCodecConfigChangedEvents() local 565 codecConfig, in testProcessAudioStateChangedCodecConfigChangedEvents()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_le_audio.cpp | 116 btle_audio_codec_config_t codecConfig) { in prepareCodecConfigObj() argument 120 codecConfig.codec_type, codecConfig.codec_priority, in prepareCodecConfigObj() 121 codecConfig.sample_rate, codecConfig.bits_per_sample, in prepareCodecConfigObj() 122 codecConfig.channel_count, codecConfig.frame_duration, in prepareCodecConfigObj() 123 codecConfig.octets_per_frame); in prepareCodecConfigObj() 128 (jint)codecConfig.codec_type, (jint)codecConfig.codec_priority, in prepareCodecConfigObj() 129 (jint)codecConfig.sample_rate, (jint)codecConfig.bits_per_sample, in prepareCodecConfigObj() 130 (jint)codecConfig.channel_count, (jint)codecConfig.frame_duration, in prepareCodecConfigObj() 131 (jint)codecConfig.octets_per_frame, 0, 0); in prepareCodecConfigObj()
|
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/ |
D | client_interface_hidl_unittest.cc | 501 audio_config.codecConfig(codec_config); in TEST_F() 575 audio_config.codecConfig(codec_config); in TEST_F() 646 audio_config.codecConfig(codec_config); in TEST_F() 713 audio_config.codecConfig(codec_config); in TEST_F() 753 audio_config.codecConfig(codec_config); in TEST_F() 777 audio_config.codecConfig(codec_config); in TEST_F()
|
D | client_interface_hidl.cc | 510 AudioConfiguration::hidl_discriminator::codecConfig); in UpdateAudioConfig() 539 AudioConfiguration_2_1::hidl_discriminator::codecConfig); in UpdateAudioConfig_2_1()
|
D | a2dp_encoding_hidl.cc | 465 audio_config.codecConfig(codec_config); in setup_codec()
|
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/ |
D | IBluetoothA2dp.aidl | 59 …decConfigPreference(in BluetoothDevice device, in BluetoothCodecConfig codecConfig, in Attribution… in setCodecConfigPreference() argument
|