/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 | SensorRatePermissionEventConnectionTestHelper.java | 62 .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/ |
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/tests/media/src/android/media/cts/ |
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()
|
D | AudioTrackSurroundTest.java | 226 static String timestampToString(AudioTimestamp timestamp) { in timestampToString() argument 227 if (timestamp == null) in timestampToString() 229 return "(pos = " + timestamp.framePosition + ", nanos = " + timestamp.nanoTime + ")"; in timestampToString() 234 AudioTimestamp timestamp = new AudioTimestamp(); in addTimestamp() local 235 boolean gotTimestamp = track.getTimestamp(timestamp); in addTimestamp() 239 && timestamp.framePosition > 0 in addTimestamp() 240 && timestamp.nanoTime != mPreviousTimestamp.nanoTime in addTimestamp() 241 && timestamp.framePosition != mPreviousTimestamp.framePosition; in addTimestamp() 243 mTimestamps.add(timestamp); in addTimestamp() 245 Log.d(TAG, (accepted ? "" : "NOT ") + "added ts " + timestampToString(timestamp)); in addTimestamp() [all …]
|
D | NonBlockingAudioTrack.java | 108 AudioTimestamp timestamp = new AudioTimestamp(); in getTimestamp() local 109 mAudioTrack.getTimestamp(timestamp); in getTimestamp() 110 return timestamp; in getTimestamp()
|
/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 | HingeAngleVerification.java | 59 " 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()
|
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()
|
/cts/tests/tests/midi/src/android/midi/cts/ |
D | MidiEchoTest.java | 81 public final long timestamp; field in MidiEchoTest.MidiMessage 84 MidiMessage(byte[] buffer, int offset, int length, long timestamp) { in MidiMessage() argument 88 this.timestamp = timestamp; in MidiMessage() 122 long timestamp) { in onSend() argument 123 messages.add(new MidiMessage(data, offset, count, timestamp)); in onSend() 381 long timestamp = 0x0123765489ABFEDCL; in checkEchoVariableMessage() local 383 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in checkEchoVariableMessage() 384 mc.echoInputPort.send(buffer, 0, buffer.length, timestamp); in checkEchoVariableMessage() 385 mc.echoInputPort.send(buffer, 0, 0, timestamp); // should be a NOOP in checkEchoVariableMessage() 402 assertEquals("timestamp in message", timestamp, message.timestamp); in checkEchoVariableMessage() [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/telecom/src/android/telecom/cts/ |
D | BluetoothCallQualityReportTest.java | 26 long timestamp = System.currentTimeMillis(); in testBluetoothCallQualityReport() local 34 .setSentTimestampMillis(timestamp) in testBluetoothCallQualityReport() 43 assertEquals(timestamp, report.getSentTimestampMillis()); in testBluetoothCallQualityReport()
|
/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() 317 int64_t timestamp; in readThreadRoutine() local 324 inDataBuffer, sizeof(inDataBuffer), &numDataBytes, ×tamp); 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/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/ |
D | OboePlayer.java | 97 public boolean getTimestamp(AudioTimestamp timestamp) { in getTimestamp() argument 98 return getTimestampN(mNativePlayer, timestamp); in getTimestamp() 113 private native boolean getTimestampN(long nativePlayer, AudioTimestamp timestamp); in getTimestampN() argument
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ScanResultTest.java | 252 long timestamp = 0; in testScanResultTimeStamp() local 260 timestamp = result.timestamp; in testScanResultTimeStamp() 261 assertThat(timestamp).isNotEqualTo(0); in testScanResultTimeStamp() 270 long timeDiff = (result.timestamp - timestamp) / 1000; in testScanResultTimeStamp() 290 scanResult.timestamp = TEST_TIMESTAMP; in testScanResultConstructors() 298 assertThat(scanResult2.timestamp).isEqualTo(TEST_TIMESTAMP); in testScanResultConstructors()
|
/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()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | DiscreteAppopsTest.kt | 448 val timestamp = System.currentTimeMillis() / in <lambda>() constant 481 assertThat(discrete.getLastAccessBackgroundTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>() 482 assertThat(discrete.getLastAccessForegroundTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>() 487 .isEqualTo(timestamp + SHORT_TIME_QUANT_MILLIS) in <lambda>() 495 val timestamp = System.currentTimeMillis() / in <lambda>() constant 522 assertThat(discrete.getLastAccessTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>() 527 .isEqualTo(timestamp + SHORT_TIME_QUANT_MILLIS) in <lambda>() 539 assertThat(discrete.getLastAccessTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>() 544 .isEqualTo(timestamp + SHORT_TIME_QUANT_MILLIS) in <lambda>() 555 assertThat(discrete.getLastAccessTime(OP_FLAGS_ALL)).isEqualTo(timestamp) in <lambda>() [all …]
|
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceSensorManagerTest.java | 269 private void injectSensorSample(Sensor sensor, int[] dataVec, int timestamp) { in injectSensorSample() argument 294 if (timestamp > 0) { in injectSensorSample() 296 EV_MSC, MSC_TIMESTAMP, timestamp, in injectSensorSample() 339 final long diff = e.timestamp - lastTimestamp[i]; in testSensorManagerListenerForSensors() 340 assertTrue("Sensor timestamp " + e.timestamp + " not monotonically increasing!" in testSensorManagerListenerForSensors() 343 lastTimestamp[i] = e.timestamp; in testSensorManagerListenerForSensors() 346 startTimestamp < e.timestamp); in testSensorManagerListenerForSensors()
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_lens_movement_reporting.py | 78 timestamp = cap['metadata']['android.sensor.timestamp'] * 1E-6 80 timestamp_init = timestamp 81 timestamp -= timestamp_init 82 data['timestamp'] = timestamp
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | DeletedContactUtil.java | 80 long timestamp) { in querySinceTimestamp() argument 82 String[] args = new String[] {timestamp + ""}; in querySinceTimestamp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioOutColdStartLatencyActivity.java | 103 private double calcColdStartLatency(AudioTimestamp timestamp) { in calcColdStartLatency() argument 106 = msToNanos((1000.0 * (double)timestamp.framePosition) / (double) mSampleRate); in calcColdStartLatency() 107 long frame0Time = timestamp.nanoTime - frame0Delta; in calcColdStartLatency()
|