Home
last modified time | relevance | path

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

12345

/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()
DSensorRatePermissionEventConnectionTestHelper.java62 .filter(event -> event.timestamp > startTimestamp && event.timestamp < endTimestamp) in computeAvgRate()
68 long lastTimestamp = filteredEvents.get(numOfEvents - 1).timestamp; in computeAvgRate()
69 long firstTimestamp = filteredEvents.get(0).timestamp; in computeAvgRate()
/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/media/misc/src/android/media/misc/cts/
DMediaTimestampTest.java32 MediaTimestamp timestamp = new MediaTimestamp(1000, 2000, 2.0f); in testMediaTimestamp() local
33 assertEquals(1000, timestamp.getAnchorMediaTimeUs()); in testMediaTimestamp()
34 assertEquals(2000, timestamp.getAnchorSystemNanoTime()); in testMediaTimestamp()
35 assertEquals(2.0f, timestamp.getMediaClockRate()); in testMediaTimestamp()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DInitialValueVerificationTest.java82 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()
DHingeAngleVerification.java59 " time=%s, value=%s", event.timestamp, event.values[0], lastEvent.timestamp, in verify()
67 " range=%s", event.timestamp, event.values[0], maxRange); in verify()
74 event.timestamp, event.values[0]); in verify()
84 " resolution=%s %s", event.timestamp, event.values[0], resolution, in verify()
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()
/cts/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/
DMidiTestHelper.java65 public final long timestamp; field in MidiTestHelper.MidiMessage
68 MidiMessage(byte[] buffer, int offset, int length, long timestamp) { in MidiMessage() argument
72 this.timestamp = timestamp; in MidiMessage()
106 long timestamp) { in onSend() argument
107 mMessages.add(new MidiMessage(data, offset, count, timestamp)); in onSend()
267 long timestamp = 0x0123765489ABFEDCL; in testEchoVariableMessage() local
269 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in testEchoVariableMessage()
270 mc.echoInputPort.send(buffer, 0, buffer.length, timestamp); in testEchoVariableMessage()
271 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in testEchoVariableMessage()
288 assertEquals("timestamp in message", timestamp, message.timestamp); in testEchoVariableMessage()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackSurroundTest.java211 static String timestampToString(AudioTimestamp timestamp) { in timestampToString() argument
212 if (timestamp == null) in timestampToString()
214 return "(pos = " + timestamp.framePosition + ", nanos = " + timestamp.nanoTime + ")"; in timestampToString()
219 AudioTimestamp timestamp = new AudioTimestamp(); in addTimestamp() local
220 boolean gotTimestamp = track.getTimestamp(timestamp); in addTimestamp()
224 && timestamp.framePosition > 0 in addTimestamp()
225 && timestamp.nanoTime != mPreviousTimestamp.nanoTime in addTimestamp()
226 && timestamp.framePosition != mPreviousTimestamp.framePosition; in addTimestamp()
228 mTimestamps.add(timestamp); in addTimestamp()
230 Log.d(TAG, (accepted ? "" : "NOT ") + "added ts " + timestampToString(timestamp)); in addTimestamp()
[all …]
DMediaSyncEventTest.java136 final AudioTimestamp timestamp = new AudioTimestamp(); in testSynchronizedRecord() local
140 if (track.getTimestamp(timestamp) && timestamp.framePosition > frameCount / 2) { in testSynchronizedRecord()
141 playbackStartLatencyMs = (timestamp.nanoTime - startTimeNs) / nanosToMillis in testSynchronizedRecord()
142 - timestamp.framePosition * 1000 / PLAYBACK_SAMPLE_RATE; in testSynchronizedRecord()
/cts/tests/tests/telecom/src/android/telecom/cts/
DBluetoothCallQualityReportTest.java26 long timestamp = System.currentTimeMillis(); in testBluetoothCallQualityReport() local
34 .setSentTimestampMillis(timestamp) in testBluetoothCallQualityReport()
43 assertEquals(timestamp, report.getSentTimestampMillis()); in testBluetoothCallQualityReport()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/unittests/
DHotwordAudioStreamTest.java81 final AudioTimestamp timestamp = new AudioTimestamp(); in testHotwordAudioStreamParcelizeDeparcelize() local
83 timestamp.framePosition = 0; in testHotwordAudioStreamParcelizeDeparcelize()
84 timestamp.nanoTime = 1000; in testHotwordAudioStreamParcelizeDeparcelize()
92 .setTimestamp(timestamp) in testHotwordAudioStreamParcelizeDeparcelize()
113 timestamp.framePosition); in testHotwordAudioStreamParcelizeDeparcelize()
115 timestamp.nanoTime); in testHotwordAudioStreamParcelizeDeparcelize()
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiEchoTest.java106 private void compareMessages(byte[] buffer, long timestamp, NativeMidiMessage nativeMsg) { in compareMessages() argument
108 Assert.assertEquals("timestamp in message", timestamp, nativeMsg.timestamp); in compareMessages()
272 long timestamp = 0x0123765489ABFEDCL; in test_B_SendData() local
287 long timestamp = 0x0123765489ABFEDCL; in test_C_EchoSmallMessage() local
289 writeMidiWithTimestamp(mTestContext, buffer, 0, 0, timestamp); // should be a NOOP in test_C_EchoSmallMessage()
290 writeMidiWithTimestamp(mTestContext, buffer, 0, buffer.length, timestamp); in test_C_EchoSmallMessage()
291 writeMidiWithTimestamp(mTestContext, buffer, 0, 0, timestamp); // should be a NOOP in test_C_EchoSmallMessage()
301 compareMessages(buffer, timestamp, message); in test_C_EchoSmallMessage()
412 long elapsedNanos = message.timeReceived - message.timestamp; in test_G_NativeEchoTime()
418 "timestamp:" + message.timestamp + in test_G_NativeEchoTime()
[all …]
DNativeMidiMessage.java27 public long timestamp; field in NativeMidiMessage
41 sb.append("] timestamp:" + Long.toHexString(timestamp)); in toString()
/cts/tests/tests/nativemidi/jni/
Dnative-lib.cpp46 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()
317 int64_t timestamp; in readThreadRoutine() local
324 inDataBuffer, sizeof(inDataBuffer), &numDataBytes, &timestamp); in readThreadRoutine()
335 receiveRec.timestamp = timestamp; in readThreadRoutine()
409 jlong ctx, jbyteArray data, jint offset, jint numBytes, jlong timestamp) { in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp() argument
421 context->midiInputPort, (uint8_t*)bufferPtr + offset, numBytes, timestamp); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
[all …]
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DRecognitionPartTest.java105 long timestamp = 500; in test_recognitionPartSetAndGet_equalValues() local
111 .setTimestampMillis(timestamp) in test_recognitionPartSetAndGet_equalValues()
118 assertThat(part1.getTimestampMillis()).isEqualTo(timestamp); in test_recognitionPartSetAndGet_equalValues()
/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()
/cts/tests/camera/src/android/hardware/camera2/cts/
DReadoutTimestampTest.java220 public TimestampTuple(int type, Long timestamp) { in TimestampTuple() argument
222 mTimestamp = timestamp; in TimestampTuple()
234 long timestamp, long frameNumber) { in onCaptureStarted() argument
236 mTimestampQueue.put(new TimestampTuple(CAPTURE_TIMESTAMP, timestamp)); in onCaptureStarted()
244 long timestamp, long frameNumber) { in onReadoutStarted() argument
246 mTimestampQueue.put(new TimestampTuple(READOUT_TIMESTAMP, timestamp)); in onReadoutStarted()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/
DOboePlayer.java129 public boolean getTimestamp(AudioTimestamp timestamp) { in getTimestamp() argument
130 return getTimestampN(mNativePlayer, timestamp); in getTimestamp()
163 private native boolean getTimestampN(long nativePlayer, AudioTimestamp timestamp); in getTimestampN() argument
/cts/tests/tests/midi/src/android/midi/cts/
DMidiEchoTest.java106 public final long timestamp; field in MidiEchoTest.MidiMessage
109 MidiMessage(byte[] buffer, int offset, int length, long timestamp) { in MidiMessage() argument
113 this.timestamp = timestamp; in MidiMessage()
147 long timestamp) { in onSend() argument
148 messages.add(new MidiMessage(data, offset, count, timestamp)); in onSend()
609 long timestamp = 0x0123765489ABFEDCL; in checkEchoVariableMessage() local
611 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in checkEchoVariableMessage()
612 mc.echoInputPort.send(buffer, 0, buffer.length, timestamp); in checkEchoVariableMessage()
613 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in checkEchoVariableMessage()
630 assertEquals("timestamp in message", timestamp, message.timestamp); in checkEchoVariableMessage()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DAnrTests.java176 final long timestamp = System.currentTimeMillis(); in clickCloseAppOnAnrDialog() local
193 waitForNewExitReasonAfter(timestamp, packageName); in clickCloseAppOnAnrDialog()
214 private void waitForNewExitReasonAfter(long timestamp, String packageName) { in waitForNewExitReasonAfter() argument
217 return !reasons.isEmpty() && reasons.get(0).getTimestamp() >= timestamp; in waitForNewExitReasonAfter()
220 assertTrue(reasons.get(0).getTimestamp() > timestamp); in waitForNewExitReasonAfter()
/cts/tests/tests/appop/src/android/app/appops/cts/
DDiscreteAppopsTest.kt452 val timestamp = System.currentTimeMillis() / in <lambda>() constant
485 assertThat(discrete.getLastAccessBackgroundTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>()
486 assertThat(discrete.getLastAccessForegroundTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>()
491 .isEqualTo(timestamp + SHORT_TIME_QUANT_MILLIS) in <lambda>()
500 val timestamp = System.currentTimeMillis() / in <lambda>() constant
527 assertThat(discrete.getLastAccessTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>()
532 .isEqualTo(timestamp + SHORT_TIME_QUANT_MILLIS) in <lambda>()
544 assertThat(discrete.getLastAccessTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>()
549 .isEqualTo(timestamp + SHORT_TIME_QUANT_MILLIS) in <lambda>()
560 assertThat(discrete.getLastAccessTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>()
[all …]

12345