Home
last modified time | relevance | path

Searched refs:numFrames (Results 1 – 25 of 58) 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()
60 int32_t numFrames in dataCallbackProc() argument
68 if (numFrames > mInputFramesMaximum) { in dataCallbackProc()
69 … ALOGE("%s() numFrames:%d > mInputFramesMaximum:%d", __func__, numFrames, mInputFramesMaximum); in dataCallbackProc()
74 if (numFrames > mMaxNumFrames) { in dataCallbackProc()
75 mMaxNumFrames = numFrames; in dataCallbackProc()
77 if (numFrames < mMinNumFrames) { in dataCallbackProc()
78 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()
45 public int pull(float[] audioData, int numFrames, int numChans) { in pull() argument
46 return pullN(mNativeSourcePtr, audioData, numFrames, numChans); in pull()
49 private native void initN(long nativeSourcePtr, int numFrames, int numChans); in initN() argument
52 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
52 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.cpp52 int numFrames = audioSource->pull(sAudioBuffer, num_frames, num_chans); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN() local
55 env->SetFloatArrayRegion(audio_data, 0, numFrames * num_chans, sAudioBuffer); in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN()
57 return numFrames; in Java_org_hyphonate_megaaudio_player_NativeAudioSource_pullN()
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()
DAudioSource.h44 virtual void init(int numFrames, int numChans) {} in init() argument
63 virtual int pull(float* buffer, int numFrames, int numChans) = 0;
DWaveTableSource.cpp54 int WaveTableSource::pull(float* buffer, int numFrames, int numChans) { in pull() argument
57 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in pull()
78 return numFrames; in pull()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveScopeView.java55 public void setPCM16Buff(short[] smpl16Buff, int numChans, int numFrames) { in setPCM16Buff() argument
60 mNumFrames = numFrames; in setPCM16Buff()
67 public void setPCMFloatBuff(float[] smplFloatBuff, int numChans, int numFrames) { in setPCMFloatBuff() argument
72 mNumFrames = numFrames; in setPCMFloatBuff()
116 private void drawChannel16(Canvas cvs, short[] samples, int numFrames, int numChans, in drawChannel16() argument
122 for (int frame = 0; frame < numFrames; frame++) { in drawChannel16()
145 private void drawChannelFloat(Canvas cvs, float[] samples, int numFrames, int numChans, in drawChannelFloat() argument
151 for (int frame = 0; frame < numFrames; frame++) { in drawChannelFloat()
/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/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DAImageDecoderTest.kt151 numFrames: Int, in <lambda>()
185 assertTrue(i < numFrames, "Unexpected frame $i in $image") in <lambda>()
189 assertEquals(i, numFrames, "Expected $numFrames frames in $image; found $i") in <lambda>()
212 fun testDecodeFrames(image: String, frameName: String, numFrames: Int) { in <lambda>()
213 decodeAndCropFrames(image, frameName, numFrames, 1.0f, Crop.None, .955) in <lambda>()
218 fun testDecodeFramesScaleDown(image: String, frameName: String, numFrames: Int) { in <lambda>()
219 decodeAndCropFrames(image, frameName, numFrames, .5f, Crop.None, .749) in <lambda>()
224 fun testDecodeFramesScaleDown2(image: String, frameName: String, numFrames: Int) { in <lambda>()
225 decodeAndCropFrames(image, frameName, numFrames, .75f, Crop.None, .749) in <lambda>()
230 fun testDecodeFramesScaleUp(image: String, frameName: String, numFrames: Int) { in <lambda>()
[all …]
/cts/tests/tests/media/libndkaudio/
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
81 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/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_callback.cpp129 void updateFrameCount(int32_t numFrames) { in updateFrameCount()
130 if (numFrames != expectedFramesPerCallback) { in updateFrameCount()
132 actualFramesPerCallback = numFrames; in updateFrameCount()
135 actualFramesPerCallback = numFrames; in updateFrameCount()
169 AAudioStream *stream, void *userData, void *audioData, int32_t numFrames);
173 AAudioStream* /*stream*/, void *userData, void* /*audioData*/, int32_t numFrames) { in MyDataCallbackProc() argument
175 myData->updateFrameCount(numFrames); in MyDataCallbackProc()
322 AAudioStream *stream, void *userData, void *audioData, int32_t numFrames);
330 int32_t numFrames) { in MyDataCallbackProc() argument
332 int32_t numSamples = channelCount * numFrames; in MyDataCallbackProc()
[all …]
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/sources/
DSilenceAudioSource.java31 public int pull(float[] buffer, int numFrames, int numChans) { in pull() argument
34 return numFrames; in pull()
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DLatencyAnalyzer.h105 int32_t write(int16_t *inputData, int32_t inputChannelCount, int32_t numFrames) { in write() argument
107 if ((mFrameCounter + numFrames) > mMaxFrames) { in write()
108 numFrames = mMaxFrames - mFrameCounter; in write()
110 for (int i = 0; i < numFrames; i++) { in write()
113 return numFrames; in write()
117 int32_t write(float *inputData, int32_t inputChannelCount, int32_t numFrames) { in write() argument
119 if ((mFrameCounter + numFrames) > mMaxFrames) { in write()
120 numFrames = mMaxFrames - mFrameCounter; in write()
122 for (int i = 0; i < numFrames; i++) { in write()
125 return numFrames; in write()
/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()

123