/aosp12/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothCodecStatus.java | 50 public BluetoothCodecStatus(@Nullable BluetoothCodecConfig codecConfig, in BluetoothCodecStatus() argument 53 mCodecConfig = codecConfig; in BluetoothCodecStatus() 101 public boolean isCodecConfigSelectable(BluetoothCodecConfig codecConfig) { in isCodecConfigSelectable() argument 102 if (codecConfig == null || !codecConfig.hasSingleSampleRate() in isCodecConfigSelectable() 103 || !codecConfig.hasSingleBitsPerSample() || !codecConfig.hasSingleChannelMode()) { in isCodecConfigSelectable() 107 if (codecConfig.getCodecType() != selectableConfig.getCodecType()) { in isCodecConfigSelectable() 110 int sampleRate = codecConfig.getSampleRate(); in isCodecConfigSelectable() 115 int bitsPerSample = codecConfig.getBitsPerSample(); in isCodecConfigSelectable() 120 int channelMode = codecConfig.getChannelMode(); in isCodecConfigSelectable() 164 final BluetoothCodecConfig codecConfig = in.readTypedObject( [all …]
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
H A D | A2dpCodecConfig.java | 130 BluetoothCodecConfig codecConfig = codecConfigArray[i]; in enableOptionalCodecs() local 131 if (!codecConfig.isMandatoryCodec()) { in enableOptionalCodecs() 151 BluetoothCodecConfig codecConfig = codecConfigArray[i]; in disableOptionalCodecs() local 152 if (codecConfig.isMandatoryCodec()) { in disableOptionalCodecs() 164 BluetoothCodecConfig prioritizedCodecConfig = codecConfig; in getPrioitizedCodecType() 234 BluetoothCodecConfig codecConfig; in assignCodecConfigPriorities() local 242 codecConfigArray[0] = codecConfig; in assignCodecConfigPriorities() 248 codecConfigArray[1] = codecConfig; in assignCodecConfigPriorities() 254 codecConfigArray[2] = codecConfig; in assignCodecConfigPriorities() 260 codecConfigArray[3] = codecConfig; in assignCodecConfigPriorities() [all …]
|
H A D | A2dpService.java | 733 + Objects.toString(codecConfig)); in setCodecConfigPreference() 742 if (codecConfig == null) { in setCodecConfigPreference() 956 codecConfig.getCodecPriority(), codecConfig.getSampleRate(), in codecConfigUpdated() 957 codecConfig.getBitsPerSample(), codecConfig.getChannelMode(), in codecConfigUpdated() 958 codecConfig.getCodecSpecific1(), codecConfig.getCodecSpecific2(), in codecConfigUpdated() 959 codecConfig.getCodecSpecific3(), codecConfig.getCodecSpecific4(), metricId); in codecConfigUpdated() 966 codecConfig.getCodecSpecific1(), codecConfig.getCodecSpecific2(), in codecConfigUpdated() 967 codecConfig.getCodecSpecific3(), codecConfig.getCodecSpecific4(), metricId); in codecConfigUpdated() 1409 service.setCodecConfigPreference(device, codecConfig); in setCodecConfigPreference() 1500 + codecConfig.getCodecPriority()); in dump() [all …]
|
H A D | A2dpStateMachine.java | 635 for (BluetoothCodecConfig codecConfig : in processCodecConfigEvent() 637 Log.d(TAG, "A2DP Codec Local Capability: " + codecConfig); in processCodecConfigEvent() 639 for (BluetoothCodecConfig codecConfig : in processCodecConfigEvent() 641 Log.d(TAG, "A2DP Codec Selectable Capability: " + codecConfig); in processCodecConfigEvent()
|
/aosp12/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
H A D | A2dpReceiver.java | 401 BluetoothCodecConfig codecConfig = null; in getCodecValue() local 413 codecConfig = codecStatus.getCodecConfig(); in getCodecValue() 418 if (codecConfig == null) return null; in getCodecValue() 420 Log.d(TAG, "GetCodecValue: " + codecConfig.toString()); in getCodecValue() 432 return codecConfig; in getCodecValue() 453 BluetoothCodecConfig codecConfig = in setCodecValue() local 514 BluetoothCodecConfig codecConfig = null; in verifyCodeConfig() local 515 codecConfig = getCodecValue(false); in verifyCodeConfig() 516 if (codecConfig == null) return false; in verifyCodeConfig() 519 if (codecConfig.getCodecType() == codecType in verifyCodeConfig() [all …]
|
/aosp12/hardware/interfaces/bluetooth/audio/utils/session/ |
H A D | BluetoothAudioSession_2_1.cpp | 82 AudioConfiguration::hidl_discriminator::codecConfig) { in GetAudioConfig() 83 toConf.codecConfig() = fromConf.codecConfig(); in GetAudioConfig() 125 hidl_discriminator::codecConfig); in UpdateAudioConfig() 144 hidl_discriminator::codecConfig) { in OnSessionStarted() 145 config.codecConfig(audio_config.codecConfig()); in OnSessionStarted()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | A2dpProfile.java | 244 BluetoothCodecConfig codecConfig = null; in isHighQualityAudioEnabled() local 246 codecConfig = mService.getCodecStatus(bluetoothDevice).getCodecConfig(); in isHighQualityAudioEnabled() 248 if (codecConfig != null) { in isHighQualityAudioEnabled() 249 return !codecConfig.isMandatoryCodec(); in isHighQualityAudioEnabled() 293 final BluetoothCodecConfig codecConfig = (selectable == null || selectable.length < 1) in getHighQualityAudioOptionLabel() local 295 final int codecType = (codecConfig == null || codecConfig.isMandatoryCodec()) in getHighQualityAudioOptionLabel() 296 ? BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID : codecConfig.getCodecType(); in getHighQualityAudioOptionLabel()
|
/aosp12/packages/apps/Settings/src/com/android/settings/development/ |
H A D | AbstractBluetoothA2dpPreferenceController.java | 83 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange() local 90 setCodecConfigPreference(activeDevice, codecConfig); in onPreferenceChange() 114 BluetoothCodecConfig codecConfig; in updateState() local 116 codecConfig = getCodecConfig(activeDevice); in updateState() 119 final int index = getCurrentA2dpSettingIndex(codecConfig); in updateState()
|
/aosp12/packages/apps/Settings/src/com/android/settings/development/bluetooth/ |
H A D | AbstractBluetoothDialogPreferenceController.java | 84 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onIndexUpdated() local 87 bluetoothA2dp.setCodecConfigPreference(activeDevice, codecConfig); in onIndexUpdated() 95 final BluetoothCodecConfig codecConfig = getCurrentCodecConfig(); in getCurrentConfigIndex() local 96 if (codecConfig == null) { in getCurrentConfigIndex() 100 return getCurrentIndexByConfig(codecConfig); in getCurrentConfigIndex()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
H A D | A2dpCodecConfigTest.java | 633 for (BluetoothCodecConfig codecConfig : sDefaultCodecConfigs) { in getDefaultCodecConfigByType() 634 if (codecConfig.getCodecType() != codecType) { in getDefaultCodecConfigByType() 638 codecConfig.getCodecType(), in getDefaultCodecConfigByType() 640 ? codecPriority : codecConfig.getCodecPriority()), in getDefaultCodecConfigByType() 641 codecConfig.getSampleRate(), codecConfig.getBitsPerSample(), in getDefaultCodecConfigByType() 642 codecConfig.getChannelMode(), codecConfig.getCodecSpecific1(), in getDefaultCodecConfigByType() 643 codecConfig.getCodecSpecific2(), codecConfig.getCodecSpecific3(), in getDefaultCodecConfigByType() 644 codecConfig.getCodecSpecific4()); in getDefaultCodecConfigByType()
|
/aosp12/hardware/interfaces/bluetooth/audio/2.0/default/ |
H A D | A2dpOffloadAudioProvider.cpp | 60 AudioConfiguration::hidl_discriminator::codecConfig) { in startSession() 67 session_type_, audioConfig.codecConfig())) { in startSession()
|
/aosp12/hardware/interfaces/bluetooth/audio/2.1/default/ |
H A D | A2dpOffloadAudioProvider.cpp | 66 AudioConfiguration::hidl_discriminator::codecConfig) { in startSession() 73 session_type_, audioConfig.codecConfig())) { in startSession()
|
H A D | BluetoothAudioProvider.cpp | 67 audioConfig_2_1.codecConfig(audioConfig.codecConfig()); in startSession()
|
/aosp12/frameworks/av/media/codec2/components/flac/ |
H A D | C2SoftFlacDec.cpp | 203 bool codecConfig = (work->input.flags & C2FrameData::FLAG_CODEC_CONFIG) != 0; in process() local 217 if (mInputBufferCount == 0 && !codecConfig) { in process() 219 codecConfig = true; in process() 223 if (codecConfig) { in process()
|
/aosp12/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/ |
H A D | media_c2_hidl_test_common.cpp | 232 bool codecConfig = flags ? ((1 << (flags - 1)) & C2FrameData::FLAG_CODEC_CONFIG) != 0 : 0; in populateInfoVector() local 233 if (codecConfig) numCsds++; in populateInfoVector() 235 if (timestampDevTest && !codecConfig && !nonDisplayFrame) { in populateInfoVector()
|
/aosp12/system/bt/audio_hal_interface/ |
H A D | client_interface_unittest.cc | 496 audio_config.codecConfig(codec_config); in TEST_F() 570 audio_config.codecConfig(codec_config); in TEST_F() 641 audio_config.codecConfig(codec_config); in TEST_F() 708 audio_config.codecConfig(codec_config); in TEST_F() 748 audio_config.codecConfig(codec_config); in TEST_F() 772 audio_config.codecConfig(codec_config); in TEST_F()
|
/aosp12/frameworks/av/media/codecs/m4v_h263/dec/test/ |
H A D | Mpeg4H263DecoderTest.cpp | 187 bool codecConfig = flags == CODEC_CONFIG_FLAG; in processMpeg4H263Decoder() local 188 if (codecConfig || volHeader) { in processMpeg4H263Decoder() 230 if (codecConfig) { in processMpeg4H263Decoder()
|
/aosp12/hardware/interfaces/bluetooth/a2dp/1.0/default/ |
H A D | BluetoothAudioOffload.cpp | 38 codecConfig __unused) { in startSession()
|
H A D | BluetoothAudioOffload.h | 47 codecConfig) override;
|
/aosp12/hardware/interfaces/bluetooth/a2dp/1.0/ |
H A D | IBluetoothAudioOffload.hal | 48 * @param codecConfig Codec configuration as negotiated with the A2DP Sink 58 …startSession(IBluetoothAudioHost hostIf, CodecConfiguration codecConfig) generates (Status status);
|
/aosp12/hardware/interfaces/bluetooth/audio/2.0/vts/functional/ |
H A D | VtsHalBluetoothAudioV2_0TargetTest.cpp | 627 audio_config.codecConfig(codec_config); in TEST_P() 662 audio_config.codecConfig(codec_config); in TEST_P() 697 audio_config.codecConfig(codec_config); in TEST_P() 735 audio_config.codecConfig(codec_config); in TEST_P() 796 audio_config.codecConfig(codec_config); in TEST_P()
|
/aosp12/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/ |
H A D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 253 bool codecConfig = ((work->worklets.front()->output.flags & in handleWorkDone() local 255 if (!codecConfig && !work->worklets.front()->output.buffers.empty()) { in handleWorkDone() 720 bool codecConfig = in TEST_P() local 726 if (mTimestampDevTest && !codecConfig && !nonDisplayFrame) in TEST_P() 951 bool codecConfig = false; in TEST_P() local 965 codecConfig = flags ? ((1 << (flags - 1)) & C2FrameData::FLAG_CODEC_CONFIG) != 0 : 0; in TEST_P()
|
/aosp12/hardware/interfaces/bluetooth/audio/2.1/vts/functional/ |
H A D | VtsHalBluetoothAudioV2_1TargetTest.cpp | 722 audio_config.codecConfig(codec_config); in TEST_P() 757 audio_config.codecConfig(codec_config); in TEST_P() 792 audio_config.codecConfig(codec_config); in TEST_P() 830 audio_config.codecConfig(codec_config); in TEST_P() 891 audio_config.codecConfig(codec_config); in TEST_P()
|
/aosp12/system/bt/binder/android/bluetooth/ |
H A D | IBluetoothA2dp.aidl | 74 …decConfigPreference(in BluetoothDevice device, in BluetoothCodecConfig codecConfig, in Attribution… in setCodecConfigPreference() argument
|
/aosp12/frameworks/av/media/codec2/hidl/1.0/vts/functional/audio/ |
H A D | VtsHalMediaC2V1_0TargetAudioDecTest.cpp | 153 bool codecConfig = ((work->worklets.front()->output.flags & in handleWorkDone() local 155 if (!codecConfig && !work->worklets.front()->output.buffers.empty()) { in handleWorkDone() 688 bool codecConfig = false; in TEST_P() local 702 codecConfig = flags ? ((1 << (flags - 1)) & C2FrameData::FLAG_CODEC_CONFIG) != 0 : 0; in TEST_P()
|