Home
last modified time | relevance | path

Searched refs:channelMask (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfile.cpp31 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 …]
DIOProfile.cpp36 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/
DAudioGain.java72 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()
DAudioDevicePortConfig.java29 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()
DAudioGainConfig.java35 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
DAudioPortConfig.java48 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
DAudioFormat.java591 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()
DAudioMixPortConfig.java29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, in AudioMixPortConfig() argument
31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
DAudioMixPort.java45 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
DAudioDevicePort.java76 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
DAudioPort.java182 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/
Dandroid_media_AudioFormat.h118 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/
DAudioPort.h87 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;
DAudioSession.h38 audio_channel_mask_t channelMask,
51 audio_channel_mask_t channelMask() const { return mConfig.channel_mask; } in channelMask() function
/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp441 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/
Dsrcsink.c48 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/
DAudioPlayer.cpp129 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/
DAudioRecord.cpp40 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/
DAudioStreamInSource.cpp47 audio_channel_mask_t channelMask = in negotiate() local
50 audio_channel_count_from_in_mask(channelMask), streamFormat); in negotiate()
DAudioStreamOutSink.cpp44 audio_channel_mask_t channelMask = in negotiate() local
47 audio_channel_count_from_out_mask(channelMask), streamFormat); in negotiate()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h106 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/
DAudioFlinger.h105 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()
DTracks.cpp71 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/
DIAudioPolicyService.h58 audio_channel_mask_t channelMask = 0,
68 audio_channel_mask_t channelMask = 0,
88 audio_channel_mask_t channelMask,
DAudioSystem.h134 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);

1234