/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordNative.java | 44 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 45 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open() 48 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument 50 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open() 52 mChannelCount = numChannels; in open() 116 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 118 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 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 [all …]
|
D | AudioTrackNative.java | 46 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 47 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open() 50 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument 52 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open() 54 mChannelCount = numChannels; in open() 118 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 120 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 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 [all …]
|
D | AudioRecordTest.java | 553 final int numChannels = in testTimestamp() local 556 final int bytesPerFrame = numChannels * bytesPerSample; in testTimestamp() 560 final int targetSamples = targetFrames * numChannels; in testTimestamp() 562 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testTimestamp() 579 final int amount = samplesRead == 0 ? numChannels : in testTimestamp() 775 final int numChannels = in testSynchronizedRecord() local 778 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord() 781 (int)((long)RECORD_TIME_IN_MS * RECORD_SAMPLE_RATE * numChannels / 1000); in testSynchronizedRecord() 783 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testSynchronizedRecord() 794 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord() [all …]
|
D | AudioNativeTest.java | 339 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument 344 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 349 (int)((long)sampleRate * segmentDurationMs * numChannels / 1000); in doRecordTest()
|
D | DecoderTestAacDrc.java | 219 final int numChannels = decParams.getNumChannels(); in checkClipping() local 220 final int startSample = 2 * 2048 * numChannels; // exclude signal on- & offset to in checkClipping() 228 for (int channel = 0; channel < numChannels; channel++) { in checkClipping() 231 filter.apply(decSamples, channel, numChannels); in checkClipping()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | StreamRecorder.java | 59 public static int calcNumBufferBytes(int numChannels, int sampleRate, int encoding) { in calcNumBufferBytes() argument 63 if (numChannels == 4) { in calcNumBufferBytes() 69 AudioUtils.countToInPositionMask(numChannels), encoding); in calcNumBufferBytes() 75 public static int calcNumBufferFrames(int numChannels, int sampleRate, int encoding) { in calcNumBufferFrames() argument 76 return calcNumBufferBytes(numChannels, sampleRate, encoding) / in calcNumBufferFrames() 77 AudioUtils.calcFrameSizeInBytes(encoding, numChannels); in calcNumBufferFrames()
|
D | StreamPlayer.java | 90 private static int calcNumBufferBytes(int sampleRate, int numChannels, int encoding) { in calcNumBufferBytes() argument 92 AudioUtils.countToOutPositionMask(numChannels), in calcNumBufferBytes() 96 private static int calcNumBufferFrames(int sampleRate, int numChannels, int encoding) { in calcNumBufferFrames() argument 97 return calcNumBufferBytes(sampleRate, numChannels, encoding) in calcNumBufferFrames() 98 / AudioUtils.calcFrameSizeInBytes(encoding, numChannels); in calcNumBufferFrames()
|
D | AudioUtils.java | 81 public static int calcFrameSizeInBytes(int encoding, int numChannels) { in calcFrameSizeInBytes() argument 82 return sampleSizeInBytes(encoding) * numChannels; in calcFrameSizeInBytes()
|
/cts/tests/tests/media/libndkaudio/ |
D | PeriodicAudioSource.cpp | 21 PeriodicAudioSource::PeriodicAudioSource(int numChannels) in PeriodicAudioSource() argument 22 : AudioSource(numChannels), targetFreq_(1000.0f) { in PeriodicAudioSource()
|
D | AudioSource.cpp | 25 AudioSource::AudioSource(int numChannels) in AudioSource() argument 26 : numChannels_(numChannels), in AudioSource()
|
D | AudioSource.h | 24 AudioSource(int numChannels); 38 int numChannels) =0;
|
D | com_android_ndkaudio_AudioPlayer.cpp | 29 static int numChannels = 2; variable 46 waveTableSource = new WaveTableOscillator(numChannels, waveTable, waveTableSize); in Java_com_android_ndkaudio_AudioPlayer_Create() 49 nativePlayer->Open(numChannels, waveTableSource); in Java_com_android_ndkaudio_AudioPlayer_Create()
|
D | WaveTableOscillator.cpp | 26 WaveTableOscillator::WaveTableOscillator(int numChannels, float* waveTable, in WaveTableOscillator() argument 28 : PeriodicAudioSource(numChannels), in WaveTableOscillator()
|
D | com_android_ndkaudio_AudioRecorder.cpp | 26 static int numChannels = 2; variable 38 nativeRecorder->Open(numChannels, 0); in Java_com_android_ndkaudio_AudioRecorder_Create()
|
D | AudioRecorder.cpp | 87 void AudioRecorder::Open(int numChannels, AudioSink* sink) { in Open() argument 89 numChannels_ = numChannels; in Open() 136 pcm.numChannels = numChannels_; in Open()
|
D | AudioSink.h | 27 virtual bool put(float * buff, int numFrames, int numChannels) =0;
|
D | PeriodicAudioSource.h | 26 PeriodicAudioSource(int numChannels);
|
D | WaveTableOscillator.h | 30 WaveTableOscillator(int numChannels, float* waveTable, int waveTableSize);
|
D | AudioRecorder.h | 32 void Open(int numChannels, AudioSink* sink);
|
D | AudioPlayer.h | 32 SLresult Open(int numChannels, AudioSource* filler);
|
D | AudioPlayer.cpp | 130 SLresult AudioPlayer::Open(int numChannels, AudioSource* source) { in Open() argument 135 numChannels_ = numChannels; in Open()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | USBDeviceInfoHelper.java | 65 public static int getIndexedChanMask(int numChannels) { in getIndexedChanMask() argument 66 return 0x80000000 | numChannels; in getIndexedChanMask()
|
/cts/tests/tests/media/libaudiojni/ |
D | audio-record-native.cpp | 80 status_t open(uint32_t numChannels, in open() argument 124 pcm.numChannels = numChannels; in open() 174 * numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in open() 468 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_cts_AudioRecordNative_nativeTest() argument 471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest() 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()
|
D | audio-track-native.cpp | 73 status_t open(jint numChannels, jint channelMask, in open() argument 109 pcm.numChannels = numChannels; in open() 379 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, in Java_android_media_cts_AudioTrackNative_nativeTest() argument 383 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioTrackNative_nativeTest() 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 435 return (jint) track->open(numChannels, in Java_android_media_cts_AudioTrackNative_nativeOpen()
|
/cts/tests/tests/nativemedia/sl/src/ |
D | SLObjectCreationTest.cpp | 160 formatPcmSnk.numChannels = 1; in PcmBqSinkInitialization() 211 pcm.numChannels = 2; in AudioPlayerFromPcmBqCreation()
|