/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | TimestampClockSourceVerificationTest.java | 73 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 …]
|
D | EventGapVerificationTest.java | 46 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 …]
|
D | JitterVerificationTest.java | 46 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 …]
|
D | FrequencyVerificationTest.java | 37 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()
|
D | EventOrderingVerificationTest.java | 90 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/camera/src/android/hardware/camera2/cts/ |
D | ReadoutTimestampTest.java | 154 ReadoutCaptureCallback.TimestampTuple[] timestamps = resultListener.getTimestamps(); in testReadoutTimestamp() local 156 timestamps); in testReadoutTimestamp() 160 + timestamps.length, timestamps.length >= 2 * NUM_CAPTURE); in testReadoutTimestamp() 165 timestamps[i * 2].mType == ReadoutCaptureCallback.CAPTURE_TIMESTAMP); in testReadoutTimestamp() 168 timestamps[i * 2 + 1].mType == ReadoutCaptureCallback.READOUT_TIMESTAMP); in testReadoutTimestamp() 181 + " readoutTimestamp (" + timestamps[i * 2 + 1].mTimestamp in testReadoutTimestamp() 183 imageTime, timestamps[i * 2 + 1].mTimestamp); in testReadoutTimestamp() 198 + ": readoutTime (" + timestamps[i * 2 + 1].mTimestamp in testReadoutTimestamp() 199 + ") - captureStart time (" + timestamps[i * 2].mTimestamp in testReadoutTimestamp() 201 timestamps[i * 2 + 1].mTimestamp > timestamps[i * 2].mTimestamp); in testReadoutTimestamp() [all …]
|
D | RecordingTest.java | 2561 ArrayList<Long> timestamps = new ArrayList<Long>(expectedFrameCount); in validateRecording() 2563 timestamps.add(extractor.getSampleTime()); in validateRecording() 2568 Collections.sort(timestamps); in validateRecording() 2569 long prevSampleUs = timestamps.get(0); in validateRecording() 2570 for (int i = 1; i < timestamps.size(); i++) { in validateRecording() 2571 long currentSampleUs = timestamps.get(i); in validateRecording() 2581 float frameDropRate = 100.f * frameDropCount / timestamps.size(); in validateRecording() 2583 frameDropCount, timestamps.size(), frameDropRate)); in validateRecording() 2590 expectedFrameDurationMinMs, frameDropCount, timestamps.size()), in validateRecording()
|
D | SurfaceViewPreviewTest.java | 875 ArgumentCaptor<Long> timestamps = ArgumentCaptor.forClass(Long.class); in verifyCaptureResults() local 882 timestamps.capture(), in verifyCaptureResults() 887 for (Long nextTimestamp : timestamps.getAllValues()) { in verifyCaptureResults()
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiEchoTest.java | 96 private void generateRandomBufers(byte[][] buffers, long timestamps[], int numMessages) { in generateRandomBufers() argument 102 timestamps[buffIndex] = Math.abs(mRandom.nextLong()); in generateRandomBufers() 311 long timestamps[] = new long[numMessages]; in test_D_EchoNMessages() local 312 generateRandomBufers(buffers, timestamps, numMessages); in test_D_EchoNMessages() 316 timestamps[msgIndex]); in test_D_EchoNMessages() 330 compareMessages(buffers[msgIndex], timestamps[msgIndex], message); in test_D_EchoNMessages() 341 long timestamps[] = new long[numMessages]; in test_E_FlushMessages() local 342 generateRandomBufers(buffers, timestamps, numMessages); in test_E_FlushMessages() 346 timestamps[msgIndex]); in test_E_FlushMessages() 363 compareMessages(buffers[msgIndex], timestamps[msgIndex], message); in test_E_FlushMessages() [all …]
|
/cts/tests/app/AppStartTest/src/android/app/cts/ |
D | ActivityManagerAppStartInfoTest.java | 325 Map<Integer, Long> timestamps = info.getStartupTimestamps(); in testAddingTimestamps() local 326 long timestampFirstFromInfo = timestamps.get(FIRST_TIMESTAMP_KEY); in testAddingTimestamps() 327 long timestampLastFromInfo = timestamps.get(LAST_TIMESTAMP_KEY); in testAddingTimestamps() 508 Map<Integer, Long> timestamps = info.getStartupTimestamps(); in verify() local 510 Long launchTimestamp = timestamps.get(ApplicationStartInfo.START_TIMESTAMP_LAUNCH); in verify() 516 Long launchTimestamp = timestamps.get(ApplicationStartInfo.START_TIMESTAMP_LAUNCH); in verify() 520 Long bindApplicationTimestamp = timestamps.get( in verify()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecoderTestAacDrc.java | 537 List<Long> timestamps, DrcParams drcParams, String decoderName, boolean runtimeChange, in decodeToMemory() argument 668 if (timestamps != null) { in decodeToMemory() 669 timestamps.add(info.presentationTimeUs); in decodeToMemory() 743 int eossample, List<Long> timestamps, DrcParams drcParams, String decoderName) in decodeToMemory() argument 746 final short[] decoded = decodeToMemory(audioParams, testinput, eossample, timestamps, in decodeToMemory() 752 int eossample, List<Long> timestamps, DrcParams drcParams, String decoderName, in decodeToMemory() argument 756 final short[] decoded = decodeToMemory(audioParams, testinput, eossample, timestamps, in decodeToMemory()
|
D | DecoderTestXheAac.java | 1263 List<Long> timestamps, DrcParams drcParams, String decoderName, boolean runtimeChange, 1438 if (timestamps != null) { 1439 timestamps.add(info.presentationTimeUs); 1526 int eossample, List<Long> timestamps, DrcParams drcParams, String decoderName) 1529 final short[] decoded = decodeToMemory(audioParams, testinput, eossample, timestamps, 1535 int eossample, List<Long> timestamps, DrcParams drcParams, String decoderName, 1539 final short[] decoded = decodeToMemory(audioParams, testinput, eossample, timestamps, 1545 int eossample, List<Long> timestamps, DrcParams drcParams, String decoderName, 1549 short [] decoded = decodeToMemory(audioParams, testinput, eossample, timestamps, drcParams,
|
D | DecoderTest.java | 455 List<Long> timestamps = new ArrayList<Long>(); in testTimeStampOrdering() local 456 decodeToMemory(codecName, res, RESET_MODE_NONE, CONFIG_MODE_NONE, -1, timestamps); in testTimeStampOrdering() 458 for (int i = 0; i < timestamps.size(); i++) { in testTimeStampOrdering() 459 Long thisTime = timestamps.get(i); in testTimeStampOrdering() 1682 int configMode, int eossample, List<Long> timestamps) throws IOException { 1686 resetMode, configMode, eossample, timestamps); 1691 List<Long> timestamps) throws IOException { 1803 if (timestamps != null) { 1804 timestamps.add(info.presentationTimeUs); 1827 if (timestamps != null) { [all …]
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | MediaCodecTunneledPlayer.java | 653 ImmutableList<Long> timestamps = state.getRenderedVideoFrameSystemTimeList(); in getRenderedVideoFrameSystemTimeList() local 654 if (!timestamps.isEmpty()) in getRenderedVideoFrameSystemTimeList() 655 return timestamps; in getRenderedVideoFrameSystemTimeList()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraGLTest.java | 590 long[] timestamps = new long[kLoopCount]; 611 timestamps[i - kFirstTestedFrame] = 648 (timestamps[i] - timestamps[i-1]) / 1000000.f;
|
/cts/hostsidetests/hdmicec/ |
D | cec_adapter.md | 54 ## Add timestamps 56 Use the `ts` command to add timestamps.
|
/cts/tests/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerTest.java | 1531 final BlockingDeque<MediaTimestamp> timestamps = new LinkedBlockingDeque<>(); in testMediaTimeDiscontinuity() local 1535 timestamps.add(timestamp); in testMediaTimeDiscontinuity() 1545 } while (timestamps.getLast().getMediaClockRate() != 1.0f); in testMediaTimeDiscontinuity() 1554 } while (timestamps.getLast().getMediaClockRate() != 1.0f); in testMediaTimeDiscontinuity() 1561 } while (timestamps.getLast().getMediaClockRate() != 0.5f); in testMediaTimeDiscontinuity() 1568 } while (timestamps.getLast().getMediaClockRate() != 0.0f); in testMediaTimeDiscontinuity()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1263 List<Long> timestamps = new ArrayList<Long>(); in getCaptureStartTimestamps() local 1265 while (timestamps.size() < count) { in getCaptureStartTimestamps() 1271 timestamps.add(captureStart.second); in getCaptureStartTimestamps() 1273 return timestamps; in getCaptureStartTimestamps() 1286 List<Long> timestamps = new ArrayList<Long>(); in getReadoutStartTimestamps() local 1288 while (timestamps.size() < count) { in getReadoutStartTimestamps() 1294 timestamps.add(readoutStart.second); in getReadoutStartTimestamps() 1296 return timestamps; in getReadoutStartTimestamps()
|