/development/tools/winscope/src/viewers/common/ |
D | ui_tree_utils.ts | 26 export type TreeNodeFilter = (node: TreeNode) => boolean; 33 static isVisible: TreeNodeFilter = (node: TreeNode) => { 35 node instanceof UiHierarchyTreeNode && 36 node.getEagerPropertyByName('isComputedVisible')?.getValue() 40 static isNotDefault: TreeNodeFilter = (node: TreeNode) => { 42 node instanceof UiPropertyTreeNode && 43 node.source !== PropertySource.DEFAULT 47 static isNotCalculated: TreeNodeFilter = (node: TreeNode) => { 49 node instanceof UiPropertyTreeNode && 50 node.source !== PropertySource.CALCULATED [all …]
|
D | ui_property_tree_node.ts | 27 static from(node: PropertyTreeNode): UiPropertyTreeNode { 29 node.id, 30 node.name, 31 node.source, 32 (node as UiPropertyTreeNode).value, 34 if ((node as UiPropertyTreeNode).formatter) { 36 assertDefined((node as UiPropertyTreeNode).formatter), 40 displayNode.setIsRoot(node.isRoot()); 42 const children = [...node.getAllChildren()].sort((a, b) =>
|
D | wm_ime_utils.ts | 63 (node) => 64 node.getEagerPropertyByName('id')?.getValue() === focusedDisplayId, 69 const windowStates = entry.filterDfs((node) => { 70 return node.id.startsWith('WindowState '); 76 (node) => 77 node.getEagerPropertyByName('id')?.getValue() === 114 activity.filterDfs((node) => { 116 node.id.startsWith('WindowState ') && node.name === windowState.name 123 const tasks = display.filterDfs((node) => { 124 const isTask = node.id.startsWith('Task '); [all …]
|
D | ui_hierarchy_tree_node.ts | 30 node: HierarchyTreeNode, 34 node.id, 35 node.name, 36 (node as any).propertiesProvider, 38 const rects = node.getRects(); 43 const zParent = node.getZParent(); 46 node.getAllChildren().forEach((child) => {
|
/development/tools/winscope/src/viewers/common/operations/ |
D | add_chips.ts | 33 apply(node: UiHierarchyTreeNode): void { 34 this.addAllChipsExceptRelZParent(node); 35 this.addRelZParentChips(node); 38 private addAllChipsExceptRelZParent(node: UiHierarchyTreeNode) { 39 if (!node.isRoot()) { 40 const compositionType = node 44 node.addChip(GPU_CHIP); 46 node.addChip(HWC_CHIP); 49 if (node.getEagerPropertyByName('isComputedVisible')?.getValue()) { 50 node.addChip(VISIBLE_CHIP); [all …]
|
D | flatten_children.ts | 21 apply(node: UiHierarchyTreeNode): void { 22 const flattenedChildren = this.extractFlattenedChildren(node); 24 node.removeAllChildren(); 27 node.addOrReplaceChild(child); 32 node: UiHierarchyTreeNode, 35 node.getAllChildren().forEach((child) => {
|
D | filter.ts | 27 apply(node: T): void { 28 for (const child of node.getAllChildren()) { 34 node.removeChild(child.id); 39 node.removeChild(child.id); 48 testPredicates(node: T): boolean { 49 return this.predicates.every((predicate) => predicate(node));
|
D | simplify_names.ts | 21 apply(node: UiHierarchyTreeNode): void { 22 node.forEachNodeDfs(this.shortenName); 25 private shortenName(node: UiHierarchyTreeNode) { 26 const classParts = (node.name + '').split('.'); 32 node.setDisplayName(`${classParts[0]}.${classParts[1]}.(...).${className}`);
|
/development/tools/winscope/src/trace/tree_node/ |
D | formatters.ts | 34 format(node: PropertyTreeNode): string; 38 format(node: PropertyTreeNode): string { 39 const value = node.getValue(); 56 format(node: PropertyTreeNode): string { 57 const rNode = node.getChildByName('r'); 58 const gNode = node.getChildByName('g'); 59 const bNode = node.getChildByName('b'); 60 const alphaNode = node.getChildByName('a'); 70 if (RawDataUtils.isEmptyObj(node)) { 79 format(node: PropertyTreeNode): string { [all …]
|
D | property_tree_node_factory_test.ts | 32 const node = factory.makePropertyRoot( constant 44 expect(node).toEqual(expectedNode); 48 const node = factory.makeProtoProperty('1 rootName', 'name', 'rootName'); constant 57 expect(node).toEqual(expectedNode); 61 const node = factory.makeProtoProperty('1 rootName', 'id', 1); constant 70 expect(node).toEqual(expectedNode); 74 const node = factory.makeProtoProperty('1 rootName', 'isPresent', true); constant 83 expect(node).toEqual(expectedNode); 87 const node = factory.makeProtoProperty( constant 100 expect(node).toEqual(expectedNode); [all …]
|
D | tree_node.ts | 51 forEachNodeDfs(callback: (node: this) => void, reverseChildren = false) { 65 findDfs(targetNodeFilter: (node: this) => boolean): this | undefined { 79 predicate: (node: this) => boolean, 84 this.forEachNodeDfs((node) => { 85 if (predicate(node)) { 86 result.push(node);
|
/development/tools/winscope/src/viewers/viewer_transactions/operations/ |
D | set_root_display_name.ts | 21 apply(node: UiPropertyTreeNode): void { 22 if (node.id.includes('layerChanges')) { 23 node.setDisplayName('LayerState'); 28 node.id.includes('displayChanges') || 29 node.id.includes('addedDisplays') 31 node.setDisplayName('DisplayState'); 35 if (node.id.includes('addedLayers')) { 36 node.setDisplayName('LayerCreationArgs'); 40 if (node.id.includes('destroyedLayers')) { 41 node.setDisplayName('destroyedLayerId'); [all …]
|
/development/tools/winscope/src/parsers/surface_flinger/computations/ |
D | z_order_paths_computation.ts | 36 this.root.forEachNodeDfs((node) => { 37 if (node.id === 'LayerTraceEntry root') return; 38 const zOrderPath = this.getZOrderPath(node); 39 node.addEagerProperty( 41 `${node.id}`, 51 root.forEachNodeDfs((node) => { 52 if (node.isRoot()) return; 54 assertDefined(node.getEagerPropertyByName('id')).getValue(), 55 node, 59 root.forEachNodeDfs((node) => { [all …]
|
/development/tools/winscope/src/parsers/view_capture/computations/ |
D | rects_computation.ts | 26 node: HierarchyTreeNode, 36 node.getEagerPropertyByName('left'), 39 node.getEagerPropertyByName('translationX'), 42 node.getEagerPropertyByName('width'), 46 node.getEagerPropertyByName('top'), 49 node.getEagerPropertyByName('translationY'), 52 node.getEagerPropertyByName('height'), 55 const nodeAlpha = node.getEagerPropertyByName('alpha')?.getValue() ?? 0; 71 .setId(node.id) 72 .setName(node.name) [all …]
|
D | visibility_computation.ts | 37 this.root.forEachNodeDfs((node) => { 39 assertDefined(node.getEagerPropertyByName('visibility')).getValue() === 41 (node.isRoot() || 42 node 47 node.addEagerProperty( 49 node.id,
|
/development/tools/winscope/src/viewers/components/ |
D | tree_component.ts | 99 @Input() node?: UiPropertyTreeNode | UiHierarchyTreeNode; 111 @Input() showNode = (node: UiPropertyTreeNode | UiHierarchyTreeNode) => true; 152 if (changes['node'] && this.node) { 153 if (this.node.isRoot() && !this.store) { 156 this.storeKeyCollapsedState = `${this.node.id}.collapsedState`; 180 isLeaf(node?: UiPropertyTreeNode | UiHierarchyTreeNode): boolean { 181 if (node === undefined) return true; 182 if (node instanceof UiHierarchyTreeNode) { 183 return node.getAllChildren().length === 0; 186 node.formattedValue().length > 0 || node.getAllChildren().length === 0 [all …]
|
D | property_tree_node_data_view_component.ts | 54 @Input() node?: UiPropertyTreeNode; 58 getKey(node: UiPropertyTreeNode) { 59 if (!this.node?.formattedValue()) { 60 return node.getDisplayName(); 62 return node.getDisplayName() + ': '; 66 return this.node?.getValue() instanceof Timestamp; 78 const property = assertDefined(this.node).formattedValue(); 111 return assertDefined(this.node).getDiff() === DiffType.MODIFIED;
|
/development/tools/winscope/src/parsers/operations/ |
D | set_formatters.ts | 73 node: PropertyTreeNode, 76 if (this.customFormatters?.get(node.name)) { 77 return this.customFormatters.get(node.name); 82 if (RawDataUtils.isColor(node)) return COLOR_FORMATTER; 83 if (RawDataUtils.isRect(node)) return RECT_FORMATTER; 84 if (RawDataUtils.isBuffer(node)) return BUFFER_FORMATTER; 85 if (RawDataUtils.isSize(node)) return SIZE_FORMATTER; 86 if (RawDataUtils.isRegion(node)) return REGION_FORMATTER; 87 if (RawDataUtils.isPosition(node)) return POSITION_FORMATTER; 89 SetFormatters.TransformRegExp.test(node.name) && [all …]
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceNetworkViews.java | 77 public MonkeyCommandReturn query(AccessibilityNodeInfo node, List<String> args); in query() argument 164 AccessibilityNodeInfo node = sUiTestAutomationBridge.getRootInActiveWindow(); in translateCommand() local 167 if (node == null) { in translateCommand() 170 String packageName = node.getPackageName().toString(); in translateCommand() 202 AccessibilityNodeInfo node; in translateCommand() local 207 node = getNodeByViewId(command.get(2)); in translateCommand() 215 node = getNodeByAccessibilityIds(command.get(2), command.get(3)); in translateCommand() 224 if (node == null) { in translateCommand() 229 return getter.query(node, args); in translateCommand() 245 AccessibilityNodeInfo node = sUiTestAutomationBridge.getRootInActiveWindow(); in translateCommand() local [all …]
|
/development/tools/winscope/src/viewers/viewer_window_manager/operations/ |
D | update_display_names.ts | 22 apply(node: UiHierarchyTreeNode): void { 23 node.forEachNodeDfs(this.updateTaskName); 26 private updateTaskName(node: UiHierarchyTreeNode) { 27 if (!node.id.startsWith('Task ')) { 30 node.setDisplayName( 31 `${assertDefined(node.getEagerPropertyByName('id')).getValue()}`,
|
/development/samples/InlineFillService/src/com/example/android/inlinefillservice/ |
D | Helper.java | 78 AssistStructure.ViewNode node = structure.getWindowNodeAt(i).getRootViewNode(); in getAutofillableFields() local 79 addAutofillableFields(fields, node); in getAutofillableFields() 101 @NonNull AssistStructure.ViewNode node) { in addAutofillableFields() argument 102 if (node.getAutofillType() == View.AUTOFILL_TYPE_TEXT) { in addAutofillableFields() 103 if (!fields.containsValue(node.getAutofillId())) { in addAutofillableFields() 105 if (node.getHint() != null) { in addAutofillableFields() 106 key = node.getHint().toLowerCase(); in addAutofillableFields() 107 } else if (node.getAutofillHints() != null) { in addAutofillableFields() 108 key = node.getAutofillHints()[0].toLowerCase(); in addAutofillableFields() 110 key = node.getAutofillId().toString(); in addAutofillableFields() [all …]
|
/development/tools/winscope/src/viewers/viewer_view_capture/operations/ |
D | simplify_names.ts | 21 apply(node: UiHierarchyTreeNode): void { 22 node.forEachNodeDfs(this.shortenName); 25 private shortenName(node: UiHierarchyTreeNode) { 26 node.setDisplayName(node.name.split('.').slice(-1)[0]);
|
/development/tools/winscope/src/parsers/view_capture/legacy/ |
D | parser_view_capture_window.ts | 166 assertDefined(frameDataProto.node), 177 node: com.android.app.viewcapture.data.IViewNode, 189 const eagerProperties = this.makeEagerPropertiesTree(node); 190 const lazyPropertiesStrategy = this.makeLazyPropertiesStrategy(node); 207 node.children?.forEach( 219 node: com.android.app.viewcapture.data.IViewNode, 223 let obj = node; 233 const id = `${this.classNames[assertDefined(node.classnameIndex)]}@${ 234 node.hashcode 238 .setData(node) [all …]
|
/development/tools/line_endings/ |
D | line_endings.c | 63 Node* node = root; in main() local 64 node->buf[0] = 0; in main() 67 node->next = malloc(sizeof(Node)); in main() 68 node = node->next; in main() 69 node->next = NULL; in main() 82 strcpy(node->buf, buf); in main() 86 strcpy(node->buf, buf2); in main() 102 node = root; in main() 104 free(node); in main()
|
/development/tools/winscope/src/viewers/viewer_input_method_clients/operations/ |
D | update_display_names.ts | 21 apply(node: UiHierarchyTreeNode): void { 22 const client = node.findDfs((node) => node.name === 'client');
|