Home
last modified time | relevance | path

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

12345678910>>...21

/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.cpp93 void OringDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t timestamp, in noteStop() argument
104 mDuration += (timestamp - mLastStartTime); in noteStop()
105 detectAndDeclareAnomaly(timestamp, mCurrentBucketNum, mDuration + mDurationFullBucket); in noteStop()
106 VLOG("record duration %lld, total %lld ", (long long)timestamp - mLastStartTime, in noteStop()
120 stopAnomalyAlarm(timestamp); in noteStop()
124 void OringDurationTracker::noteStopAll(const int64_t timestamp) { in noteStopAll() argument
126 mDuration += (timestamp - mLastStartTime); in noteStopAll()
127 VLOG("Oring Stop all: record duration %lld %lld ", (long long)timestamp - mLastStartTime, in noteStopAll()
129 detectAndDeclareAnomaly(timestamp, mCurrentBucketNum, mDuration + mDurationFullBucket); in noteStopAll()
132 stopAnomalyAlarm(timestamp); in noteStopAll()
[all …]
DMaxDurationTracker.cpp249 const int64_t timestamp) { in onSlicedConditionMayChange() argument
267 noteConditionChanged(pair.first, conditionMet, timestamp); in onSlicedConditionMayChange()
271 void MaxDurationTracker::onConditionChanged(bool condition, const int64_t timestamp) { in onConditionChanged() argument
273 noteConditionChanged(pair.first, condition, timestamp); in onConditionChanged()
278 const int64_t timestamp) { in noteConditionChanged() argument
289 stopAnomalyAlarm(timestamp); in noteConditionChanged()
291 it->second.lastDuration += (timestamp - it->second.lastStartTime); in noteConditionChanged()
294 startAnomalyAlarm(timestamp); in noteConditionChanged()
307 it->second.lastStartTime = timestamp; in noteConditionChanged()
308 startAnomalyAlarm(timestamp); in noteConditionChanged()
/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/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/base/cmds/statsd/tests/external/
Dpuller_util_test.cpp40 int timestamp = 1234; variable
63 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
72 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
95 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
104 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
112 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
137 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
146 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
173 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
182 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
[all …]
/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()
156 nsecs_t timestamp = data.readInt64(); in onTransact() local
159 dataCallbackTimestamp(timestamp, msgType, imageData); in onTransact()
165 nsecs_t timestamp; in onTransact() local
166 status_t res = data.readInt64(&timestamp); in onTransact()
178 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/core/jni/
Dandroid_view_DisplayEventReceiver.cpp64 void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count) override;
65 void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override;
66 void dispatchConfigChanged(nsecs_t timestamp, PhysicalDisplayId displayId,
93 void NativeDisplayEventReceiver::dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchVsync() argument
101 gDisplayEventReceiverClassInfo.dispatchVsync, timestamp, displayId, count); in dispatchVsync()
108 void NativeDisplayEventReceiver::dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchHotplug() argument
116 gDisplayEventReceiverClassInfo.dispatchHotplug, timestamp, displayId, connected); in dispatchHotplug()
123 void NativeDisplayEventReceiver::dispatchConfigChanged(nsecs_t timestamp, in dispatchConfigChanged() argument
133 timestamp, displayId, configId); in dispatchConfigChanged()
/frameworks/av/services/camera/libcameraservice/utils/
DTagMonitor.cpp107 void TagMonitor::monitorMetadata(eventSource source, int64_t frameNumber, nsecs_t timestamp, in monitorMetadata() argument
114 if (timestamp == 0) { in monitorMetadata()
115 timestamp = systemTime(SYSTEM_TIME_BOOTTIME); in monitorMetadata()
120 monitorSingleMetadata(source, frameNumber, timestamp, emptyId, tag, metadata); in monitorMetadata()
123 monitorSingleMetadata(source, frameNumber, timestamp, m.first, tag, m.second); in monitorMetadata()
128 void TagMonitor::monitorSingleMetadata(eventSource source, int64_t frameNumber, nsecs_t timestamp, in monitorSingleMetadata() argument
176 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata()
188 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata()
212 event.frameNumber, event.timestamp, in dumpMonitoredMetadata()
317 TagMonitor::MonitorEvent::MonitorEvent(eventSource src, uint32_t frameNumber, nsecs_t timestamp, in MonitorEvent() argument
[all …]
/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/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/codec2/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp41 int64_t timestamp; member
158 (work->worklets.front()->output.ordinal.timestamp.peeku()), in handleWorkDone()
161 work->worklets.front()->output.ordinal.timestamp.peeku(); in handleWorkDone()
363 int64_t timestamp = (*Info)[frameID].timestamp; in decodeNFrames() local
370 work->input.ordinal.timestamp = timestamp; in decodeNFrames()
452 uint32_t timestamp = 0; in TEST_P() local
459 eleInfo >> timestamp; in TEST_P()
463 mTimestampUslist.push_back(timestamp); in TEST_P()
464 Info.push_back({bytesCount, flags, timestamp}); in TEST_P()
542 uint32_t timestamp = 0; in TEST_F() local
[all …]
/frameworks/av/services/oboeservice/
DAAudioServiceStreamMMAP.cpp164 Timestamp timestamp(*positionFrames, *timeNanos); in getFreeRunningPosition() local
165 mAtomicStreamTimestamp.write(timestamp); in getFreeRunningPosition()
166 *positionFrames = timestamp.getPosition(); in getFreeRunningPosition()
167 *timeNanos = timestamp.getNanoseconds(); in getFreeRunningPosition()
188 Timestamp timestamp = mAtomicStreamTimestamp.read(); in getHardwareTimestamp() local
189 *positionFrames = timestamp.getPosition(); in getHardwareTimestamp()
190 *timeNanos = timestamp.getNanoseconds() + serviceEndpointMMAP->getHardwareTimeOffsetNanos(); in getHardwareTimestamp()
DAAudioServiceStreamBase.cpp391 aaudio_result_t result = getFreeRunningPosition(&command.timestamp.position, in sendCurrentTimestamp()
392 &command.timestamp.timestamp); in sendCurrentTimestamp()
395 (long long) command.timestamp.position, in sendCurrentTimestamp()
396 (long long) command.timestamp.timestamp); in sendCurrentTimestamp()
402 result = getHardwareTimestamp(&command.timestamp.position, in sendCurrentTimestamp()
403 &command.timestamp.timestamp); in sendCurrentTimestamp()
406 (long long) command.timestamp.position, in sendCurrentTimestamp()
407 (long long) command.timestamp.timestamp); in sendCurrentTimestamp()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java77 public @NonNull Instant timestamp; field in Rollback
120 this.timestamp = Instant.now(); in Rollback()
126 Rollback(RollbackInfo info, File backupDir, Instant timestamp, int stagedSessionId, in Rollback() argument
130 this.timestamp = timestamp; in Rollback()
/frameworks/av/media/libnblog/include/media/nblog/
DPerformanceAnalysis.h215 void logTsEntry(timestamp ts);
221 bool detectAndStorePeak(msInterval delta, timestamp ts);
238 std::deque<std::pair<msInterval, timestamp>> mOutlierData;
242 std::deque<timestamp> mPeakTimestamps;
245 std::deque<std::pair<timestamp, Hist>> mHists;
252 timestamp mPrevTs = -1; // previous timestamp
DReportPerformance.h56 using timestamp = int64_t; variable
74 void writeToFile(const std::deque<std::pair<timestamp, Hist>> &hists,
75 const std::deque<std::pair<msInterval, timestamp>> &outlierData,
76 const std::deque<timestamp> &peakTimestamps,
/frameworks/native/services/sensorservice/
DSensorFusion.cpp75 if ( event.timestamp - mGyroTime> 0 && in process()
76 event.timestamp - mGyroTime< (int64_t)(5e7) ) { //0.05sec in process()
78 dT = (event.timestamp - mGyroTime) / 1000000000.0f; in process()
94 mGyroTime = event.timestamp; in process()
104 if ( event.timestamp - mAccTime> 0 && in process()
105 event.timestamp - mAccTime< (int64_t)(1e8) ) { //0.1sec in process()
106 dT = (event.timestamp - mAccTime) / 1000000000.0f; in process()
116 mAccTime = event.timestamp; in process()
/frameworks/base/core/java/android/net/metrics/
DIpConnectivityLog.java94 if (ev.timestamp == 0) { in log()
95 ev.timestamp = System.currentTimeMillis(); in log()
113 public boolean log(long timestamp, @NonNull Event data) { in log() argument
115 ev.timestamp = timestamp; in log()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java129 public void setJpegTimestamp(long timestamp) { in setJpegTimestamp() argument
145 mTimestamp = timestamp; in setJpegTimestamp()
188 public void setPreviewTimestamp(long timestamp) { in setPreviewTimestamp() argument
204 mTimestamp = timestamp; in setPreviewTimestamp()
431 MutableLong timestamp) in waitForRequestCompleted() argument
437 while (!removeRequestIfCompleted(holder, /*out*/timestamp)) { in waitForRequestCompleted()
449 private boolean removeRequestIfCompleted(RequestHolder holder, MutableLong timestamp) { in removeRequestIfCompleted() argument
453 timestamp.value = h.mTimestamp; in removeRequestIfCompleted()
469 public RequestHolder jpegCaptured(long timestamp) { in jpegCaptured() argument
478 h.setJpegTimestamp(timestamp); in jpegCaptured()
[all …]

12345678910>>...21