Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/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 …]
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 …]
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 …]
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/media/src/android/media/cts/
DDecoderTest.java208 List<Long> timestamps = new ArrayList<Long>(); in testTimeStampOrdering() local
209 decodeToMemory(res, RESET_MODE_NONE, CONFIG_MODE_NONE, -1, timestamps); in testTimeStampOrdering()
211 for (int i = 0; i < timestamps.size(); i++) { in testTimeStampOrdering()
212 Long thisTime = timestamps.get(i); in testTimeStampOrdering()
1226 int eossample, List<Long> timestamps) throws IOException {
1229 return decodeToMemory(audioParams, testinput, resetMode, configMode, eossample, timestamps);
1233 int configMode, int eossample, List<Long> timestamps)
1351 if (timestamps != null) {
1352 timestamps.add(info.presentationTimeUs);
1375 if (timestamps != null) {
[all …]
/cts/tests/camera/src/android/hardware/cts/
DCameraGLTest.java560 long[] timestamps = new long[kLoopCount];
581 timestamps[i - kFirstTestedFrame] =
612 (timestamps[i] - timestamps[i-1]) / 1000000.f;
/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java663 ArgumentCaptor<Long> timestamps = ArgumentCaptor.forClass(Long.class); in verifyCaptureResults() local
670 timestamps.capture(), in verifyCaptureResults()
675 for (Long nextTimestamp : timestamps.getAllValues()) { in verifyCaptureResults()