Home
last modified time | relevance | path

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

123

/development/tools/winscope/src/common/
Dtimestamp_converter_test.ts54 const timestamp = new TimestampConverter( constant
57 expect(timestamp.getValueNs()).toBe(testRealNs);
58 expect(timestamp.format()).toEqual('2022-07-31, 04:55:41.051');
62 const timestamp = constant
64 expect(timestamp.getValueNs()).toBe(
67 expect(timestamp.format()).toEqual('2022-07-31, 04:55:41.056');
71 const timestamp = constant
73 expect(timestamp.getValueNs()).toBe(
76 expect(timestamp.format()).toEqual('2022-07-31, 04:55:41.052');
80 const timestamp = new TimestampConverter( constant
[all …]
Dtime_test.ts31 let timestamp = REAL_TIMESTAMP_10.add(REAL_TIMESTAMP_20.getValueNs()); variable
32 expect(timestamp.getValueNs()).toBe(30n);
34 timestamp = ELAPSED_TIMESTAMP_10.add(ELAPSED_TIMESTAMP_20.getValueNs());
35 expect(timestamp.getValueNs()).toBe(30n);
39 let timestamp = REAL_TIMESTAMP_20.minus(REAL_TIMESTAMP_10.getValueNs()); variable
40 expect(timestamp.getValueNs()).toBe(10n);
42 timestamp = ELAPSED_TIMESTAMP_20.minus(ELAPSED_TIMESTAMP_10.getValueNs());
43 expect(timestamp.getValueNs()).toBe(10n);
47 let timestamp = TimestampConverterUtils.makeRealTimestamp(10n).div(2n); variable
48 expect(timestamp.getValueNs()).toBe(5n);
[all …]
Dtimestamp_converter.ts43 format(timestamp: Timestamp): string {
45 timestamp.getValueNs() + (this.utcOffset.getValueNs() ?? 0n);
60 format(timestamp: Timestamp): string {
61 const timestampNanos = timestamp.getValueNs();
84 tryGetBootTimeNs(timestamp: Timestamp): bigint | undefined;
85 tryGetRealTimeNs(timestamp: Timestamp): bigint | undefined;
106 initializeUTCOffset(timestamp: Timestamp) {
113 const utcValueNs = timestamp.getValueNs();
190 tryGetBootTimeNs(timestamp: Timestamp): bigint | undefined {
197 return timestamp.getValueNs() - this.realToBootTimeOffsetNs;
[all …]
/development/tools/winscope/src/trace/
Dtrace_position.ts22 static fromTimestamp(timestamp: Timestamp): TracePosition {
23 return new TracePosition(timestamp);
35 const timestamp = explicitTimestamp constant
38 return new TracePosition(timestamp, frame, entry);
43 this.timestamp.getValueNs() === other.timestamp.getValueNs() &&
51 readonly timestamp: Timestamp,
Dtrace_entry_finder.ts48 const timestamp = position.entry.getTimestamp(); constant
51 trace.findFirstGreaterEntry(timestamp) ??
52 trace.findFirstGreaterOrEqualEntry(timestamp)
56 trace.findLastLowerEntry(timestamp) ??
57 trace.findLastLowerOrEqualEntry(timestamp)
62 return trace.findLastLowerOrEqualEntry(position.timestamp);
Dtrace.ts50 protected readonly timestamp: Timestamp, property in TraceEntry
63 return this.timestamp;
83 timestamp: Timestamp,
86 super(fullTrace, parser, index, timestamp, framesRange);
101 timestamp: Timestamp,
105 super(fullTrace, parser, index, timestamp, framesRange);
176 return this.getEntryInternal(index, (index, timestamp, frames) => {
181 timestamp,
195 return this.getEntryInternal(index, (index, timestamp, frames) => {
200 timestamp,
[all …]
/development/tools/repo_diff/service/repodiff/repositories/
Dproject.go29 timestamp,
52 var timestamp int64
55 …`SELECT timestamp, uuid FROM project_differential WHERE upstream_target_id = ? AND downstream_targ…
56 …SELECT MAX(timestamp) FROM project_differential WHERE upstream_target_id = ? AND downstream_target…
63 &timestamp,
73 return timestamp, u, nil
77 timestamp, uid, err := p.GetMostRecentOuterKey()
102 timestamp,
118 AND timestamp = ?
122 timestamp,
Dcommit.go53 timestamp,
72 var timestamp int64
75 …`SELECT timestamp, uuid FROM project_commit WHERE upstream_target_id = ? AND downstream_target_id …
76 …SELECT MAX(timestamp) FROM project_commit WHERE upstream_target_id = ? AND downstream_target_id = ?
83 &timestamp,
93 return timestamp, u, nil
97 timestamp, uid, err := c.GetMostRecentOuterKey()
127 timestamp,
139 AND timestamp = ?
143 timestamp,
[all …]
/development/tools/winscope/src/parsers/protolog/perfetto/
Dparser_protolog.ts28 timestamp: bigint = 0n; property in PerfettoLogMessageTableRow
30 constructor(timestamp: bigint, tag: string, level: string, message: string) {
31 this.timestamp = timestamp ?? this.timestamp;
50 timestamp: protologEntry.timestamp, constant
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiEventScheduler.java40 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument
42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend()
58 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
59 super(timestamp); in MidiEvent()
79 long timestamp) { in createScheduledEvent() argument
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
90 event.setTimestamp(timestamp); in createScheduledEvent()
DMidiFramer.java49 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
70 offset - sysExStartOffset + 1, timestamp); in onSend()
84 offset - sysExStartOffset, timestamp); in onSend()
87 mReceiver.send(data, offset, 1, timestamp); in onSend()
96 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend()
108 offset - sysExStartOffset, timestamp); in onSend()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiEventScheduler.java40 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument
42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend()
58 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
59 super(timestamp); in MidiEvent()
79 long timestamp) { in createScheduledEvent() argument
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
90 event.setTimestamp(timestamp); in createScheduledEvent()
DMidiFramer.java49 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
70 offset - sysExStartOffset + 1, timestamp); in onSend()
84 offset - sysExStartOffset, timestamp); in onSend()
87 mReceiver.send(data, offset, 1, timestamp); in onSend()
96 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend()
108 offset - sysExStartOffset, timestamp); in onSend()
/development/tools/logblame/
Dlogs.py19 def __init__(self, buf=None, timestamp=None, uid=None, pid=None, tid=None, level=None, argument
22 self.timestamp = timestamp
32 return "{%s} {%s} {%s} {%s} {%s} {%s}/{%s}: {%s}" % (self.buf, self.timestamp, self.uid,
38 and self.timestamp == other.timestamp
48 logLine = LogLine(self.buf, self.timestamp, self.uid, self.pid, self.tid, self.level,
68 clone.timestamp = logLine.timestamp
80 timestamp = None
127 timestamp=m.group(1),
145 timestamp=m.group(1),
/development/tools/repo_diff/service/repodiff/utils/
Dtime_test.go19 var timestamp ent.RepoTimestamp = 1519322647
20 assert.Equal(t, "2018-02-22", TimestampToDate(timestamp), "Date conversion")
24 var timestamp ent.RepoTimestamp = 1519322647
25 assert.Equal(t, "2018022210", TimestampToDataStudioDatetime(timestamp), "Datetime conversion")
Dtime.go14 func TimestampToDate(timestamp ent.RepoTimestamp) string {
15 year, month, day := t.Unix(int64(timestamp), 0).Date()
20 func TimestampToDataStudioDatetime(timestamp ent.RepoTimestamp) string {
21 asTime := t.Unix(int64(timestamp), 0)
/development/tools/winscope/src/parsers/screen_recording/
Dparser_screenshot_test.ts54 timestamps.forEach((timestamp) => expect(timestamp).toEqual(expected));
65 assertDefined(parser.getTimestamps()).forEach((timestamp) =>
66 expect(timestamp).toEqual(expectedReal),
/development/tools/winscope/src/viewers/components/
Dproperty_tree_node_data_view_component_test.ts53 let timestamp: Timestamp | undefined; variable
55 timestamp = (event as CustomEvent).detail.timestamp;
76 expect(assertDefined(timestamp).format()).toEqual(
/development/tools/repo_diff/service/repodiff/mappers/
Dmappers.go103 func diffRowToPersistCols(d e.AnalyzedDiffRow, uuidBytes string, timestamp e.RepoTimestamp, rowInde…
105 timestamp,
120 func commitRowToPersistCols(c e.AnalyzedCommitRow, uuidBytes string, timestamp e.RepoTimestamp, row…
122 timestamp,
133 func DiffRowsToPersistCols(diffRows []e.AnalyzedDiffRow, timestamp e.RepoTimestamp) [][]interface{}…
141 timestamp,
213 func CommitRowsToPersistCols(commitRows []e.AnalyzedCommitRow, timestamp e.RepoTimestamp) [][]inter…
221 timestamp,
254 var timestamp e.RepoTimestamp
256 &timestamp,
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/content/
DChangedContacts.java203 long timestamp = 0; in onLoadFinished() local
215 timestamp = data.getLong(data.getColumnIndex( in onLoadFinished()
219 if (timestamp > 0) { in onLoadFinished()
220 saveLastTimestamp(timestamp, PREF_KEY_CHANGE); in onLoadFinished()
221 mChangeButton.setText("Changed since " + timestamp); in onLoadFinished()
229 timestamp = data.getLong(data.getColumnIndex( in onLoadFinished()
233 if (timestamp > 0) { in onLoadFinished()
234 saveLastTimestamp(timestamp, PREF_KEY_DELETE); in onLoadFinished()
235 mDeleteButton.setText("Deleted since " + timestamp); in onLoadFinished()
296 String timestamp = cursor.getString(cursor.getColumnIndex( in bindView() local
[all …]
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailImpl.java39 Long timestamp, in VoicemailImpl() argument
51 mTimestamp = timestamp; in VoicemailImpl()
64 public static Builder createForInsertion(long timestamp, String number) { in createForInsertion() argument
65 return new Builder().setNumber(number).setTimestamp(timestamp); in createForInsertion()
112 public Builder setTimestamp(long timestamp) { in setTimestamp() argument
113 mBuilderTimestamp = timestamp; in setTimestamp()
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DConversations.java65 private final long timestamp; field in Conversations.Conversation
72 this.timestamp = System.currentTimeMillis(); in Conversation()
88 return timestamp; in getTimestamp()
95 ", timestamp=" + timestamp + "]"; in toString()
/development/tools/winscope/src/app/components/timeline/
Dtimeline_component.ts636 updateSeekTimestamp(timestamp: Timestamp | undefined) {
637 if (timestamp) {
640 ).makePositionFromActiveTrace(timestamp);
748 this.getCurrentTracePosition().timestamp.format(),
754 const timestamp = assertDefined( constant
760 timelineData.makePositionFromActiveTrace(timestamp),
772 const timestamp = assertDefined( constant
778 timelineData.makePositionFromActiveTrace(timestamp),
809 .timestamp.format()
825 return this.getCurrentTracePosition().timestamp.format();
[all …]
/development/samples/browseable/MidiScope/src/com.example.android.midiscope/
DLoggingReceiver.java44 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
47 if (timestamp == 0) { in onSend()
50 long monoTime = timestamp - mStartTime; in onSend()
/development/tools/winscope/src/parsers/events/
Dtraces_parser_cujs.ts101 private makeCujTimestampObject(timestamp: PropertyTreeNode): CujTimestamp {
104 timestamp.getChildByName('unixNanos'),
107 timestamp.getChildByName('elapsedNanos'),
110 timestamp.getChildByName('systemUptimeNanos'),
194 const timestamp = assertDefined(event.getChildByName('cujTimestamp')); constant
197 this.cujTimestampIsGreaterThan(timestamp, startTimestamp)

123