Home
last modified time | relevance | path

Searched refs:NANOS_PER_MILLISECOND (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio.h21 #define NANOS_PER_MILLISECOND (NANOS_PER_MICROSECOND * 1000) macro
24 #define NANOS_PER_SECOND (NANOS_PER_MILLISECOND * MILLIS_PER_SECOND)
26 #define DEFAULT_STATE_TIMEOUT (1000 * NANOS_PER_MILLISECOND)
27 #define DEFAULT_READ_TIMEOUT (300 * NANOS_PER_MILLISECOND)
Dtest_aaudio.cpp38 static const int64_t MAX_LATENCY_RANGE = 200 * NANOS_PER_MILLISECOND;
39 static const int64_t MAX_LATENCY = 800 * NANOS_PER_MILLISECOND;
533 timeoutNanos = std::max(timeoutNanos, 400 * NANOS_PER_MILLISECOND); in TEST_P()
564 timeoutNanos = std::max(timeoutNanos, 400 * NANOS_PER_MILLISECOND); in TEST_P()
Dtest_aaudio_callback.cpp57 int32_t latencyMillis = (int32_t) ((latencyNanos + NANOS_PER_MILLISECOND - 1) in measureLatency()
58 / NANOS_PER_MILLISECOND); in measureLatency()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java72 private static final int NANOS_PER_MILLISECOND = 1000000; field in VerifyInputEventTest
320 assertEquals(keyEvent.getEventTime() * NANOS_PER_MILLISECOND, in compareKeys()
334 assertEquals(keyEvent.getDownTime() * NANOS_PER_MILLISECOND, in compareKeys()
345 assertEquals(motionEvent.getEventTime() * NANOS_PER_MILLISECOND, in compareMotions()
356 assertEquals(motionEvent.getDownTime() * NANOS_PER_MILLISECOND, in compareMotions()
/cts/tests/tests/media/common/src/android/media/cts/
DAudioHelper.java384 private static final long NANOS_PER_MILLISECOND = 1000000; field in AudioHelper.TimestampVerifier
385 private static final long NANOS_PER_SECOND = NANOS_PER_MILLISECOND * MILLIS_PER_SECOND;
433 * (1. / NANOS_PER_MILLISECOND); in add()
474 (int) ((getStartTimeNs() - trackStartTimeNs) / NANOS_PER_MILLISECOND); in verifyAndLog()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackSurroundTest.java68 private final static long NANOS_PER_MILLISECOND = 1000000L; field in AudioTrackSurroundTest
70 private final static long NANOS_PER_SECOND = NANOS_PER_MILLISECOND * MILLIS_PER_SECOND;
256 double measuredMillis = elapsedNanos / (double) NANOS_PER_MILLISECOND; in checkIndividualTimestamps()
DAudioTrackLatencyTest.java50 private final static long NANOS_PER_MILLISECOND = 1000000L; field in AudioTrackLatencyTest
52 private final static long NANOS_PER_SECOND = NANOS_PER_MILLISECOND * MILLIS_PER_SECOND;
398 int latencyMillis = (int) (latencyNanos / NANOS_PER_MILLISECOND); in checkOutputLowLatency()
DAudioRecordTest.java687 final int NANOS_PER_MILLISECOND = 1000000; in testTimestamp() local
689 final long RECORD_TIME_NS = RECORD_TIME_MS * NANOS_PER_MILLISECOND; in testTimestamp()