Home
last modified time | relevance | path

Searched refs:uiData (Results 1 – 22 of 22) sorted by relevance

/development/tools/winscope/src/viewers/common/
Dabstract_hierarchy_viewer_presenter_test.ts37 let uiData: UiDataHierarchy;
45 uiData = newData;
51 uiData = newData;
62 expect(Object.keys(uiData.hierarchyUserOptions).length).toBeGreaterThan(
66 Object.keys(uiData.propertiesUserOptions).length,
68 expect(uiData.hierarchyTrees).toBeFalsy();
71 Object.keys(assertDefined(uiData?.rectsUserOptions)).length,
81 expect(uiData.highlightedItem?.length).toEqual(0);
82 expect(Object.keys(uiData.hierarchyUserOptions).length).toBeGreaterThan(
86 Object.keys(uiData.propertiesUserOptions).length,
[all …]
Dabstract_hierarchy_viewer_presenter.ts39 export type NotifyHierarchyViewCallbackType = (uiData: UiDataHierarchy) => void;
58 protected uiData: UiDataHierarchy,
135 this.uiData.pinnedItems = this.hierarchyPresenter.getPinnedItems();
141 this.uiData.highlightedProperty =
152 this.uiData.rectsUserOptions = this.rectsPresenter.getUserOptions();
153 this.uiData.rectsToDraw = this.rectsPresenter.getRectsToDraw();
154 this.uiData.rectIdToShowState = this.rectsPresenter.getRectIdToShowState();
161 this.uiData.hierarchyUserOptions = this.hierarchyPresenter.getUserOptions();
162 this.uiData.hierarchyTrees = this.hierarchyPresenter.getAllFormattedTrees();
168 this.uiData.hierarchyTrees = this.hierarchyPresenter.getAllFormattedTrees();
[all …]
Dabstract_presenter_input_method_test.ts172 uiData: UiDataHierarchy,
174 const trees = assertDefined(uiData.hierarchyTrees);
179 uiData: UiDataHierarchy,
181 const trees = assertDefined(uiData.hierarchyTrees);
188 let uiData: ImeUiData;
209 expect(uiData.hierarchyUserOptions).toBeTruthy();
210 expect(uiData.propertiesUserOptions).toBeTruthy();
211 expect(uiData.hierarchyTrees).toBeDefined();
217 expect(uiData.hierarchyUserOptions).toBeTruthy();
218 expect(uiData.propertiesUserOptions).toBeTruthy();
[all …]
Dabstract_viewer_input_method.ts33 protected imeUiCallback = ((uiData: ImeUiData) => {
34 (this.htmlElement as any).inputData = uiData;
/development/tools/winscope/src/viewers/viewer_transactions/
Dpresenter.ts44 type NotifyViewCallbackType = (uiData: UiData) => void;
51 private uiData = UiData.EMPTY;
101 this.notifyUiDataCallback(this.uiData);
117 this.uiData.currentEntryIndex = this.computeCurrentEntryIndex();
118 this.uiData.selectedEntryIndex = undefined;
119 this.uiData.scrollToIndex = this.uiData.currentEntryIndex;
121 this.uiData.entries,
122 this.uiData.currentEntryIndex,
123 this.uiData.selectedEntryIndex,
125 this.uiData.currentPropertiesTree = this.formatPropertiesTree(
[all …]
Dviewer_transactions_component.ts252 uiData: UiData = UiData.EMPTY; property in ViewerTransactionsComponent
271 this.uiData = data;
273 this.uiData.scrollToIndex !== undefined &&
276 this.uiData.entries[this.uiData.scrollToIndex].time.formattedValue()
278 this.scrollComponent.scrollToIndex(this.uiData.scrollToIndex);
315 if (this.uiData.currentEntryIndex !== undefined && this.scrollComponent) {
316 this.scrollComponent.scrollToIndex(this.uiData.currentEntryIndex);
330 this.uiData.selectedEntryIndex ?? this.uiData.currentEntryIndex;
334 if (event.key === 'ArrowDown' && index < this.uiData.entries.length - 1) {
346 return index === this.uiData.currentEntryIndex;
[all …]
Dviewer_transactions_component_test.ts120 component.uiData.entries = allEntries;
123 component.uiData.entries = allEntries.filter((entry) =>
137 component.uiData.entries = allEntries;
140 component.uiData.entries = allEntries.filter((entry) => {
152 component.uiData.entries = allEntries;
155 component.uiData.entries = allEntries.filter((entry) => {
166 component.uiData.entries = allEntries;
169 component.uiData.entries = allEntries.filter((entry) => {
180 component.uiData.entries = allEntries;
183 component.uiData.entries = allEntries.filter((entry) => {
[all …]
Dpresenter_test.ts359 const uiData = assertDefined(outputUiData); constant
360 expect(uiData.currentEntryIndex).toEqual(0);
361 expect(uiData.selectedEntryIndex).toBeUndefined();
362 expect(uiData.scrollToIndex).toEqual(0);
363 expect(assertDefined(uiData.currentPropertiesTree).id).toEqual(
364 assertDefined(uiData.entries[0].propertiesTree).id,
369 const uiData = assertDefined(outputUiData); constant
370 expect(uiData.currentEntryIndex).toEqual(0);
371 expect(uiData.selectedEntryIndex).toEqual(index);
372 expect(assertDefined(uiData.currentPropertiesTree).id).toEqual(
[all …]
/development/tools/winscope/src/viewers/viewer_protolog/
Dviewer_protolog_component.ts191 uiData: UiData = UiData.EMPTY; property in ViewerProtologComponent
204 this.uiData = data;
207 this.uiData.currentMessageIndex !== undefined &&
210 this.uiData.messages[
211 this.uiData.currentMessageIndex
214 this.scrollComponent.scrollToIndex(this.uiData.currentMessageIndex);
237 if (this.uiData.currentMessageIndex !== undefined && this.scrollComponent) {
238 this.scrollComponent.scrollToIndex(this.uiData.currentMessageIndex);
255 return index === this.uiData.currentMessageIndex;
259 return index === this.uiData.selectedMessageIndex;
Dpresenter.ts39 private uiData = UiData.EMPTY;
59 this.notifyUiDataCallback(this.uiData);
76 this.notifyUiDataCallback(this.uiData);
85 this.notifyUiDataCallback(this.uiData);
92 this.notifyUiDataCallback(this.uiData);
99 this.notifyUiDataCallback(this.uiData);
106 this.notifyUiDataCallback(this.uiData);
110 if (this.uiData.selectedMessageIndex === index) {
111 this.uiData.selectedMessageIndex = undefined;
113 this.uiData.selectedMessageIndex = index;
[all …]
Dviewer_protolog_component_test.ts93 component.uiData.messages = allMessages;
96 component.uiData.messages = allMessages.filter((message) =>
108 component.uiData.messages = allMessages;
111 component.uiData.messages = allMessages.filter((message) =>
124 component.uiData.messages = allMessages;
127 component.uiData.messages = allMessages.filter((message) =>
140 component.uiData.messages = allMessages.filter((message) =>
147 expect(component.uiData.messages.length).toEqual(200);
158 expect(component.uiData.messages.length).toEqual(100);
162 expect(component.uiData.messages.length).toEqual(200);
[all …]
Dpresenter_test.ts177 const uiData = assertDefined(outputUiData); constant
178 expect(uiData.messages).toEqual([]);
179 expect(uiData.currentMessageIndex).toBeUndefined();
191 const uiData = assertDefined(outputUiData); constant
192 expect(uiData.allLogLevels).toEqual(['level0', 'level1', 'level2']);
193 expect(uiData.allTags).toEqual(['tag0', 'tag1', 'tag2']);
194 expect(uiData.allSourceFiles).toEqual([
199 expect(uiData.messages).toEqual(inputMessages);
200 expect(uiData.currentMessageIndex).toEqual(0);
/development/tools/winscope/src/viewers/viewer_surface_flinger/
Dpresenter_test.ts168 uiData: UiDataHierarchy,
170 expect(assertDefined((uiData as UiData).curatedProperties).flags).toEqual(
184 uiData: UiDataHierarchy,
188 uiData.propertiesTree
197 uiData: UiDataHierarchy,
201 uiData.propertiesTree
210 uiData: UiDataHierarchy,
213 (uiData as UiData).curatedProperties,
248 let uiData: UiData;
256 uiData = newData;
[all …]
Dviewer_surface_flinger.ts45 const notifyViewCallback = (uiData: UiData) => {
46 (this.htmlElement as any).inputData = uiData;
/development/tools/winscope/src/viewers/viewer_view_capture/
Dpresenter_test.ts156 uiData: UiDataHierarchy,
159 assertDefined((uiData as UiData).curatedProperties).translationY,
172 uiData: UiDataHierarchy,
174 const propertiesTree = assertDefined(uiData.propertiesTree);
183 uiData: UiDataHierarchy,
185 const propertiesTree = assertDefined(uiData.propertiesTree);
194 uiData: UiDataHierarchy,
197 (uiData as UiData).curatedProperties,
Dviewer_view_capture.ts43 const notifyViewCallback = (uiData: UiData) => {
44 (this.htmlElement as any).inputData = uiData;
Dpresenter.ts165 if (this.uiData && this.surfaceFlingerTrace) {
/development/tools/winscope/src/viewers/viewer_transitions/
Dpresenter.ts51 private uiData = UiData.EMPTY; property in Presenter
76 if (this.uiData === UiData.EMPTY) {
77 this.uiData = await this.computeUiData();
90 this.notifyUiDataCallback(this.uiData);
96 this.uiData.selectedTransition = this.makeUiPropertiesTree(transition);
97 this.notifyUiDataCallback(this.uiData);
148 const selectedTransition = this.uiData?.selectedTransition ?? undefined;
Dviewer_transitions_component.ts233 this.uiData = data;
243 this.uiData.selectedTransition
248 this.uiData.selectedTransition
280 uiData: UiData = UiData.EMPTY; property in ViewerTransitionsComponent
Dviewer_transitions_component_test.ts74 component.uiData = makeUiData();
179 component.uiData.selectedTransition
/development/tools/winscope/src/viewers/viewer_window_manager/
Dpresenter_test.ts157 uiData: UiDataHierarchy,
159 const propertiesTree = assertDefined(uiData.propertiesTree);
166 uiData: UiDataHierarchy,
168 const propertiesTree = assertDefined(uiData.propertiesTree);
Dviewer_window_manager.ts43 const notifyViewCallback = (uiData: UiData) => {
44 (this.htmlElement as any).inputData = uiData;