Home
last modified time | relevance | path

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

/external/perfetto/ui/src/frontend/
Dtime_scale_unittest.ts22 expect(scale.timeToPx(0)).toEqual(200);
23 expect(scale.timeToPx(100)).toEqual(1000);
24 expect(scale.timeToPx(50)).toEqual(600);
43 expect(scale.timeToPx(0)).toEqual(100);
46 expect(scale.timeToPx(0)).toEqual(200);
47 expect(scale.timeToPx(100)).toEqual(1000);
50 expect(scale.timeToPx(0)).toEqual(200);
51 expect(scale.timeToPx(100)).toEqual(600);
52 expect(scale.timeToPx(200)).toEqual(1000);
Dtickmark_panel.ts47 Math.max(timeScale.timeToPx(tStart), 0) + TRACK_SHELL_WIDTH;
48 const rectEnd = timeScale.timeToPx(tEnd) + TRACK_SHELL_WIDTH;
59 Math.max(timeScale.timeToPx(startSec), 0) + TRACK_SHELL_WIDTH;
Dnotes_panel.ts114 const x = timeScale.timeToPx(timestamp);
123 Math.floor(timeScale.timeToPx(area.endSec) + TRACK_SHELL_WIDTH),
152 const x = timeScale.timeToPx(timestamp);
247 const noteX = timeScale.timeToPx(getStartTimestamp(note));
251 (timeScale.timeToPx(noteArea.endSec) > x &&
252 x > timeScale.timeToPx(noteArea.endSec) - AREA_TRIANGLE_WIDTH);
Doverview_timeline_panel.ts105 const xStart = Math.floor(this.timeScale.timeToPx(loads[i].startSec));
106 const xEnd = Math.ceil(this.timeScale.timeToPx(loads[i].endSec));
203 Math.floor(timeScale.timeToPx(vizTime[0])),
204 Math.ceil(timeScale.timeToPx(vizTime[1]))
Dtrack.ts92 const startPx = Math.floor(timeScale.timeToPx(visibleWindowTime.start));
93 const endPx = Math.ceil(timeScale.timeToPx(visibleWindowTime.end));
Dtime_selection_panel.ts165 const xPos = TRACK_SHELL_WIDTH + Math.floor(timeScale.timeToPx(ts));
174 const xLeft = timeScale.timeToPx(span.start);
175 const xRight = timeScale.timeToPx(span.end);
Dpanel_container.ts136 globals.frontendLocalState.timeScale.timeToPx(area.startSec),
137 globals.frontendLocalState.timeScale.timeToPx(area.endSec),
418 const startX = globals.frontendLocalState.timeScale.timeToPx(area.startSec);
419 const endX = globals.frontendLocalState.timeScale.timeToPx(area.endSec);
Dvertical_line_helper.ts24 const xPos = TRACK_SHELL_WIDTH + Math.floor(timeScale.timeToPx(time));
Dviewer_page.ts49 const start = globals.frontendLocalState.timeScale.timeToPx(area.startSec);
50 const end = globals.frontendLocalState.timeScale.timeToPx(area.endSec);
Dtime_scale.ts46 timeToPx(time: number): number { method in TimeScale
Dgridline_helper.ts83 xPos += Math.floor(timescale.timeToPx(timestamp));
Dtrack_group_panel.ts167 localState.timeScale.timeToPx(selectedArea.startSec) +
Dflow_events_renderer.ts144 return globals.frontendLocalState.timeScale.timeToPx(ts);
Dtrack_panel.ts301 timeScale.timeToPx(selectedArea.startSec) + TRACK_SHELL_WIDTH,
/external/perfetto/ui/src/tracks/thread_state/
Dfrontend.ts63 timeScale.timeToPx(visibleWindowTime.start),
64 timeScale.timeToPx(visibleWindowTime.end),
65 timeScale.timeToPx(data.start),
66 timeScale.timeToPx(data.end),
82 const rectStart = timeScale.timeToPx(tStart);
83 const rectEnd = timeScale.timeToPx(tEnd);
111 Math.max(0 - EXCESS_WIDTH, timeScale.timeToPx(tStart));
113 timeScale.timeToPx(visibleWindowTime.end) + EXCESS_WIDTH,
114 timeScale.timeToPx(tEnd));
/external/perfetto/ui/src/tracks/process_summary/
Dfrontend.ts55 timeScale.timeToPx(visibleWindowTime.start),
56 timeScale.timeToPx(visibleWindowTime.end),
57 timeScale.timeToPx(data.start),
58 timeScale.timeToPx(data.end));
66 const startPx = Math.floor(timeScale.timeToPx(visibleWindowTime.start));
85 lastX = Math.floor(timeScale.timeToPx(startTime));
/external/perfetto/ui/src/tracks/cpu_freq/
Dfrontend.ts69 const endPx = timeScale.timeToPx(visibleWindowTime.end);
93 return Math.floor(timeScale.timeToPx(timestamp));
150 const x = timeScale.timeToPx(data.timestamps[i]);
153 timeScale.timeToPx(data.timestamps[i + 1]);
169 const xStart = Math.floor(timeScale.timeToPx(this.hoveredTs));
172 Math.floor(timeScale.timeToPx(this.hoveredTsEnd));
212 timeScale.timeToPx(visibleWindowTime.start),
213 timeScale.timeToPx(visibleWindowTime.end),
214 timeScale.timeToPx(data.start),
215 timeScale.timeToPx(data.end));
/external/perfetto/ui/src/tracks/android_log/
Dfrontend.ts58 const dataStartPx = timeScale.timeToPx(data.start);
59 const dataEndPx = timeScale.timeToPx(data.end);
60 const visibleStartPx = timeScale.timeToPx(visibleWindowTime.start);
61 const visibleEndPx = timeScale.timeToPx(visibleWindowTime.end);
82 const px = Math.floor(timeScale.timeToPx(data.timestamps[i]));
/external/perfetto/ui/src/tracks/cpu_slices/
Dfrontend.ts66 timeScale.timeToPx(visibleWindowTime.start),
67 timeScale.timeToPx(visibleWindowTime.end),
68 timeScale.timeToPx(data.start),
69 timeScale.timeToPx(data.end));
95 const rectStart = timeScale.timeToPx(tStart);
96 const rectEnd = timeScale.timeToPx(tEnd);
160 const rectStart = timeScale.timeToPx(tStart);
161 const rectEnd = timeScale.timeToPx(tEnd);
172 const wakeupPos = timeScale.timeToPx(details.wakeupTs);
202 const wakeupPos = Math.floor(timeScale.timeToPx(details.wakeupTs));
/external/perfetto/ui/src/tracks/counter/
Dfrontend.ts147 const endPx = Math.floor(timeScale.timeToPx(visibleWindowTime.end));
190 return Math.floor(timeScale.timeToPx(ts));
243 const xStart = Math.floor(timeScale.timeToPx(this.hoveredTs));
246 Math.floor(timeScale.timeToPx(this.hoveredTsEnd));
278 const endPx = timeScale.timeToPx(visibleWindowTime.end);
280 Math.min(timeScale.timeToPx(this.config.endTs || Infinity), endPx);
294 timeScale.timeToPx(visibleWindowTime.start),
295 timeScale.timeToPx(visibleWindowTime.end),
296 timeScale.timeToPx(data.start),
297 timeScale.timeToPx(data.end));
/external/perfetto/ui/src/tracks/process_scheduling/
Dfrontend.ts63 timeScale.timeToPx(visibleWindowTime.start),
64 timeScale.timeToPx(visibleWindowTime.end),
65 timeScale.timeToPx(data.start),
66 timeScale.timeToPx(data.end));
86 const rectStart = timeScale.timeToPx(tStart);
87 const rectEnd = timeScale.timeToPx(tEnd);
/external/perfetto/ui/src/tracks/chrome_slices/
Dfrontend.ts62 timeScale.timeToPx(visibleWindowTime.start),
63 timeScale.timeToPx(visibleWindowTime.end),
64 timeScale.timeToPx(data.start),
65 timeScale.timeToPx(data.end),
261 const pxEnd = timeScale.timeToPx(visibleWindowTime.end);
262 const left = Math.max(timeScale.timeToPx(tStart), -TRACE_MARGIN_TIME_S);
263 const right = Math.min(timeScale.timeToPx(tEnd), pxEnd);
/external/perfetto/ui/src/frontend/drag/
Dborder_drag_strategy.ts36 [this.timeScale.timeToPx(tStart), this.timeScale.timeToPx(tEnd)];
/external/perfetto/ui/src/tracks/heap_profile/
Dfrontend.ts68 timeScale.timeToPx(fromNs(centerX)),
134 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[left]));
140 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[right]));
/external/perfetto/ui/src/tracks/cpu_profile/
Dfrontend.ts71 timeScale.timeToPx(fromNs(centerX)),
138 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[left]));
144 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[right]));