Home
last modified time | relevance | path

Searched refs:getValueNs (Results 1 – 25 of 33) sorted by relevance

12

/development/tools/winscope/src/common/
Dtime.ts23 const min = this.from.getValueNs();
24 const max = this.to.getValueNs();
25 return ts.getValueNs() >= min && ts.getValueNs() <= max;
47 getValueNs(): bigint { method in Timestamp
57 range.from.getValueNs() <= this.getValueNs() &&
58 this.getValueNs() <= range.to.getValueNs()
63 return new Timestamp(this.getValueNs() + n, this.formatter);
67 return new Timestamp(this.getValueNs() - n, this.formatter);
71 return new Timestamp(this.getValueNs() * n, this.formatter);
75 return new Timestamp(this.getValueNs() / n, this.formatter);
Dtimestamp_utils.ts88 return Number(a.getValueNs() - b.getValueNs());
92 if (ts2.getValueNs() < ts1.getValueNs()) {
100 if (ts2.getValueNs() > ts1.getValueNs()) {
Dtime_test.ts31 let timestamp = REAL_TIMESTAMP_10.add(REAL_TIMESTAMP_20.getValueNs());
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());
40 expect(timestamp.getValueNs()).toBe(10n);
42 timestamp = ELAPSED_TIMESTAMP_20.minus(ELAPSED_TIMESTAMP_10.getValueNs());
43 expect(timestamp.getValueNs()).toBe(10n);
48 expect(timestamp.getValueNs()).toBe(5n);
51 expect(timestamp.getValueNs()).toBe(5n);
Dtimestamp_converter.ts45 timestamp.getValueNs() + (this.utcOffset.getValueNs() ?? 0n);
61 const timestampNanos = timestamp.getValueNs();
108 this.utcOffset.getValueNs() !== undefined ||
113 const utcValueNs = timestamp.getValueNs();
197 return timestamp.getValueNs() - this.realToBootTimeOffsetNs;
204 return timestamp.getValueNs();
Dtimestamp_converter_test.ts57 expect(timestamp.getValueNs()).toBe(testRealNs);
64 expect(timestamp.getValueNs()).toBe(
73 expect(timestamp.getValueNs()).toBe(
83 expect(timestamp.getValueNs()).toBe(testElapsedNs);
131 expect(timestamp.getValueNs()).toBe(testRealNs);
138 expect(timestamp.getValueNs()).toBe(
147 expect(timestamp.getValueNs()).toBe(
157 expect(timestamp.getValueNs()).toBe(testElapsedNs);
545 expect(timestamp.getValueNs()).toEqual(expectedNs);
Dutc_offset_test.ts56 expect(utcOffset.getValueNs()).toBeUndefined();
58 expect(utcOffset.getValueNs()).toBeUndefined();
/development/tools/winscope/src/app/components/timeline/mini-timeline/
Dtransformer_test.ts37 const rangeStart = fromRange.from.getValueNs();
38 const rangeEnd = fromRange.to.getValueNs();
39 const range = fromRange.to.getValueNs() - fromRange.from.getValueNs();
87 const rangeStart = fromRange.from.getValueNs();
88 const range = fromRange.to.getValueNs() - fromRange.from.getValueNs();
90 expect(transformer.untransform(toRange.from).getValueNs()).toBe(
91 fromRange.from.getValueNs(),
93 expect(transformer.untransform(toRange.to).getValueNs()).toBe(
94 fromRange.to.getValueNs(),
100 .getValueNs(),
[all …]
Dslider_component.ts156 zoomRange.to.minus(zoomRange.from.getValueNs()).div(2n).getValueNs(),
239 zoomRange.to.minus(zoomRange.from.getValueNs()).div(2n).getValueNs(),
243 from.getValueNs() +
244 (assertDefined(this.zoomRange).to.getValueNs() -
245 assertDefined(this.zoomRange).from.getValueNs()),
262 if (from.getValueNs() < assertDefined(this.fullRange).from.getValueNs()) {
265 if (from.getValueNs() > assertDefined(this.zoomRange).to.getValueNs()) {
293 if (to.getValueNs() > assertDefined(this.fullRange).to.getValueNs()) {
296 if (to.getValueNs() < assertDefined(this.zoomRange).from.getValueNs()) {
Dmini_timeline_component.ts332 currentZoomRange.from.getValueNs(),
340 .add(currentZoomRange.to.getValueNs())
358 zoomTowards.minus(currentZoomRange.from.getValueNs()).getValueNs(),
360 .div(currentZoomWidth.getValueNs())
361 .getValueNs(),
366 .times(currentZoomRange.to.minus(zoomTowards.getValueNs()).getValueNs())
367 .div(currentZoomWidth.getValueNs())
368 .getValueNs(),
371 if (newFrom.getValueNs() < fullRange.from.getValueNs()) {
374 newFrom.add(zoomToWidth.getValueNs()),
[all …]
Dslider_component_test.ts193 expect(finalZoom.to.minus(finalZoom.from.getValueNs()).getValueNs()).toBe(
194 initialZoom.to.minus(initialZoom.from.getValueNs()).getValueNs(),
276 expect(finalZoom.from.getValueNs()).toBe(initialZoom.from.getValueNs());
277 expect(finalZoom.to.getValueNs()).toBe(initialZoom.to.getValueNs());
304 expect(finalZoom.from.getValueNs()).toBe(initialZoom.from.getValueNs());
305 expect(finalZoom.to.getValueNs()).toBe(initialZoom.to.getValueNs());
332 expect(finalZoom.from.getValueNs()).toBe(initialZoom.from.getValueNs());
333 expect(finalZoom.to.getValueNs()).toBe(initialZoom.to.getValueNs());
360 expect(finalZoom.from.getValueNs()).toBe(initialZoom.from.getValueNs());
361 expect(finalZoom.to.getValueNs()).toBe(initialZoom.to.getValueNs());
[all …]
Dtransformer.ts34 this.fromRange.to.getValueNs() - this.fromRange.from.getValueNs();
38 this.fromOffset = this.fromRange.from.getValueNs();
46 (this.targetWidth * Number(x.getValueNs() - this.fromOffset)) /
Dmini_timeline_component_test.ts292 expect(finalZoom.from.getValueNs()).toBe(initialZoom.from.getValueNs());
293 expect(finalZoom.to.getValueNs()).toBe(initialZoom.to.getValueNs());
298 expect(finalZoom.from.getValueNs()).toBe(initialZoom.from.getValueNs());
299 expect(finalZoom.to.getValueNs()).toBe(initialZoom.to.getValueNs());
460 zoomRange.from.getValueNs() - initialZoom.from.getValueNs();
462 expect(zoomRange.to.getValueNs()).toEqual(
463 initialZoom.to.getValueNs() + increase,
478 finalZoom.from.getValueNs() - zoomRange.from.getValueNs();
480 expect(zoomRange.to.getValueNs()).toEqual(
481 finalZoom.to.getValueNs() - decrease,
[all …]
/development/tools/winscope/src/app/components/timeline/expanded-timeline/
Dtransition_timeline_component.ts177 const start = assertDefined(this.selectionRange).from.getValueNs();
178 const end = assertDefined(this.selectionRange).to.getValueNs();
181 (BigInt(this.getAvailableWidth()) * (entry.getValueNs() - start)) /
192 const selectionStart = assertDefined(this.selectionRange).from.getValueNs();
193 const selectionEnd = assertDefined(this.selectionRange).to.getValueNs();
197 (end.getValueNs() - start.getValueNs())) /
290 (timeRange?.from.getValueNs() ??
291 assertDefined(this.selectionRange).from.getValueNs())
297 timeRange?.to.getValueNs() ??
298 assertDefined(this.selectionRange).to.getValueNs();
Ddefault_timeline_row_component.ts149 const start = assertDefined(this.selectionRange).from.getValueNs();
150 const end = assertDefined(this.selectionRange).to.getValueNs();
153 (BigInt(this.getAvailableWidth()) * (entry.getValueNs() - start)) /
159 const start = assertDefined(this.selectionRange).from.getValueNs();
160 const end = assertDefined(this.selectionRange).to.getValueNs();
/development/tools/winscope/src/parsers/transitions/operations/
Dadd_status.ts30 wmDataNode.getChildByName('abortTimeNs')?.getValue()?.getValueNs() > 0n;
32 shellDataNode.getChildByName('abortTimeNs')?.getValue()?.getValueNs() >
46 shellDataNode.getChildByName('mergeTimeNs')?.getValue()?.getValueNs() >
54 wmDataNode.getChildByName('finishTimeNs')?.getValue()?.getValueNs() >
Dadd_duration.ts42 const timeDiffNs = finishTime.minus(sendTime.getValueNs()).getValueNs();
/development/tools/winscope/src/app/components/timeline/
Dtimeline_utils.ts53 const timeRangeMin = fullTimeRange.from.getValueNs();
54 const timeRangeMax = fullTimeRange.to.getValueNs();
57 ? dispatchTimestamp.getValueNs()
60 ? finishOrAbortTimestamp.getValueNs()
Dtimeline_component.ts840 this.getCurrentTracePosition().timestamp.getValueNs();
841 return this.bookmarks.some((bm) => bm.getValueNs() === currentTimestampNs);
856 const clickedNs = (range.from.getValueNs() + range.to.getValueNs()) / 2n;
859 if (clickedNs - curr.getValueNs() < 0) return prev;
860 return Math.abs(Number(curr.getValueNs() - clickedNs)) <
861 Math.abs(Number(prev.getValueNs() - clickedNs))
866 (bm) => bm.getValueNs() !== closestBookmark.getValueNs(),
900 this.getCurrentTracePosition().timestamp.getValueNs();
/development/tools/winscope/src/app/
Dtimeline_data.ts173 this.lastReturnedFullTimeRange.from.getValueNs() !==
174 fullTimeRange.from.getValueNs() ||
175 this.lastReturnedFullTimeRange.to.getValueNs() !==
176 fullTimeRange.to.getValueNs()
231 firstTimestamp.getValueNs(),
232 entry.getTimestamp().getValueNs(),
243 this.firstEntry?.getTimestamp().getValueNs() !==
244 this.lastEntry?.getTimestamp().getValueNs()
Dloaded_parsers.ts355 const isOldData = endTimestamp.getValueNs() <= timeGap.from.getValueNs();
498 .sort((a, b) => (a.to.getValueNs() < b.to.getValueNs() ? -1 : +1));
503 const gap = next.from.getValueNs() - curr.to.getValueNs();
518 timestamps.length === 1 && timestamps[0].getValueNs() === INVALID_TIME_NS;
/development/tools/winscope/src/trace/
Dtrace_position.ts43 this.timestamp.getValueNs() === other.timestamp.getValueNs() &&
Dtrace.ts251 this.getFullTraceTimestamps()[entry].getValueNs() - time.getValueNs(),
255 this.getFullTraceTimestamps()[prevEntry].getValueNs() - time.getValueNs(),
279 if (entry.getTimestamp().getValueNs() < time.getValueNs()) {
299 if (entry.getTimestamp().getValueNs() <= time.getValueNs()) {
452 this.getEntry(0).getTimestamp().getValueNs() === INVALID_TIME_NS
/development/tools/winscope/src/messaging/
Duser_warnings.ts61 this.timeGap.to.getValueNs() - this.timeGap.from.getValueNs(),
/development/tools/winscope/src/parsers/transitions/legacy/
Dtraces_parser_transitions.ts108 ?.getValueNs() ?? 0n;
111 ? dispatchTimestamp.getValueNs()
150 ?.getValueNs() ?? 0n;
155 ?.getValueNs() ?? 0n;
/development/tools/winscope/src/parsers/protolog/perfetto/
Dparser_protolog_test.ts87 expect(ts.getValueNs() >= prevEntryTs).toBeTrue();
88 prevEntryTs = ts.getValueNs();

12