Home
last modified time | relevance | path

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

/cts/tests/tests/media/audio/jni/
DOpenSLESUtils.cpp61 int channelMask = 0; in chanCountToChanMask() local
65 channelMask = SL_SPEAKER_FRONT_CENTER; in chanCountToChanMask()
69 channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in chanCountToChanMask()
73 channelMask = SL_ANDROID_SPEAKER_QUAD; in chanCountToChanMask()
77 channelMask = SL_ANDROID_SPEAKER_5DOT1; in chanCountToChanMask()
81 channelMask = SL_ANDROID_SPEAKER_7DOT1; in chanCountToChanMask()
84 return channelMask; in chanCountToChanMask()
Daudio-track-native.cpp73 status_t open(jint numChannels, jint channelMask, in open() argument
114 pcm.channelMask = channelMask; in open()
379 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, in Java_android_media_audio_cts_AudioTrackNative_nativeTest() argument
389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioTrackNative_nativeTest()
428 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_audio_cts_AudioTrackNative_nativeOpen() argument
436 channelMask, in Java_android_media_audio_cts_AudioTrackNative_nativeOpen()
Daudio-record-native.cpp81 uint32_t channelMask, in open() argument
129 pcm.channelMask = channelMask; in open()
468 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_audio_cts_AudioRecordNative_nativeTest() argument
477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioRecordNative_nativeTest()
515 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_audio_cts_AudioRecordNative_nativeOpen() argument
521 return (jint) record->open(numChannels, channelMask, sampleRate, useFloat == JNI_TRUE, in Java_android_media_audio_cts_AudioRecordNative_nativeOpen()
Dappendix-b-1-1-buffer-queue.cpp151 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in TestPlayMusicBufferQueue()
DAudioRecorder.cpp140 pcm.channelMask = chanCountToChanMask(numChannels_); in Open()
/cts/tests/tests/media/common/src/android/media/cts/
DAudioHelper.java134 private static int packMask(int channelMask, int validMask) { in packMask() argument
135 final int channels = Integer.bitCount(channelMask); in packMask()
137 throw new IllegalArgumentException("invalid channel mask " + channelMask); in packMask()
141 final int lowbit = channelMask & -channelMask; in packMask()
143 channelMask -= lowbit; in packMask()
156 public static void maskArray(byte[] array, int channelMask, int validMask) { in maskArray() argument
157 final int packMask = packMask(channelMask, validMask); in maskArray()
158 final int channels = Integer.bitCount(channelMask); in maskArray()
170 public static void maskArray(short[] array, int channelMask, int validMask) { in maskArray() argument
171 final int packMask = packMask(channelMask, validMask); in maskArray()
[all …]
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackNative.java47 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
49 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open()
120 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
122 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
150 long track, int numChannels, int channelMask, in nativeOpen() argument
168 int numChannels, int channelMask, int sampleRate, in nativeTest() argument
DAudioRecordNative.java45 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
47 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open()
118 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
120 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
148 long record, int numChannels, int channelMask, in nativeOpen() argument
167 int numChannels, int channelMask, int sampleRate, in nativeTest() argument
DDtsAudioFormatsTest.kt94 channelMasks.map { channelMask -> in <lambda>() method
98 .setChannelMask(channelMask) in <lambda>()
DDirectAudioProfilesForAttributesTest.kt116 channelMasks.map { channelMask -> in <lambda>() method
120 .setChannelMask(channelMask) in <lambda>()
DVirtualizerTest.java341 String channelMask = Integer.toHexString(CHANNEL_MASKS[i]).toUpperCase(); in test4_0FormatModeQuery() local
344 Log.d(TAG, "content channel mask: 0x" + channelMask + " (native 0x" in test4_0FormatModeQuery()
DAudioTrackTest.java2174 private void doTestTimestamp(int sampleRate, int channelMask, int encoding, int transferMode, in doTestTimestamp() argument
2187 * AudioFormat.channelCountFromOutChannelMask(channelMask); in doTestTimestamp()
2200 .setChannelMask(channelMask) in doTestTimestamp()
DAudioManagerTest.java2311 for (int channelMask : device.getChannelMasks()) { in testGetDirectPlaybackSupport()
2315 .setChannelMask(channelMask) in testGetDirectPlaybackSupport()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp385 static bool isValidChannelMask(aaudio_channel_mask_t channelMask, bool isInput) { in isValidChannelMask() argument
386 if (channelMask == AAUDIO_UNSPECIFIED) { in isValidChannelMask()
390 if (__builtin_popcount(channelMask) > FCC_LIMIT) { in isValidChannelMask()
395 switch (channelMask) { in isValidChannelMask()
408 switch (channelMask) { in isValidChannelMask()
439 void testChannelMask(aaudio_channel_mask_t channelMask, aaudio_direction_t direction);
442 void AAudioStreamBuilderChannelMaskTest::testChannelMask(aaudio_channel_mask_t channelMask, in testChannelMask() argument
447 AAudioStreamBuilder_setChannelMask(aaudioBuilder, channelMask); in testChannelMask()
449 isValidChannelMask(channelMask, direction) ? Expect::SUCCEED : Expect::FAIL; in testChannelMask()
566 aaudio_channel_mask_t channelMask,
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioUtils.java198 public static String channelOutPositionMaskToString(int channelMask) { in channelOutPositionMaskToString() argument
199 String maskString = sOutChanPosStrings.get(channelMask); in channelOutPositionMaskToString()
200 return maskString != null ? maskString : ("0x" + Integer.toHexString(channelMask)); in channelOutPositionMaskToString()
207 public static String channelInPositionMaskToString(int channelMask) { in channelInPositionMaskToString() argument
208 String maskString = sInChanPosStrings.get(channelMask); in channelInPositionMaskToString()
209 return maskString != null ? maskString : ("0x" + Integer.toHexString(channelMask)); in channelInPositionMaskToString()
216 public static String channelIndexMaskToString(int channelMask) { in channelIndexMaskToString() argument
217 return "0x" + Integer.toHexString(channelMask); in channelIndexMaskToString()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/
DRecorder.java88 int channelMask = Recorder.channelCountToChannelMask(channelCount); in calcMinBufferFramesStatic() local
91 channelMask, in calcMinBufferFramesStatic()
/cts/tests/mediapc/src/android/mediapc/cts/
DAudioPlaybackLoad.java69 final int channelMask = getChannelMask(format); in createAudioTrack() local
75 .setChannelMask(channelMask) in createAudioTrack()
81 final int minBufferSize = AudioTrack.getMinBufferSize(sampleRate, channelMask, encoding); in createAudioTrack()
/cts/apps/CtsVerifier/jni/megaaudio/player/
DOboePlayer.h37 Result setupStream(int32_t channelCount, int32_t channelMask, int32_t sampleRate,
DOboePlayer.cpp74 StreamBase::Result OboePlayer::setupStream(int32_t channelCount, int32_t channelMask, in setupStream() argument
85 mChannelMask = channelMask; in setupStream()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp164 formatPcmSnk.channelMask = SL_SPEAKER_FRONT_LEFT; in PcmBqSinkInitialization()
215 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in AudioPlayerFromPcmBqCreation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java380 int channelMask = channelMaskFromCount(mInputChannelCount); in setSoundWithResId() local
381 int buffSize = AudioTrack.getMinBufferSize(mInputSampleRate, channelMask, in setSoundWithResId()
390 .setChannelMask(channelMask); in setSoundWithResId()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/
DOboePlayer.java143 private native int setupStreamN(long nativePlayer, int channelCount, int channelMask, in setupStreamN() argument
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderTest.java374 for (int channelMask : channelMasks) { in verifyChannelsAndRates()
375 int channelCount = AudioFormat.channelCountFromOutChannelMask(channelMask); in verifyChannelsAndRates()
396 for (int channelMask : channelMasks) { in verifyChannelsAndRates()
397 int channelCount = AudioFormat.channelCountFromOutChannelMask(channelMask); in verifyChannelsAndRates()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dtest-current.txt1979 field public static final String CHANNEL_MASK = "android.media.audiorecord.channelMask";
2009 field public static final String CHANNEL_MASK = "android.media.audiotrack.channelMask";