/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTrackNative.java | 43 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 44 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open() 47 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument 49 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open() 51 mChannelCount = numChannels; in open() 115 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 117 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 120 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument 122 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test() 150 long track, int numChannels, int channelMask, in nativeOpen() argument [all …]
|
D | AudioRecordNative.java | 41 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 42 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open() 45 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument 47 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open() 49 mChannelCount = numChannels; in open() 113 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 115 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 118 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument 120 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test() 148 long record, int numChannels, int channelMask, in nativeOpen() argument [all …]
|
D | AudioNativeTest.java | 351 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument 356 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 361 (int)((long)sampleRate * segmentDurationMs * numChannels / 1000); in doRecordTest() 409 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 410 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open() 411 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
|
D | MediaSyncEventTest.java | 153 final int numChannels = in testSynchronizedRecord() local 156 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord() 159 (int)((long)RECORD_TIME_IN_MS * RECORD_SAMPLE_RATE * numChannels / 1000); in testSynchronizedRecord() 161 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testSynchronizedRecord() 172 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord()
|
/cts/tests/tests/media/audio/jni/ |
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 | AudioPlayer_jni.cpp | 27 static int numChannels = 2; variable 44 waveTableSource = new WaveTableOscillator(numChannels, waveTable, waveTableSize); in Java_android_media_audio_cts_AudioPlayer_Create() 47 nativePlayer->Open(numChannels, waveTableSource); in Java_android_media_audio_cts_AudioPlayer_Create()
|
D | WaveTableOscillator.cpp | 26 WaveTableOscillator::WaveTableOscillator(int numChannels, float* waveTable, in WaveTableOscillator() argument 28 : PeriodicAudioSource(numChannels), in WaveTableOscillator()
|
D | AudioSink.h | 27 virtual bool put(float * buff, int numFrames, int numChannels) =0;
|
D | PeriodicAudioSource.h | 26 PeriodicAudioSource(int numChannels);
|
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_audio_cts_AudioRecordNative_nativeTest() argument 471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_audio_cts_AudioRecordNative_nativeTest() 477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioRecordNative_nativeTest() 515 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_audio_cts_AudioRecordNative_nativeOpen() argument 521 return (jint) record->open(numChannels, channelMask, sampleRate, useFloat == JNI_TRUE, in Java_android_media_audio_cts_AudioRecordNative_nativeOpen()
|
D | AudioRecorder_jni.cpp | 24 static int numChannels = 2; variable 36 nativeRecorder->Open(numChannels, 0); in Java_android_media_audio_cts_AudioRecorder_Create()
|
D | WaveTableOscillator.h | 30 WaveTableOscillator(int numChannels, float* waveTable, int waveTableSize);
|
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_audio_cts_AudioTrackNative_nativeTest() argument 383 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_audio_cts_AudioTrackNative_nativeTest() 389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioTrackNative_nativeTest() 428 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_audio_cts_AudioTrackNative_nativeOpen() argument 435 return (jint) track->open(numChannels, in Java_android_media_audio_cts_AudioTrackNative_nativeOpen()
|
/cts/apps/CtsVerifier/jni/megaaudio/recorder/ |
D | AudioSink.h | 24 virtual void init(int numFrames, int numChannels) {} in init() argument 28 virtual void push(float* audioData, int numFrames, int numChannels) = 0;
|
D | AppCallbackAudioSink.cpp | 32 void AppCallbackAudioSink::init(int numFrames, int numChannels) { in init() argument 40 mAudioDataArrayLength = numChannels * numFrames; in init() 67 void AppCallbackAudioSink::push(float* audioData, int numFrames, int numChannels) { in push() argument 77 env->SetFloatArrayRegion(mAudioDataArray, 0, numFrames * numChannels, audioData); in push()
|
D | AppCallbackAudioSink.h | 28 virtual void init(int numFrames, int numChannels) override; 32 virtual void push(float* audioData, int numFrames, int numChannels) override;
|
D | DefaultAudioSink.h | 29 virtual void push(float* audioData, int numChannels, int numFrames) ;
|
D | DefaultAudioSink.cpp | 32 void DefaultAudioSink::push(float* audioData, int numChannels, int numFrames) { in push() argument
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/ |
D | SignalAnalyzer.java | 33 void analyzeBuffer(float[] audioData, int numChannels, int numFrames); in analyzeBuffer() argument
|
D | MagnitudeAnalyzer.java | 43 public void analyzeBuffer(float[] audioData, int numChannels, int numFrames) { in analyzeBuffer() argument
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/sinks/ |
D | NopAudioSink.java | 22 public void push(float[] audioData, int numFrames, int numChannels) { in push() argument
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/duplex/ |
D | DuplexAudioManager.java | 109 public void setNumPlayerChannels(int numChannels) { in setNumPlayerChannels() argument 110 mNumPlayerChannels = numChannels; in setNumPlayerChannels() 123 public void setNumRecorderChannels(int numChannels) { in setNumRecorderChannels() argument 124 mNumRecorderChannels = numChannels; in setNumRecorderChannels()
|