/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | CardStreamLinearLayout.java | 164 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/ |
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/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/ |
D | ScalingOffsettingHelper.java | 37 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/ |
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/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 | 145 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()
|
D | Module.java | 290 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/ |
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/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/scripts/ |
D | native_heapdump_viewer.py | 218 child = stack[0] 219 if not (child.addr in self.children): 220 self.children[child.addr] = child 221 self.children[child.addr].addStack(size, stack[1:]) 236 for child in children: 237 display(indent + " ", total, node.size, child) 263 for child in children: 264 display_html(total, child, "")
|
/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/tools/checkcolor/src/main/java/com/google/checkcolor/lint/ |
D | HardcodedColorDetector.java | 153 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/ |
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/SwipeRefreshListFragment/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/SwipeRefreshLayoutBasic/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()
|