Home
last modified time | relevance | path

Searched refs:numFrames (Results 1 – 25 of 65) sorted by relevance

123

/cts/apps/CtsVerifier/jni/audio_loopback/
DNativeAudioAnalyzer.cpp29 int32_t NativeAudioAnalyzer::readFormattedData(int32_t numFrames) { in readFormattedData() argument
33 numFrames, in readFormattedData()
37 numFrames, in readFormattedData()
65 int32_t numFrames in dataCallbackProc() argument
73 if (numFrames > mInputFramesMaximum) { in dataCallbackProc()
74 … ALOGE("%s() numFrames:%d > mInputFramesMaximum:%d", __func__, numFrames, mInputFramesMaximum); in dataCallbackProc()
79 if (numFrames > mMaxNumFrames) { in dataCallbackProc()
80 mMaxNumFrames = numFrames; in dataCallbackProc()
82 if (numFrames < mMinNumFrames) { in dataCallbackProc()
83 mMinNumFrames = numFrames; in dataCallbackProc()
[all …]
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/
DNativeAudioSink.java29 public void init(int numFrames, int numChans) { in init() argument
30 initN(mNativeSinkPtr, numFrames, numChans); in init()
44 public void push(float[] audioData, int numFrames, int numChans) { in push() argument
45 pushN(mNativeSinkPtr, audioData, numFrames, numChans); in push()
48 private native void initN(long nativeSinkPtr, int numFrames, int numChans); in initN() argument
51 private native void pushN(long nativeSinkPtr, float[] audioData, int numFrames, int numChans); in pushN() argument
DAudioSink.java24 public void init(int numFrames, int numChans) {} in init() argument
37 abstract public void push(final float[] audioData, int numFrames, int numChans); in push() argument
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/
DNativeAudioSource.java29 public void init(int numFrames, int numChans) { in init() argument
30 initN(mNativeSourcePtr, numFrames, numChans); in init()
61 public int pull(float[] audioData, int numFrames, int numChans) { in pull() argument
62 return pullN(mNativeSourcePtr, audioData, numFrames, numChans); in pull()
65 private native void initN(long nativeSourcePtr, int numFrames, int numChans); in initN() argument
70 private native int pullN(long nativeSourcePtr, float[] audioData, int numFrames, int numChans); in pullN() argument
DAudioSource.java26 public void init(int numFrames, int numChans) {} in init() argument
61 public abstract int pull(float[] audioData, int numFrames, int numChans); in pull() argument
/cts/tests/openglperf2/jni/reference/
DGLReference.cpp26 JNIEnv* env, jclass /*clazz*/, jobject assetManager, jobject surface, jint numFrames, in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark() argument
31 if (numFrames > (ReferenceRenderer::FRAMES_PER_SCENE * ReferenceRenderer::NUM_SCENES)) { in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
42 double updates[numFrames]; in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
43 double renders[numFrames]; in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
44 for (int i = 0; i < numFrames && success; i++) { in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
54 env->SetDoubleArrayRegion(updateTimes, 0, numFrames, updates); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
55 env->SetDoubleArrayRegion(renderTimes, 0, numFrames, renders); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
/cts/apps/CtsVerifier/jni/megaaudio/player/
DBlipAudioSource.cpp36 int BlipAudioSource::pull(float* buffer, int numFrames, int numChans) { in pull() argument
43 memset(buffer, 0, numFrames * numChans * sizeof(float)); in pull()
45 WaveTableSource::pull(buffer, numFrames, numChans); in pull()
46 mNumPendingPulseFrames -= numFrames; in pull()
48 return numFrames; in pull()
DSilenceAudioSource.cpp20 int SilenceAudioSource::pull(float* buffer, int numFrames, int numChans) { in pull() argument
21 memset(buffer, 0, sizeof(float) * numFrames * numChans); in pull()
22 return numFrames; in pull()
DNoiseAudioSource.cpp26 int NoiseAudioSource::pull(float* buffer, int numFrames, int numChans) { in pull() argument
27 int numSamples = numFrames * numChans; in pull()
32 return numFrames; in pull()
DNativeAudioSource.cpp66 int numFrames = audioSource->pull(sAudioBuffer, num_frames, num_chans); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN() local
69 env->SetFloatArrayRegion(audio_data, 0, numFrames * num_chans, sAudioBuffer); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN()
71 return numFrames; in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN()
DAudioSource.h44 virtual void init(int numFrames, int numChans) {} in init() argument
67 virtual int pull(float* buffer, int numFrames, int numChans) = 0;
DJavaSourceProxy.cpp83 void JavaSourceProxy::init(int numFrames, int numChans) { in init() argument
86 mJavaBuffer = env->NewFloatArray(numFrames * numChans); in init()
110 int JavaSourceProxy::pull(float* buffer, int numFrames, int numChans) { in pull() argument
113 … int numFilledFrames = env->CallIntMethod(mSourceObj, sMidPull, mJavaBuffer, numFrames, numChans); in pull()
DJavaSourceProxy.h34 virtual void init(int numFrames, int numChans);
41 virtual int pull(float* buffer, int numFrames, int numChans);
DWaveTableSource.cpp59 int WaveTableSource::pull(float* buffer, int numFrames, int numChans) { in pull() argument
62 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in pull()
83 return numFrames; in pull()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/sources/
DBlipAudioSource.java54 public int pull(float[] buffer, int numFrames, int numChans) { in pull() argument
58 super.pull(buffer, numFrames, numChans); in pull()
59 mNumPendingPulseFrames -= numFrames; in pull()
61 return numFrames; in pull()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/sources/
DNoiseAudioSource.java38 public int pull(float[] buffer, int numFrames, int numChans) { in pull() argument
39 for (int index = 0; index < numFrames * numChans; index++) { in pull()
43 return numFrames; in pull()
DSparseChannelAudioSource.java54 public int pull(float[] buffer, int numFrames, int numChans) { in pull() argument
57 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in pull()
82 return numFrames; in pull()
DSilenceAudioSource.java31 public int pull(float[] buffer, int numFrames, int numChans) { in pull() argument
34 return numFrames; in pull()
/cts/tests/tests/media/audio/jni/
DWaveTableOscillator.cpp47 int WaveTableOscillator::getData(long time, float* outBuff, int numFrames, in getData() argument
60 for (int dstIndex = 0; dstIndex < numFrames; ++dstIndex) { in getData()
78 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in getData()
99 return numFrames; in getData()
/cts/apps/CtsVerifier/jni/megaaudio/recorder/
DAppCallbackAudioSink.cpp32 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()
78 env->CallVoidMethod(mCallbackObj, mMIDonDataReady, mAudioDataArray, numFrames); in push()
DAudioSink.h24 virtual void init(int numFrames, int numChannels) {} in init() argument
28 virtual void push(float* audioData, int numFrames, int numChannels) = 0;
DAppCallbackAudioSink.h28 virtual void init(int numFrames, int numChannels) override;
32 virtual void push(float* audioData, int numFrames, int numChannels) override;
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/sinks/
DAppCallbackAudioSink.java30 public void push(float[] audioData, int numFrames, int numChans) { in push() argument
31 mCallback.onDataReady(audioData, numFrames); in push()
/cts/tests/openglperf2/jni/primitive/
DGLPrimitive.cpp43 JNIEnv* env, jclass /*clazz*/, jint workload, jint numFrames, jdoubleArray frameTimes) { in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_startBenchmark() argument
56 numFrames /= Renderer::OFFSCREEN_INNER_FRAMES; in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_startBenchmark()
60 for (int i = 0; i < numFrames && success; i++) { in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_startBenchmark()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveScopeView.java108 public void setPCMFloatBuff(float[] smplFloatBuff, int numChans, int numFrames) { in setPCMFloatBuff() argument
112 mNumFrames = numFrames; in setPCMFloatBuff()
168 private void drawChannelFloat(Canvas cvs, float[] samples, int numFrames, int numChans, in drawChannelFloat() argument
190 for (int frame = 0; frame < numFrames; frame++) { in drawChannelFloat()
215 for (int frame = 0; frame < numFrames; frame++) { in drawChannelFloat()
232 for (int frame = 0; frame < numFrames; frame++) { in drawChannelFloat()

123