/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | TestSensorEvent.java | 31 public final long timestamp; field in TestSensorEvent 56 timestamp = event.timestamp; in TestSensorEvent() 65 public TestSensorEvent(Sensor sensor, long timestamp, int accuracy, float[] values) { in TestSensorEvent() argument 66 this(sensor, timestamp, timestamp, accuracy, values); in TestSensorEvent() 72 public TestSensorEvent(Sensor sensor, long timestamp, long receivedTimestamp, int accuracy, in TestSensorEvent() argument 75 this.timestamp = timestamp; in TestSensorEvent() 85 this.timestamp, in toString()
|
D | SensorCalibratedUncalibratedVerifier.java | 83 long calibratedTimestampNs = calibratedEvent.timestamp; in verifyMeasurements() 88 long uncalibratedTimestampNs = uncalibratedEvent.timestamp; in verifyMeasurements()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/PoseProvider/ |
D | PoseData.java | 35 public double timestamp = 0; field in PoseData 59 public PoseData(float[] sixDoFSensorValues, long timestamp){ in PoseData() argument 60 this.timestamp = timestamp; in PoseData() 70 public PoseData(float[] translation, float[] rotation, long timestamp){ in PoseData() argument 71 this.timestamp = timestamp; in PoseData()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | InitialValueVerificationTest.java | 82 for (long timestamp = 0L; timestamp <= INITIAL_WINDOW_LENGTH; timestamp += SENSOR_PERIOD) { in verifyStatsWithTwoWindows() 84 events.add(new TestSensorEvent(null /* sensor */, timestamp, 0 /* accuracy */, in verifyStatsWithTwoWindows() 88 for (long timestamp = INITIAL_WINDOW_LENGTH in verifyStatsWithTwoWindows() 89 + SENSOR_PERIOD; timestamp <= TOTAL_WINDOW_LENGTH; timestamp += SENSOR_PERIOD) { in verifyStatsWithTwoWindows() 91 events.add(new TestSensorEvent(null /* sensor */, timestamp, 0 /* accuracy */, in verifyStatsWithTwoWindows()
|
D | FrequencyVerification.java | 173 mMinTimestamp = event.timestamp; in addSensorEventInternal() 174 mMaxTimestamp = event.timestamp; in addSensorEventInternal() 176 if (mMinTimestamp > event.timestamp) { in addSensorEventInternal() 177 mMinTimestamp = event.timestamp; in addSensorEventInternal() 179 if (mMaxTimestamp < event.timestamp) { in addSensorEventInternal() 180 mMaxTimestamp = event.timestamp; in addSensorEventInternal()
|
D | EventOrderingVerification.java | 86 info.index, nanosToMillis(info.previousEvent.timestamp), in verify() 87 nanosToMillis(info.event.timestamp))); in verify() 114 mMaxTimestamp = event.timestamp; in addSensorEventInternal() 116 if (event.timestamp <= mMaxTimestamp) { in addSensorEventInternal() 119 mMaxTimestamp = event.timestamp; in addSensorEventInternal()
|
D | JitterVerificationTest.java | 56 long timestamp = 0; in testVerify() local 58 timestamps[i] = timestamp; in testVerify() 59 timestamp += (i % 10 == 0) ? 500000 : 1000000; in testVerify() 104 for (long timestamp : timestamps) { in getVerification() 105 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
|
D | EventGapVerification.java | 91 nanosToMillis(info.event.timestamp - info.previousEvent.timestamp))); in verify() 117 long deltaNs = event.timestamp - mPreviousEvent.timestamp; in addSensorEventInternal()
|
D | EventGapVerificationTest.java | 98 for (long timestamp : timestamps) { in getVerification() 99 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackSurroundTest.java | 217 static String timestampToString(AudioTimestamp timestamp) { in timestampToString() argument 218 if (timestamp == null) in timestampToString() 220 return "(pos = " + timestamp.framePosition + ", nanos = " + timestamp.nanoTime + ")"; in timestampToString() 225 AudioTimestamp timestamp = new AudioTimestamp(); in addTimestamp() local 226 boolean gotTimestamp = track.getTimestamp(timestamp); in addTimestamp() 230 && timestamp.framePosition > 0 in addTimestamp() 231 && timestamp.nanoTime != mPreviousTimestamp.nanoTime in addTimestamp() 232 && timestamp.framePosition != mPreviousTimestamp.framePosition) { in addTimestamp() 233 mTimestamps.add(timestamp); in addTimestamp() 235 mPreviousTimestamp = timestamp; in addTimestamp() [all …]
|
D | MediaTimestampTest.java | 28 MediaTimestamp timestamp = new MediaTimestamp(1000, 2000, 2.0f); in testMediaTimestamp() local 29 assertEquals(1000, timestamp.getAnchorMediaTimeUs()); in testMediaTimestamp() 30 assertEquals(2000, timestamp.getAnchorSystemNanoTime()); in testMediaTimestamp() 31 assertEquals(2.0f, timestamp.getMediaClockRate()); in testMediaTimestamp()
|
/cts/tests/tests/midi/src/android/midi/cts/ |
D | MidiEchoTest.java | 75 public final long timestamp; field in MidiEchoTest.MidiMessage 78 MidiMessage(byte[] buffer, int offset, int length, long timestamp) { in MidiMessage() argument 82 this.timestamp = timestamp; in MidiMessage() 115 long timestamp) { in onSend() argument 116 messages.add(new MidiMessage(data, offset, count, timestamp)); in onSend() 326 long timestamp = 0x0123765489ABFEDCL; in testEchoSmallMessage() local 328 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in testEchoSmallMessage() 329 mc.echoInputPort.send(buffer, 0, buffer.length, timestamp); in testEchoSmallMessage() 330 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in testEchoSmallMessage() 343 assertEquals("timestamp in message", timestamp, message.timestamp); in testEchoSmallMessage() [all …]
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiEchoTest.java | 107 private void compareMessages(byte[] buffer, long timestamp, NativeMidiMessage nativeMsg) { in compareMessages() argument 109 Assert.assertEquals("timestamp in message", timestamp, nativeMsg.timestamp); in compareMessages() 273 long timestamp = 0x0123765489ABFEDCL; in test_B_SendData() local 288 long timestamp = 0x0123765489ABFEDCL; in test_C_EchoSmallMessage() local 290 writeMidiWithTimestamp(mTestContext, buffer, 0, 0, timestamp); // should be a NOOP in test_C_EchoSmallMessage() 291 writeMidiWithTimestamp(mTestContext, buffer, 0, buffer.length, timestamp); in test_C_EchoSmallMessage() 292 writeMidiWithTimestamp(mTestContext, buffer, 0, 0, timestamp); // should be a NOOP in test_C_EchoSmallMessage() 302 compareMessages(buffer, timestamp, message); in test_C_EchoSmallMessage() 413 long elapsedNanos = message.timeReceived - message.timestamp; in test_G_NativeEchoTime() 419 "timestamp:" + message.timestamp + in test_G_NativeEchoTime() [all …]
|
D | NativeMidiMessage.java | 27 public long timestamp; field in NativeMidiMessage 41 sb.append("] timestamp:" + Long.toHexString(timestamp)); in toString()
|
/cts/tests/tests/nativemidi/jni/ |
D | native-lib.cpp | 46 int64_t timestamp; member 56 int64_t timestamp; member 208 env->SetLongField(msg, mFid_timestamp, receiveRec.timestamp); in transferReceiveMsgAt() 235 if (mReceivedMsgs[msgIndex].timestamp != mSentMsgs[msgIndex].timestamp) { in compareInsAndOuts() 268 long timeDelta = mSentMsgs[msgIndex].timeSent - mReceivedMsgs[msgIndex].timestamp; in checkInOutLatency() 314 int64_t timestamp; in readThreadRoutine() local 321 inDataBuffer, sizeof(inDataBuffer), &numDataBytes, ×tamp); in readThreadRoutine() 332 receiveRec.timestamp = timestamp; in readThreadRoutine() 406 jlong ctx, jbyteArray data, jint offset, jint numBytes, jlong timestamp) { in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp() argument 418 context->midiInputPort, (uint8_t*)bufferPtr + offset, numBytes, timestamp); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ClipDescriptionTest.java | 69 final long timestamp = clipboardManager.getPrimaryClipDescription().getTimestamp(); in testGetTimestamp() local 70 if (timestamp < timestampBeforeSet || timestamp > timestampAfterSet) { in testGetTimestamp() 74 + "actual timestamp: " + logTime(timestamp) + "\n" in testGetTimestamp()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ScanResultTest.java | 180 long timestamp = 0; in testScanResultTimeStamp() local 188 timestamp = result.timestamp; in testScanResultTimeStamp() 189 assertTrue(timestamp != 0); in testScanResultTimeStamp() 198 long timeDiff = (result.timestamp - timestamp) / 1000; in testScanResultTimeStamp()
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_lens_movement_reporting.py | 70 timestamp = cap['metadata']['android.sensor.timestamp'] 72 timestamp_init = timestamp 73 timestamp -= timestamp_init 74 timestamp *= 1E-6 75 data['timestamp'] = timestamp
|
D | test_lens_position.py | 93 timestamp = cap['metadata']['android.sensor.timestamp'] * 1E-6 95 timestamp_init = timestamp 96 timestamp -= timestamp_init 97 data['timestamp'] = timestamp
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | StepCounterTestActivity.java | 237 counterEvent.timestamp); in verifyStepCounterMeasurements() 245 counterEvent.timestamp, in verifyStepCounterMeasurements() 269 counterEvent.timestamp, in verifyStepCounterMeasurements() 337 private void logUserReportedStep(long timestamp) throws InterruptedException { in logUserReportedStep() argument 342 mTimestampsUserReported.add(timestamp); in logUserReportedStep() 343 getTestLogger().logMessage(R.string.snsr_step_reported, timestamp); in logUserReportedStep()
|
D | SensorSynchronizationTestActivity.java | 81 accMovementTimestamp = event.timestamp; in analyzeData() 89 magMovementTimestamp = event.timestamp; in analyzeData() 97 gyrMovementTimestamp = event.timestamp; in analyzeData()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraSessionUtils.java | 127 long timestamp, long frameNumber) { in onCaptureStarted() argument 128 mCaptureTimeQueue.offer(timestamp); in onCaptureStarted() 129 super.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DeletedContactUtil.java | 80 long timestamp) { in querySinceTimestamp() argument 82 String[] args = new String[] {timestamp + ""}; in querySinceTimestamp()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8434/ |
D | poc.c | 72 unsigned int timestamp; /* Timestamp to trigger event on */ member 139 g_event.timestamp = 0; in main()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FastBasicsTest.java | 98 Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera() local 99 assertNotNull("Can't read a capture result timestamp", timestamp); in camera2TestByCamera() 106 assertTrue("Bad timestamps", timestamp2 > timestamp); in camera2TestByCamera()
|