Home
last modified time | relevance | path

Searched refs:numChannels (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackNative.java45 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
46 if (nativeOpen(mNativeTrackInJavaObj, numChannels, sampleRate, useFloat, numBuffers) in open()
48 mChannelCount = numChannels; in open()
112 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
114 return nativeTest(numChannels, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
142 long track, int numChannels, int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument
159 int numChannels, int sampleRate, boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
DAudioRecordNative.java42 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
43 if (nativeOpen(mNativeRecordInJavaObj, numChannels, sampleRate, useFloat, numBuffers) in open()
45 mChannelCount = numChannels; in open()
105 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
107 return nativeTest(numChannels, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
135 long record, int numChannels, int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument
152 int numChannels, int sampleRate, boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
DAudioNativeTest.java199 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument
204 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
209 (int)((long)sampleRate * segmentDurationMs * numChannels / 1000); in doRecordTest()
DAudioRecordTest.java543 final int numChannels = in testSynchronizedRecord() local
546 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord()
549 (int)((long)RECORD_TIME_IN_MS * RECORD_SAMPLE_RATE * numChannels / 1000); in testSynchronizedRecord()
551 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testSynchronizedRecord()
562 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord()
725 final int numChannels = AudioFormat.channelCountFromInChannelMask(TEST_CONF); in doTest() local
727 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
729 final int targetSamples = (int)((long)TEST_TIME_MS * TEST_SR * numChannels / 1000); in doTest()
731 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in doTest()
741 int amount = samplesRead == 0 ? numChannels : in doTest()
[all …]
DAudioHelper.java425 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
426 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open()
427 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
DAudioTrack_ListenerTest.java155 final int numChannels = AudioFormat.channelCountFromOutChannelMask(TEST_CONF); in doTest() local
157 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
DAudioTrackTest.java2039 final int numChannels = AudioFormat.channelCountFromOutChannelMask(TEST_CONF); in testVariableRatePlayback() local
2041 final int bytesPerFrame = numChannels * bytesPerSample; in testVariableRatePlayback()
/cts/tests/tests/media/libaudiojni/
Daudio-track-native.cpp73 status_t open(uint32_t numChannels, uint32_t sampleRate, bool useFloat, in open() argument
109 pcm.numChannels = numChannels; in open()
114 pcm.channelMask = channelCountToMask(numChannels); in open()
380 jint numChannels, jint sampleRate, jboolean useFloat, in Java_android_media_cts_AudioTrackNative_nativeTest() argument
384 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioTrackNative_nativeTest()
390 res = track.open(numChannels, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioTrackNative_nativeTest()
429 jint numChannels, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioTrackNative_nativeOpen() argument
435 return (jint)track->open(numChannels, sampleRate, useFloat == JNI_TRUE, in Java_android_media_cts_AudioTrackNative_nativeOpen()
Daudio-record-native.cpp78 status_t open(uint32_t numChannels, uint32_t sampleRate, bool useFloat, uint32_t numBuffers) { in open() argument
118 pcm.numChannels = numChannels; in open()
123 pcm.channelMask = channelCountToMask(numChannels); in open()
168 * numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in open()
438 jint numChannels, jint sampleRate, jboolean useFloat, in Java_android_media_cts_AudioRecordNative_nativeTest() argument
442 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest()
448 res = record.open(numChannels, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest()
486 jint numChannels, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioRecordNative_nativeOpen() argument
492 return (jint)record->open(numChannels, sampleRate, useFloat == JNI_TRUE, in Java_android_media_cts_AudioRecordNative_nativeOpen()
Dappendix-b-1-1-buffer-queue.cpp147 pcm.numChannels = 2; in TestPlayMusicBufferQueue()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp163 formatPcmSnk.numChannels = 1; in PcmBqSinkInitialization()
214 pcm.numChannels = 2; in AudioPlayerFromPcmBqCreation()
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp357 pcm.numChannels = pSles->channels; in slesCreateServer()