Home
last modified time | relevance | path

Searched refs:channelIndexMask (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioFormat.java681 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
687 encoding, sampleRate, channelMask, channelIndexMask in AudioFormat()
692 int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
701 ? channelIndexMask : CHANNEL_INVALID; in AudioFormat()
1016 public @NonNull Builder setChannelIndexMask(int channelIndexMask) { in setChannelIndexMask() argument
1017 if (channelIndexMask == 0) { in setChannelIndexMask()
1020 Integer.bitCount(channelIndexMask) != Integer.bitCount(mChannelMask)) { in setChannelIndexMask()
1022 Integer.toHexString(channelIndexMask).toUpperCase()); in setChannelIndexMask()
1024 mChannelIndexMask = channelIndexMask; in setChannelIndexMask()
DAudioTrack.java630 int channelIndexMask = 0; in AudioTrack() local
633 channelIndexMask = format.getChannelIndexMask(); in AudioTrack()
639 } else if (channelIndexMask == 0) { // if no masks at all, use stereo in AudioTrack()
647 audioParamCheck(rate, channelMask, channelIndexMask, encoding, mode); in AudioTrack()
1237 private void audioParamCheck(int sampleRateInHz, int channelConfig, int channelIndexMask, in audioParamCheck() argument
1275 if (channelConfig == AudioFormat.CHANNEL_INVALID && channelIndexMask != 0) { in audioParamCheck()
1287 mChannelIndexMask = channelIndexMask; in audioParamCheck()
1291 if ((channelIndexMask & ~indexMask) != 0) { in audioParamCheck()
1293 + channelIndexMask); in audioParamCheck()
1295 int channelIndexCount = Integer.bitCount(channelIndexMask); in audioParamCheck()
[all …]
DAudioSystem.java1051 int channelMask, int channelIndexMask, int streamType); in native_is_offload_supported() argument
DAudioRecord.java1923 int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, in native_setup() argument
/frameworks/base/core/jni/
Dandroid_media_AudioFormat.h155 jint channelPositionMask, jint channelIndexMask) in nativeChannelMaskFromJavaChannelMasks() argument
158 if (channelIndexMask != 0) { // channel index mask takes priority in nativeChannelMaskFromJavaChannelMasks()
163 channelIndexMask); in nativeChannelMaskFromJavaChannelMasks()
Dandroid_media_AudioTrack.cpp218 jintArray jSampleRate, jint channelPositionMask, jint channelIndexMask, in android_media_AudioTrack_setup() argument
224 jSampleRate, channelPositionMask, channelIndexMask, audioFormat, buffSizeInBytes, in android_media_AudioTrack_setup()
269 channelPositionMask, channelIndexMask); in android_media_AudioTrack_setup()
460 jint channelMask, jint channelIndexMask, in android_media_AudioTrack_is_direct_output_supported() argument
466 config.channel_mask = nativeChannelMaskFromJavaChannelMasks(channelMask, channelIndexMask); in android_media_AudioTrack_is_direct_output_supported()
Dandroid_media_AudioRecord.cpp186 jobject jaa, jintArray jSampleRate, jint channelMask, jint channelIndexMask, in android_media_AudioRecord_setup() argument
235 if (channelIndexMask) { in android_media_AudioRecord_setup()
239 channelIndexMask); in android_media_AudioRecord_setup()
Dandroid_hardware_SoundTrigger.cpp226 jint channelIndexMask = (jint)AUDIO_CHANNEL_NONE; in onRecognitionEvent() local
230 channelIndexMask = channelMask; in onRecognitionEvent()
241 channelIndexMask); in onRecognitionEvent()
Dandroid_media_AudioSystem.cpp2052 jint encoding, jint sampleRate, jint channelMask, jint channelIndexMask, jint streamType) in android_media_AudioSystem_isOffloadSupported() argument
2057 format.channel_mask = nativeChannelMaskFromJavaChannelMasks(channelMask, channelIndexMask); in android_media_AudioSystem_isOffloadSupported()