Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DAudioNativeTest.java227 int channelCount = Long.bitCount(mask); in testOutputChannelMasks() local
228 boolean expectSuccess = (channelCount > 0) in testOutputChannelMasks()
234 boolean ok = track.open(channelCount, in testOutputChannelMasks()
270 int channelCount = Long.bitCount(mask); in testInputChannelMasksPreQ() local
271 boolean expectSuccess = (channelCount > 0) in testInputChannelMasksPreQ()
277 boolean ok = recorder.open(channelCount, in testInputChannelMasksPreQ()
307 int channelCount = AudioFormat.channelCountFromInChannelMask(mask); in testInputChannelMasksPostQ() local
308 if (channelCount <= 2) { in testInputChannelMasksPostQ()
312 int equivIndexMask = (1 << channelCount) - 1; in testInputChannelMasksPostQ()
324 int channelCount = Long.bitCount(mask); in testInputChannelMasksPostQ() local
[all …]
DCodecState.java287 int channelCount = in onOutputFormatChanged() local
291 " sampleRate:" + sampleRate + " channels:" + channelCount); in onOutputFormatChanged()
296 if (channelCount < 1 || channelCount > 8 || in onOutputFormatChanged()
300 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()
DDynamicsProcessingTest.java142 final int channelCount = mDP.getChannelCount(); in test1_1ParametersChannel() local
143 assertTrue("unexpected channel count", channelCount >= MIN_CHANNEL_COUNT); in test1_1ParametersChannel()
264 int channelCount = mDP.getChannelCount(); in test1_6Channel_perStage() local
265 for (int i = 0; i < channelCount; i++) { in test1_6Channel_perStage()
349 int channelCount = mDP.getChannelCount(); in test1_7Channel_perBand() local
351 for (int i = 0; i < channelCount; i++) { in test1_7Channel_perBand()
427 int channelCount = mDP.getChannelCount(); in test1_8Channel_setAllChannelsTo() local
428 for (int i = 0; i < channelCount; i++) { in test1_8Channel_setAllChannelsTo()
471 int channelCount = mDP.getChannelCount(); in test1_9Channel_setChannelTo() local
472 for (int i = 0; i < channelCount; i++) { in test1_9Channel_setChannelTo()
[all …]
DEncoderTest.java306 int channelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in testEncoder() local
307 int inBitrate = sampleRate * channelCount * 16; // bit/sec in testEncoder()
315 "-" + sampleRate + "Hz-" + channelCount + "ch-" + outBitrate + in testEncoder()
365 (long)numBytesSubmitted * 1000000 / (2 * channelCount * sampleRate); in testEncoder()
DAudioTrackTest.java1617 final int channelCount = Integer.bitCount(testConf); in playOnceStaticData() local
1619 final int bufferSamples = bufferFrames * channelCount; in playOnceStaticData()
1622 final double frequency = testFrequency / channelCount; in playOnceStaticData()
1759 final int channelCount = Integer.bitCount(testConf); in playOnceStreamData() local
1761 && (testSr > 96000 || channelCount > 4)) { in playOnceStreamData()
1775 assertEquals(testName, channelCount, format.getChannelCount()); in playOnceStreamData()
1777 final int sourceSamples = channelCount in playOnceStreamData()
1780 final double frequency = testFrequency / channelCount; in playOnceStreamData()
1796 (track.getBufferSizeInFrames() / buffers) * channelCount; in playOnceStreamData()
2312 final int channelCount = AudioFormat.channelCountFromOutChannelMask(TEST_CONF); in testStopDrain() local
[all …]
DDecoderTest.java271 int channelCount = AudioFormat.channelCountFromOutChannelMask(channelMask); in verifyChannelsAndRates() local
277 channelCount); in verifyChannelsAndRates()
282 " channelcount:" + channelCount); in verifyChannelsAndRates()
288 " != desired " + channelCount, actualChannels == channelCount); in verifyChannelsAndRates()
DMediaCodecTest.java1858 final int channelCount = Math.min(acaps.getMaxInputChannelCount(), 2); in testPCMEncoding() local
1880 type, sampleRate, channelCount); in testPCMEncoding()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioUtils.java38 public static int countToOutPositionMask(int channelCount) { in countToOutPositionMask() argument
39 switch (channelCount) { in countToOutPositionMask()
54 public static int countToInPositionMask(int channelCount) { in countToInPositionMask() argument
55 switch (channelCount) { in countToInPositionMask()
/cts/tests/tests/nativemedia/aaudio/jni/
Dutils.cpp90 int32_t channelCount, aaudio_format_t dataFormat, in StreamBuilderHelper() argument
93 mRequested{sampleRate, channelCount, dataFormat, sharingMode, perfMode},
113 AAudioStreamBuilder_setChannelCount(mBuilder, mRequested.channelCount); in initBuilder()
147 mActual.channelCount = AAudioStream_getChannelCount(mStream); in createAndVerifyStream()
148 ASSERT_GE(mActual.channelCount, 1); in createAndVerifyStream()
149 ASSERT_LE(mActual.channelCount, 16); // TODO what is min/max? in createAndVerifyStream()
Dutils.h36 int32_t channelCount; member
70 int32_t channelCount, aaudio_format_t dataFormat,
Dtest_aaudio_callback.cpp228 int32_t channelCount = AAudioStream_getChannelCount(stream); in MyDataCallbackProc() local
229 int32_t numSamples = channelCount * numFrames; in MyDataCallbackProc()
Dtest_aaudio.cpp81 mData.reset(new int16_t[mFramesPerRead * actual().channelCount]); in SetUp()
188 size_t dataSizeSamples = framesPerBurst() * actual().channelCount; in SetUp()
/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioAEC.java122 public boolean updateRms(PipeShort pipe, int channelCount, int channel) { in updateRms() argument
130 for (int i = channel; i < mBlockSize; i += channelCount) { in updateRms()
218 int channelCount = getChannelCount(); in onCreate()
219 mRMSPlayer1.updateRms(mPipe, channelCount, 0); //Only updated if running in onCreate()
220 mRMSPlayer2.updateRms(mPipe, channelCount, 0); in onCreate()
DSoundPlayerObject.java593 public static int channelMaskFromCount(int channelCount) { in channelMaskFromCount() argument
594 switch(channelCount) { in channelMaskFromCount()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java253 int channelCount) { in onBeginSynthesis() argument
259 Assert.assertTrue(channelCount >= 1); in onBeginSynthesis()
260 Assert.assertTrue(channelCount <= 2); in onBeginSynthesis()
/cts/tests/tests/security/src/android/security/cts/
DAudioSecurityTest.java369 final int channelCount = 2; in testVisualizerCapture_CVE_2017_0396() local
371 final int bufferSamples = bufferFrames * channelCount; in testVisualizerCapture_CVE_2017_0396()