/frameworks/av/media/libaaudio/tests/ |
D | test_timestamps.cpp | 129 TimestampInfo *timestamp = ×tampData->timestamps[timestampData->timestampCount]; in timestampDataCallbackProc() local 130 timestamp->result = AAudioStream_getTimestamp(stream, in timestampDataCallbackProc() 132 ×tamp->timestampPosition, in timestampDataCallbackProc() 133 ×tamp->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/ |
D | OringDurationTracker.cpp | 93 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 …]
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiPortImpl.java | 65 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/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/ |
D | Timestamps.java | 87 public static boolean isValid(Timestamp timestamp) { in isValid() argument 88 return isValid(timestamp.getSeconds(), timestamp.getNanos()); in isValid() 137 public static String toString(Timestamp timestamp) { in toString() argument 138 long seconds = timestamp.getSeconds(); in toString() 139 int nanos = timestamp.getNanos(); in toString() 233 public static long toMillis(Timestamp timestamp) { in toMillis() argument 234 return timestamp.getSeconds() * MILLIS_PER_SECOND in toMillis() 235 + timestamp.getNanos() / NANOS_PER_MILLISECOND; in toMillis() 254 public static long toMicros(Timestamp timestamp) { in toMicros() argument 255 return timestamp.getSeconds() * MICROS_PER_SECOND in toMicros() [all …]
|
/frameworks/base/core/java/com/android/internal/midi/ |
D | MidiEventScheduler.java | 39 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()
|
D | MidiFramer.java | 60 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/ |
D | puller_util_test.cpp | 39 int timestamp = 1234; variable 62 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 71 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 94 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 103 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 111 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 136 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 145 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 172 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() 181 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST() [all …]
|
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/ |
D | Assertions.java | 73 final long timestamp; field in Assertions.Result 77 Result(boolean success, long timestamp, String assertionName, String reason) { in Result() argument 79 this.timestamp = timestamp; in Result() 88 this.timestamp = 0; in Result() 101 return new Result(!this.success, this.timestamp, negatedAssertionName, this.reason); in negate() 114 return "Timestamp: " + prettyTimestamp(timestamp) in toString()
|
/frameworks/base/tests/FlickerTests/lib/test/src/com/android/server/wm/flicker/ |
D | AssertionsCheckerTest.java | 65 assertThat(failures.get(0).timestamp).isEqualTo(0); in canCheckFirstEntry() 77 assertThat(failures.get(0).timestamp).isEqualTo(4); in canCheckLastEntry() 160 long timestamp; field in AssertionsCheckerTest.SimpleEntry 163 SimpleEntry(long timestamp, int data) { in SimpleEntry() argument 164 this.timestamp = timestamp; in SimpleEntry() 170 return timestamp; in getTimestamp() 174 return new Result(this.data == 42, this.timestamp, "is42", ""); in isData42() 178 return new Result(this.data == 0, this.timestamp, "is42", ""); in isData0()
|
/frameworks/av/camera/ |
D | ICameraRecordingProxyListener.cpp | 42 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(×tamp); in onTransact() 132 recordingFrameHandleCallbackTimestamp(timestamp, handle); in onTransact()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 367 Timestamp timestamp = TimeUtil.parseTimestamp("1970-01-01T00:00:01.111111111Z"); in testTimestampConversion() local 368 assertEquals(1111111111, TimeUtil.toNanos(timestamp)); in testTimestampConversion() 369 assertEquals(1111111, TimeUtil.toMicros(timestamp)); in testTimestampConversion() 370 assertEquals(1111, TimeUtil.toMillis(timestamp)); in testTimestampConversion() 371 timestamp = TimeUtil.createTimestampFromNanos(1111111111); in testTimestampConversion() 372 assertEquals("1970-01-01T00:00:01.111111111Z", TimeUtil.toString(timestamp)); in testTimestampConversion() 373 timestamp = TimeUtil.createTimestampFromMicros(1111111); in testTimestampConversion() 374 assertEquals("1970-01-01T00:00:01.111111Z", TimeUtil.toString(timestamp)); in testTimestampConversion() 375 timestamp = TimeUtil.createTimestampFromMillis(1111); in testTimestampConversion() 376 assertEquals("1970-01-01T00:00:01.111Z", TimeUtil.toString(timestamp)); in testTimestampConversion() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_DisplayEventReceiver.cpp | 63 void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count) override; 64 void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override; 65 void dispatchConfigChanged(nsecs_t timestamp, PhysicalDisplayId displayId, 90 void NativeDisplayEventReceiver::dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchVsync() argument 98 gDisplayEventReceiverClassInfo.dispatchVsync, timestamp, displayId, count); in dispatchVsync() 105 void NativeDisplayEventReceiver::dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchHotplug() argument 113 gDisplayEventReceiverClassInfo.dispatchHotplug, timestamp, displayId, connected); in dispatchHotplug() 120 void NativeDisplayEventReceiver::dispatchConfigChanged(nsecs_t timestamp, in dispatchConfigChanged() argument 130 timestamp, displayId, configId); in dispatchConfigChanged()
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | ManagedApplicationService.java | 117 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/ |
D | IpConnectivityLogTest.java | 78 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/ |
D | WifiWakeMetrics.java | 236 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/av/services/camera/libcameraservice/utils/ |
D | TagMonitor.cpp | 107 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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | timestamp.proto | 37 option go_package = "github.com/golang/protobuf/ptypes/timestamp"; 58 // Timestamp timestamp; 59 // timestamp.set_seconds(time(NULL)); 60 // timestamp.set_nanos(0); 67 // Timestamp timestamp; 68 // timestamp.set_seconds(tv.tv_sec); 69 // timestamp.set_nanos(tv.tv_usec * 1000); 79 // Timestamp timestamp; 80 // timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); 81 // timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/ |
D | time_util.cc | 152 string TimeUtil::ToString(const Timestamp& timestamp) { in ToString() argument 153 return FormatTime(timestamp.seconds(), timestamp.nanos()); in ToString() 156 bool TimeUtil::FromString(const string& value, Timestamp* timestamp) { in FromString() argument 162 *timestamp = CreateNormalized<Timestamp>(seconds, nanos); in FromString() 313 int64 TimeUtil::TimestampToNanoseconds(const Timestamp& timestamp) { in TimestampToNanoseconds() argument 314 return timestamp.seconds() * kNanosPerSecond + timestamp.nanos(); in TimestampToNanoseconds() 317 int64 TimeUtil::TimestampToMicroseconds(const Timestamp& timestamp) { in TimestampToMicroseconds() argument 318 return timestamp.seconds() * kMicrosPerSecond + in TimestampToMicroseconds() 319 RoundTowardZero(timestamp.nanos(), kNanosPerMicrosecond); in TimestampToMicroseconds() 322 int64 TimeUtil::TimestampToMilliseconds(const Timestamp& timestamp) { in TimestampToMilliseconds() argument [all …]
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityMetricsEvent.java | 32 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/include/media/ |
D | AudioTimestamp.h | 124 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/telephony/java/android/telephony/ |
D | ModemActivityInfo.java | 46 public ModemActivityInfo(long timestamp, int sleepTimeMs, int idleTimeMs, in ModemActivityInfo() argument 48 mTimestamp = timestamp; in ModemActivityInfo() 77 long timestamp = in.readLong(); 86 return new ModemActivityInfo(timestamp, sleepTimeMs, idleTimeMs, 113 public void setTimestamp(long timestamp) { in setTimestamp() argument 114 mTimestamp = timestamp; in setTimestamp()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioTimestamp.h | 124 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/media/codec2/hidl/1.0/vts/functional/video/ |
D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 41 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/ |
D | AAudioServiceStreamMMAP.cpp | 164 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()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackData.java | 77 public @NonNull Instant timestamp; field in RollbackData 120 this.timestamp = Instant.now(); in RollbackData() 126 RollbackData(RollbackInfo info, File backupDir, Instant timestamp, int stagedSessionId, in RollbackData() argument 130 this.timestamp = timestamp; in RollbackData()
|