Home
last modified time | relevance | path

Searched refs:channelCount (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioNativeTest.java214 int channelCount = Long.bitCount(mask); in testOutputChannelMasks() local
215 boolean expectSuccess = (channelCount > 0) in testOutputChannelMasks()
221 boolean ok = track.open(channelCount, in testOutputChannelMasks()
242 int channelCount = Long.bitCount(mask); in testInputChannelMasks() local
243 boolean expectSuccess = (channelCount > 0) in testInputChannelMasks()
249 boolean ok = recorder.open(channelCount, in testInputChannelMasks()
DCodecState.java285 int channelCount = in onOutputFormatChanged() local
289 " sampleRate:" + sampleRate + " channels:" + channelCount); in onOutputFormatChanged()
294 if (channelCount < 1 || channelCount > 8 || in onOutputFormatChanged()
298 mAudioTrack = new NonBlockingAudioTrack(sampleRate, channelCount, in onOutputFormatChanged()
DNonBlockingAudioTrack.java48 public NonBlockingAudioTrack(int sampleRate, int channelCount, boolean hwAvSync, in NonBlockingAudioTrack() argument
51 switch (channelCount) { in NonBlockingAudioTrack()
DEncoderTest.java275 int channelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in testEncoder() local
276 int inBitrate = sampleRate * channelCount * 16; // bit/sec in testEncoder()
284 "-" + sampleRate + "Hz-" + channelCount + "ch-" + outBitrate + in testEncoder()
334 (long)numBytesSubmitted * 1000000 / (2 * channelCount * sampleRate); in testEncoder()
DAudioTrackTest.java1460 final int channelCount = Integer.bitCount(TEST_CONF); in testPlayStaticData() local
1462 final int bufferSamples = bufferFrames * channelCount; in testPlayStaticData()
1465 final double testFrequency = frequency / channelCount; in testPlayStaticData()
1573 final int channelCount = Integer.bitCount(TEST_CONF); in testPlayStreamData() local
1575 && (TEST_SR > 96000 || channelCount > 4)) { in testPlayStreamData()
1589 assertEquals(TEST_NAME, channelCount, format.getChannelCount()); in testPlayStreamData()
1591 final int sourceSamples = channelCount in testPlayStreamData()
1594 final double testFrequency = frequency / channelCount; in testPlayStreamData()
1610 (track.getBufferSizeInFrames() / buffers) * channelCount; in testPlayStreamData()
/cts/tests/tests/media/libaudiojni/
Dsl-utils.cpp69 SLuint32 channelCountToMask(unsigned channelCount) { in channelCountToMask() argument
70 switch (channelCount) { in channelCountToMask()
Dsl-utils.h46 SLuint32 channelCountToMask(unsigned channelCount);
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java232 … void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount) { in onBeginSynthesis() argument
238 Assert.assertTrue(channelCount >= 1); in onBeginSynthesis()
239 Assert.assertTrue(channelCount <= 2); in onBeginSynthesis()