Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 45) 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/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/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
DResourceCache.java29 View child = mCachedViews.get(resId, null); in getViewById() local
30 if (child == null) { in getViewById()
31 child = view.findViewById(resId); in getViewById()
32 mCachedViews.put(resId, child); in getViewById()
34 return (ViewType) child; in getViewById()
/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/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/Support7Demos/src/com/example/android/supportv7/widget/decorator/
DDividerItemDecoration.java72 final View child = parent.getChildAt(i); in drawVertical() local
73 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child in drawVertical()
75 final int top = child.getBottom() + params.bottomMargin + in drawVertical()
76 Math.round(ViewCompat.getTranslationY(child)); in drawVertical()
89 final View child = parent.getChildAt(i); in drawHorizontal() local
90 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child in drawHorizontal()
92 final int left = child.getRight() + params.rightMargin + in drawHorizontal()
93 Math.round(ViewCompat.getTranslationX(child)); in drawHorizontal()
/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/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()
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/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/scripts/
Dsymbol.py194 child = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
199 child.stdin.write("0x%s\n" % addr)
200 child.stdin.flush()
204 symbol = child.stdout.readline().strip()
207 location = child.stdout.readline().strip()
217 child.stdin.write("\n")
220 child.stdin.close()
221 child.stdout.close()
/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/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/SwipeRefreshLayoutBasic/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()
/development/samples/browseable/SwipeRefreshListFragment/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/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()

12