Home
last modified time | relevance | path

Searched refs:frameCount (Results 1 – 23 of 23) sorted by relevance

/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/
Dfifo.c28 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, in audio_utils_fifo_init() argument
32 ALOG_ASSERT(fifo != NULL && frameCount > 0 && frameSize > 0 && buffer != NULL); in audio_utils_fifo_init()
33 fifo->mFrameCount = frameCount; in audio_utils_fifo_init()
34 fifo->mFrameCountP2 = roundup(frameCount); in audio_utils_fifo_init()
Dfifo.h54 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize,
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java233 final int frameCount = stats.getFrameCount(); in testWindowContentFrameStats() local
234 assertTrue(frameCount > 0); in testWindowContentFrameStats()
241 assertEquals(stats.getEndTimeNano(), stats.getFramePresentedTimeNano(frameCount - 1)); in testWindowContentFrameStats()
350 final int frameCount = stats.getFrameCount(); in testWindowAnimationFrameStats() local
351 assertTrue(frameCount > 0); in testWindowAnimationFrameStats()
358 assertEquals(stats.getEndTimeNano(), stats.getFramePresentedTimeNano(frameCount - 1)); in testWindowAnimationFrameStats()
616 final int frameCount = stats.getFrameCount(); in assertWindowContentTimestampsInAscendingOrder() local
617 for (int i = 0; i < frameCount; i++) { in assertWindowContentTimestampsInAscendingOrder()
643 final int frameCount = stats.getFrameCount(); in assertWindowAnimationTimestampsInAscendingOrder() local
644 for (int i = 0; i < frameCount; i++) { in assertWindowAnimationTimestampsInAscendingOrder()
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.h80 int slesInit(sles_data ** ppSles, int samplingRate, int frameCount,
89 int slesCreateServer(sles_data *pSles, int samplingRate, int frameCount, int micSource, int numFram…
Djni_sles.c25 (JNIEnv *env __unused, jobject obj __unused, jint samplingRate, jint frameCount, in Java_com_android_cts_verifier_audio_NativeAudioThread_slesInit() argument
30 if (slesInit(&pSles, samplingRate, frameCount, micSource, numFramesToIgnore) != SLES_FAIL) { in Java_com_android_cts_verifier_audio_NativeAudioThread_slesInit()
Dsles.cpp38 int slesInit(sles_data ** ppSles, int samplingRate, int frameCount, int micSource, in slesInit() argument
49 frameCount); in slesInit()
50 status = slesCreateServer(pSles, samplingRate, frameCount, micSource, in slesInit()
215 int slesCreateServer(sles_data *pSles, int samplingRate, int frameCount, in slesCreateServer() argument
263 pSles->bufSizeInFrames = frameCount;//240; // -f# in slesCreateServer()
/cts/tests/camera/src/android/hardware/camera2/cts/
DBurstCaptureTest.java172 int frameCount = 0; in burstTestByCamera() local
187 frameCount++; in burstTestByCamera()
190 frameCount < MAX_CONVERGENCE_FRAMES); in burstTestByCamera()
202 frameCount = 0; in burstTestByCamera()
215 frameCount++; in burstTestByCamera()
218 frameCount < MAX_CONVERGENCE_FRAMES); in burstTestByCamera()
DSurfaceViewPreviewTest.java666 Pair<Long, Long> measureMeanFrameInterval(SimpleCaptureCallback resultListener, int frameCount, in measureMeanFrameInterval() argument
670 int measurementCount = frameCount - ((prevTimestamp > 0) ? 0 : 1); in measureMeanFrameInterval()
672 for (int i = 0; i < frameCount; i++) { in measureMeanFrameInterval()
/cts/tests/tests/media/src/android/media/cts/
DIvfWriter.java117 int frameCount, int width, int height, int scale, int rate, String mimeType) { in makeIvfHeader() argument
133 lay32Bits(ivfHeader, 24, frameCount); in makeIvfHeader()
DAudioTrackTest.java1500 int frameCount = 2 * minBuffSize; in testAudioTrackProperties() local
1502 frameCount /= 2; in testAudioTrackProperties()
1505 frameCount /= 2; in testAudioTrackProperties()
1507 assertTrue(TEST_NAME, track.getNativeFrameCount() >= frameCount); in testAudioTrackProperties()
2002 final int frameCount = in testPlayChannelIndexStreamBuffer() local
2004 final int bufferSize = frameCount * frameSize; in testPlayChannelIndexStreamBuffer()
2005 final int bufferSamples = frameCount * format.getChannelCount(); in testPlayChannelIndexStreamBuffer()
2046 final long maxDuration = frameCount * 1000 / TEST_SR + 1000; in testPlayChannelIndexStreamBuffer()
2067 final int remainingTimeMs = (int)((double)(frameCount - position) in testPlayChannelIndexStreamBuffer()
2165 final int frameCount = in doTestTimestamp() local
[all …]
DVpxCodecTestBase.java200 int frameCount; field in VpxCodecTestBase.EncoderOutputStreamParameters
266 params.frameCount = encodeSeconds * frameRate; in getDefaultEncodingParameterList()
530 int frameCount = ivf.getFrameCount(); in decode() local
539 assertTrue(frameCount > 0); in decode()
588 if (inputFrameIndex == frameCount - 1) { in decode()
771 if (mStreamParams.frameCount == 0 in getInputFrame()
772 || (mStreamParams.frameCount > 0 in getInputFrame()
773 && mInputFrameIndex >= mStreamParams.frameCount)) { in getInputFrame()
1371 if (streamParams.frameCount > 0 && inputFrameIndex >= streamParams.frameCount) { in encode()
1377 if (streamParams.frameCount == 0) { in encode()
[all …]
DMediaSyncTest.java712 final int frameCount = APPLICATION_AUDIO_PERIOD_MS * sampleRateInHz / 1000; in getAudioTrack() local
717 * Math.max(minBufferSizeInBytes, frameCount * frameSizeInBytes); in getAudioTrack()
DVolumeShaperTest.java177 final int frameCount = AudioHelper.frameCountFromMsec(100 /*ms*/, format); in createSineAudioTrack() local
182 .setBufferSizeInBytes(frameCount * frameSize) in createSineAudioTrack()
186 final int sampleCount = frameCount * format.getChannelCount(); in createSineAudioTrack()
192 audioTrack.setLoopPoints(0, frameCount, -1 /* loopCount */); in createSineAudioTrack()
DMediaMuxerTest.java507 int frameCount = 0; in cloneMediaUsingMuxer() local
558 frameCount++; in cloneMediaUsingMuxer()
560 Log.d(TAG, "Frame (" + frameCount + ") " + in cloneMediaUsingMuxer()
DAudioRecordTest.java713 final int frameCount = AudioHelper.frameCountFromMsec(PLAYBACK_TIME_IN_MS, format); in testSynchronizedRecord() local
717 .setBufferSizeInBytes(frameCount * frameSize) in testSynchronizedRecord()
721 final int sampleCount = frameCount * format.getChannelCount(); in testSynchronizedRecord()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCamera2Focuser.java372 long frameCount = result.getFrameNumber(); in createCaptureListener() local
373 if (frameCount <= mLatestFrameCount) return; in createCaptureListener()
374 mLatestFrameCount = frameCount; in createCaptureListener()
/cts/hostsidetests/incident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/
DDrawFramesActivity.java146 public void drawFrames(final int frameCount) throws InterruptedException, TimeoutException { in drawFrames() argument
147 drawFrames(new int[frameCount]); in drawFrames()
/cts/tests/tests/media/libmediandkjni/
Dnative_media_utils.h152 int32_t frameCount() const { in frameCount() function
177 int32_t frameCount() const { in frameCount() function
Dnative_media_utils.cpp160 int32_t avgBitrate = stats.getBitrateAverage(0, config.frameCount() - 1); in checkOverallBitrate()
206 if (iInterval >= stats.frameCount()) { in checkIntraPeriod()
208 iInterval, stats.frameCount()); in checkIntraPeriod()
Dnative_media_encoder_jni.cpp170 int32_t encodedFrames = mStats.frameCount(); in validate()
171 int32_t inputFrames = mRunConfig->frameCount(); in validate()
210 int32_t framesToEncode = mRunConfig->frameCount(); in run()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1042 MediaCodec codec, ByteBuffer buffer, int index, int frameCount, int flags, int runId) { in queueInputBufferEncoder() argument
1045 Point origin = getOrigin(frameCount, runId); in queueInputBufferEncoder()
1079 long ptsUsec = computePresentationTime(frameCount); in queueInputBufferEncoder()
1082 if (VERBOSE && (frameCount == 0)) { in queueInputBufferEncoder()
1095 MediaCodec codec, Image image, int index, int frameCount, int flags, int runId) { in queueInputImageEncoder() argument
1099 Point origin = getOrigin(frameCount, runId); in queueInputImageEncoder()
1112 long ptsUsec = computePresentationTime(frameCount); in queueInputImageEncoder()
1115 if (VERBOSE && (frameCount == 0)) { in queueInputImageEncoder()
1303 private Point getOrigin(int frameCount, int runId) { in getOrigin() argument
1309 double x = (1 - Math.sin(frameCount / (7. + (runId % 2)))) * 0.1 + frameCount * 0.005; in getOrigin()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java189 private boolean waitWhilePumpingFrames(int frameCount, final View view, long timeout) in waitWhilePumpingFrames() argument
191 final CountDownLatch frameLatch = new CountDownLatch(frameCount); in waitWhilePumpingFrames()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DNativeAudioThread.java92 public native long slesInit(int samplingRate, int frameCount, int micSource, in slesInit() argument