Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeAudioCodecStatus.java132 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 …]
DBluetoothCodecStatus.java51 @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 …]
DBluetoothA2dp.java777 @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/
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()
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 …]
DA2dpService.java757 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 …]
DA2dpStateMachine.java733 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/
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/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/
DBluetoothCodecListPreferenceController.java100 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()
DAbstractBluetoothDialogPreferenceController.java89 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/
DIVideoRendererNode.cpp228 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/
DA2dpCodecConfigTest.java774 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 …]
DA2dpServiceTest.java558 BluetoothCodecConfig codecConfig = codecConfigSbc; in testProcessAudioStateChangedCodecConfigChangedEvents() local
565 codecConfig, in testProcessAudioStateChangedCodecConfigChangedEvents()
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_le_audio.cpp116 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/
Dclient_interface_hidl_unittest.cc501 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()
Dclient_interface_hidl.cc510 AudioConfiguration::hidl_discriminator::codecConfig); in UpdateAudioConfig()
539 AudioConfiguration_2_1::hidl_discriminator::codecConfig); in UpdateAudioConfig_2_1()
Da2dp_encoding_hidl.cc465 audio_config.codecConfig(codec_config); in setup_codec()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothA2dp.aidl59 …decConfigPreference(in BluetoothDevice device, in BluetoothCodecConfig codecConfig, in Attribution… in setCodecConfigPreference() argument