/cts/tests/tests/media/src/android/media/cts/ |
D | AudioNativeTest.java | 226 int channelCount = Long.bitCount(mask); in testOutputChannelMasks() local 227 boolean expectSuccess = (channelCount > 0) in testOutputChannelMasks() 233 boolean ok = track.open(channelCount, in testOutputChannelMasks() 269 int channelCount = Long.bitCount(mask); in testInputChannelMasksPreQ() local 270 boolean expectSuccess = (channelCount > 0) in testInputChannelMasksPreQ() 276 boolean ok = recorder.open(channelCount, in testInputChannelMasksPreQ() 306 int channelCount = AudioFormat.channelCountFromInChannelMask(mask); in testInputChannelMasksPostQ() local 307 if (channelCount <= 2) { in testInputChannelMasksPostQ() 311 int equivIndexMask = (1 << channelCount) - 1; in testInputChannelMasksPostQ() 323 int channelCount = Long.bitCount(mask); in testInputChannelMasksPostQ() local [all …]
|
D | CodecState.java | 285 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()
|
D | NonBlockingAudioTrack.java | 48 public NonBlockingAudioTrack(int sampleRate, int channelCount, boolean hwAvSync, in NonBlockingAudioTrack() argument 51 switch (channelCount) { in NonBlockingAudioTrack()
|
D | DynamicsProcessingTest.java | 142 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 …]
|
D | EncoderTest.java | 306 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()
|
D | AudioTrackTest.java | 1616 final int channelCount = Integer.bitCount(testConf); in playOnceStaticData() local 1618 final int bufferSamples = bufferFrames * channelCount; in playOnceStaticData() 1621 final double frequency = testFrequency / channelCount; in playOnceStaticData() 1758 final int channelCount = Integer.bitCount(testConf); in playOnceStreamData() local 1760 && (testSr > 96000 || channelCount > 4)) { in playOnceStreamData() 1774 assertEquals(testName, channelCount, format.getChannelCount()); in playOnceStreamData() 1776 final int sourceSamples = channelCount in playOnceStreamData() 1779 final double frequency = testFrequency / channelCount; in playOnceStreamData() 1795 (track.getBufferSizeInFrames() / buffers) * channelCount; in playOnceStreamData() 2311 final int channelCount = AudioFormat.channelCountFromOutChannelMask(TEST_CONF); in testStopDrain() local [all …]
|
D | MediaCodecTest.java | 1845 final int channelCount = Math.min(acaps.getMaxInputChannelCount(), 2); in testPCMEncoding() local 1867 type, sampleRate, channelCount); in testPCMEncoding()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioUtils.java | 38 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/ |
D | utils.cpp | 90 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()
|
D | utils.h | 36 int32_t channelCount; member 70 int32_t channelCount, aaudio_format_t dataFormat,
|
D | test_aaudio_callback.cpp | 228 int32_t channelCount = AAudioStream_getChannelCount(stream); in MyDataCallbackProc() local 229 int32_t numSamples = channelCount * numFrames; in MyDataCallbackProc()
|
D | test_aaudio.cpp | 81 mData.reset(new int16_t[mFramesPerRead * actual().channelCount]); in SetUp() 188 size_t dataSizeSamples = framesPerBurst() * actual().channelCount; in SetUp()
|
/cts/tests/tests/media/libaudiojni/ |
D | sl-utils.cpp | 69 SLuint32 channelCountToMask(unsigned channelCount) { in channelCountToMask() argument 70 switch (channelCount) { in channelCountToMask()
|
D | sl-utils.h | 46 SLuint32 channelCountToMask(unsigned channelCount);
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechWrapper.java | 253 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/ |
D | AudioSecurityTest.java | 369 final int channelCount = 2; in testVisualizerCapture_CVE_2017_0396() local 371 final int bufferSamples = bufferFrames * channelCount; in testVisualizerCapture_CVE_2017_0396()
|