/development/tools/winscope/src/common/ |
D | time.ts | 23 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);
|
D | timestamp_utils.ts | 88 return Number(a.getValueNs() - b.getValueNs()); 92 if (ts2.getValueNs() < ts1.getValueNs()) { 100 if (ts2.getValueNs() > ts1.getValueNs()) {
|
D | time_test.ts | 31 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);
|
D | timestamp_converter.ts | 45 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();
|
D | timestamp_converter_test.ts | 57 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);
|
D | utc_offset_test.ts | 56 expect(utcOffset.getValueNs()).toBeUndefined(); 58 expect(utcOffset.getValueNs()).toBeUndefined();
|
/development/tools/winscope/src/app/components/timeline/mini-timeline/ |
D | transformer_test.ts | 37 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 …]
|
D | slider_component.ts | 156 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()) {
|
D | mini_timeline_component.ts | 332 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 …]
|
D | slider_component_test.ts | 193 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 …]
|
D | transformer.ts | 34 this.fromRange.to.getValueNs() - this.fromRange.from.getValueNs(); 38 this.fromOffset = this.fromRange.from.getValueNs(); 46 (this.targetWidth * Number(x.getValueNs() - this.fromOffset)) /
|
D | mini_timeline_component_test.ts | 292 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/ |
D | transition_timeline_component.ts | 177 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();
|
D | default_timeline_row_component.ts | 149 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/ |
D | add_status.ts | 30 wmDataNode.getChildByName('abortTimeNs')?.getValue()?.getValueNs() > 0n; 32 shellDataNode.getChildByName('abortTimeNs')?.getValue()?.getValueNs() > 46 shellDataNode.getChildByName('mergeTimeNs')?.getValue()?.getValueNs() > 54 wmDataNode.getChildByName('finishTimeNs')?.getValue()?.getValueNs() >
|
D | add_duration.ts | 42 const timeDiffNs = finishTime.minus(sendTime.getValueNs()).getValueNs();
|
/development/tools/winscope/src/app/components/timeline/ |
D | timeline_utils.ts | 53 const timeRangeMin = fullTimeRange.from.getValueNs(); 54 const timeRangeMax = fullTimeRange.to.getValueNs(); 57 ? dispatchTimestamp.getValueNs() 60 ? finishOrAbortTimestamp.getValueNs()
|
D | timeline_component.ts | 840 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/ |
D | timeline_data.ts | 173 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()
|
D | loaded_parsers.ts | 355 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/ |
D | trace_position.ts | 43 this.timestamp.getValueNs() === other.timestamp.getValueNs() &&
|
D | trace.ts | 251 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/ |
D | user_warnings.ts | 61 this.timeGap.to.getValueNs() - this.timeGap.from.getValueNs(),
|
/development/tools/winscope/src/parsers/transitions/legacy/ |
D | traces_parser_transitions.ts | 108 ?.getValueNs() ?? 0n; 111 ? dispatchTimestamp.getValueNs() 150 ?.getValueNs() ?? 0n; 155 ?.getValueNs() ?? 0n;
|
/development/tools/winscope/src/parsers/protolog/perfetto/ |
D | parser_protolog_test.ts | 87 expect(ts.getValueNs() >= prevEntryTs).toBeTrue(); 88 prevEntryTs = ts.getValueNs();
|