Home
last modified time | relevance | path

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

12345

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp168 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 …]
DPolicyAudioPort.cpp127 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 …]
DIOProfile.cpp32 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/av/media/libaudioprocessing/
DAudioMixer.cpp66 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()
96 track->channelMask = trackChannelMask; in setChannelMasks()
124 status, track->channelMask, track->mMixerChannelMask); in setChannelMasks()
160 this, channelMask); in prepareForDownmix()
166 if (channelMask == mMixerChannelMask in prepareForDownmix()
167 || (channelMask == AUDIO_CHANNEL_OUT_MONO in prepareForDownmix()
172 if (audio_channel_mask_get_representation(channelMask) in prepareForDownmix()
179 channelMask, mMixerChannelMask, in prepareForDownmix()
[all …]
/frameworks/base/media/java/android/media/
DAudioGain.java75 AudioGain(int index, int mode, int channelMask, in AudioGain() argument
80 mChannelMask = channelMask; in AudioGain()
100 public int channelMask() { in channelMask() method in AudioGain
157 public AudioGainConfig buildConfig(int mode, int channelMask, in buildConfig() argument
160 return new AudioGainConfig(mIndex, this, mode, channelMask, values, rampDurationMs); in buildConfig()
DAudioDevicePortConfig.java32 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, in AudioDevicePortConfig() argument
34 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local
38 this(config.port(), config.samplingRate(), config.channelMask(), config.format(), in AudioDevicePortConfig()
DAudioGainConfig.java43 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
DAudioPortConfig.java57 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, in AudioPortConfig() argument
61 mChannelMask = channelMask; in AudioPortConfig()
85 public int channelMask() { in channelMask() method in AudioPortConfig
DAudioFormat.java689 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
695 encoding, sampleRate, channelMask, channelIndexMask in AudioFormat()
700 int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
707 ? channelMask : CHANNEL_INVALID; in AudioFormat()
972 public @NonNull Builder setChannelMask(int channelMask) { in setChannelMask() argument
973 if (channelMask == CHANNEL_INVALID) { in setChannelMask()
976 Integer.bitCount(channelMask) != Integer.bitCount(mChannelIndexMask)) { in setChannelMask()
978 Integer.toHexString(channelMask).toUpperCase()); in setChannelMask()
980 mChannelMask = channelMask; in setChannelMask()
DAudioMixPortConfig.java32 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, in AudioMixPortConfig() argument
34 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
DAudioMixPort.java48 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
50 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
/frameworks/base/core/jni/
Dandroid_media_AudioFormat.h176 static inline audio_channel_mask_t outChannelMaskToNative(int channelMask) in outChannelMaskToNative() argument
178 switch (channelMask) { in outChannelMaskToNative()
183 return (audio_channel_mask_t)(channelMask>>2); in outChannelMaskToNative()
197 static inline audio_channel_mask_t inChannelMaskToNative(int channelMask) in inChannelMaskToNative() argument
199 return (audio_channel_mask_t)channelMask; in inChannelMaskToNative()
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp63 audio_channel_mask_t channelMask; in testTrack() local
81 &sampleRate, &format, &channelMask, in testTrack()
91 size_t heapSize = audio_channel_count_from_out_mask(channelMask) * in testTrack()
100 offloadInfo.channel_mask = channelMask; in testTrack()
117 channelMask, in testTrack()
Dtest_create_audiorecord.cpp65 audio_channel_mask_t channelMask; in testRecord() local
77 &sampleRate, &format, &channelMask, in testRecord()
98 channelMask, in testRecord()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h73 audio_channel_mask_t &channelMask, in checkCompatibleAudioProfile() argument
77 asAudioPort()->getAudioProfiles(), samplingRate, channelMask, format, in checkCompatibleAudioProfile()
82 audio_channel_mask_t &channelMask,
114 void pickChannelMask(audio_channel_mask_t &channelMask,
DAudioProfileVectorHelper.h43 audio_channel_mask_t channelMask,
48 audio_channel_mask_t &channelMask,
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp51 audio_channel_mask_t channelMask; in negotiate() local
52 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat); in negotiate()
55 audio_channel_count_from_in_mask(channelMask), streamFormat); in negotiate()
DAudioStreamOutSink.cpp49 audio_channel_mask_t channelMask; in negotiate() local
50 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat); in negotiate()
53 audio_channel_count_from_out_mask(channelMask), streamFormat); in negotiate()
/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/services/mediaanalytics/
Dstatsd_audiotrack.cpp88 int64_t channelMask = -1; in statsd_audiotrack() local
89 if (item->getInt64("android.media.audiotrack.channelmask", &channelMask)) { in statsd_audiotrack()
90 metrics_proto.set_channel_mask(channelMask); in statsd_audiotrack()
Dstatsd_audiorecord.cpp127 int64_t channelMask = -1; in statsd_audiorecord() local
128 if (item->getInt64("android.media.audiorecord.channelMask", &channelMask)) { in statsd_audiorecord()
129 metrics_proto.set_channel_mask(channelMask); in statsd_audiorecord()
/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp669 df_pcm->channelMask, in android_audioRecorder_realize()
674 audio_channel_mask_t channelMask = sles_to_audio_input_channel_mask(df_pcm->channelMask); in android_audioRecorder_realize() local
678 if (channelMask == AUDIO_CHANNEL_INVALID in android_audioRecorder_realize()
679 || audio_channel_mask_get_representation(channelMask) in android_audioRecorder_realize()
681 channelMask = audio_channel_in_mask_from_count(df_pcm->numChannels); in android_audioRecorder_realize()
684 "channel count of %d)", df_pcm->channelMask, channelMask, in android_audioRecorder_realize()
687 SL_LOGV("SLES channel mask %#x converted to Android mask %#x", df_pcm->channelMask, in android_audioRecorder_realize()
688 channelMask); in android_audioRecorder_realize()
695 channelMask, // channel mask in android_audioRecorder_realize()
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp137 int32_t numChannels, channelMask; in start() local
141 if(!format->findInt32(kKeyChannelMask, &channelMask)) { in start()
145 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER; in start()
191 offloadInfo.channel_mask = channelMask; in start()
200 mSampleRate, numChannels, channelMask, audioFormat, in start()
241 audio_channel_mask_t audioMask = channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER ? in start()
242 audio_channel_out_mask_from_count(numChannels) : channelMask; in start()
/frameworks/av/media/libaudiohal/impl/
DStreamPowerLog.h44 void init(uint32_t sampleRate, audio_channel_mask_t channelMask, audio_format_t format) { in init() argument
48 const uint32_t channelCount = popcount(audio_channel_mask_get_bits(channelMask)); in init()
/frameworks/av/media/libmedia/include/media/
DJAudioFormat.h31 audio_channel_mask_t channelMask) { in createAudioFormatObj() argument
56 outChannelMaskFromNative(channelMask)); in createAudioFormatObj()

12345