Home
last modified time | relevance | path

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

12

/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/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/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/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/testrunner/
Dmake_tree.py48 child = self._children_map.get(current_seg)
49 if not child:
50 child = MakeNode(current_seg, self)
51 self._children_map[current_seg] = child
52 return child._AddPath(path_segs)
76 for child in self._children_map.itervalues():
77 child._BuildPrunedMakeList(make_list)
103 child = self._AddPath(path_segs)
104 child._SetLeaf(True)
/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/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/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/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/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/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()
DModule.java290 Module child = moduleCache.getAndCacheByName(dependency); in buildDependentModules() local
291 if (child == null) { in buildDependentModules()
294 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules()
297 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules()
308 Module child = moduleCache.getAndCacheByDir(dependency); in buildDependentModules() local
309 if (child != null) { in buildDependentModules()
310 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules()
313 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules()
/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/samples/IntentPlayground/src/com/example/android/intentplayground/
DNode.java73 other.mChildren.forEach(child -> addChild(new Node(child))); in Node()
81 Node addChild(Node child) { in addChild() argument
82 mChildren.add(child); in addChild()
91 Node addFirstChild(Node child) { in addFirstChild() argument
92 mChildren.add(0, child); in addFirstChild()
235 mChildren.forEach(child -> Arrays.asList(child.toString().split("\n")).forEach(line -> in toString()
/development/samples/browseable/ElevationDrag/src/com.example.android.elevationdrag/
DDragFrameLayout.java67 public boolean tryCaptureView(View child, int pointerId) { in DragFrameLayout()
68 return mDragViews.contains(child); in DragFrameLayout()
77 public int clampViewPositionHorizontal(View child, int left, int dx) { in DragFrameLayout()
82 public int clampViewPositionVertical(View child, int top, int dy) { in DragFrameLayout()
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertionListView.java112 View child = getChildAt(i); in addRow() local
115 Rect startRect = new Rect(child.getLeft(), child.getTop(), child.getRight(), in addRow()
116 child.getBottom()); in addRow()
118 listViewItemDrawables.put(itemID, getBitmapDrawableFromView(child)); in addRow()
192 View child = getChildAt(i); in addRow()
196 int top = child.getTop(); in addRow()
203 ObjectAnimator animation = ObjectAnimator.ofFloat(child, in addRow()
210 int childHeight = child.getHeight() + getDividerHeight(); in addRow()
213 ObjectAnimator animation = ObjectAnimator.ofFloat(child, in addRow()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayout.java120 protected boolean addViewInLayout(View child, int index, LayoutParams params, in addViewInLayout() argument
123 boolean returnValue = super.addViewInLayout(child, index, params, preventRequestLayout); in addViewInLayout()
128 public void addView(View child, int index, LayoutParams params) { in addView() argument
130 super.addView(child, index, params); in addView()
135 View child = getChildAt(0); in onMeasure() local
136 measureChild(child,widthMeasureSpec, heightMeasureSpec); in onMeasure()
142 View child = getChildAt(0); in onLayout() local
143 child.layout(0, 0, child.getMeasuredWidth(), child.getMeasuredHeight()); in onLayout()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java268 View child = listview.getChildAt(i); in animateOtherViews() local
271 if (child != viewToRemove) { in animateOtherViews()
272 mItemIdTopMap.put(itemId, child.getTop()); in animateOtherViews()
288 final View child = listview.getChildAt(i); in animateOtherViews()
292 int top = child.getTop(); in animateOtherViews()
297 int childHeight = child.getHeight() + listview.getDividerHeight(); in animateOtherViews()
313 moveView(child, 0, 0, delta, 0, endAction); in animateOtherViews()
/development/scripts/
Dnative_heapdump_viewer.py367 child = stack[0]
368 if not (child.addr in self.children):
369 self.children[child.addr] = child
370 self.children[child.addr].addStack(size, num_allocs, stack[1:])
382 for child in children:
383 Display(resolved_addrs, indent + " ", total, node.size, child)
407 for child in children:
408 label_count = DisplayHtml(verbose, resolved_addrs, total, child, "", label_count)
/development/tools/checkcolor/src/main/java/com/google/checkcolor/lint/
DHardcodedColorDetector.java153 final Node child = childNodes.item(i); in visitElement() local
154 if (child.getNodeType() != Node.TEXT_NODE) { in visitElement()
158 final String value = child.getNodeValue(); in visitElement()
162 context.report(ISSUE, childElement, context.getLocation(child), in visitElement()
166 addIndirectColor(context, value, child); in visitElement()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DTaskListView.java50 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument
55 int priority = (Integer) child.getTag(); in onRequestSendAccessibilityEvent()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()

12