Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DEventIndexTest.java19 import static com.android.server.people.data.TestUtils.timestamp;
39 private static final long CURRENT_TIMESTAMP = timestamp("01-30 18:50");
61 mEventIndex.addEvent(timestamp("01-06 05:26")); in testMultipleEvents()
62 mEventIndex.addEvent(timestamp("01-27 18:41")); in testMultipleEvents()
63 mEventIndex.addEvent(timestamp("01-30 03:06")); in testMultipleEvents()
64 mEventIndex.addEvent(timestamp("01-30 18:14")); in testMultipleEvents()
69 assertTimeSlot(timestamp("01-30 18:14"), timestamp("01-30 18:16"), mostRecentSlot); in testMultipleEvents()
73 assertTimeSlot(timestamp("01-06 00:00"), timestamp("01-07 00:00"), slots.get(0)); in testMultipleEvents()
74 assertTimeSlot(timestamp("01-27 16:00"), timestamp("01-27 20:00"), slots.get(1)); in testMultipleEvents()
75 assertTimeSlot(timestamp("01-30 03:00"), timestamp("01-30 04:00"), slots.get(2)); in testMultipleEvents()
[all …]
/frameworks/native/libs/battery/
DMultiStateCounter.h61 void setEnabled(bool enabled, time_t timestamp);
63 void setState(state_t state, time_t timestamp);
78 const T& updateValue(const T& value, time_t timestamp);
84 void incrementValue(const T& increment, time_t timestamp);
145 void MultiStateCounter<T>::setEnabled(bool enabled, time_t timestamp) { in setEnabled() argument
153 setState(currentState, timestamp); in setEnabled()
159 if (timestamp < lastUpdateTimestamp) { in setEnabled()
160 timestamp = lastUpdateTimestamp; in setEnabled()
164 lastStateChangeTimestamp = timestamp; in setEnabled()
171 void MultiStateCounter<T>::setState(state_t state, time_t timestamp) { in setState() argument
[all …]
/frameworks/av/media/libheadtracking/
DScreenHeadFusion.cpp22 void ScreenHeadFusion::setWorldToHeadPose(int64_t timestamp, const Pose3f& worldToHead) { in setWorldToHeadPose() argument
23 mWorldToHead = TimestampedPose{.timestamp = timestamp, .pose = worldToHead}; in setWorldToHeadPose()
26 void ScreenHeadFusion::setWorldToScreenPose(int64_t timestamp, const Pose3f& worldToScreen) { in setWorldToScreenPose() argument
27 mWorldToScreen = TimestampedPose{.timestamp = timestamp, .pose = worldToScreen}; in setWorldToScreenPose()
36 .timestamp = std::min(mWorldToHead->timestamp, mWorldToScreen->timestamp), in calculate()
DModeSelector.cpp35 void ModeSelector::setScreenToHeadPose(int64_t timestamp, in setScreenToHeadPose() argument
38 mScreenToHeadTimestamp = timestamp; in setScreenToHeadPose()
41 void ModeSelector::setWorldToHeadPose(int64_t timestamp, const Pose3f& worldToHead) { in setWorldToHeadPose() argument
43 mWorldToHeadTimestamp = timestamp; in setWorldToHeadPose()
46 void ModeSelector::setScreenStable(int64_t timestamp, bool stable) { in setScreenStable() argument
48 mScreenStableTimestamp = timestamp; in setScreenStable()
51 void ModeSelector::calculateActualMode(int64_t timestamp) { in calculateActualMode() argument
52 int64_t screenToHeadGap = timestamp - mScreenToHeadTimestamp; in calculateActualMode()
53 int64_t worldToHeadGap = timestamp - mWorldToHeadTimestamp; in calculateActualMode()
54 int64_t screenStableGap = timestamp - mScreenStableTimestamp; in calculateActualMode()
[all …]
DStillnessDetector.cpp34 void StillnessDetector::setInput(int64_t timestamp, const Pose3f& input) { in setInput() argument
35 mFifo.push_back(TimestampedPose{timestamp, input}); in setInput()
36 discardOld(timestamp); in setInput()
43 bool StillnessDetector::calculate(int64_t timestamp) { in calculate() argument
48 discardOld(timestamp); in calculate()
62 int64_t deadline = event.timestamp + mOptions.windowDuration; in calculate()
87 void StillnessDetector::discardOld(int64_t timestamp) { in discardOld() argument
96 const int64_t windowStart = timestamp - mOptions.windowDuration; in discardOld()
97 while (!mFifo.empty() && mFifo.front().timestamp <= windowStart) { in discardOld()
103 if (mSuppressionDeadline.has_value() && mSuppressionDeadline <= timestamp) { in discardOld()
DHeadTrackingProcessor.cpp61 void setWorldToHeadPose(int64_t timestamp, const Pose3f& worldToHead, in setWorldToHeadPose() argument
64 timestamp, worldToHead, headTwist, mOptions.predictionDuration); in setWorldToHeadPose()
66 mHeadStillnessDetector.setInput(timestamp, predictedWorldToHead); in setWorldToHeadPose()
67 mWorldToHeadTimestamp = timestamp; in setWorldToHeadPose()
70 void setWorldToScreenPose(int64_t timestamp, const Pose3f& worldToScreen) override { in setWorldToScreenPose() argument
79 mScreenStillnessDetector.setInput(timestamp, worldToLogicalScreen); in setWorldToScreenPose()
80 mWorldToScreenTimestamp = timestamp; in setWorldToScreenPose()
91 void calculate(int64_t timestamp) override { in calculate() argument
97 screenStable = mScreenStillnessDetector.calculate(timestamp); in calculate()
111 bool headStable = mHeadStillnessDetector.calculate(timestamp); in calculate()
[all …]
DModeSelector.h87 void setScreenToHeadPose(int64_t timestamp, const std::optional<Pose3f>& screenToHead);
94 void setWorldToHeadPose(int64_t timestamp, const Pose3f& worldToHead);
100 void setScreenStable(int64_t timestamp, bool stable);
105 void calculate(int64_t timestamp);
138 void calculateActualMode(int64_t timestamp);
DStillnessDetector.h80 void setInput(int64_t timestamp, const Pose3f& input);
82 bool calculate(int64_t timestamp);
87 int64_t timestamp; member
105 void discardOld(int64_t timestamp);
/frameworks/av/media/libaaudio/tests/
Dtest_timestamps.cpp129 TimestampInfo *timestamp = &timestampData->timestamps[timestampData->timestampCount]; in timestampDataCallbackProc() local
130 timestamp->result = AAudioStream_getTimestamp(stream, in timestampDataCallbackProc()
132 &timestamp->timestampPosition, in timestampDataCallbackProc()
133 &timestamp->timestampNanos); in timestampDataCallbackProc()
134 timestamp->framesTotal = timestampData->framesTotal; in timestampDataCallbackProc()
135 timestamp->appPosition = (direction == AAUDIO_DIRECTION_OUTPUT) in timestampDataCallbackProc()
138 timestamp->appNanoseconds = getNanoseconds(); in timestampDataCallbackProc()
286 TimestampInfo *timestamp = &sTimestampData.timestamps[i]; in testTimeStamps() local
287 if (timestamp->result != AAUDIO_OK) { in testTimeStamps()
291 (long long) timestamp->framesTotal, in testTimeStamps()
[all …]
/frameworks/opt/car/services/updatableServices/tests/src/com/android/internal/car/updatable/
DUserMetricsTest.java49 long timestamp = sendStartingEvent(mUserId); in testStartingEvent_success() local
51 assertStartTime(timestamp, mUserId); in testStartingEvent_success()
83 long timestamp = sendSwitchingEvent(mFromUserId, mUserId); in testSwitchingEvent_success() local
85 assertSwitchTime(timestamp, mFromUserId, mUserId); in testSwitchingEvent_success()
98 long timestamp = sendUnlockingEvent(mUserId); in testUnlockingEvent_success() local
100 assertUnlockingTime(timestamp, mUserId); in testUnlockingEvent_success()
112 long timestamp = sendStartingEvent(mUserId); in testUnlockedEvent_success() local
113 assertStartTime(timestamp, mUserId); in testUnlockedEvent_success()
122 long timestamp = sendStopingEvent(mUserId); in testStopingEvent_success() local
124 assertStopingTime(timestamp, mUserId); in testStopingEvent_success()
[all …]
/frameworks/base/media/java/android/media/midi/
DMidiPortImpl.java65 public static int packData(byte[] message, int offset, int size, long timestamp, in packData() argument
79 dest[length++] = (byte)timestamp; in packData()
80 timestamp >>= 8; in packData()
126 long timestamp = 0; in getPacketTimestamp() local
130 timestamp = (timestamp << 8) | b; in getPacketTimestamp()
132 return timestamp; in getPacketTimestamp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/table/
DTableLogBuffer.kt112 timestamp = 0,
132 row.timestamp = systemClock.currentTimeMillis() in logDiffs()
156 row.timestamp = systemClock.currentTimeMillis() in logChange()
193 timestamp: Long, in logChange()
200 val change = obtain(timestamp, prefix, columnName, isInitial) in logChange()
207 timestamp: Long, in logChange()
214 val change = obtain(timestamp, prefix, columnName, isInitial) in logChange()
221 timestamp: Long, in logChange()
228 val change = obtain(timestamp, prefix, columnName, isInitial) in logChange()
238 timestamp: Long, in obtain()
[all …]
/frameworks/base/core/java/com/android/internal/midi/
DMidiEventScheduler.java39 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument
41 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend()
62 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
63 super(timestamp); in MidiEvent()
83 long timestamp) { in createScheduledEvent() argument
86 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
94 event.setTimestamp(timestamp); in createScheduledEvent()
DMidiFramer.java60 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
81 offset - sysExStartOffset + 1, timestamp); in onSend()
95 offset - sysExStartOffset, timestamp); in onSend()
98 mReceiver.send(data, offset, 1, timestamp); in onSend()
113 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend()
125 offset - sysExStartOffset, timestamp); in onSend()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/pidfparser/pidf/
DTimestampTest.java60 Timestamp timestamp = new Timestamp(); in testElementName() local
62 assertEquals(PidfConstant.NAMESPACE, timestamp.getNamespace()); in testElementName()
63 assertEquals(Timestamp.ELEMENT_NAME, timestamp.getElementName()); in testElementName()
69 final String timestamp = Instant.now().toString(); in testSerializing() local
71 Timestamp timestampElement = new Timestamp(timestamp); in testSerializing()
85 .append(timestamp).append("</timestamp>"); in testSerializing()
93 final String timestamp = Instant.now().toString(); in testParsing() local
98 .append(timestamp) in testParsing()
123 assertEquals(timestamp, timestampElement.getValue()); in testParsing()
/frameworks/native/libs/input/tests/
DMotionPredictorMetricsManager_test.cpp144 .eventTime(groundTruthPoint.timestamp) in makeMotionEvent()
186 .timestamp = TEST_INITIAL_TIMESTAMP}; in TEST()
247 nsecs_t timestamp = groundTruthPoint.timestamp; in generateConstantGroundTruthPoints() local
250 groundTruthPoints.back().timestamp = timestamp; in generateConstantGroundTruthPoints()
251 timestamp += inputInterval; in generateConstantGroundTruthPoints()
267 .timestamp = TEST_INITIAL_TIMESTAMP}); in generateCircularArcGroundTruthPoints()
276 .timestamp = groundTruthPoints.back().timestamp + TEST_PREDICTION_INTERVAL_NANOS}); in generateCircularArcGroundTruthPoints()
284 .timestamp = TEST_INITIAL_TIMESTAMP}; in TEST()
293 EXPECT_EQ(groundTruthPoints[0].timestamp, groundTruthPoint.timestamp); in TEST()
297 EXPECT_EQ(groundTruthPoints[1].timestamp, groundTruthPoint.timestamp + 10); in TEST()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/
DWakingActivityHistoryTest.java63 final long timestamp = 54; in recordActivityAppendsUids() local
69 history.recordActivity(subsystem, timestamp, uids); in recordActivityAppendsUids()
80 assertThat(recordedHistory.indexOfKey(timestamp - 1)).isLessThan(0); in recordActivityAppendsUids()
81 assertThat(recordedHistory.indexOfKey(timestamp)).isAtLeast(0); in recordActivityAppendsUids()
82 assertThat(recordedHistory.indexOfKey(timestamp + 1)).isLessThan(0); in recordActivityAppendsUids()
84 SparseIntArray recordedUids = recordedHistory.get(timestamp); in recordActivityAppendsUids()
93 history.recordActivity(subsystem, timestamp, uids); in recordActivityAppendsUids()
95 recordedUids = recordedHistory.get(timestamp); in recordActivityAppendsUids()
108 long timestamp = 101; in recordActivityDoesNotDeleteExistingUids() local
115 history.recordActivity(subsystem, timestamp, uids); in recordActivityDoesNotDeleteExistingUids()
[all …]
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h52 virtual void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count,
54 virtual void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId,
57 virtual void dispatchHotplugConnectionError(nsecs_t timestamp, int32_t connectionError) = 0;
59 virtual void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId,
63 virtual void dispatchNullEvent(nsecs_t timestamp, PhysicalDisplayId displayId) = 0;
65 virtual void dispatchFrameRateOverrides(nsecs_t timestamp, PhysicalDisplayId displayId,
DWindowInfosUpdate.h29 int64_t vsyncId, int64_t timestamp) in WindowInfosUpdate()
33 timestamp(timestamp) {} in WindowInfosUpdate()
38 int64_t timestamp; member
/frameworks/base/core/java/android/hardware/
DSensorEvent.java826 public long timestamp; field in SensorEvent
853 public SensorEvent(@NonNull Sensor sensor, int accuracy, long timestamp, float[] values) { in SensorEvent() argument
856 this.timestamp = timestamp; in SensorEvent()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/rotaryinput/
DRotary.kt469 override fun startFlingTracking(timestamp: Long) { in startFlingTracking()
470 rotaryVelocityTracker.start(timestamp) in startFlingTracking()
471 latestEventTimestamp = timestamp in startFlingTracking()
476 override fun observeEvent(timestamp: Long, delta: Float) { in observeEvent()
477 rotaryVelocityTracker.move(timestamp, delta) in observeEvent()
478 latestEventTimestamp = timestamp in observeEvent()
530 public fun observeEvent(timestamp: Long, delta: Float) in observeEvent()
543 public fun startFlingTracking(timestamp: Long) in observeEvent()
590 public data class TimestampedDelta(val timestamp: Long, val delta: Float) constant in TimestampedDelta
842 if (lastTimestamp + timeframe <= it.timestamp) { in batchRequestsWithinTimeframe()
[all …]
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/
DCaptureResultImageMatcher.java100 long timestamp = getTimeStampFromCaptureResult(captureResult); in setCameraCaptureCallback() local
103 mPendingImageInfos.put(timestamp, captureResult); in setCameraCaptureCallback()
111 Long timestamp = captureResult.get(CaptureResult.SENSOR_TIMESTAMP); in getTimeStampFromCaptureResult() local
113 if (timestamp != null) { in getTimeStampFromCaptureResult()
114 timestampValue = timestamp; in getTimeStampFromCaptureResult()
182 long timestamp = getTimeStampFromCaptureResult(captureResult); in matchImages() local
184 ImageReferenceImpl imageReferenceImpl = mPendingImages.get(timestamp); in matchImages()
187 mPendingImages.remove(timestamp); in matchImages()
/frameworks/base/services/core/java/com/android/server/utils/
DManagedApplicationService.java117 public final long timestamp; field in ManagedApplicationService.LogEvent
123 public LogEvent(long timestamp, ComponentName component, int event) { in LogEvent() argument
124 this.timestamp = timestamp; in LogEvent()
131 return dateFormat.format(new Date(timestamp)) + " " + eventToString(event) in toLogString()
314 final long timestamp = System.currentTimeMillis(); in connect()
321 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
332 final long timestamp = System.currentTimeMillis(); in connect()
342 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
375 final long timestamp = System.currentTimeMillis(); in connect()
383 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DShutdownCheckPoints.java130 long timestamp = mInjector.currentTimeMillis(); in recordCheckPointInternal() local
132 ? new SystemServerCheckPoint(timestamp, reason) in recordCheckPointInternal()
133 : new BinderCheckPoint(timestamp, callerProcessId, reason)); in recordCheckPointInternal()
139 long timestamp = mInjector.currentTimeMillis(); in recordCheckPointInternal() local
141 ? new SystemServerCheckPoint(timestamp, reason) in recordCheckPointInternal()
142 : new IntentCheckPoint(timestamp, intentName, packageName, reason)); in recordCheckPointInternal()
190 CheckPoint(long timestamp, @Nullable String reason) { in CheckPoint() argument
191 mTimestamp = timestamp; in CheckPoint()
218 SystemServerCheckPoint(long timestamp, @Nullable String reason) { in SystemServerCheckPoint() argument
219 super(timestamp, reason); in SystemServerCheckPoint()
[all …]
/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
DBluetoothMidiEncoderTest.java72 void send(byte[] data, long timestamp) throws IOException { in send() argument
74 mEncoder.send(data, 0, data.length, timestamp); in send()
172 long timestamp = 0; in testTwoNoteOnsOverTime() local
175 checker.send(new byte[] {(byte) 0x98, 0x45, 0x60}, timestamp); in testTwoNoteOnsOverTime()
179 timestamp += 2 * NANOS_PER_MSEC; in testTwoNoteOnsOverTime()
180 checker.send(new byte[] {(byte) 0x90, 0x40, 0x64}, timestamp); in testTwoNoteOnsOverTime()
181 timestamp += 2 * NANOS_PER_MSEC; in testTwoNoteOnsOverTime()
182 checker.send(new byte[] {(byte) 0x90, 0x47, 0x72}, timestamp); in testTwoNoteOnsOverTime()

12345678910>>...31