Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/android/view/
DViewGroup.java564 public void requestChildFocus(View child, View focused) { in requestChildFocus() argument
576 if (mFocused != child) { in requestChildFocus()
581 mFocused = child; in requestChildFocus()
649 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) { in requestChildRectangleOnScreen() argument
657 public boolean requestSendAccessibilityEvent(View child, AccessibilityEvent event) { in requestSendAccessibilityEvent() argument
662 final boolean propagate = onRequestSendAccessibilityEvent(child, event); in requestSendAccessibilityEvent()
685 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument
687 return mAccessibilityDelegate.onRequestSendAccessibilityEvent(this, child, event); in onRequestSendAccessibilityEvent()
689 return onRequestSendAccessibilityEventInternal(child, event); in onRequestSendAccessibilityEvent()
698 boolean onRequestSendAccessibilityEventInternal(View child, AccessibilityEvent event) { in onRequestSendAccessibilityEventInternal() argument
[all …]
DViewParent.java53 public void requestTransparentRegion(View child); in requestTransparentRegion() argument
61 public void invalidateChild(View child, Rect r); in invalidateChild() argument
101 public void requestChildFocus(View child, View focused); in requestChildFocus() argument
109 public void recomputeViewAttributes(View child); in recomputeViewAttributes() argument
116 public void clearChildFocus(View child); in clearChildFocus() argument
138 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); in getChildVisibleRect() argument
153 public void bringChildToFront(View child); in bringChildToFront() argument
205 public void childDrawableStateChanged(View child); in childDrawableStateChanged() argument
244 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
263 public boolean requestSendAccessibilityEvent(View child, AccessibilityEvent event); in requestSendAccessibilityEvent() argument
[all …]
/frameworks/base/core/java/android/widget/
DLinearLayout.java322 final View child = getVirtualChildAt(i); in drawDividersVertical() local
324 if (child != null && child.getVisibility() != GONE) { in drawDividersVertical()
326 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
327 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical()
334 final View child = getVirtualChildAt(count - 1); in drawDividersVertical() local
336 if (child == null) { in drawDividersVertical()
339 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
340 bottom = child.getBottom() + lp.bottomMargin; in drawDividersVertical()
349 final View child = getVirtualChildAt(i); in drawDividersHorizontal() local
351 if (child != null && child.getVisibility() != GONE) { in drawDividersHorizontal()
[all …]
DTableRow.java102 View child = getVirtualChildAt(columnIndex); in setColumnCollapsed() local
103 if (child != null) { in setColumnCollapsed()
104 child.setVisibility(collapsed ? GONE : VISIBLE); in setColumnCollapsed()
163 final View child = getChildAt(i); in mapIndexAndColumns() local
164 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in mapIndexAndColumns()
191 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
195 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildBeforeLayout()
223 child.measure(childWidthMeasureSpec, childHeightMeasureSpec); in measureChildBeforeLayout()
226 final int childWidth = child.getMeasuredWidth(); in measureChildBeforeLayout()
247 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec, in measureChildBeforeLayout()
[all …]
DGallery.java292 protected boolean getChildStaticTransformation(View child, Transformation t) { in getChildStaticTransformation() argument
295 t.setAlpha(child == mSelectedChild ? 1.0f : mUnselectedAlpha); in getChildStaticTransformation()
356 int getChildHeight(View child) { in getChildHeight() argument
357 return child.getMeasuredHeight(); in getChildHeight()
477 final View child = getChildAt(n); in detachOffScreenChildren() local
478 if (child.getRight() >= galleryLeft) { in detachOffScreenChildren()
483 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
493 final View child = getChildAt(n); in detachOffScreenChildren() local
494 if (child.getLeft() <= galleryRight) { in detachOffScreenChildren()
499 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
[all …]
DTableLayout.java375 private void trackCollapsedColumns(View child) { in trackCollapsedColumns() argument
376 if (child instanceof TableRow) { in trackCollapsedColumns()
377 final TableRow row = (TableRow) child; in trackCollapsedColumns()
397 public void addView(View child) { in addView() argument
398 super.addView(child); in addView()
406 public void addView(View child, int index) { in addView() argument
407 super.addView(child, index); in addView()
415 public void addView(View child, ViewGroup.LayoutParams params) { in addView() argument
416 super.addView(child, params); in addView()
424 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument
[all …]
DRadioGroup.java128 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument
129 if (child instanceof RadioButton) { in addView()
130 final RadioButton button = (RadioButton) child; in addView()
141 super.addView(child, index, params); in addView()
374 public void onChildViewAdded(View parent, View child) { in onChildViewAdded() argument
375 if (parent == RadioGroup.this && child instanceof RadioButton) { in onChildViewAdded()
376 int id = child.getId(); in onChildViewAdded()
379 id = child.hashCode(); in onChildViewAdded()
380 child.setId(id); in onChildViewAdded()
382 ((RadioButton) child).setOnCheckedChangeWidgetListener( in onChildViewAdded()
[all …]
DRelativeLayout.java305 final View child = getChildAt(i); in sortChildren() local
306 graph.add(child); in sortChildren()
394 View child = views[i]; in onMeasure() local
395 if (child.getVisibility() != GONE) { in onMeasure()
396 LayoutParams params = (LayoutParams) child.getLayoutParams(); in onMeasure()
399 measureChildHorizontal(child, params, myWidth, myHeight); in onMeasure()
400 if (positionChildHorizontal(child, params, myWidth, isWrapContentWidth)) { in onMeasure()
410 View child = views[i]; in onMeasure() local
411 if (child.getVisibility() != GONE) { in onMeasure()
412 LayoutParams params = (LayoutParams) child.getLayoutParams(); in onMeasure()
[all …]
DTabWidget.java152 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
162 super.measureChildBeforeLayout(child, childIndex, in measureChildBeforeLayout()
184 final View child = getChildAt(i); in measureHorizontal() local
185 if (child.getVisibility() == GONE) continue; in measureHorizontal()
194 final View child = getChildAt(i); in measureHorizontal() local
195 if (child.getVisibility() == GONE) continue; in measureHorizontal()
196 final int childWidth = child.getMeasuredWidth(); in measureHorizontal()
203 mImposedTabsHeight = Math.max(mImposedTabsHeight, child.getMeasuredHeight()); in measureHorizontal()
311 public void childDrawableStateChanged(View child) { in childDrawableStateChanged() argument
312 if (getTabCount() > 0 && child == getChildTabViewAt(mSelectedTab)) { in childDrawableStateChanged()
[all …]
DAbsoluteLayout.java67 View child = getChildAt(i); in onMeasure() local
68 if (child.getVisibility() != GONE) { in onMeasure()
73 = (AbsoluteLayout.LayoutParams) child.getLayoutParams(); in onMeasure()
75 childRight = lp.x + child.getMeasuredWidth(); in onMeasure()
76 childBottom = lp.y + child.getMeasuredHeight(); in onMeasure()
112 View child = getChildAt(i); in onLayout() local
113 if (child.getVisibility() != GONE) { in onLayout()
116 (AbsoluteLayout.LayoutParams) child.getLayoutParams(); in onLayout()
120 child.layout(childLeft, childTop, in onLayout()
121 childLeft + child.getMeasuredWidth(), in onLayout()
[all …]
DListView.java201 View child; in adjustViewsUpOrDown() local
206 child = getChildAt(0); in adjustViewsUpOrDown()
207 delta = child.getTop() - mListPadding.top; in adjustViewsUpOrDown()
219 child = getChildAt(childCount - 1); in adjustViewsUpOrDown()
220 delta = child.getBottom() - (getHeight() - mListPadding.bottom); in adjustViewsUpOrDown()
512 final View child = infos.get(i).view; in clearRecycledState() local
513 final LayoutParams p = (LayoutParams) child.getLayoutParams(); in clearRecycledState()
545 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { in requestChildRectangleOnScreen() argument
550 rect.offset(child.getLeft(), child.getTop()); in requestChildRectangleOnScreen()
551 rect.offset(-child.getScrollX(), -child.getScrollY()); in requestChildRectangleOnScreen()
[all …]
DHorizontalScrollView.java207 public void addView(View child) { in addView() argument
212 super.addView(child); in addView()
216 public void addView(View child, int index) { in addView() argument
221 super.addView(child, index); in addView()
225 public void addView(View child, ViewGroup.LayoutParams params) { in addView() argument
230 super.addView(child, params); in addView()
234 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument
239 super.addView(child, index, params); in addView()
246 View child = getChildAt(0); in canScroll() local
247 if (child != null) { in canScroll()
[all …]
DScrollView.java227 public void addView(View child) { in addView() argument
232 super.addView(child); in addView()
236 public void addView(View child, int index) { in addView() argument
241 super.addView(child, index); in addView()
245 public void addView(View child, ViewGroup.LayoutParams params) { in addView() argument
250 super.addView(child, params); in addView()
254 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument
259 super.addView(child, index, params); in addView()
266 View child = getChildAt(0); in canScroll() local
267 if (child != null) { in canScroll()
[all …]
DViewAnimator.java154 final View child = getChildAt(i); in showOnly() local
157 child.startAnimation(mInAnimation); in showOnly()
159 child.setVisibility(View.VISIBLE); in showOnly()
162 if (animate && mOutAnimation != null && child.getVisibility() == View.VISIBLE) { in showOnly()
163 child.startAnimation(mOutAnimation); in showOnly()
164 } else if (child.getAnimation() == mInAnimation) in showOnly()
165 child.clearAnimation(); in showOnly()
166 child.setVisibility(View.GONE); in showOnly()
183 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument
184 super.addView(child, index, params); in addView()
[all …]
DSpinner.java382 View child = null; in getBaseline() local
385 child = getChildAt(0); in getBaseline()
387 child = makeAndAddView(0); in getBaseline()
388 mRecycler.put(0, child); in getBaseline()
392 if (child != null) { in getBaseline()
393 final int childBaseline = child.getBaseline(); in getBaseline()
394 return childBaseline >= 0 ? child.getTop() + childBaseline : -1; in getBaseline()
521 View child; in makeAndAddView() local
524 child = mRecycler.get(position); in makeAndAddView()
525 if (child != null) { in makeAndAddView()
[all …]
/frameworks/base/core/java/android/animation/
DLayoutTransition.java756 final View child = parent.getChildAt(i); in runChangeTransition() local
759 if (child != newView) { in runChangeTransition()
760 setupChangeAnimation(parent, changeReason, baseAnimator, duration, child); in runChangeTransition()
824 Animator baseAnimator, final long duration, final View child) { in setupChangeAnimation() argument
830 if (layoutChangeListenerMap.get(child) != null) { in setupChangeAnimation()
838 if (child.getWidth() == 0 && child.getHeight() == 0) { in setupChangeAnimation()
846 anim.setTarget(child); in setupChangeAnimation()
853 Animator currentAnimation = pendingAnimations.get(child); in setupChangeAnimation()
856 pendingAnimations.remove(child); in setupChangeAnimation()
859 pendingAnimations.put(child, anim); in setupChangeAnimation()
[all …]
/frameworks/base/services/java/com/android/server/wm/
DInputMonitor.java190 final WindowState child = windows.get(i); in updateInputWindowsLw() local
191 final InputChannel inputChannel = child.mInputChannel; in updateInputWindowsLw()
192 final InputWindowHandle inputWindowHandle = child.mInputWindowHandle; in updateInputWindowsLw()
193 if (inputChannel == null || inputWindowHandle == null || child.mRemoved) { in updateInputWindowsLw()
198 final int flags = child.mAttrs.flags; in updateInputWindowsLw()
199 final int type = child.mAttrs.type; in updateInputWindowsLw()
201 final boolean hasFocus = (child == mInputFocus); in updateInputWindowsLw()
202 final boolean isVisible = child.isVisibleLw(); in updateInputWindowsLw()
203 final boolean hasWallpaper = (child == mService.mWallpaperTarget) in updateInputWindowsLw()
209 mService.mDragState.sendDragStartedIfNeededLw(child); in updateInputWindowsLw()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuView.java111 final View child = getChildAt(i); in onMeasure() local
112 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
159 final View child = getChildAt(i); in onMeasureExactFormat() local
160 if (child.getVisibility() == GONE) continue; in onMeasureExactFormat()
162 final boolean isGeneratedItem = child instanceof ActionMenuItemView; in onMeasureExactFormat()
168 child.setPadding(mGeneratedItemPadding, 0, mGeneratedItemPadding, 0); in onMeasureExactFormat()
171 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
178 lp.preventEdgeOffset = isGeneratedItem && ((ActionMenuItemView) child).hasText(); in onMeasureExactFormat()
183 final int cellsUsed = measureChildForCells(child, cellSize, cellsAvailable, in onMeasureExactFormat()
191 maxChildHeight = Math.max(maxChildHeight, child.getMeasuredHeight()); in onMeasureExactFormat()
[all …]
/frameworks/base/core/java/android/content/
DUriMatcher.java165 UriMatcher child; in addURI()
168 child = children.get(j); in addURI()
169 if (token.equals(child.mText)) { in addURI()
170 node = child; in addURI()
176 child = new UriMatcher(); in addURI()
178 child.mWhich = NUMBER; in addURI()
180 child.mWhich = TEXT; in addURI()
182 child.mWhich = EXACT; in addURI()
184 child.mText = token; in addURI()
185 node.mChildren.add(child); in addURI()
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java391 final View child = getChildAt(i); in removeNonDecorViews() local
392 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in removeNonDecorViews()
759 final View child = getChildAt(i); in dataSetChanged()
760 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in dataSetChanged()
900 final View child = getChildAt(i);
901 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
904 final ItemInfo ii = infoForChild(child);
916 View child = getChildAt(i);
917 ii = infoForChild(child);
919 if (child.requestFocus(FOCUS_FORWARD)) {
[all …]
DViewGroupCompat.java31 public boolean onRequestSendAccessibilityEvent(ViewGroup group, View child, in onRequestSendAccessibilityEvent() argument
37 ViewGroup group, View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument
45 ViewGroup group, View child, AccessibilityEvent event) { in onRequestSendAccessibilityEvent() argument
46 return ViewGroupCompatIcs.onRequestSendAccessibilityEvent(group, child, event); in onRequestSendAccessibilityEvent()
81 public static boolean onRequestSendAccessibilityEvent(ViewGroup group, View child, in onRequestSendAccessibilityEvent() argument
83 return IMPL.onRequestSendAccessibilityEvent(group, child, event); in onRequestSendAccessibilityEvent()
/frameworks/testing/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator/tree/
DBasicTreeNode.java37 public void addChild(BasicTreeNode child) { in addChild() argument
38 if (child == null) { in addChild()
41 if (mChildren.contains(child)) { in addChild()
44 mChildren.add(child); in addChild()
45 child.mParent = this; in addChild()
69 for (BasicTreeNode child : mChildren) { in clearAllChildren()
70 child.clearAllChildren(); in clearAllChildren()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java166 final View child = getChildAt(i); in onLayout() local
168 int childRight = mPaddingLeft + child.getMeasuredWidth() - mPaddingRight; in onLayout()
169 int childBottom = mPaddingTop + child.getMeasuredHeight() - mPaddingBottom; in onLayout()
170 child.layout(mPaddingLeft, mPaddingTop, childRight, childBottom); in onLayout()
184 final View child = getChildAt(i); in onMeasure() local
185 if (child.getVisibility() != GONE) { in onMeasure()
186 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure()
187 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
188 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); in onMeasure()
190 child.getMeasuredState()); in onMeasure()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java110 View child = getChildAt(index); in loadIcon() local
111 if (child instanceof ImageView) { in loadIcon()
112 ImageView imageView = (ImageView) child; in loadIcon()
169 View child = getChildAt(index); in loadIcon() local
170 if (child instanceof ImageView) { in loadIcon()
171 ImageView imageView = (ImageView) child; in loadIcon()
180 View child = findViewById(id); in loadIconById() local
181 if (child instanceof ImageView) { in loadIconById()
182 ImageView imageView = (ImageView) child; in loadIconById()
201 View child = getChildAt(index); in setText() local
[all …]
/frameworks/base/sax/java/android/sax/
DElement.java95 Element child = getChild(uri, localName); in requireChild() local
99 requiredChilden.add(child); in requireChild()
101 if (!requiredChilden.contains(child)) { in requireChild()
102 requiredChilden.add(child); in requireChild()
106 return child; in requireChild()
194 Element child = requiredChildren.get(i); in checkRequiredChildren() local
195 if (!child.visited) { in checkRequiredChildren()
199 + child + ".", locator); in checkRequiredChildren()

12345678