Home
last modified time | relevance | path

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

12345678910>>...24

/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/base/startop/scripts/lib/
Dlogcat_utils.py27 def parse_logcat_datetime(timestamp: str) -> Optional[datetime]:
39 timestamp = datetime.strptime(timestamp,
41 return timestamp
43 print_utils.debug_print('Invalid line: ' + timestamp)
54 timestamp = parse_logcat_datetime(cur_timestamp_str)
55 if not timestamp:
58 return timestamp > timeout
60 async def _blocking_wait_for_logcat_pattern(timestamp: datetime,
65 logcat_cmd.append(str(timestamp))
93 def blocking_wait_for_logcat_pattern(timestamp: datetime,
[all …]
Dlogcat_utils_test.py50 timestamp = datetime.datetime(datetime.datetime.now().year, 7, 1, 16, 13,
52 timeout_dt = timestamp + datetime.timedelta(0, 10)
55 result = logcat_utils.blocking_wait_for_logcat_pattern(timestamp,
78 timestamp = datetime.datetime(datetime.datetime.now().year,
80 timeout_dt = timestamp + datetime.timedelta(0, 10)
83 result = logcat_utils.blocking_wait_for_logcat_pattern(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/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp81 void OringDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t timestamp, in noteStop() argument
93 (timestamp - mLastStartTime); in noteStop()
95 timestamp, mCurrentBucketNum, in noteStop()
98 (long long)timestamp - mLastStartTime, (long long)getCurrentStateKeyDuration(), in noteStop()
112 stopAnomalyAlarm(timestamp); in noteStop()
116 void OringDurationTracker::noteStopAll(const int64_t timestamp) { in noteStopAll() argument
119 (timestamp - mLastStartTime); in noteStopAll()
121 (long long)timestamp - mLastStartTime, (long long)getCurrentStateKeyDuration(), in noteStopAll()
124 timestamp, mCurrentBucketNum, in noteStopAll()
128 stopAnomalyAlarm(timestamp); in noteStopAll()
[all …]
DMaxDurationTracker.cpp225 const int64_t timestamp) { in onSlicedConditionMayChange() argument
237 noteConditionChanged(pair.first, conditionMet, timestamp); in onSlicedConditionMayChange()
241 void MaxDurationTracker::onStateChanged(const int64_t timestamp, const int32_t atomId, in onStateChanged() argument
246 void MaxDurationTracker::onConditionChanged(bool condition, const int64_t timestamp) { in onConditionChanged() argument
248 noteConditionChanged(pair.first, condition, timestamp); in onConditionChanged()
253 const int64_t timestamp) { in noteConditionChanged() argument
264 stopAnomalyAlarm(timestamp); in noteConditionChanged()
266 it->second.lastDuration += (timestamp - it->second.lastStartTime); in noteConditionChanged()
269 startAnomalyAlarm(timestamp); in noteConditionChanged()
282 it->second.lastStartTime = timestamp; in noteConditionChanged()
[all …]
DDurationTracker.h98 virtual void onSlicedConditionMayChange(bool overallCondition, const int64_t timestamp) = 0;
99 virtual void onConditionChanged(bool condition, const int64_t timestamp) = 0;
101 virtual void onStateChanged(const int64_t timestamp, const int32_t atomId,
148 void stopAnomalyAlarm(const int64_t timestamp) { in stopAnomalyAlarm() argument
151 anomalyTracker->stopAlarm(mEventKey, timestamp); in stopAnomalyAlarm()
165 void detectAndDeclareAnomaly(const int64_t& timestamp, const int64_t& currBucketNum, in detectAndDeclareAnomaly() argument
169 anomalyTracker->detectAndDeclareAnomaly(timestamp, currBucketNum, mTrackerId, in detectAndDeclareAnomaly()
/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/startop/scripts/app_startup/
Dparse_metrics19 Usage: launch_application package activity | parse_metrics --package <name> --timestamp <timestamp>…
37 … -ts, --timestamp <name> logcat timestamp [only looks at logcat entries after this timestamp].
79 -ts|--timestamp)
80 timestamp="$2"
111 timestamp=0
115 [[ "$timestamp" == "" ]] && echo "--timestamp not specified" 1>&2 && exit 64
150 result="$(logcat_extract_pattern "$timeout" "$timestamp" "$pattern" "$re_pattern")"
212 source "$DIR/metrics/$package" "$timestamp"
/frameworks/base/cmds/statsd/tests/external/
Dpuller_util_test.cpp45 const int timestamp = 1234; variable
64 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, hostNonAdditiveData, in TEST()
68 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
86 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, isolatedNonAdditiveData, in TEST()
90 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, isolatedNonAdditiveData, in TEST()
94 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
119 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, isolatedNonAdditiveData, in TEST()
123 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
148 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, isolatedNonAdditiveData, in TEST()
152 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, hostNonAdditiveData, in TEST()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncPredictorTest.cpp170 for (auto const& timestamp : simulatedVsyncs) { in TEST_F() local
171 tracker.addVsyncTimestamp(timestamp); in TEST_F()
189 for (auto const& timestamp : simulatedVsyncs) { in TEST_F() local
190 tracker.addVsyncTimestamp(timestamp); in TEST_F()
216 for (auto const& timestamp : simulatedVsyncs) { in TEST_F() local
217 tracker.addVsyncTimestamp(timestamp); in TEST_F()
242 for (auto const& timestamp : simulatedVsyncs) { in TEST_F() local
243 tracker.addVsyncTimestamp(timestamp); in TEST_F()
262 for (auto const& timestamp : simulatedVsyncsFast) { in TEST_F() local
263 tracker.addVsyncTimestamp(timestamp); in TEST_F()
[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()
107 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend()
119 offset - sysExStartOffset, timestamp); in onSend()
/frameworks/av/camera/
DICameraRecordingProxyListener.cpp42 void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& imageData) in dataCallbackTimestamp() argument
47 data.writeInt64(timestamp); in dataCallbackTimestamp()
53 void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) { in recordingFrameHandleCallbackTimestamp() argument
57 data.writeInt64(timestamp); in recordingFrameHandleCallbackTimestamp()
109 nsecs_t timestamp = data.readInt64(); in onTransact() local
112 dataCallbackTimestamp(timestamp, msgType, imageData); in onTransact()
118 nsecs_t timestamp; in onTransact() local
119 status_t res = data.readInt64(&timestamp); in onTransact()
132 recordingFrameHandleCallbackTimestamp(timestamp, handle); in onTransact()
DICameraClient.cpp75 void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& imageData) in dataCallbackTimestamp() argument
80 data.writeInt64(timestamp); in dataCallbackTimestamp()
86 void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) { in recordingFrameHandleCallbackTimestamp() argument
90 data.writeInt64(timestamp); in recordingFrameHandleCallbackTimestamp()
159 nsecs_t timestamp = data.readInt64(); in onTransact() local
162 dataCallbackTimestamp(timestamp, msgType, imageData); in onTransact()
168 nsecs_t timestamp; in onTransact() local
169 status_t res = data.readInt64(&timestamp); in onTransact()
181 recordingFrameHandleCallbackTimestamp(timestamp, handle); in onTransact()
/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()
313 final long timestamp = System.currentTimeMillis(); in connect()
320 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
331 final long timestamp = System.currentTimeMillis(); in connect()
341 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
374 final long timestamp = System.currentTimeMillis(); in connect()
382 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
[all …]
/frameworks/base/tests/net/common/java/android/net/metrics/
DIpConnectivityLogTest.java78 assertEventsEqual(makeExpectedEvent(got.get(0).timestamp, 0, 0, null), got.get(0)); in testLoggingEvents()
80 assertEventsEqual(makeExpectedEvent(got.get(2).timestamp, FAKE_NET_ID, in testLoggingEvents()
82 assertEventsEqual(makeExpectedEvent(got.get(3).timestamp, FAKE_NET_ID, in testLoggingEvents()
84 assertEventsEqual(makeExpectedEvent(got.get(4).timestamp, 0, 0, FAKE_INTERFACE_NAME), in testLoggingEvents()
138 private ConnectivityMetricsEvent makeExpectedEvent(long timestamp, int netId, long transports, in makeExpectedEvent() argument
141 ev.timestamp = timestamp; in makeExpectedEvent()
153 assertEquals(expected.timestamp, got.timestamp); in assertEventsEqual()
160 Comparator.comparingLong((ev) -> ev.timestamp);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiWakeMetrics.java236 public Session(int numNetworks, long timestamp) { in Session() argument
238 mStartTimestamp = timestamp; in Session()
250 public void recordInitializeEvent(int numScans, int numNetworks, long timestamp) { in recordInitializeEvent() argument
253 mInitEvent = new Event(numScans, timestamp - mStartTimestamp); in recordInitializeEvent()
265 public void recordUnlockEvent(int numScans, long timestamp) { in recordUnlockEvent() argument
267 mUnlockEvent = new Event(numScans, timestamp - mStartTimestamp); in recordUnlockEvent()
279 public void recordWakeupEvent(int numScans, long timestamp) { in recordWakeupEvent() argument
281 mWakeupEvent = new Event(numScans, timestamp - mStartTimestamp); in recordWakeupEvent()
300 public void recordResetEvent(int numScans, long timestamp) { in recordResetEvent() argument
302 mResetEvent = new Event(numScans, timestamp - mStartTimestamp); in recordResetEvent()
/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
DBluetoothMidiEncoderTest.java71 void send(byte[] data, long timestamp) throws IOException { in send() argument
73 mEncoder.send(data, 0, data.length, timestamp); in send()
171 long timestamp = 0; in testTwoNoteOnsOverTime() local
174 checker.send(new byte[] {(byte) 0x98, 0x45, 0x60}, timestamp); in testTwoNoteOnsOverTime()
178 timestamp += 2 * NANOS_PER_MSEC; in testTwoNoteOnsOverTime()
179 checker.send(new byte[] {(byte) 0x90, 0x40, 0x64}, timestamp); in testTwoNoteOnsOverTime()
180 timestamp += 2 * NANOS_PER_MSEC; in testTwoNoteOnsOverTime()
181 checker.send(new byte[] {(byte) 0x90, 0x47, 0x72}, timestamp); in testTwoNoteOnsOverTime()
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp62 void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count) override;
63 void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override;
64 void dispatchConfigChanged(nsecs_t timestamp, PhysicalDisplayId displayId,
91 void NativeDisplayEventReceiver::dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchVsync() argument
99 gDisplayEventReceiverClassInfo.dispatchVsync, timestamp, displayId, count); in dispatchVsync()
106 void NativeDisplayEventReceiver::dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchHotplug() argument
114 gDisplayEventReceiverClassInfo.dispatchHotplug, timestamp, displayId, connected); in dispatchHotplug()
122 nsecs_t timestamp, PhysicalDisplayId displayId, int32_t configId, nsecs_t) { in dispatchConfigChanged() argument
131 timestamp, displayId, configId); in dispatchConfigChanged()
/frameworks/av/services/camera/libcameraservice/utils/
DTagMonitor.cpp117 void TagMonitor::monitorMetadata(eventSource source, int64_t frameNumber, nsecs_t timestamp, in monitorMetadata() argument
124 if (timestamp == 0) { in monitorMetadata()
125 timestamp = systemTime(SYSTEM_TIME_BOOTTIME); in monitorMetadata()
130 monitorSingleMetadata(source, frameNumber, timestamp, emptyId, tag, metadata); in monitorMetadata()
133 monitorSingleMetadata(source, frameNumber, timestamp, m.first, tag, m.second); in monitorMetadata()
138 void TagMonitor::monitorSingleMetadata(eventSource source, int64_t frameNumber, nsecs_t timestamp, in monitorSingleMetadata() argument
186 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata()
198 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata()
222 event.frameNumber, event.timestamp, in dumpMonitoredMetadata()
327 TagMonitor::MonitorEvent::MonitorEvent(eventSource src, uint32_t frameNumber, nsecs_t timestamp, in MonitorEvent() argument
[all …]
/frameworks/base/core/java/android/net/
DConnectivityMetricsEvent.java32 public long timestamp; field in ConnectivityMetricsEvent
46 timestamp = in.readLong(); in ConnectivityMetricsEvent()
72 dest.writeLong(timestamp); in writeToParcel()
82 buffer.append(String.format("%tT.%tL", timestamp, timestamp)); in toString()
/frameworks/av/media/libaudioclient/include/media/
DAudioTimestamp.h124 status_t getBestTimestamp(AudioTimestamp *timestamp, Location *location = nullptr) const {
125 if (timestamp == nullptr) {
130 timestamp->mPosition = position;
131 timestamp->mTime.tv_sec = time / 1000000000;
132 timestamp->mTime.tv_nsec = time - timestamp->mTime.tv_sec * 1000000000LL;
/frameworks/av/services/oboeservice/
DAAudioServiceStreamMMAP.cpp155 Timestamp timestamp(*positionFrames, *timeNanos); in getFreeRunningPosition() local
156 mAtomicStreamTimestamp.write(timestamp); in getFreeRunningPosition()
157 *positionFrames = timestamp.getPosition(); in getFreeRunningPosition()
158 *timeNanos = timestamp.getNanoseconds(); in getFreeRunningPosition()
179 Timestamp timestamp = mAtomicStreamTimestamp.read(); in getHardwareTimestamp() local
180 *positionFrames = timestamp.getPosition(); in getHardwareTimestamp()
181 *timeNanos = timestamp.getNanoseconds() + serviceEndpointMMAP->getHardwareTimeOffsetNanos(); in getHardwareTimestamp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/
DLogMessageImpl.kt25 override var timestamp: Long, variable in com.android.systemui.log.LogMessageImpl
44 timestamp: Long, in reset()
49 this.timestamp = timestamp in reset()

12345678910>>...24