Home
last modified time | relevance | path

Searched refs:NANOS_PER_SECOND (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_session_id.cpp57 …SERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdNone()
117 buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdAllocate()
120 buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdAllocate()
146 buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdAllocate()
149 buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdAllocate()
Dtest_aaudio.h24 #define NANOS_PER_SECOND (NANOS_PER_MILLISECOND * MILLIS_PER_SECOND) macro
Dtest_aaudio.cpp142 const int64_t frameTimeDelta = (frameIndexDelta * NANOS_PER_SECOND) / actual().sampleRate; in getLatency()
152 int64_t minLatencyNanos = NANOS_PER_SECOND; in testTimestamp()
425 timeoutNanos = 100 * (NANOS_PER_SECOND * framesPerBurst() / in TEST_P()
530 timeoutNanos = timeoutBursts * (NANOS_PER_SECOND * framesPerBurst() / in TEST_P()
562 timeoutBursts * (NANOS_PER_SECOND * framesPerBurst() / actual().sampleRate); in TEST_P()
Dutils.cpp43 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec; in getNanoseconds()
Dtest_aaudio_callback.cpp54 int64_t calculatedDeltaNanos = deltaFrames * NANOS_PER_SECOND / sampleRate; in measureLatency()
/cts/tests/surfacecontrol/jni/
DChoreographerTestUtils.h46 #define NANOS_PER_SECOND 1000000000LL macro
53 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec; in systemTime()
/cts/tests/tests/media/common/src/android/media/cts/
DAudioHelper.java385 private static final long NANOS_PER_SECOND = NANOS_PER_MILLISECOND * MILLIS_PER_SECOND; field in AudioHelper.TimestampVerifier
416 return mLastTimeNs - ((mLastFrames - mStartFrames) * NANOS_PER_SECOND / mSampleRate); in getStartTimeNs()
431 final double deltaFramesNs = (double)deltaFrames * NANOS_PER_SECOND / mSampleRate; in add()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackSurroundTest.java70 private final static long NANOS_PER_SECOND = NANOS_PER_MILLISECOND * MILLIS_PER_SECOND; field in AudioTrackSurroundTest
305 double measuredRate = elapsedFrames * (double) NANOS_PER_SECOND / elapsedNanos; in calculateSampleRate()
DAudioTrackLatencyTest.java52 private final static long NANOS_PER_SECOND = NANOS_PER_MILLISECOND * MILLIS_PER_SECOND; field in AudioTrackLatencyTest
395 long timeDelta = framesPending * NANOS_PER_SECOND / track.getSampleRate(); in checkOutputLowLatency()
DAudioRecordTest.java1596 final long NANOS_PER_SECOND = 1000000000; in verifyContinuousTimestamps() local
1597 final long timeByFrames = frameDiff * NANOS_PER_SECOND / sampleRate; in verifyContinuousTimestamps()