Home
last modified time | relevance | path

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

1234

/development/tools/winscope/src/parsers/window_manager/
Dparser_window_manager_utils.ts145 child: com.android.server.wm.IWindowContainerChildProto,
148 if (child.displayContent) {
150 child.displayContent.rootDisplayArea?.windowContainer?.children ?? [];
151 } else if (child.displayArea) {
152 children = child.displayArea.windowContainer?.children ?? [];
153 } else if (child.task) {
155 child.task.taskFragment?.windowContainer ?? child.task.windowContainer;
157 } else if (child.taskFragment) {
158 children = child.taskFragment.windowContainer?.children ?? [];
159 } else if (child.activity) {
[all …]
Dhierarchy_tree_builder_wm.ts62 const child = identifierToChildren.get(childToken.getValue())?.at(0); constant
63 if (child) {
64 this.setParentChildRelationship(node, child);
65 this.assignParentChildRelationships(child, identifierToChildren);
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DCardStreamLinearLayout.java164 public void onChildViewAdded(final View parent, final View child) {
166 Log.d(TAG, "child is added: " + child);
174 View view = child.findViewById(R.id.card_actionarea);
181 public void onChildViewRemoved(View parent, View child) {
182 Log.d(TAG, "child is removed: " + child);
183 mFixedViewList.remove(child);
223 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument
224 if (child.getParent() == null) { in addView()
225 initCard(child, true); in addView()
226 super.addView(child, index, params); in addView()
[all …]
/development/tools/winscope/src/viewers/common/operations/
Dflatten_children_test.ts42 const child = TreeNodeUtils.makeUiHierarchyNode({ constant
46 prevChild.addOrReplaceChild(child);
47 prevChild = child;
71 const child = TreeNodeUtils.makeUiHierarchyNode({ constant
75 prevChild.addOrReplaceChild(child);
76 expectedChildren.push(child);
77 prevChild = child;
89 const child = TreeNodeUtils.makeUiHierarchyNode({ constant
93 prevChild.addOrReplaceChild(child);
94 expectedChildren.push(child);
[all …]
Dfilter.ts28 for (const child of node.getAllChildren()) { constant
29 if (!this.testPredicates(child)) {
32 child.getAllChildren().length === 0
34 node.removeChild(child.id);
36 this.apply(child);
38 if (child.getAllChildren().length === 0) {
39 node.removeChild(child.id);
43 this.apply(child);
Dsimplify_names_test.ts36 const child = TreeNodeUtils.makeUiHierarchyNode({ constant
40 hierarchyRoot.addOrReplaceChild(child);
46 .forEach((child) =>
47 expect(child.getDisplayName()).toEqual('node.child.(...).child'),
58 const child = TreeNodeUtils.makeUiHierarchyNode({ constant
62 hierarchyRoot.addOrReplaceChild(child);
68 .forEach((child) => expect(child.getDisplayName()).toEqual('node.child'));
Dflatten_children.ts25 flattenedChildren.forEach((child) => {
26 child.removeAllChildren();
27 node.addOrReplaceChild(child);
35 node.getAllChildren().forEach((child) => {
36 children.push(child);
37 children.push(...this.extractFlattenedChildren(child));
/development/tools/winscope/src/trace/tree_node/
Dtree_node.ts26 (child) => child.id === newChild.id,
36 this.children = this.children.filter((child) => child.id !== childId);
44 return this.children.find((child) => child.name === name);
59 this.children.forEach((child) =>
60 child.forEachNodeDfs(callback, reverseChildren),
70 for (const child of this.children.values()) { constant
71 const nodeFound = child.findDfs(targetNodeFilter);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPictureLayout.java41 public void addView(View child) { in addView() argument
46 super.addView(child); in addView()
50 public void addView(View child, int index) { in addView() argument
55 super.addView(child, index); in addView()
59 public void addView(View child, LayoutParams params) { in addView() argument
64 super.addView(child, params); in addView()
68 public void addView(View child, int index, LayoutParams params) { in addView() argument
73 super.addView(child, index, params); in addView()
89 final View child = getChildAt(i); in onMeasure() local
90 if (child.getVisibility() != GONE) { in onMeasure()
[all …]
/development/tools/winscope/src/parsers/input_method/
Dhierarchy_tree_builder_input_method.ts27 const map = children.reduce((map, child) => {
28 const childProperties = child.getEagerProperties();
32 child,
46 const child: HierarchyTreeNode | undefined = identifierToChildren constant
49 if (child) {
50 this.setParentChildRelationship(node, child);
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DFitCenterFrameLayout.java68 final View child = getChildAt(i); in onLayout() local
69 if (child.getVisibility() == GONE) { in onLayout()
76 childPaddingLeft = child.getPaddingLeft(); in onLayout()
77 childPaddingTop = child.getPaddingTop(); in onLayout()
78 childPaddingRight = child.getPaddingRight(); in onLayout()
79 childPaddingBottom = child.getPaddingBottom(); in onLayout()
81 unpaddedWidth = child.getMeasuredWidth() - childPaddingLeft - childPaddingRight; in onLayout()
82 unpaddedHeight = child.getMeasuredHeight() - childPaddingTop - childPaddingBottom; in onLayout()
91 child.layout( in onLayout()
100 child.layout( in onLayout()
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/
DScalingOffsettingHelper.java37 public void updateChild(View child, WearableRecyclerView parent) { in updateChild() argument
38 super.updateChild(child, parent); in updateChild()
41 float centerOffset = ((float) child.getHeight() / 2.0f) / (float) parent.getHeight(); in updateChild()
42 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in updateChild()
50 child.setScaleX(1 - mProgressToCenter); in updateChild()
51 child.setScaleY(1 - mProgressToCenter); in updateChild()
/development/tools/winscope/src/viewers/common/
Dadd_diffs.ts73 newChildren.forEach((child) => {
74 assertDefined(oldNode).addOrReplaceChild(child);
110 newChildren.forEach((child) => {
111 assertDefined(oldNode).addOrReplaceChild(child);
131 newChildren.forEach((child) =>
132 assertDefined(newNode).addOrReplaceChild(child),
161 newNode?.getAllChildren().map((child) => child.id) ?? [],
162 oldNode?.getAllChildren().map((child) => child.id) ?? [],
164 childDiffTrees.forEach((child) => diffChildren.push(child));
/development/samples/ApiDemos/src/com/example/android/apis/view/
DCustomLayout.java92 final View child = getChildAt(i); in onMeasure() local
93 if (child.getVisibility() != GONE) { in onMeasure()
95 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure()
99 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
102 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
105 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
108 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
111 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin); in onMeasure()
112 childState = combineMeasuredStates(childState, child.getMeasuredState()); in onMeasure()
149 final View child = getChildAt(i); in onLayout() local
[all …]
/development/tools/winscope/src/test/unit/
Dproperty_tree_builder.ts72 child: ChildProperty,
76 .setName(child.name)
77 .setSource(child.source ?? assertDefined(this.source))
78 .setValue(child.value)
79 .setChildren(child.children ?? [])
80 .setFormatter(child.formatter)
Dhierarchy_tree_builder.ts79 child: ChildHierarchy,
82 .setId(child.id)
83 .setName(child.name)
84 .setProperties(child.properties)
85 .setChildren(child.children ?? [])
Dtree_builder.ts42 this.children.forEach((child) =>
43 this.addOrReplaceChildNode(rootNode, child),
50 protected abstract addOrReplaceChildNode(rootNode: T, child: U): void;
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DShadowLayout.java99 View child = getChildAt(i); in onDraw() local
100 if (child.getVisibility() != View.VISIBLE || child.getAlpha() == 0) { in onDraw()
105 canvas.translate(child.getLeft() + depthFactor, in onDraw()
106 child.getTop() + depthFactor); in onDraw()
107 canvas.concat(child.getMatrix()); in onDraw()
108 tempShadowRectF.right = child.getWidth(); in onDraw()
109 tempShadowRectF.bottom = child.getHeight(); in onDraw()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java182 View child = listview.getChildAt(i); in animateRemoval() local
183 if (child != viewToRemove) { in animateRemoval()
186 mItemIdTopMap.put(itemId, child.getTop()); in animateRemoval()
200 final View child = listview.getChildAt(i); in animateRemoval()
204 int top = child.getTop(); in animateRemoval()
208 child.setTranslationY(delta); in animateRemoval()
209 child.animate().setDuration(MOVE_DURATION).translationY(0); in animateRemoval()
211 child.animate().withEndAction(new Runnable() { in animateRemoval()
225 int childHeight = child.getHeight() + listview.getDividerHeight(); in animateRemoval()
228 child.setTranslationY(delta); in animateRemoval()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DFixedGridLayout.java64 final View child = getChildAt(index); in onMeasure() local
65 child.measure(cellWidthSpec, cellHeightSpec); in onMeasure()
87 final View child = getChildAt(index); in onLayout() local
89 int w = child.getMeasuredWidth(); in onLayout()
90 int h = child.getMeasuredHeight(); in onLayout()
95 child.layout(left, top, left+w, top+h); in onLayout()
/development/tools/winscope/src/parsers/view_capture/legacy/
Dhierarchy_tree_builder_vc.ts50 const child = identifierToChildren.get(hashcode.getValue())?.at(0); constant
51 if (child) {
52 this.setParentChildRelationship(node, child);
53 this.assignParentChildRelationships(child, identifierToChildren);
/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/
DFixedGridLayout.java77 final View child = getChildAt(index); in onMeasure() local
78 child.measure(cellWidthSpec, cellHeightSpec); in onMeasure()
98 final View child = getChildAt(index); in onLayout() local
100 int w = child.getMeasuredWidth(); in onLayout()
101 int h = child.getMeasuredHeight(); in onLayout()
106 child.layout(left, top, left+w, top+h); in onLayout()
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/
DPlayerSetupActivity.java133 Button child = (Button) parent.getChildAt(i); in buttonClick() local
134 if (child != clickedView) { in buttonClick()
135 child.animate().alpha(0); in buttonClick()
138 child.setVisibility(View.INVISIBLE); in buttonClick()
139 buttonCopy.setBackground(child.getBackground()); in buttonClick()
140 buttonCopy.setText(((Button) child).getText()); in buttonClick()
148 buttonCopy.setPadding(child.getPaddingLeft(), child.getPaddingTop(), in buttonClick()
149 child.getPaddingRight(), child.getPaddingBottom()); in buttonClick()
150 buttonCopy.setTextSize(TypedValue.COMPLEX_UNIT_PX, child.getTextSize()); in buttonClick()
151 buttonCopy.setTypeface(child.getTypeface(), Typeface.BOLD); in buttonClick()
[all …]
/development/tools/idegen/src/com/android/idegen/
DDirectorySearch.java145 for (File child : children) { in findSourceDirs()
146 if (child.isDirectory()) { in findSourceDirs()
158 ImmutableList<File> dirs = findSourceDirs(child); in findSourceDirs()
167 if (SOURCE_DIRS.contains(child.getName())) { in findSourceDirs()
168 builder.add(child); in findSourceDirs()
193 for (File child : children) { in findExcludeDirs()
194 if (child.isDirectory()) { in findExcludeDirs()
195 Matcher matcher = EXCLUDE_PATTERN.matcher(child.getName()); in findExcludeDirs()
201 builder.add(child); in findExcludeDirs()
/development/tools/winscope/src/parsers/surface_flinger/
Dhierarchy_tree_builder_sf.ts66 children.forEach((child) => {
68 child.getEagerPropertyByName('parent'),
73 this.setParentChildRelationship(parent, child);
75 this.setParentChildRelationship(root, child);

1234