Searched refs:child (Results 1 - 25 of 337) sorted by relevance

1234567891011>>

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DUtil.java26 * Returns true if child == parent or is descendant of the parent.
28 public static boolean isDescendant(ViewGroup parent, View child) { argument
29 while (child != null) {
30 if (child == parent) {
33 ViewParent p = child.getParent();
37 child = (View) p;
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAsyncStructure.java37 final ViewStructure child = structure.asyncNewChild(0);
48 child.setClassName(AsyncStructure.class.getName());
49 child.setVisibility(View.VISIBLE);
50 child.setDimens(width / 4, height / 4, 0, 0, width / 2, height / 2);
51 child.setEnabled(true);
52 child.setContentDescription("This is some async content");
53 child.setText("We could have lots and lots of async text!");
54 child.asyncCommit();
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DMockView.java60 public void addView(View child) { argument
61 if (child == mView) {
62 super.addView(child);
67 public void addView(View child, int index) { argument
68 if (child == mView) {
69 super.addView(child, index);
74 public void addView(View child, int width, int height) { argument
75 if (child == mView) {
76 super.addView(child, width, height);
81 public void addView(View child, ViewGrou argument
88 addView(View child, int index, ViewGroup.LayoutParams params) argument
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DSnapshotTests.cpp28 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); local
30 child->previous = root.get();
35 auto intersectWithChild = child->serializeIntersectedClip(allocator,
38 EXPECT_EQ(Rect(50, 50, 75, 75), intersectWithChild->rect) << "Expect intersect with child";
43 auto intersectWithRoot = child->serializeIntersectedClip(allocator,
57 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); local
58 child->previous = root.get();
59 child->applyClip(&rect, Matrix4::identity());
61 EXPECT_TRUE(child->getClipArea().isSimple());
62 EXPECT_EQ(Rect(50, 50, 75, 75), child
67 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackStateAnimator.java90 /** The current index for the last child which was not added in this event set. */
122 final ExpandableView child = (ExpandableView) mHostLayout.getChildAt(i);
124 StackViewState viewState = finalState.getViewStateForView(child);
125 if (viewState == null || child.getVisibility() == View.GONE
126 || applyWithoutAnimation(child, viewState, finalState)) {
130 startStackAnimations(child, viewState, finalState, i, -1 /* fixedDelay */);
133 // no child has preformed any animation, lets finish
147 private boolean applyWithoutAnimation(ExpandableView child, StackViewState viewState, argument
152 if (getChildTag(child, TAG_ANIMATOR_TRANSLATION_Y) != null) {
156 if (mHeadsUpDisappearChildren.contains(child) || mHeadsUpAppearChildre
195 startStackAnimations(final ExpandableView child, StackViewState viewState, StackScrollState finalState, int i, long fixedDelay) argument
276 startViewAnimations(View child, ViewState viewState, long delay, long duration) argument
314 abortAnimation(View child, int animatorTag) argument
396 startShadowAlphaAnimation(final ExpandableView child, StackViewState viewState, long duration, long delay) argument
455 startHeightAnimation(final ExpandableView child, StackViewState viewState, long duration, long delay) argument
533 startInsetAnimation(final ExpandableView child, StackViewState viewState, long duration, long delay) argument
592 startAlphaAnimation(final View child, final ViewState viewState, long duration, long delay) argument
667 startZTranslationAnimation(final View child, final ViewState viewState, long duration, long delay) argument
720 startYTranslationAnimation(final View child, ViewState viewState, long duration, long delay) argument
820 getChildTag(View child, int tag) argument
[all...]
/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
H A DErrorCatcher.java29 * {@link ViewGroup} that wraps another view and catches any possible exceptions that the child view
54 assert getChildCount() == 1 : "ErrorCatcher can only have one child";
56 View child = getChildAt(0);
58 measureChild(child, widthMeasureSpec, heightMeasureSpec);
60 setMeasuredDimension(resolveSize(child.getMeasuredWidth(), widthMeasureSpec),
61 resolveSize(child.getMeasuredHeight(), heightMeasureSpec));
64 child.getClass().getCanonicalName(), t);
71 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { argument
73 return super.drawChild(canvas, child, drawingTime);
76 child
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DSwipeDismissBehavior.java33 * An interaction behavior plugin for child views of {@link CoordinatorLayout} to provide support
170 public boolean onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) { argument
181 mIgnoreEvents = !parent.isPointInChildBounds(child,
195 public boolean onTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) { argument
220 public boolean tryCaptureView(View child, int pointerId) {
222 return mActivePointerId == INVALID_POINTER_ID && canSwipeDismissView(child);
246 public void onViewReleased(View child, float xvel, float yvel) {
250 final int childWidth = child.getWidth();
254 if (shouldDismiss(child, xvel)) {
255 targetLeft = child
[all...]
H A DViewGroupUtils.java27 void offsetDescendantRect(ViewGroup parent, View child, Rect rect); argument
32 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
33 parent.offsetDescendantRectToMyCoords(child, rect);
34 // View#offsetDescendantRectToMyCoords includes scroll offsets of the last child.
37 rect.offset(child.getScrollX(), child.getScrollY());
43 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
44 ViewGroupUtilsHoneycomb.offsetDescendantRect(parent, child, rect);
74 * This does not need to be a direct child.
H A DHeaderScrollingViewBehavior.java51 public boolean onMeasureChild(CoordinatorLayout parent, View child, argument
54 final int childLpHeight = child.getLayoutParams().height;
60 final List<View> dependencies = parent.getDependencies(child);
64 && !ViewCompat.getFitsSystemWindows(child)) {
67 ViewCompat.setFitsSystemWindows(child, true);
69 if (ViewCompat.getFitsSystemWindows(child)) {
71 child.requestLayout();
90 parent.onMeasureChild(child, parentWidthMeasureSpec,
100 protected void layoutChild(final CoordinatorLayout parent, final View child, argument
102 final List<View> dependencies = parent.getDependencies(child);
[all...]
H A DCoordinatorLayout.java74 * <li>As a container for a specific interaction with one or more child views</li>
77 * <p>By specifying {@link CoordinatorLayout.Behavior Behaviors} for child views of a
80 * used as a child of a CoordinatorLayout using the
89 * to an arbitrary descendant of the CoordinatorLayout, but it may not be the anchored child itself
90 * or a descendant of the anchored child. This can be used to place floating views relative to
372 final View child = getChildAt(i);
373 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
380 * Populate a list with the current child views, sorted such that the topmost views
390 final View child = getChildAt(childIndex);
391 out.add(child);
600 getResolvedLayoutParams(View child) argument
671 onMeasureChild(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) argument
795 onLayoutChild(View child, int layoutDirection) argument
847 recordLastChildRect(View child, Rect r) argument
859 getLastChildRect(View child, Rect out) argument
873 getChildRect(View child, boolean transform, Rect out) argument
894 getDesiredAnchoredChildRect(View child, int layoutDirection, Rect anchorRect, Rect out) argument
990 layoutChildWithAnchor(View child, View anchor, int layoutDirection) argument
1012 layoutChildWithKeyline(View child, int keyline, int layoutDirection) argument
1075 layoutChild(View child, int layoutDirection) argument
1124 drawChild(Canvas canvas, View child, long drawingTime) argument
1268 getDependencies(View child) argument
1315 hasDependencies(View child) argument
1375 offsetChildToAnchor(View child, int layoutDirection) argument
1415 isPointInChildBounds(View child, int x, int y) argument
1467 onStartNestedScroll(View child, View target, int nestedScrollAxes) argument
1488 onNestedScrollAccepted(View child, View target, int nestedScrollAxes) argument
1722 onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEvent ev) argument
1741 onTouchEvent(CoordinatorLayout parent, V child, MotionEvent ev) argument
1760 getScrimColor(CoordinatorLayout parent, V child) argument
1777 getScrimOpacity(CoordinatorLayout parent, V child) argument
1793 blocksInteractionBelow(CoordinatorLayout parent, V child) argument
1819 layoutDependsOn(CoordinatorLayout parent, V child, View dependency) argument
1848 onDependentViewChanged(CoordinatorLayout parent, V child, View dependency) argument
1866 onDependentViewRemoved(CoordinatorLayout parent, V child, View dependency) argument
1880 isDirty(CoordinatorLayout parent, V child) argument
1904 onMeasureChild(CoordinatorLayout parent, V child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) argument
1934 onLayoutChild(CoordinatorLayout parent, V child, int layoutDirection) argument
1947 setTag(View child, Object tag) argument
1959 getTag(View child) argument
1986 onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) argument
2011 onNestedScrollAccepted(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) argument
2036 onStopNestedScroll(CoordinatorLayout coordinatorLayout, V child, View target) argument
2068 onNestedScroll(CoordinatorLayout coordinatorLayout, V child, View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) argument
2101 onNestedPreScroll(CoordinatorLayout coordinatorLayout, V child, View target, int dx, int dy, int[] consumed) argument
2133 onNestedFling(CoordinatorLayout coordinatorLayout, V child, View target, float velocityX, float velocityY, boolean consumed) argument
2161 onNestedPreFling(CoordinatorLayout coordinatorLayout, V child, View target, float velocityX, float velocityY) argument
2180 onApplyWindowInsets(CoordinatorLayout coordinatorLayout, V child, WindowInsetsCompat insets) argument
2197 onRestoreInstanceState(CoordinatorLayout parent, V child, Parcelable state) argument
2219 onSaveInstanceState(CoordinatorLayout parent, V child) argument
2416 isBlockingInteractionBelow(CoordinatorLayout parent, View child) argument
2469 dependsOn(CoordinatorLayout parent, View child, View dependency) argument
2515 isDirty(CoordinatorLayout parent, View child) argument
2600 onChildViewAdded(View parent, View child) argument
2607 onChildViewRemoved(View parent, View child) argument
[all...]
/frameworks/support/v4/ics/android/support/v4/view/
H A DViewGroupCompatIcs.java27 public static boolean onRequestSendAccessibilityEvent(ViewGroup group, View child, argument
29 return group.onRequestSendAccessibilityEvent(child, event);
H A DViewParentCompatICS.java28 ViewParent parent, View child, AccessibilityEvent event) {
29 return parent.requestSendAccessibilityEvent(child, event);
27 requestSendAccessibilityEvent( ViewParent parent, View child, AccessibilityEvent event) argument
/frameworks/support/v4/kitkat/android/support/v4/view/
H A DViewParentCompatKitKat.java23 public static void notifySubtreeAccessibilityStateChanged(ViewParent parent, View child, argument
25 parent.notifySubtreeAccessibilityStateChanged(child, source, changeType);
/frameworks/base/core/java/android/view/
H A DViewParent.java31 * child of this view parent. This will schedule a layout pass of the view
44 * Called when a child wants the view hierarchy to gather and report
51 * @param child the view requesting the transparent region computation
54 public void requestTransparentRegion(View child); argument
57 * All or part of a child is dirty and needs to be redrawn.
59 * @param child The child which is dirty
60 * @param r The area within the child that is invalid
62 public void invalidateChild(View child, Rect r); argument
65 * All or part of a child i
102 requestChildFocus(View child, View focused) argument
110 recomputeViewAttributes(View child) argument
117 clearChildFocus(View child) argument
139 getChildVisibleRect(View child, Rect r, android.graphics.Point offset) argument
160 bringChildToFront(View child) argument
259 childDrawableStateChanged(View child) argument
298 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument
317 requestSendAccessibilityEvent(View child, AccessibilityEvent event) argument
342 childHasTransientStateChanged(View child, boolean hasTransientState) argument
374 notifySubtreeAccessibilityStateChanged(View child, View source, int changeType) argument
481 onStartNestedScroll(View child, View target, int nestedScrollAxes) argument
499 onNestedScrollAccepted(View child, View target, int nestedScrollAxes) argument
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DNoSaveStateFrameLayout.java31 static ViewGroup wrap(View child) { argument
32 NoSaveStateFrameLayout wrapper = new NoSaveStateFrameLayout(child.getContext());
33 ViewGroup.LayoutParams childParams = child.getLayoutParams();
39 child.setLayoutParams(lp);
40 wrapper.addView(child);
49 * Override to prevent freezing of any child views.
57 * Override to prevent thawing of any child views.
/frameworks/base/core/java/com/android/internal/widget/
H A DBackgroundFallback.java57 final View child = root.getChildAt(i);
58 final Drawable childBg = child.getBackground();
59 if (child == content) {
62 if (childBg == null && child instanceof ViewGroup &&
63 ((ViewGroup) child).getChildCount() == 0) {
66 } else if (child.getVisibility() != View.VISIBLE || childBg == null ||
73 left = Math.min(left, child.getLeft());
74 top = Math.min(top, child.getTop());
75 right = Math.max(right, child.getRight());
76 bottom = Math.max(bottom, child
[all...]
H A DMessagingLinearLayout.java52 * Id of the child that's also visible in the contracted layout.
108 final View child = getChildAt(i);
109 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
122 final View child = getChildAt(i);
125 if (child instanceof ImageFloatingTextView) {
129 ((ImageFloatingTextView) child).setNumIndentLines(mIndentLines);
132 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0);
134 final int childHeight = child.getMeasuredHeight();
151 final View child = getChildAt(i);
152 final LayoutParams lp = (LayoutParams) child
235 drawChild(Canvas canvas, View child, long drawingTime) argument
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DOSUCommand.java35 public OSUCommand(XMLNode child) throws OMAException { argument
36 mOSUCommand = sCommands.get(child.getStrippedTag());
44 child = child.getSoleChild();
45 mExecCommand = sExecs.get(child.getStrippedTag());
47 throw new OMAException("Unrecognized exec command: " + child.getStrippedTag());
56 mCommandData = new BrowserURI(child);
59 mCommandData = new GetCertData(child);
62 mCommandData = new MOURN(child);
70 mCommandData = new ClientCertInfo(child);
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DItemInflater.java31 void addChild(ItemHierarchy child); argument
57 protected void onAddChildItem(ItemHierarchy parent, ItemHierarchy child) { argument
59 ((ItemParent) parent).addChild(child);
61 throw new IllegalArgumentException("Cannot add child item to " + parent);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java42 * You can also specify gravity, which specifies the alignment of all the child elements by
99 * use the child at this index as the baseline.
107 * The additional offset to the child's baseline.
291 final View child = getVirtualChildAt(i);
293 if (child != null && child.getVisibility() != GONE) {
295 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
296 final int top = child.getTop() - lp.topMargin - mDividerHeight;
303 final View child = getVirtualChildAt(count - 1);
305 if (child
1340 getChildrenSkipCount(View child, int index) argument
1368 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
1382 getLocationOffset(View child) argument
1394 getNextLocationOffset(View child) argument
1638 setChildFrame(View child, int left, int top, int width, int height) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DViewSwitcher.java28 * child views, of which only one is shown at a time.
62 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
66 super.addView(child, index, params);
85 View child = mFactory.makeView();
86 LayoutParams lp = (LayoutParams) child.getLayoutParams();
90 addView(child, lp);
91 return child;
H A DDayPickerViewPager.java73 final View child = getChildAt(i);
74 if (child.getVisibility() != GONE) {
75 measureChild(child, widthMeasureSpec, heightMeasureSpec);
76 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
77 maxWidth = Math.max(maxWidth, child.getMeasuredWidth());
78 maxHeight = Math.max(maxHeight, child.getMeasuredHeight());
79 childState = combineMeasuredStates(childState, child.getMeasuredState());
83 mMatchParentChildren.add(child);
111 final View child = mMatchParentChildren.get(i);
113 final LayoutParams lp = (LayoutParams) child
[all...]
/frameworks/base/services/core/java/com/android/server/firewall/
H A DNotFilter.java30 private NotFilter(Filter child) { argument
31 mChild = child;
45 Filter child = null;
49 if (child == null) {
50 child = filter;
53 "<not> tag can only contain a single child filter.", parser, null);
56 return new NotFilter(child);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DViewGroup_Delegate.java46 /*package*/ static boolean drawChild(ViewGroup thisVG, Canvas canvas, View child, argument
48 if (child.getZ() > thisVG.getZ()) {
51 child.setBackgroundBounds();
52 ViewOutlineProvider outlineProvider = child.getOutlineProvider();
53 Outline outline = child.mAttachInfo.mTmpOutline;
54 outlineProvider.getOutline(child, outline);
56 int restoreTo = transformCanvas(thisVG, canvas, child);
57 drawShadow(thisVG, canvas, child, outline);
61 return thisVG.drawChild_Original(canvas, child, drawingTime);
64 private static void drawShadow(ViewGroup parent, Canvas canvas, View child, argument
88 getElevation(View child, ViewGroup parent) argument
108 transformCanvas(ViewGroup thisVG, Canvas canvas, View child) argument
[all...]
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DFlowLayout.java55 final View child = getChildAt(i);
56 if (child.getVisibility() != GONE) {
57 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST),
59 final int childWidth = child.getMeasuredWidth();
60 lineHeight = Math.max(lineHeight, child.getMeasuredHeight());
98 final View child = getChildAt(i);
99 if (child.getVisibility() != GONE) {
100 final int childWidth = child.getMeasuredWidth();
101 final int childHeight = child.getMeasuredHeight();
106 child
[all...]

Completed in 698 milliseconds

1234567891011>>