Home
last modified time | relevance | path

Searched refs:timestamps (Results 1 – 14 of 14) sorted by relevance

/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DTimestampClockSourceVerificationTest.java73 long[] timestamps = {ts-4000000, ts-3000000, ts-2000000, ts-1000000, ts}; in testVerify_pass() local
75 runVerification(MIN_DELTA_BETWEEN_CLOCKS_MS*1000, timestamps, true, new int[]{}); in testVerify_pass()
88 long[] timestamps = {ts-4000000, ts-3000000, ts-2000000, ts-1000000, ts}; in testVerify_fail() local
90 … runVerification(MIN_DELTA_BETWEEN_CLOCKS_MS*1000, timestamps, false, new int[]{0,1,2,3,4}); in testVerify_fail()
102 long[] timestamps = {ts-3900000, ts-2950000, ts-2050000, ts-1000000, ts-50000}; in testVerify_jitter_pass() local
104 runVerification(MIN_DELTA_BETWEEN_CLOCKS_MS*1000, timestamps, true, new int[]{}); in testVerify_jitter_pass()
116 long[] timestamps = {ts-3900000, ts-2950000, ts-2050000, ts-1000000, ts-50000}; in testVerify_jitter_fail() local
118 … runVerification(MIN_DELTA_BETWEEN_CLOCKS_MS*1000, timestamps, false, new int[]{0,1,2,3,4}); in testVerify_jitter_fail()
130 long[] timestamps = {ts-4000000, ts-3000000, ts-1000000, ts}; in testVerify_missing_events_pass() local
132 runVerification(MIN_DELTA_BETWEEN_CLOCKS_MS*1000, timestamps, true, new int[]{}); in testVerify_missing_events_pass()
[all …]
DJitterVerificationTest.java46 long[] timestamps = new long[SAMPLE_SIZE]; in testVerify() local
48 timestamps[i] = i * 100000; in testVerify()
51 ISensorVerification verification = getVerification(1, timestamps); in testVerify()
58 timestamps[i] = timestamp; in testVerify()
62 verification = getVerification(1, timestamps); in testVerify()
74 long[] timestamps = new long[]{0, 1, 2, 3, 4}; in testCalculateDelta() local
75 JitterVerification verification = getVerification(1, timestamps); in testCalculateDelta()
83 timestamps = new long[]{0, 0, 2, 4, 4}; in testCalculateDelta()
84 verification = getVerification(1, timestamps); in testCalculateDelta()
92 timestamps = new long[]{0, 1, 4, 9, 16}; in testCalculateDelta()
[all …]
DEventGapVerificationTest.java46 long[] timestamps = {1000000, 2000000, 3000000, 4000000, 5000000}; in testVerify_correct() local
47 runVerification(1000, timestamps, true, new int[]{}); in testVerify_correct()
55 long[] timestamps = {1100000, 2050000, 2990000, 4000000, 4950000}; in testVerify_jitter() local
56 runVerification(1000, timestamps, true, new int[]{}); in testVerify_jitter()
64 long[] timestamps = {1000000, 2000000, 3000000, 5000000, 6000000}; in testVerify_missing_events() local
65 runVerification(1000, timestamps, true, new int[]{3}); in testVerify_missing_events()
68 private void runVerification(int expected, long[] timestamps, boolean pass, in runVerification() argument
71 ISensorVerification verification = getVerification(expected, timestamps); in runVerification()
96 private static EventGapVerification getVerification(int expected, long ... timestamps) { in getVerification() argument
97 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification()
[all …]
DFrequencyVerificationTest.java37 long[] timestamps = {0, 1000000, 2000000, 3000000, 4000000}; // 1000Hz in testVerifification() local
40 ISensorVerification verification = getVerification(999.0, 1001.0, timestamps); in testVerifification()
45 verification = getVerification(850.0, 1050.0, timestamps); in testVerifification()
50 verification = getVerification(950.0, 1150.0, timestamps); in testVerifification()
55 verification = getVerification(850.0, 975.0, timestamps); in testVerifification()
65 verification = getVerification(1025.0, 1150.0, timestamps); in testVerifification()
82 long ... timestamps) { in getVerification() argument
83 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification()
84 for (long timestamp : timestamps) { in getVerification()
DEventOrderingVerificationTest.java90 private static EventOrderingVerification getVerification(long ... timestamps) { in getVerification() argument
91 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification()
92 for (long timestamp : timestamps) { in getVerification()
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiEchoTest.java97 private void generateRandomBufers(byte[][] buffers, long timestamps[], int numMessages) { in generateRandomBufers() argument
103 timestamps[buffIndex] = mRandom.nextLong(); in generateRandomBufers()
312 long timestamps[] = new long[numMessages]; in test_D_EchoNMessages() local
313 generateRandomBufers(buffers, timestamps, numMessages); in test_D_EchoNMessages()
317 timestamps[msgIndex]); in test_D_EchoNMessages()
331 compareMessages(buffers[msgIndex], timestamps[msgIndex], message); in test_D_EchoNMessages()
342 long timestamps[] = new long[numMessages]; in test_E_FlushMessages() local
343 generateRandomBufers(buffers, timestamps, numMessages); in test_E_FlushMessages()
347 timestamps[msgIndex]); in test_E_FlushMessages()
364 compareMessages(buffers[msgIndex], timestamps[msgIndex], message); in test_E_FlushMessages()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DDecoderTestAacDrc.java398 int eossample, List<Long> timestamps, DrcParams drcParams, String decoderName) in decodeToMemory() argument
502 if (timestamps != null) { in decodeToMemory()
503 timestamps.add(info.presentationTimeUs); in decodeToMemory()
DDecoderTest.java323 List<Long> timestamps = new ArrayList<Long>(); in testTimeStampOrdering() local
324 decodeToMemory(res, RESET_MODE_NONE, CONFIG_MODE_NONE, -1, timestamps); in testTimeStampOrdering()
326 for (int i = 0; i < timestamps.size(); i++) { in testTimeStampOrdering()
327 Long thisTime = timestamps.get(i); in testTimeStampOrdering()
1652 int eossample, List<Long> timestamps) throws IOException {
1655 return decodeToMemory(audioParams, testinput, resetMode, configMode, eossample, timestamps);
1659 int configMode, int eossample, List<Long> timestamps)
1777 if (timestamps != null) {
1778 timestamps.add(info.presentationTimeUs);
1801 if (timestamps != null) {
[all …]
DDecoderTestXheAac.java816 int eossample, List<Long> timestamps, DrcParams drcParams, String decoderName)
934 if (timestamps != null) {
935 timestamps.add(info.presentationTimeUs);
DMediaPlayerTest.java1391 final BlockingDeque<MediaTimestamp> timestamps = new LinkedBlockingDeque<>(); in testMediaTimeDiscontinuity() local
1397 timestamps.add(timestamp); in testMediaTimeDiscontinuity()
1408 } while (timestamps.getLast().getMediaClockRate() != 1.0f); in testMediaTimeDiscontinuity()
1417 } while (timestamps.getLast().getMediaClockRate() != 1.0f); in testMediaTimeDiscontinuity()
1424 } while (timestamps.getLast().getMediaClockRate() != 0.5f); in testMediaTimeDiscontinuity()
1431 } while (timestamps.getLast().getMediaClockRate() != 0.0f); in testMediaTimeDiscontinuity()
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java1862 ArrayList<Long> timestamps = new ArrayList<Long>(expectedFrameCount); in validateRecording()
1864 timestamps.add(extractor.getSampleTime()); in validateRecording()
1869 Collections.sort(timestamps); in validateRecording()
1870 long prevSampleUs = timestamps.get(0); in validateRecording()
1871 for (int i = 1; i < timestamps.size(); i++) { in validateRecording()
1872 long currentSampleUs = timestamps.get(i); in validateRecording()
1882 float frameDropRate = 100.f * frameDropCount / timestamps.size(); in validateRecording()
1884 frameDropCount, timestamps.size(), frameDropRate)); in validateRecording()
1891 expectedFrameDurationMinMs, frameDropCount, timestamps.size()), in validateRecording()
DSurfaceViewPreviewTest.java915 ArgumentCaptor<Long> timestamps = ArgumentCaptor.forClass(Long.class); in verifyCaptureResults() local
922 timestamps.capture(), in verifyCaptureResults()
927 for (Long nextTimestamp : timestamps.getAllValues()) { in verifyCaptureResults()
/cts/tests/camera/src/android/hardware/cts/
DCameraGLTest.java574 long[] timestamps = new long[kLoopCount];
595 timestamps[i - kFirstTestedFrame] =
632 (timestamps[i] - timestamps[i-1]) / 1000000.f;
/cts/hostsidetests/hdmicec/
Dcec_adapter.md54 ## Add timestamps
56 Use the `ts` command to add timestamps.