/development/tools/winscope/src/viewers/common/ |
D | abstract_hierarchy_viewer_presenter_test.ts | 37 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 …]
|
D | abstract_hierarchy_viewer_presenter.ts | 39 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 …]
|
D | abstract_presenter_input_method_test.ts | 172 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 …]
|
D | abstract_viewer_input_method.ts | 33 protected imeUiCallback = ((uiData: ImeUiData) => { 34 (this.htmlElement as any).inputData = uiData;
|
/development/tools/winscope/src/viewers/viewer_transactions/ |
D | presenter.ts | 44 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 …]
|
D | viewer_transactions_component.ts | 252 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 …]
|
D | viewer_transactions_component_test.ts | 120 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 …]
|
D | presenter_test.ts | 359 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/ |
D | viewer_protolog_component.ts | 191 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;
|
D | presenter.ts | 39 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 …]
|
D | viewer_protolog_component_test.ts | 93 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 …]
|
D | presenter_test.ts | 177 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/ |
D | presenter_test.ts | 168 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 …]
|
D | viewer_surface_flinger.ts | 45 const notifyViewCallback = (uiData: UiData) => { 46 (this.htmlElement as any).inputData = uiData;
|
/development/tools/winscope/src/viewers/viewer_view_capture/ |
D | presenter_test.ts | 156 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,
|
D | viewer_view_capture.ts | 43 const notifyViewCallback = (uiData: UiData) => { 44 (this.htmlElement as any).inputData = uiData;
|
D | presenter.ts | 165 if (this.uiData && this.surfaceFlingerTrace) {
|
/development/tools/winscope/src/viewers/viewer_transitions/ |
D | presenter.ts | 51 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;
|
D | viewer_transitions_component.ts | 233 this.uiData = data; 243 this.uiData.selectedTransition 248 this.uiData.selectedTransition 280 uiData: UiData = UiData.EMPTY; property in ViewerTransitionsComponent
|
D | viewer_transitions_component_test.ts | 74 component.uiData = makeUiData(); 179 component.uiData.selectedTransition
|
/development/tools/winscope/src/viewers/viewer_window_manager/ |
D | presenter_test.ts | 157 uiData: UiDataHierarchy, 159 const propertiesTree = assertDefined(uiData.propertiesTree); 166 uiData: UiDataHierarchy, 168 const propertiesTree = assertDefined(uiData.propertiesTree);
|
D | viewer_window_manager.ts | 43 const notifyViewCallback = (uiData: UiData) => { 44 (this.htmlElement as any).inputData = uiData;
|