/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | CardStreamLinearLayout.java | 163 public void onChildViewAdded(final View parent, final View child) { 165 Log.d(TAG, "child is added: " + child); 173 View view = child.findViewById(R.id.card_actionarea); 180 public void onChildViewRemoved(View parent, View child) { 181 Log.d(TAG, "child is removed: " + child); 182 mFixedViewList.remove(child); 222 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument 223 if (child.getParent() == null) { in addView() 224 initCard(child, true); in addView() 225 super.addView(child, index, params); in addView() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | PictureLayout.java | 41 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/ |
D | FitCenterFrameLayout.java | 68 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/ |
D | make_tree.py | 48 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/ |
D | CustomLayout.java | 92 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/ |
D | ShadowLayout.java | 99 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/ |
D | FixedGridLayout.java | 64 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/Support7Demos/src/com/example/android/supportv7/widget/decorator/ |
D | DividerItemDecoration.java | 72 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/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
D | ListViewRemovalAnimation.java | 182 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/ |
D | FixedGridLayout.java | 77 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/ |
D | DirectorySearch.java | 142 for (File child : children) { in findSourceDirs() 143 if (child.isDirectory()) { in findSourceDirs() 151 ImmutableList<File> dirs = findSourceDirs(child); in findSourceDirs() 153 if (SOURCE_DIRS.contains(child.getName())) { in findSourceDirs() 154 builder.add(child); in findSourceDirs() 179 for (File child : children) { in findExcludeDirs() 180 if (child.isDirectory()) { in findExcludeDirs() 181 Matcher matcher = EXCLUDE_PATTERN.matcher(child.getName()); in findExcludeDirs() 187 builder.add(child); in findExcludeDirs()
|
D | Module.java | 289 Module child = moduleCache.getAndCacheByName(dependency); in buildDependentModules() local 290 if (child == null) { in buildDependentModules() 293 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules() 296 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules() 307 Module child = moduleCache.getAndCacheByDir(dependency); in buildDependentModules() local 308 if (child != null) { in buildDependentModules() 309 allDependencies.add(child.getDir().getCanonicalPath()); in buildDependentModules() 312 allDependentImlFiles.add(child.getImlFile()); in buildDependentModules()
|
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/ |
D | PlayerSetupActivity.java | 133 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/scripts/ |
D | symbol.py | 189 child = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) 194 child.stdin.write("0x%s\n" % addr) 195 child.stdin.flush() 199 symbol = child.stdout.readline().strip() 202 location = child.stdout.readline().strip() 212 child.stdin.write("\n") 215 child.stdin.close() 216 child.stdout.close()
|
/development/samples/browseable/ElevationDrag/src/com.example.android.elevationdrag/ |
D | DragFrameLayout.java | 67 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/ |
D | InsertionListView.java | 112 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/ |
D | FoldingLayout.java | 120 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/ |
D | ListViewItemAnimations.java | 268 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/ |
D | TaskListView.java | 50 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument 55 int priority = (Integer) child.getTag(); in onRequestSendAccessibilityEvent()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 158 View child = getChildAt(i); in onDraw() local 160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
|
/development/samples/browseable/FragmentTransition/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 158 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/ |
D | SlidingTabStrip.java | 158 View child = getChildAt(i); in onDraw() local 160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
|
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 158 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/ |
D | SlidingTabStrip.java | 158 View child = getChildAt(i); in onDraw() local 160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
|
/development/samples/browseable/AdapterTransition/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 158 View child = getChildAt(i); in onDraw() local 160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
|