Searched defs:channelIndexMask (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_media_AudioRecord.cpp183 jobject jaa, jintArray jSampleRate, jint channelMask, jint channelIndexMask,
233 if (channelIndexMask) {
237 channelIndexMask);
182 android_media_AudioRecord_setup(JNIEnv *env, jobject thiz, jobject weak_this, jobject jaa, jintArray jSampleRate, jint channelMask, jint channelIndexMask, jint audioFormat, jint buffSizeInBytes, jintArray jSession, jstring opPackageName, jlong nativeRecordInJavaObj) argument
H A Dandroid_media_AudioTrack.cpp203 jint channelPositionMask, jint channelIndexMask)
205 if (channelIndexMask != 0) { // channel index mask takes priority
210 channelIndexMask);
221 jintArray jSampleRate, jint channelPositionMask, jint channelIndexMask,
227 jSampleRate, channelPositionMask, channelIndexMask, audioFormat, buffSizeInBytes,
274 channelPositionMask, channelIndexMask);
202 nativeChannelMaskFromJavaChannelMasks( jint channelPositionMask, jint channelIndexMask) argument
220 android_media_AudioTrack_setup(JNIEnv *env, jobject thiz, jobject weak_this, jobject jaa, jintArray jSampleRate, jint channelPositionMask, jint channelIndexMask, jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession, jlong nativeAudioTrack) argument
/frameworks/base/media/java/android/media/
H A DAudioFormat.java157 * <h5 id="channelIndexMask">Channel index masks</h5>
594 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { argument
598 mChannelIndexMask = channelIndexMask;
841 * as index mask bits 0 through 3. This <a href="#channelIndexMask>description of channel
852 * @param channelIndexMask describes the configuration of the audio channels.
853 * <p> For output, the <code>channelIndexMask</code> is an OR-ed combination of
861 * <p> For input, the <code>channelIndexMask</code> is an OR-ed combination of
875 public @NonNull Builder setChannelIndexMask(int channelIndexMask) { argument
876 if (channelIndexMask == 0) {
878 } else if (/* channelIndexMask !
[all...]
H A DAudioRecord.java1737 int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat,
1735 native_setup(Object audiorecord_this, Object attributes, int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, int buffSizeInBytes, int[] sessionId, String opPackageName, long nativeRecordInJavaObj) argument
H A DAudioTrack.java563 int channelIndexMask = 0;
566 channelIndexMask = format.getChannelIndexMask();
572 } else if (channelIndexMask == 0) { // if no masks at all, use stereo
580 audioParamCheck(rate, channelMask, channelIndexMask, encoding, mode);
987 private void audioParamCheck(int sampleRateInHz, int channelConfig, int channelIndexMask, argument
1025 if (channelConfig == AudioFormat.CHANNEL_INVALID && channelIndexMask != 0) {
1037 mChannelIndexMask = channelIndexMask;
1041 if ((channelIndexMask & ~indexMask) != 0) {
1043 + channelIndexMask);
1045 int channelIndexCount = Integer.bitCount(channelIndexMask);
3030 native_setup(Object audiotrack_this, Object attributes, int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, int buffSizeInBytes, int mode, int[] sessionId, long nativeAudioTrack) argument
[all...]

Completed in 326 milliseconds