/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackNative.java | 45 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 46 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open() 49 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument 51 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open() 53 mChannelCount = numChannels; in open() 117 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 119 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 122 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument 124 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test() 152 long track, int numChannels, int channelMask, in nativeOpen() argument [all …]
|
D | AudioRecordNative.java | 42 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 43 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open() 46 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument 48 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open() 50 mChannelCount = numChannels; in open() 110 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 112 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 115 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument 117 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test() 145 long record, int numChannels, int channelMask, in nativeOpen() argument [all …]
|
D | AudioRecordTest.java | 495 final int numChannels = in testTimestamp() local 498 final int bytesPerFrame = numChannels * bytesPerSample; in testTimestamp() 502 final int targetSamples = targetFrames * numChannels; in testTimestamp() 504 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testTimestamp() 519 int amount = samplesRead == 0 ? numChannels : in testTimestamp() 644 final int numChannels = in testSynchronizedRecord() local 647 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord() 650 (int)((long)RECORD_TIME_IN_MS * RECORD_SAMPLE_RATE * numChannels / 1000); in testSynchronizedRecord() 652 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testSynchronizedRecord() 663 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord() [all …]
|
D | AudioNativeTest.java | 263 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument 268 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 273 (int)((long)sampleRate * segmentDurationMs * numChannels / 1000); in doRecordTest()
|
D | AudioHelper.java | 442 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 443 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open() 444 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
|
D | AudioTrack_ListenerTest.java | 156 final int numChannels = AudioFormat.channelCountFromOutChannelMask(TEST_CONF); in doTest() local 158 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
|
D | DecoderTest.java | 1201 this.numChannels = 0; 1206 return this.numChannels; 1213 public void setNumChannels(int numChannels) { 1214 this.numChannels = numChannels; 1221 private int numChannels;
|
/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 | AudioSink.h | 27 virtual bool put(float * buff, int numFrames, int numChannels) =0;
|
D | PeriodicAudioSource.h | 26 PeriodicAudioSource(int numChannels);
|
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 | 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/tests/tests/media/libaudiojni/ |
D | audio-record-native.cpp | 78 status_t open(uint32_t numChannels, in open() argument 122 pcm.numChannels = numChannels; in open() 172 * numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in open() 441 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_cts_AudioRecordNative_nativeTest() argument 444 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest() 450 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest() 488 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioRecordNative_nativeOpen() argument 494 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()
|
D | appendix-b-1-1-buffer-queue.cpp | 147 pcm.numChannels = 2; in TestPlayMusicBufferQueue()
|
/cts/tests/tests/nativemedia/sl/src/ |
D | SLObjectCreationTest.cpp | 163 formatPcmSnk.numChannels = 1; in PcmBqSinkInitialization() 214 pcm.numChannels = 2; in AudioPlayerFromPcmBqCreation()
|
/cts/apps/CtsVerifier/jni/audio_loopback/ |
D | sles.cpp | 375 pcm.numChannels = pSles->channels; in slesCreateServer()
|