Home
last modified time | relevance | path

Searched refs:selectedArea (Results 1 – 10 of 10) sorted by relevance

/external/perfetto/ui/src/controller/
Darea_selection_handler.ts27 const selectedArea = globals.state.areas[currentSelection.areaId]; constant
33 let hasAreaChanged = (!!this.previousArea !== !!selectedArea);
34 if (selectedArea && this.previousArea) {
40 hasAreaChanged || selectedArea.start !== this.previousArea.start;
42 hasAreaChanged || selectedArea.end !== this.previousArea.end;
44 selectedArea.tracks.length !== this.previousArea.tracks.length;
45 for (let i = 0; i < selectedArea.tracks.length; ++i) {
47 selectedArea.tracks[i] !== this.previousArea.tracks[i];
52 this.previousArea = selectedArea;
55 return [hasAreaChanged, selectedArea];
Darea_selection_handler_unittest.ts29 const [hasAreaChanged, selectedArea] = areaSelectionHandler.getAreaChange(); constant
32 expect(selectedArea).toEqual(latestArea);
53 const [hasAreaChanged, selectedArea] = areaSelectionHandler.getAreaChange(); constant
56 expect(selectedArea).toEqual(undefined);
65 const [hasAreaChanged, selectedArea] = areaSelectionHandler.getAreaChange(); constant
68 expect(selectedArea).toEqual(undefined);
91 const [hasAreaChanged, selectedArea] = areaSelectionHandler.getAreaChange(); constant
94 expect(selectedArea).toEqual(current);
117 const [hasAreaChanged, selectedArea] = areaSelectionHandler.getAreaChange(); constant
120 expect(selectedArea).toEqual(current);
[all …]
/external/perfetto/ui/src/frontend/
Dtrack_group_panel.ts98 const selectedArea = globals.state.areas[selection.areaId]; constant
99 if (selectedArea.tracks.includes(attrs.trackGroupId) &&
100 trackGroup.tracks.every((id) => selectedArea.tracks.includes(id))) {
103 selectedArea.tracks.includes(attrs.trackGroupId) ||
104 trackGroup.tracks.some((id) => selectedArea.tracks.includes(id))) {
193 const selectedArea = globals.state.areas[selection.areaId]; constant
194 const selectedAreaDuration = selectedArea.end - selectedArea.start; constant
195 if (selectedArea.tracks.includes(this.trackGroupId)) {
198 visibleTimeScale.tpTimeToPx(selectedArea.start) + this.shellWidth,
Dtime_selection_panel.ts157 const localArea = globals.frontendLocalState.selectedArea;
164 const selectedArea = globals.state.areas[selection.areaId]; constant
165 const start = BigintMath.min(selectedArea.start, selectedArea.end);
166 const end = BigintMath.max(selectedArea.start, selectedArea.end);
178 const selectedArea = globals.state.areas[note.areaId]; constant
180 ctx, size, new TPTimeSpan(selectedArea.start, selectedArea.end));
Dtrack_panel.ts61 const selectedArea = globals.state.areas[selection.areaId]; constant
62 return selectedArea.tracks.includes(id);
371 const selectedArea = globals.state.areas[selection.areaId]; constant
372 const selectedAreaDuration = selectedArea.end - selectedArea.start; constant
373 if (selectedArea.tracks.includes(trackState.id)) {
376 visibleTimeScale.tpTimeToPx(selectedArea.start) + TRACK_SHELL_WIDTH,
Dviewer_page.ts52 const area = globals.frontendLocalState.selectedArea ?
53 globals.frontendLocalState.selectedArea :
159 const area = globals.frontendLocalState.selectedArea ?
160 globals.frontendLocalState.selectedArea :
204 const area = globals.frontendLocalState.selectedArea;
Daggregation_panel.ts114 const selectedArea = globals.state.areas[selection.areaId]; constant
116 tpTimeToMillis(selectedArea.end - selectedArea.start);
Dkeyboard_event_handler.ts236 const selectedArea = globals.state.areas[selection.areaId]; constant
237 if (selectedArea) {
238 startTs = selectedArea.start;
239 endTs = selectedArea.end;
Dpanel_container.ts119 const area = globals.frontendLocalState.selectedArea;
426 const area = globals.frontendLocalState.selectedArea;
Dfrontend_local_state.ts264 get selectedArea(): Area|undefined {