Home
last modified time | relevance | path

Searched refs:timestamp (Results 1 – 25 of 63) sorted by relevance

123

/cts/tests/sensor/src/android/hardware/cts/helpers/
DTestSensorEvent.java31 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()
DSensorCalibratedUncalibratedVerifier.java83 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/
DPoseData.java35 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/tests/content/src/android/content/cts/
DClipDescriptionTest.java50 final long timestamp = clipboardManager.getPrimaryClipDescription().getTimestamp(); in testGetTimestamp() local
51 if (timestamp < timestampBeforeSet || timestamp > timestampAfterSet) { in testGetTimestamp()
55 + "actual timestamp: " + logTime(timestamp) + "\n" in testGetTimestamp()
/cts/tests/tests/midi/src/android/midi/cts/
DMidiEchoTest.java71 public final long timestamp; field in MidiEchoTest.MidiMessage
74 MidiMessage(byte[] buffer, int offset, int length, long timestamp) { in MidiMessage() argument
78 this.timestamp = timestamp; in MidiMessage()
111 long timestamp) { in onSend() argument
112 messages.add(new MidiMessage(data, offset, count, timestamp)); in onSend()
343 long timestamp = 0x0123765489ABFEDCL; in testEchoSmallMessage() local
345 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in testEchoSmallMessage()
346 mc.echoInputPort.send(buffer, 0, buffer.length, timestamp); in testEchoSmallMessage()
347 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in testEchoSmallMessage()
360 assertEquals("timestamp in message", timestamp, message.timestamp); in testEchoSmallMessage()
[all …]
DMidiEchoTestService.java66 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
72 mOutputReceiver.send(data, offset, count, timestamp); in onSend()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackSurroundTest.java214 static String timestampToString(AudioTimestamp timestamp) { in timestampToString() argument
215 if (timestamp == null) in timestampToString()
217 return "(pos = " + timestamp.framePosition + ", nanos = " + timestamp.nanoTime + ")"; in timestampToString()
222 AudioTimestamp timestamp = new AudioTimestamp(); in addTimestamp() local
223 boolean gotTimestamp = track.getTimestamp(timestamp); in addTimestamp()
227 && timestamp.framePosition > 0 in addTimestamp()
228 && (timestamp.nanoTime != mPreviousTimestamp.nanoTime in addTimestamp()
229 || timestamp.framePosition != mPreviousTimestamp.framePosition)) { in addTimestamp()
230 mTimestamps.add(timestamp); in addTimestamp()
232 mPreviousTimestamp = timestamp; in addTimestamp()
[all …]
DIvfWriter.java144 private static byte[] makeIvfFrameHeader(int size, long timestamp){ in makeIvfFrameHeader() argument
147 lay64bits(frameHeader, 4, timestamp); in makeIvfFrameHeader()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventOrderingVerification.java86 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()
DFrequencyVerification.java173 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()
DJitterVerificationTest.java56 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()
DEventGapVerification.java91 nanosToMillis(info.event.timestamp - info.previousEvent.timestamp))); in verify()
117 long deltaNs = event.timestamp - mPreviousEvent.timestamp; in addSensorEventInternal()
DEventGapVerificationTest.java98 for (long timestamp : timestamps) { in getVerification()
99 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
DFrequencyVerificationTest.java84 for (long timestamp : timestamps) { in getVerification()
85 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
DEventOrderingVerificationTest.java92 for (long timestamp : timestamps) { in getVerification()
93 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification()
/cts/tests/tests/net/src/android/net/wifi/cts/
DScanResultTest.java157 long timestamp = 0; in testScanResultTimeStamp() local
168 timestamp = result.timestamp; in testScanResultTimeStamp()
169 assertTrue(timestamp != 0); in testScanResultTimeStamp()
180 long timeDiff = (result.timestamp - timestamp) / 1000; in testScanResultTimeStamp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationVerifier.java85 long timestamp = location.getTime(); in onLocationChanged() local
86 long delta = timestamp - mLastActiveTimestamp; in onLocationChanged()
87 mLastActiveTimestamp = timestamp; in onLocationChanged()
172 long timestamp = location.getTime(); in onLocationChanged() local
173 long delta = timestamp - mLastPassiveTimestamp; in onLocationChanged()
174 mLastPassiveTimestamp = timestamp; in onLocationChanged()
/cts/apps/CameraITS/tests/scene3/
Dtest_lens_movement_reporting.py85 timestamp = cap['metadata']['android.sensor.timestamp']
87 timestamp_init = timestamp
88 timestamp -= timestamp_init
89 timestamp *= 1E-6
90 data['timestamp'] = timestamp
Dtest_lens_position.py110 timestamp = cap['metadata']['android.sensor.timestamp'] * 1E-6
112 timestamp_init = timestamp
113 timestamp -= timestamp_init
114 data['timestamp'] = timestamp
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DStepCounterTestActivity.java237 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()
DSensorSynchronizationTestActivity.java81 accMovementTimestamp = event.timestamp; in analyzeData()
89 magMovementTimestamp = event.timestamp; in analyzeData()
97 gyrMovementTimestamp = event.timestamp; in analyzeData()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDeletedContactUtil.java80 long timestamp) { in querySinceTimestamp() argument
82 String[] args = new String[] {timestamp + ""}; in querySinceTimestamp()
/cts/hostsidetests/security/securityPatch/CVE-2016-8434/
Dpoc.c72 unsigned int timestamp; /* Timestamp to trigger event on */ member
139 g_event.timestamp = 0; in main()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraSessionUtils.java127 long timestamp, long frameNumber) { in onCaptureStarted() argument
128 mCaptureTimeQueue.offer(timestamp); in onCaptureStarted()
129 super.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted()
/cts/tests/camera/src/android/hardware/camera2/cts/
DFastBasicsTest.java95 Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera() local
96 assertNotNull("Can't read a capture result timestamp", timestamp); in camera2TestByCamera()
103 assertTrue("Bad timestamps", timestamp2 > timestamp); in camera2TestByCamera()

123