/frameworks/av/media/libaaudio/src/utility/ |
D | AAudioUtilities.cpp | 286 aaudio_channel_mask_t channelMask, bool isInput) { in AAudioConvert_aaudioToAndroidChannelLayoutMask() argument 288 switch (channelMask) { in AAudioConvert_aaudioToAndroidChannelLayoutMask() 306 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_aaudioToAndroidChannelLayoutMask() 310 switch (channelMask) { in AAudioConvert_aaudioToAndroidChannelLayoutMask() 361 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_aaudioToAndroidChannelLayoutMask() 368 audio_channel_mask_t channelMask, bool isInput) { in AAudioConvert_androidToAAudioChannelLayoutMask() argument 370 switch (channelMask) { in AAudioConvert_androidToAAudioChannelLayoutMask() 388 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_androidToAAudioChannelLayoutMask() 392 switch (channelMask) { in AAudioConvert_androidToAAudioChannelLayoutMask() 443 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_androidToAAudioChannelLayoutMask() [all …]
|
D | AAudioUtilities.h | 102 aaudio_channel_mask_t channelMask, bool isInput); 105 audio_channel_mask_t channelMask, bool isInput); 108 audio_channel_mask_t channelMask); 111 aaudio_channel_mask_t channelMask); 114 audio_channel_mask_t channelMask, bool isInput, bool indexMaskRequired); 117 aaudio_channel_mask_t channelMask, bool isInput); 119 bool AAudio_isChannelIndexMask(aaudio_channel_mask_t channelMask); 121 int32_t AAudioConvert_channelMaskToCount(aaudio_channel_mask_t channelMask); 126 aaudio_channel_mask_t channelMask, int32_t samplesPerFrame, bool isInput);
|
/frameworks/av/media/libmediahelper/tests/ |
D | typeconverter_tests.cpp | 35 audio_channel_mask_t channelMask = channelMaskFromString(stringVal); in TEST() local 37 audio_channel_mask_is_valid(channelMask)) in TEST() 45 audio_channel_mask_t channelMask, channelMaskBack; in TEST() local 48 EXPECT_TRUE(InputChannelConverter::fromString(stringVal, channelMask)) in TEST() 50 EXPECT_TRUE(InputChannelConverter::toString(channelMask, stringValBack)) in TEST() 51 << "Conversion of input channel mask " << channelMask << " failed"; in TEST() 56 EXPECT_EQ(channelMask, channelMaskBack); in TEST() 58 EXPECT_TRUE(OutputChannelConverter::fromString(stringVal, channelMask)) in TEST() 60 EXPECT_TRUE(OutputChannelConverter::toString(channelMask, stringValBack)) in TEST() 61 << "Conversion of output channel mask " << channelMask << " failed"; in TEST() [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixer.cpp | 66 bool AudioMixer::isValidChannelMask(audio_channel_mask_t channelMask) const { in isValidChannelMask() 67 return audio_channel_mask_is_valid(channelMask); // the RemixBufferProvider is flexible. in isValidChannelMask() 78 if (trackChannelMask == (track->channelMask | track->mHapticChannelMask) in setChannelMasks() 100 track->channelMask = trackChannelMask; in setChannelMasks() 124 status, track->channelMask, track->mMixerChannelMask); in setChannelMasks() 159 this, channelMask); in prepareForDownmix() 165 if (channelMask == mMixerChannelMask in prepareForDownmix() 166 || (channelMask == AUDIO_CHANNEL_OUT_MONO in prepareForDownmix() 171 if (audio_channel_mask_get_representation(channelMask) in prepareForDownmix() 178 channelMask, mMixerChannelMask, in prepareForDownmix() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | PolicyAudioPort.cpp | 127 for (const auto channelMask : channelMasks) { in pickChannelMask() local 130 cnlCount = audio_channel_count_from_in_mask(channelMask); in pickChannelMask() 132 cnlCount = audio_channel_count_from_out_mask(channelMask); in pickChannelMask() 135 pickedChannelMask = channelMask; in pickChannelMask() 148 for (const auto channelMask : channelMasks) { in pickChannelMask() local 151 cnlCount = audio_channel_count_from_in_mask(channelMask); in pickChannelMask() 153 cnlCount = audio_channel_count_from_out_mask(channelMask); in pickChannelMask() 156 pickedChannelMask = channelMask; in pickChannelMask() 225 audio_channel_mask_t &channelMask, in pickAudioProfile() argument 230 channelMask = AUDIO_CHANNEL_NONE; in pickAudioProfile() [all …]
|
D | AudioProfileVectorHelper.cpp | 168 audio_channel_mask_t channelMask, in checkExact() argument 172 audioProfile->supportsChannels(channelMask) && in checkExact() 216 audio_channel_mask_t channelMask, in checkCompatibleChannelMask() argument 223 updatedChannelMask = channelMask; in checkCompatibleChannelMask() 227 const bool isIndex = audio_channel_mask_get_representation(channelMask) in checkCompatibleChannelMask() 229 const uint32_t channelCount = audio_channel_count_from_in_mask(channelMask); in checkCompatibleChannelMask() 232 if (supported == channelMask) { in checkCompatibleChannelMask() 234 updatedChannelMask = channelMask; in checkCompatibleChannelMask() 265 audio_channel_mask_get_bits(channelMask) in checkCompatibleChannelMask() 270 audio_channel_mask_get_bits(channelMask) & equivalentBits); in checkCompatibleChannelMask() [all …]
|
D | IOProfile.cpp | 32 audio_channel_mask_t channelMask, in isCompatibleProfile() argument 51 (isPlaybackThread && (samplingRate == 0 || !audio_is_output_channel(channelMask))) || in isCompatibleProfile() 52 (isRecordThread && (!audio_is_input_channel(channelMask)))) { in isCompatibleProfile() 57 audio_channel_mask_t myUpdatedChannelMask = channelMask; in isCompatibleProfile() 62 .channel_mask = channelMask, in isCompatibleProfile()
|
/frameworks/base/media/java/android/media/ |
D | AudioGain.java | 76 AudioGain(int index, int mode, int channelMask, in AudioGain() argument 81 mChannelMask = channelMask; in AudioGain() 101 public int channelMask() { in channelMask() method in AudioGain 158 public AudioGainConfig buildConfig(int mode, int channelMask, in buildConfig() argument 161 return new AudioGainConfig(mIndex, this, mode, channelMask, values, rampDurationMs); in buildConfig()
|
D | AudioDevicePortConfig.java | 33 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, in AudioDevicePortConfig() argument 35 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local 39 this(config.port(), config.samplingRate(), config.channelMask(), config.format(), in AudioDevicePortConfig()
|
D | AudioGainConfig.java | 43 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, in AudioGainConfig() argument 48 mChannelMask = channelMask; in AudioGainConfig() 73 public int channelMask() { in channelMask() method in AudioGainConfig
|
D | AudioPortConfig.java | 58 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, in AudioPortConfig() argument 62 mChannelMask = channelMask; in AudioPortConfig() 86 public int channelMask() { in channelMask() method in AudioPortConfig
|
D | AudioMixPortConfig.java | 33 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, in AudioMixPortConfig() argument 35 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
|
D | AudioFormat.java | 930 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument 936 encoding, sampleRate, channelMask, channelIndexMask in AudioFormat() 941 int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument 948 ? channelMask : CHANNEL_INVALID; in AudioFormat() 1221 public @NonNull Builder setChannelMask(int channelMask) { in setChannelMask() argument 1222 if (channelMask == CHANNEL_INVALID) { in setChannelMask() 1225 Integer.bitCount(channelMask) != Integer.bitCount(mChannelIndexMask)) { in setChannelMask() 1227 Integer.toHexString(channelMask).toUpperCase()); in setChannelMask() 1229 mChannelMask = channelMask; in setChannelMask()
|
/frameworks/base/core/jni/ |
D | android_media_AudioFormat.h | 218 static inline audio_channel_mask_t outChannelMaskToNative(int channelMask) in outChannelMaskToNative() argument 220 switch (channelMask) { in outChannelMaskToNative() 225 return (audio_channel_mask_t)(channelMask>>2); in outChannelMaskToNative() 239 static inline audio_channel_mask_t inChannelMaskToNative(int channelMask) in inChannelMaskToNative() argument 241 switch (channelMask) { in inChannelMaskToNative() 245 return (audio_channel_mask_t)channelMask; in inChannelMaskToNative()
|
/frameworks/av/media/libeffects/downmix/tests/ |
D | downmix_tests.cpp | 153 void testBalance(int sampleRate, audio_channel_mask_t channelMask) { in testBalance() argument 158 unsigned inChannels = audio_channel_count_from_out_mask(channelMask); in testBalance() 163 for (unsigned i = 0, channel = channelMask; channel != 0; ++i) { in testBalance() 178 run(sampleRate, channelMask, input, output, frames); in testBalance() 213 if (channelMask & AUDIO_CHANNEL_OUT_LOW_FREQUENCY_2) { in testBalance() 232 void run(int sampleRate, audio_channel_mask_t channelMask, in run() argument 234 reconfig(sampleRate, channelMask); in run() 285 void reconfig(int sampleRate, audio_channel_mask_t channelMask) { in reconfig() argument 301 config_.inputCfg.channels = channelMask; in reconfig() 353 const audio_channel_mask_t channelMask = kChannelPositionMasks[index]; in __anonf1639df60102() local [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | test_create_audiotrack.cpp | 64 audio_channel_mask_t channelMask; in testTrack() local 82 &sampleRate, &format, &channelMask, in testTrack() 92 size_t heapSize = audio_channel_count_from_out_mask(channelMask) * in testTrack() 101 offloadInfo.channel_mask = channelMask; in testTrack() 117 channelMask, in testTrack()
|
D | test_create_audiorecord.cpp | 72 audio_channel_mask_t channelMask; in testRecord() local 84 &sampleRate, &format, &channelMask, in testRecord() 106 channelMask, in testRecord()
|
/frameworks/av/media/libeffects/downmix/benchmark/ |
D | downmix_benchmark.cpp | 94 const audio_channel_mask_t channelMask = kChannelPositionMasks[state.range(0)]; in BM_Downmix() local 95 const size_t channelCount = audio_channel_count_from_out_mask(channelMask); in BM_Downmix() 99 std::minstd_rand gen(channelMask); in BM_Downmix() 130 config.inputCfg.channels = channelMask; in BM_Downmix() 165 state.SetLabel(audio_channel_out_mask_to_string(channelMask)); in BM_Downmix()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | PolicyAudioPort.h | 65 audio_channel_mask_t &channelMask, in checkCompatibleAudioProfile() argument 69 asAudioPort()->getAudioProfiles(), samplingRate, channelMask, format, in checkCompatibleAudioProfile() 74 audio_channel_mask_t &channelMask, 99 void pickChannelMask(audio_channel_mask_t &channelMask,
|
D | AudioProfileVectorHelper.h | 43 audio_channel_mask_t channelMask, 48 audio_channel_mask_t &channelMask,
|
/frameworks/av/media/libaudioprocessing/include/media/ |
D | AudioMixerBase.h | 98 virtual bool isValidChannelMask(audio_channel_mask_t channelMask) const; 113 int name, audio_channel_mask_t channelMask, audio_format_t format, int sessionId); 200 static bool isAudioChannelPositionMask(audio_channel_mask_t channelMask) { in isAudioChannelPositionMask() argument 201 return audio_channel_mask_get_representation(channelMask) in isAudioChannelPositionMask() 229 bool useStereoVolume() const { return channelMask == AUDIO_CHANNEL_OUT_STEREO in useStereoVolume() 260 audio_channel_mask_t channelMask; member
|
/frameworks/base/media/jni/soundpool/ |
D | Sound.cpp | 50 audio_channel_mask_t *channelMask, const sp<MemoryHeapBase>& heap, in decode() argument 187 *channelMask = audio_channel_mask_from_media_format_mask(mediaFormatChannelMask); in decode() 189 *channelMask = AUDIO_CHANNEL_NONE; in decode() 209 audio_channel_mask_t channelMask; in doLoad() local 211 &channelMask, mHeap, &mSizeInBytes); in doLoad() 231 mChannelMask = channelMask; in doLoad()
|
/frameworks/wilhelm/tests/sandbox/ |
D | srcsink.c | 48 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in main() 161 format_pcm.channelMask = 0; in main() 167 format_pcm.channelMask = SL_SPEAKER_FRONT_CENTER; in main() 172 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT | in main() 179 format_pcm.channelMask = 0; in main() 185 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in main()
|
/frameworks/wilhelm/src/android/ |
D | AudioRecorder_to_android.cpp | 635 df_pcm->channelMask, in android_audioRecorder_realize() 640 audio_channel_mask_t channelMask = sles_to_audio_input_channel_mask(df_pcm->channelMask); in android_audioRecorder_realize() local 644 if (channelMask == AUDIO_CHANNEL_INVALID in android_audioRecorder_realize() 645 || audio_channel_mask_get_representation(channelMask) in android_audioRecorder_realize() 647 channelMask = audio_channel_in_mask_from_count(df_pcm->numChannels); in android_audioRecorder_realize() 650 "channel count of %d)", df_pcm->channelMask, channelMask, in android_audioRecorder_realize() 653 SL_LOGV("SLES channel mask %#x converted to Android mask %#x", df_pcm->channelMask, in android_audioRecorder_realize() 654 channelMask); in android_audioRecorder_realize() 667 channelMask, // channel mask in android_audioRecorder_realize()
|
/frameworks/av/media/libaaudio/src/core/ |
D | AAudioStreamParameters.h | 169 void setChannelMask(aaudio_channel_mask_t channelMask) { in setChannelMask() argument 170 mChannelMask = channelMask; in setChannelMask() 171 mSamplesPerFrame = AAudioConvert_channelMaskToCount(channelMask); in setChannelMask()
|