/packages/modules/Bluetooth/system/stack/a2dp/ |
D | a2dp_vendor_aptx_hd.cc | 46 uint8_t channelMode; /* STEREO/DUAL/MONO */ member 117 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptxHd() 167 p_ie->channelMode = *p_codec_info & 0x0F; in A2DP_ParseInfoAptxHd() 181 if (A2DP_BitsSet(p_ie->channelMode) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAptxHd() 189 if (A2DP_BitsSet(p_ie->channelMode) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptxHd() 239 log::verbose("CH_MODE peer: 0x{:x}, capability 0x{:x}", cfg_cie.channelMode, in A2DP_CodecInfoMatchesCapabilityAptxHd() 240 p_cap->channelMode); in A2DP_CodecInfoMatchesCapabilityAptxHd() 246 if ((cfg_cie.channelMode & p_cap->channelMode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilityAptxHd() 300 (aptx_hd_cie_a.channelMode == aptx_hd_cie_b.channelMode); in A2DP_VendorCodecEqualsAptxHd() 353 switch (aptx_hd_cie.channelMode) { in A2DP_VendorGetTrackChannelCountAptxHd() [all …]
|
D | a2dp_vendor_aptx.cc | 45 uint8_t channelMode; /* STEREO/DUAL/MONO */ member 109 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptx() 155 p_ie->channelMode = *p_codec_info & 0x0F; in A2DP_ParseInfoAptx() 164 if (A2DP_BitsSet(p_ie->channelMode) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAptx() 172 if (A2DP_BitsSet(p_ie->channelMode) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptx() 220 log::verbose("CH_MODE peer: 0x{:x}, capability 0x{:x}", cfg_cie.channelMode, in A2DP_CodecInfoMatchesCapabilityAptx() 221 p_cap->channelMode); in A2DP_CodecInfoMatchesCapabilityAptx() 227 if ((cfg_cie.channelMode & p_cap->channelMode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilityAptx() 282 (aptx_cie_a.channelMode == aptx_cie_b.channelMode); in A2DP_VendorCodecEqualsAptx() 332 switch (aptx_cie.channelMode) { in A2DP_VendorGetTrackChannelCountAptx() [all …]
|
D | a2dp_vendor_ldac.cc | 47 uint8_t channelMode; /* STEREO/DUAL/MONO */ member 137 *p_result = (uint8_t)(p_ie->channelMode & A2DP_LDAC_CHANNEL_MODE_MASK); in A2DP_BuildInfoLdac() 185 p_ie->channelMode = *p_codec_info++ & A2DP_LDAC_CHANNEL_MODE_MASK; in A2DP_ParseInfoLdac() 192 if (A2DP_BitsSet(p_ie->channelMode) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoLdac() 200 if (A2DP_BitsSet(p_ie->channelMode) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoLdac() 292 log::verbose("CH_MODE peer: 0x{:x}, capability 0x{:x}", cfg_cie.channelMode, in A2DP_CodecInfoMatchesCapabilityLdac() 293 p_cap->channelMode); in A2DP_CodecInfoMatchesCapabilityLdac() 299 if ((cfg_cie.channelMode & p_cap->channelMode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilityLdac() 354 (ldac_cie_a.channelMode == ldac_cie_b.channelMode); in A2DP_VendorCodecEqualsLdac() 453 switch (ldac_cie.channelMode) { in A2DP_VendorGetTrackChannelCountLdac() [all …]
|
D | a2dp_vendor_opus.cc | 45 uint8_t channelMode; /* STEREO/DUAL/MONO */ member 150 *p_result |= (uint8_t)(p_ie->channelMode) & A2DP_OPUS_CHANNEL_MODE_MASK; in A2DP_BuildInfoOpus() 152 log::error("channelmode 0x{:X} setting failed", p_ie->channelMode); in A2DP_BuildInfoOpus() 222 p_ie->channelMode = *p_codec_info & A2DP_OPUS_CHANNEL_MODE_MASK; in A2DP_ParseInfoOpus() 234 if (A2DP_BitsSet(p_ie->channelMode) == A2DP_SET_ZERO_BIT) { in A2DP_ParseInfoOpus() 246 if (A2DP_BitsSet(p_ie->channelMode) != A2DP_SET_ONE_BIT) { in A2DP_ParseInfoOpus() 340 log::verbose("CH_MODE peer: 0x{:x}, capability 0x{:x}", cfg_cie.channelMode, in A2DP_CodecInfoMatchesCapabilityOpus() 341 p_cap->channelMode); in A2DP_CodecInfoMatchesCapabilityOpus() 349 if ((cfg_cie.channelMode & p_cap->channelMode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilityOpus() 406 (Opus_cie_a.channelMode == Opus_cie_b.channelMode) && in A2DP_VendorCodecEqualsOpus() [all …]
|
D | a2dp_aac.cc | 49 uint8_t channelMode; /* STEREO/MONO */ member 165 if (p_ie->channelMode == 0) return A2DP_INVALID_PARAMS; in A2DP_BuildInfoAac() 166 *p_result++ |= (p_ie->channelMode & A2DP_AAC_CHANNEL_MODE_MASK); in A2DP_BuildInfoAac() 209 p_ie->channelMode = *p_codec_info & A2DP_AAC_CHANNEL_MODE_MASK; in A2DP_ParseInfoAac() 227 if (A2DP_BitsSet(p_ie->channelMode) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAac() 237 if (A2DP_BitsSet(p_ie->channelMode) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAac() 311 cfg_cie.channelMode, p_cap->channelMode); in A2DP_CodecInfoMatchesCapabilityAac() 324 if ((cfg_cie.channelMode & p_cap->channelMode) == 0) return A2DP_NS_CH_MODE; in A2DP_CodecInfoMatchesCapabilityAac() 379 (aac_cie_a.channelMode == aac_cie_b.channelMode) && in A2DP_CodecEqualsAac() 449 switch (aac_cie.channelMode) { in A2DP_GetTrackChannelCountAac() [all …]
|
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/ |
D | codec_status_aidl.cc | 80 if (!ContainedInVector(sbc_capability.channelMode, sbc_config.channelMode) || in sbc_offloading_capability_match() 102 if (!ContainedInVector(aac_capability.channelMode, aac_config.channelMode) || in aac_offloading_capability_match() 121 if (!ContainedInVector(aptx_capability.channelMode, in aptx_offloading_capability_match() 122 aptx_config.channelMode) || in aptx_offloading_capability_match() 138 if (!ContainedInVector(ldac_capability.channelMode, in ldac_offloading_capability_match() 139 ldac_config.channelMode) || in ldac_offloading_capability_match() 156 if (!ContainedInVector(opus_capability->channelMode, in opus_offloading_capability_match() 157 opus_config->channelMode) || in opus_offloading_capability_match() 244 sbc_config.channelMode = SbcChannelMode::JOINT_STEREO; in A2dpSbcToHalConfig() 247 sbc_config.channelMode = SbcChannelMode::STEREO; in A2dpSbcToHalConfig() [all …]
|
D | a2dp_encoding_aidl.cc | 378 pcm_config->channelMode = A2dpCodecToHalChannelMode(current_codec); in a2dp_get_selected_hal_pcm_config() 380 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config() 885 codecParameters.channelMode = ChannelMode::MONO; in get_a2dp_configuration() 888 codecParameters.channelMode = ChannelMode::STEREO; in get_a2dp_configuration() 970 convert_channel_mode(result->parameters.channelMode); in get_a2dp_configuration() 1016 convert_channel_mode(codec_parameters_aidl.channelMode); in parse_a2dp_configuration()
|
D | a2dp_provider_info_unittest.cc | 130 std::vector<ChannelMode> channelMode, in CreateTestA2dpCodecInfo() argument 139 a2dpInfo.channelMode = channelMode; in CreateTestA2dpCodecInfo()
|
D | hearing_aid_software_encoding_aidl.cc | 156 hal_pcm_config->channelMode = ChannelMode::STEREO; in HearingAidGetSelectedHalPcmConfig()
|
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/ |
D | codec_status_hidl.cc | 66 (static_cast<SbcChannelMode>(sbc_capability.channelMode & in sbc_offloading_capability_match() 67 sbc_config.channelMode) == in sbc_offloading_capability_match() 101 (static_cast<ChannelMode>(aac_capability.channelMode & in aac_offloading_capability_match() 102 aac_config.channelMode) == in aac_offloading_capability_match() 123 (static_cast<ChannelMode>(aptx_capability.channelMode & in aptx_offloading_capability_match() 124 aptx_config.channelMode) == in aptx_offloading_capability_match() 143 (static_cast<LdacChannelMode>(ldac_capability.channelMode & in ldac_offloading_capability_match() 144 ldac_config.channelMode) == in ldac_offloading_capability_match() 242 sbc_config.channelMode = SbcChannelMode::JOINT_STEREO; in A2dpSbcToHalConfig() 245 sbc_config.channelMode = SbcChannelMode::STEREO; in A2dpSbcToHalConfig() [all …]
|
D | client_interface_hidl_unittest.cc | 242 pcm_config.channelMode != ChannelMode::UNKNOWN); in IsSoftwarePcmParametersSupported() 246 pcm_config.channelMode & pcm_capabilities.channelMode); in IsSoftwarePcmParametersSupported() 280 sbc_config.channelMode & sbc_capability.channelMode && in IsCodecOffloadingSupported() 297 aac_config.channelMode & aac_capability.channelMode && in IsCodecOffloadingSupported() 311 ldac_config.channelMode & ldac_capability.channelMode && in IsCodecOffloadingSupported() 323 aptx_config.channelMode & aptx_capability.channelMode && in IsCodecOffloadingSupported() 342 pcm_config.channelMode != ChannelMode::UNKNOWN && in IsSoftwarePcmParameters_2_1_Supported() 347 pcm_config.channelMode & pcm_capabilities.channelMode); in IsSoftwarePcmParameters_2_1_Supported() 386 pcm_config.channelMode = channel_mode_pair.hal_channel_mode_; in TEST_F() 452 .channelMode = (channel_mode_pair.hal_channel_mode_ == in SbcCodecConfigurationsGenerator() [all …]
|
D | a2dp_encoding_hidl.cc | 323 pcm_config->channelMode = A2dpCodecToHalChannelMode(current_codec); in a2dp_get_selected_hal_pcm_config() 326 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config()
|
D | hearing_aid_software_encoding_hidl.cc | 150 hal_pcm_config->channelMode = ChannelMode::STEREO; in HearingAidGetSelectedHalPcmConfig()
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | A2dpReceiver.java | 200 int channelMode = BluetoothCodecConfig.CHANNEL_MODE_STEREO; in processParameters() local 293 channelMode = Integer.valueOf(tmpStr); in processParameters() 331 if (!setCodecValue(codecType, sampleRate, bitsPerSample, channelMode, in processParameters() 448 int channelMode, long codecSpecific1, long codecSpecific2, in setCodecValue() argument 451 + " bitsPerSample: " + bitsPerSample + " Channel Mode: " + channelMode in setCodecValue() 459 .setChannelMode(channelMode) in setCodecValue() 495 bitsPerSample, channelMode, codecSpecific1)) { in setCodecValue() 505 bitsPerSample, channelMode, codecSpecific1)) { in setCodecValue() 530 int channelMode, long codecSpecific1) { in verifyCodeConfig() argument 539 && codecConfig.getChannelMode() == channelMode in verifyCodeConfig() [all …]
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothCodecConfig.java | 252 @ChannelMode int channelMode, in BluetoothCodecConfig() argument 262 channelMode, in BluetoothCodecConfig() 288 @ChannelMode int channelMode, in BluetoothCodecConfig() argument 297 mChannelMode = channelMode; in BluetoothCodecConfig() 778 int channelMode = other.mChannelMode; in similarCodecFeedingParameters() local 779 if (mChannelMode == CHANNEL_MODE_NONE || channelMode == CHANNEL_MODE_NONE) { in similarCodecFeedingParameters() 780 channelMode = mChannelMode; in similarCodecFeedingParameters() 788 channelMode, in similarCodecFeedingParameters() 907 public @NonNull Builder setChannelMode(@ChannelMode int channelMode) { in setChannelMode() argument 908 mChannelMode = channelMode; in setChannelMode()
|
D | BluetoothCodecStatus.java | 127 int channelMode = codecConfig.getChannelMode(); in isCodecConfigSelectable() local 128 if ((channelMode & selectableConfig.getChannelMode()) == 0 in isCodecConfigSelectable() 129 && channelMode != BluetoothCodecConfig.CHANNEL_MODE_NONE) { in isCodecConfigSelectable()
|
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/ |
D | README.md | 21 10. Channel Mode (parameter name: `param.channelMode`) 25 14. Sbc Channel mode (parameter name: `sbc.channelMode `) 30 19. Ldac Channel Mode (parameter name: `ldac.channelMode`) 44 | `param.channelMode` | 0.`ChannelMode::UNKNOWN` 1.`ChannelMode::MONO` 2.`ChannelMode::STEREO` | V… 49 | `sbc.channelMode ` | 0.`SbcChannelMode::UNKNOWN` 1.`SbcChannelMode::JOINT_STEREO` 2.`SbcChannelMo… 54 | `ldac.channelMode ` | 0.`LdacChannelMode::UNKNOWN` 1.`LdacChannelMode::STEREO` 2.`LdacChannelMode…
|
D | libbt_audio_hal_client_interface_fuzzer.cpp | 246 sbc.channelMode = mFdp->PickValueInArray(channelModes); in SbcCodecConfigurationsGenerator() 276 aac.channelMode = mFdp->PickValueInArray(kChannelModes); in AacCodecConfigurationsGenerator() 305 ldac.channelMode = mFdp->PickValueInArray(kChannelModes); in LdacCodecConfigurationsGenerator() 325 aptx.channelMode = mFdp->PickValueInArray(kChannelModes); in AptxCodecConfigurationsGenerator() 426 pcmConfig.channelMode = mFdp->PickValueInArray(kChannelModes); in process() 440 pcmConfig.channelMode = mFdp->PickValueInArray(kChannelModes); in process()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | BluetoothA2dpConfigStore.java | 61 public void setChannelMode(int channelMode) { in setChannelMode() argument 62 mChannelMode = channelMode; in setChannelMode()
|
/packages/modules/Bluetooth/system/audio_bluetooth_hw/ |
D | device_port_proxy_hidl.cc | 564 pcm_cfg.channelMode == ChannelMode::UNKNOWN || in LoadAudioConfig() 570 audio_cfg->channel_mask = InputChannelModeToAudioFormat(pcm_cfg.channelMode); in LoadAudioConfig() 604 pcm_cfg.channelMode == ChannelMode::UNKNOWN || in LoadAudioConfig() 612 : OutputChannelModeToAudioFormat(pcm_cfg.channelMode)); in LoadAudioConfig()
|
D | device_port_proxy.cc | 378 if (pcm_cfg.channelMode == ChannelMode::UNKNOWN) { in LoadAudioConfig() 385 : OutputChannelModeToAudioFormat(pcm_cfg.channelMode)); in LoadAudioConfig() 415 if (pcm_cfg.channelMode == ChannelMode::UNKNOWN) { in LoadAudioConfig() 420 audio_cfg->channel_mask = InputChannelModeToAudioFormat(pcm_cfg.channelMode); in LoadAudioConfig()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpCodecConfigTest.java | 826 int channelMode, in testCodecParametersChangeHelper() argument 837 channelMode, in testCodecParametersChangeHelper() 1115 int channelMode, in buildBluetoothCodecConfig() argument 1125 .setChannelMode(channelMode) in buildBluetoothCodecConfig()
|
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/ |
D | BluetoothCodecStatusTest.java | 588 int channelMode, in buildBluetoothCodecConfig() argument 598 .setChannelMode(channelMode) in buildBluetoothCodecConfig()
|
D | BluetoothCodecConfigTest.java | 564 int channelMode, in buildBluetoothCodecConfig() argument 574 .setChannelMode(channelMode) in buildBluetoothCodecConfig()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_a2dp.cpp | 221 jint channelMode = env->CallIntMethod( in prepareCodecPreferences() local 240 static_cast<btav_a2dp_codec_channel_mode_t>(channelMode), in prepareCodecPreferences()
|