Home
last modified time | relevance | path

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

/cts/tests/tests/media/libndkaudio/
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()
DAudioRecorder.cpp140 pcm.channelMask = chanCountToChanMask(numChannels_); in Open()
/cts/tests/tests/media/src/android/media/cts/
DAudioHelper.java109 private static int packMask(int channelMask, int validMask) { in packMask() argument
110 final int channels = Integer.bitCount(channelMask); in packMask()
112 throw new IllegalArgumentException("invalid channel mask " + channelMask); in packMask()
116 final int lowbit = channelMask & -channelMask; in packMask()
118 channelMask -= lowbit; in packMask()
131 public static void maskArray(byte[] array, int channelMask, int validMask) { in maskArray() argument
132 final int packMask = packMask(channelMask, validMask); in maskArray()
133 final int channels = Integer.bitCount(channelMask); in maskArray()
145 public static void maskArray(short[] array, int channelMask, int validMask) { in maskArray() argument
146 final int packMask = packMask(channelMask, validMask); in maskArray()
[all …]
DAudioRecordNative.java48 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
50 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open()
121 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
123 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
151 long record, int numChannels, int channelMask, in nativeOpen() argument
170 int numChannels, int channelMask, int sampleRate, in nativeTest() argument
DAudioTrackNative.java50 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
52 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open()
123 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
125 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
153 long track, int numChannels, int channelMask, in nativeOpen() argument
171 int numChannels, int channelMask, int sampleRate, in nativeTest() argument
DVirtualizerTest.java321 String channelMask = Integer.toHexString(CHANNEL_MASKS[i]).toUpperCase(); in test4_0FormatModeQuery() local
324 Log.d(TAG, "content channel mask: 0x" + channelMask + " (native 0x" in test4_0FormatModeQuery()
DAudioTrackTest.java2135 private void doTestTimestamp(int sampleRate, int channelMask, int encoding, int transferMode, in doTestTimestamp() argument
2148 * AudioFormat.channelCountFromOutChannelMask(channelMask); in doTestTimestamp()
2161 .setChannelMask(channelMask) in doTestTimestamp()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp381 static bool isValidChannelMask(aaudio_channel_mask_t channelMask, bool isInput) { in isValidChannelMask() argument
382 if (channelMask == AAUDIO_UNSPECIFIED) { in isValidChannelMask()
386 if (__builtin_popcount(channelMask) > FCC_LIMIT) { in isValidChannelMask()
391 switch (channelMask) { in isValidChannelMask()
404 switch (channelMask) { in isValidChannelMask()
435 void testChannelMask(aaudio_channel_mask_t channelMask, aaudio_direction_t direction);
438 void AAudioStreamBuilderChannelMaskTest::testChannelMask(aaudio_channel_mask_t channelMask, in testChannelMask() argument
443 AAudioStreamBuilder_setChannelMask(aaudioBuilder, channelMask); in testChannelMask()
445 isValidChannelMask(channelMask, direction) ? Expect::SUCCEED : Expect::FAIL; in testChannelMask()
561 aaudio_channel_mask_t channelMask,
[all …]
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/
DRecorder.java55 int channelMask = Recorder.channelCountToChannelMask(channelCount); in calcMinBufferFrames() local
58 channelMask, in calcMinBufferFrames()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/
DPlayer.java47 int channelMask = Player.channelCountToChannelMask(channelCount); in calcMinBufferFrames() local
50 channelMask, in calcMinBufferFrames()
/cts/tests/mediapc/src/android/mediapc/cts/
DAudioPlaybackLoad.java68 final int channelMask = getChannelMask(format); in createAudioTrack() local
74 .setChannelMask(channelMask) in createAudioTrack()
80 final int minBufferSize = AudioTrack.getMinBufferSize(sampleRate, channelMask, encoding); in createAudioTrack()
/cts/tests/tests/media/libaudiojni/
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_cts_AudioTrackNative_nativeTest() argument
389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioTrackNative_nativeTest()
428 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_cts_AudioTrackNative_nativeOpen() argument
436 channelMask, in Java_android_media_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_cts_AudioRecordNative_nativeTest() argument
477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest()
515 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioRecordNative_nativeOpen() argument
521 return (jint) record->open(numChannels, channelMask, sampleRate, useFloat == JNI_TRUE, in Java_android_media_cts_AudioRecordNative_nativeOpen()
Dappendix-b-1-1-buffer-queue.cpp151 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in TestPlayMusicBufferQueue()
/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/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/
Dtest-current.txt1438 field public static final String CHANNEL_MASK = "android.media.audiorecord.channelMask";
1464 field public static final String CHANNEL_MASK = "android.media.audiotrack.channelMask";