/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioProfile.cpp | 31 status_t AudioProfile::checkExact(uint32_t samplingRate, audio_channel_mask_t channelMask, in checkExact() argument 35 supportsChannels(channelMask) && in checkExact() 98 status_t AudioProfile::checkCompatibleChannelMask(audio_channel_mask_t channelMask, in checkCompatibleChannelMask() argument 104 updatedChannelMask = channelMask; in checkCompatibleChannelMask() 108 const bool isIndex = audio_channel_mask_get_representation(channelMask) in checkCompatibleChannelMask() 113 if (supported == channelMask) { in checkCompatibleChannelMask() 115 updatedChannelMask = channelMask; in checkCompatibleChannelMask() 142 audio_channel_mask_get_bits(channelMask) in checkCompatibleChannelMask() 148 audio_channel_mask_get_bits(channelMask) & equivalentBits); in checkCompatibleChannelMask() 151 (1 << audio_channel_count_from_in_mask(channelMask)) - 1; in checkCompatibleChannelMask() [all …]
|
D | IOProfile.cpp | 36 audio_channel_mask_t channelMask, in isCompatibleProfile() argument 59 (isPlaybackThread && (samplingRate == 0 || !audio_is_output_channel(channelMask))) || in isCompatibleProfile() 60 (isRecordThread && (!audio_is_input_channel(channelMask)))) { in isCompatibleProfile() 65 audio_channel_mask_t myUpdatedChannelMask = channelMask; in isCompatibleProfile() 74 if (checkExactAudioProfile(samplingRate, channelMask, format) != NO_ERROR) { in isCompatibleProfile()
|
/frameworks/base/media/java/android/media/ |
D | AudioGain.java | 72 AudioGain(int index, int mode, int channelMask, in AudioGain() argument 77 mChannelMask = channelMask; in AudioGain() 97 public int channelMask() { in channelMask() method in AudioGain 154 public AudioGainConfig buildConfig(int mode, int channelMask, in buildConfig() argument 157 return new AudioGainConfig(mIndex, this, mode, channelMask, values, rampDurationMs); in buildConfig()
|
D | AudioDevicePortConfig.java | 29 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, in AudioDevicePortConfig() argument 31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local 35 this(config.port(), config.samplingRate(), config.channelMask(), config.format(), in AudioDevicePortConfig()
|
D | AudioGainConfig.java | 35 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, in AudioGainConfig() argument 40 mChannelMask = channelMask; in AudioGainConfig() 65 public int channelMask() { in channelMask() method in AudioGainConfig
|
D | AudioPortConfig.java | 48 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, in AudioPortConfig() argument 52 mChannelMask = channelMask; in AudioPortConfig() 75 public int channelMask() { in channelMask() method in AudioPortConfig
|
D | AudioFormat.java | 591 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument 594 mChannelMask = channelMask; in AudioFormat() 819 public @NonNull Builder setChannelMask(int channelMask) { in setChannelMask() argument 820 if (channelMask == CHANNEL_INVALID) { in setChannelMask() 823 Integer.bitCount(channelMask) != Integer.bitCount(mChannelIndexMask)) { in setChannelMask() 825 Integer.toHexString(channelMask).toUpperCase()); in setChannelMask() 827 mChannelMask = channelMask; in setChannelMask()
|
D | AudioMixPortConfig.java | 29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, in AudioMixPortConfig() argument 31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
|
D | AudioMixPort.java | 45 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument 47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
D | AudioDevicePort.java | 76 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument 78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
D | AudioPort.java | 182 public AudioPortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument 184 return new AudioPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
/frameworks/base/core/jni/ |
D | android_media_AudioFormat.h | 118 static inline audio_channel_mask_t outChannelMaskToNative(int channelMask) in outChannelMaskToNative() argument 120 switch (channelMask) { in outChannelMaskToNative() 125 return (audio_channel_mask_t)(channelMask>>2); in outChannelMaskToNative() 139 static inline audio_channel_mask_t inChannelMaskToNative(int channelMask) in inChannelMaskToNative() argument 141 return (audio_channel_mask_t)channelMask; in inChannelMaskToNative()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioPort.h | 87 audio_channel_mask_t channelMask, in checkExactAudioProfile() argument 90 return mProfiles.checkExactProfile(samplingRate, channelMask, format); in checkExactAudioProfile() 96 audio_channel_mask_t &channelMask, in checkCompatibleAudioProfile() argument 99 return mProfiles.checkCompatibleProfile(samplingRate, channelMask, format, mType, mRole); in checkCompatibleAudioProfile() 107 audio_channel_mask_t &channelMask, 146 … void pickChannelMask(audio_channel_mask_t &channelMask, const ChannelsVector &channelMasks) const;
|
D | AudioSession.h | 38 audio_channel_mask_t channelMask, 51 audio_channel_mask_t channelMask() const { return mConfig.channel_mask; } in channelMask() function
|
/frameworks/wilhelm/src/android/ |
D | AudioRecorder_to_android.cpp | 441 df_pcm->channelMask, in android_audioRecorder_realize() 446 audio_channel_mask_t channelMask = sles_to_audio_input_channel_mask(df_pcm->channelMask); in android_audioRecorder_realize() local 450 if (channelMask == AUDIO_CHANNEL_INVALID in android_audioRecorder_realize() 451 || audio_channel_mask_get_representation(channelMask) in android_audioRecorder_realize() 453 channelMask = audio_channel_in_mask_from_count(df_pcm->numChannels); in android_audioRecorder_realize() 456 "channel count of %d)", df_pcm->channelMask, channelMask, in android_audioRecorder_realize() 459 … SL_LOGV("SLES channel mask %#x converted to Android mask %#x", df_pcm->channelMask, channelMask); in android_audioRecorder_realize() 466 channelMask, // channel mask in android_audioRecorder_realize()
|
/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/av/media/libstagefright/ |
D | AudioPlayer.cpp | 129 int32_t numChannels, channelMask; in start() local 133 if(!format->findInt32(kKeyChannelMask, &channelMask)) { in start() 137 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER; in start() 183 offloadInfo.channel_mask = channelMask; in start() 192 mSampleRate, numChannels, channelMask, audioFormat, in start() 233 audio_channel_mask_t audioMask = channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER ? in start() 234 audio_channel_out_mask_from_count(numChannels) : channelMask; in start()
|
/frameworks/av/media/libmedia/ |
D | AudioRecord.cpp | 40 audio_channel_mask_t channelMask) in getMinFrameCount() argument 47 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size); in getMinFrameCount() 50 "channelMask %#x; status %d", sampleRate, format, channelMask, status); in getMinFrameCount() 56 if ((*frameCount = (size * 2) / (audio_channel_count_from_in_mask(channelMask) * in getMinFrameCount() 59 sampleRate, format, channelMask); in getMinFrameCount() 79 audio_channel_mask_t channelMask, in AudioRecord() argument 100 mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user, in AudioRecord() 137 audio_channel_mask_t channelMask, in set() argument 153 inputSource, sampleRate, format, channelMask, frameCount, notificationFrames, in set() 210 if (!audio_is_input_channel(channelMask)) { in set() [all …]
|
/frameworks/av/media/libnbaio/ |
D | AudioStreamInSource.cpp | 47 audio_channel_mask_t channelMask = in negotiate() local 50 audio_channel_count_from_in_mask(channelMask), streamFormat); in negotiate()
|
D | AudioStreamOutSink.cpp | 44 audio_channel_mask_t channelMask = in negotiate() local 47 audio_channel_count_from_out_mask(channelMask), streamFormat); in negotiate()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 106 audio_channel_mask_t channelMask, 116 audio_channel_mask_t channelMask, 135 audio_channel_mask_t channelMask, 446 audio_channel_mask_t& channelMask, 451 audio_channel_mask_t channelMask, 617 audio_channel_mask_t channelMask, 628 audio_channel_mask_t channelMask,
|
/frameworks/av/services/audioflinger/ |
D | AudioFlinger.h | 105 audio_channel_mask_t channelMask, 120 audio_channel_mask_t channelMask, 164 audio_channel_mask_t channelMask) const; 349 static inline bool isValidPcmSinkChannelMask(audio_channel_mask_t channelMask) { in isValidPcmSinkChannelMask() argument 350 switch (audio_channel_mask_get_representation(channelMask)) { in isValidPcmSinkChannelMask() 354 channelCount = audio_channel_count_from_out_mask(channelMask); in isValidPcmSinkChannelMask() 361 return channelMask == audio_channel_out_mask_from_count(channelCount); in isValidPcmSinkChannelMask() 365 const uint32_t channelCount = audio_channel_count_from_out_mask(channelMask); in isValidPcmSinkChannelMask()
|
D | Tracks.cpp | 71 audio_channel_mask_t channelMask, in TrackBase() argument 88 mChannelMask(channelMask), in TrackBase() 90 audio_channel_count_from_out_mask(channelMask) : in TrackBase() 91 audio_channel_count_from_in_mask(channelMask)), in TrackBase() 342 audio_channel_mask_t channelMask, in Track() argument 350 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, in Track() 392 mName = thread->getTrackName_l(channelMask, format, sessionId); in Track() 1131 audio_channel_mask_t channelMask, in OutputTrack() argument 1135 sampleRate, format, channelMask, frameCount, in OutputTrack() 1328 audio_channel_mask_t channelMask, in PatchTrack() argument [all …]
|
/frameworks/av/include/media/ |
D | IAudioPolicyService.h | 58 audio_channel_mask_t channelMask = 0, 68 audio_channel_mask_t channelMask = 0, 88 audio_channel_mask_t channelMask,
|
D | AudioSystem.h | 134 audio_channel_mask_t channelMask, size_t* buffSize); 212 audio_channel_mask_t channelMask = AUDIO_CHANNEL_OUT_STEREO, 222 audio_channel_mask_t channelMask = AUDIO_CHANNEL_OUT_STEREO, 245 audio_channel_mask_t channelMask, 387 audio_channel_mask_t channelMask, size_t* buffSize);
|