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

1234567891011>>

/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/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
H A DResourceCache.java29 View child = mCachedViews.get(resId, null);
30 if (child == null) {
31 child = view.findViewById(resId);
32 mCachedViews.put(resId, child);
34 return (ViewType) child;
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
H A DResourceCache.java29 View child = mCachedViews.get(resId, null);
30 if (child == null) {
31 child = view.findViewById(resId);
32 mCachedViews.put(resId, child);
34 return (ViewType) child;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DUtil.java30 * Returns true if child == parent or is descendant of the parent.
32 public static boolean isDescendant(ViewGroup parent, View child) { argument
33 while (child != null) {
34 if (child == parent) {
37 ViewParent p = child.getParent();
41 child = (View) p;
/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.java91 /** The current index for the last child which was not added in this event set. */
123 final ExpandableView child = (ExpandableView) mHostLayout.getChildAt(i);
125 StackViewState viewState = finalState.getViewStateForView(child);
126 if (viewState == null || child.getVisibility() == View.GONE
127 || applyWithoutAnimation(child, viewState, finalState)) {
131 startStackAnimations(child, viewState, finalState, i, -1 /* fixedDelay */);
134 // no child has preformed any animation, lets finish
148 private boolean applyWithoutAnimation(ExpandableView child, StackViewState viewState, argument
153 if (getChildTag(child, TAG_ANIMATOR_TRANSLATION_Y) != null) {
157 if (mHeadsUpDisappearChildren.contains(child) || mHeadsUpAppearChildre
196 startStackAnimations(final ExpandableView child, StackViewState viewState, StackScrollState finalState, int i, long fixedDelay) argument
277 startViewAnimations(View child, ViewState viewState, long delay, long duration) argument
315 abortAnimation(View child, int animatorTag) argument
397 startShadowAlphaAnimation(final ExpandableView child, StackViewState viewState, long duration, long delay) argument
456 startHeightAnimation(final ExpandableView child, StackViewState viewState, long duration, long delay) argument
534 startInsetAnimation(final ExpandableView child, StackViewState viewState, long duration, long delay) argument
593 startAlphaAnimation(final View child, final ViewState viewState, long duration, long delay) argument
668 startZTranslationAnimation(final View child, final ViewState viewState, long duration, long delay) argument
721 startYTranslationAnimation(final View child, ViewState viewState, long duration, long delay) argument
821 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/internal/
H A DBaselineLayout.java55 final View child = getChildAt(i);
56 if (child.getVisibility() == GONE) {
60 measureChild(child, widthMeasureSpec, heightMeasureSpec);
61 final int baseline = child.getBaseline();
64 maxChildDescent = Math.max(maxChildDescent, child.getMeasuredHeight() - baseline);
66 maxWidth = Math.max(maxWidth, child.getMeasuredWidth());
67 maxHeight = Math.max(maxHeight, child.getMeasuredHeight());
69 ViewCompat.getMeasuredState(child));
92 final View child = getChildAt(i);
93 if (child
[all...]
/frameworks/support/compat/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/compat/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/fragment/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...]
/frameworks/support/design/src/android/support/design/widget/
H A DViewGroupUtils.java27 void offsetDescendantRect(ViewGroup parent, View child, Rect rect); argument
35 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
36 parent.offsetDescendantRectToMyCoords(child, rect);
37 // View#offsetDescendantRectToMyCoords includes scroll offsets of the last child.
40 rect.offset(child.getScrollX(), child.getScrollY());
49 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
50 ViewGroupUtilsHoneycomb.offsetDescendantRect(parent, child, rect);
80 * This does not need to be a direct child.
H A DSwipeDismissBehavior.java36 * An interaction behavior plugin for child views of {@link CoordinatorLayout} to provide support
174 public boolean onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) { argument
179 mInterceptingEvents = parent.isPointInChildBounds(child,
198 public boolean onTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) { argument
223 public boolean tryCaptureView(View child, int pointerId) {
225 return mActivePointerId == INVALID_POINTER_ID && canSwipeDismissView(child);
249 public void onViewReleased(View child, float xvel, float yvel) {
253 final int childWidth = child.getWidth();
257 if (shouldDismiss(child, xvel)) {
258 targetLeft = child
[all...]
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 DBottomSheetBehavior.java53 * An interaction behavior plugin for a child view of {@link CoordinatorLayout} to make it work as
203 public Parcelable onSaveInstanceState(CoordinatorLayout parent, V child) { argument
204 return new SavedState(super.onSaveInstanceState(parent, child), mState);
208 public void onRestoreInstanceState(CoordinatorLayout parent, V child, Parcelable state) { argument
210 super.onRestoreInstanceState(parent, child, ss.getSuperState());
220 public boolean onLayoutChild(CoordinatorLayout parent, V child, int layoutDirection) { argument
221 if (ViewCompat.getFitsSystemWindows(parent) && !ViewCompat.getFitsSystemWindows(child)) {
222 ViewCompat.setFitsSystemWindows(child, true);
224 int savedTop = child.getTop();
226 parent.onLayoutChild(child, layoutDirectio
259 onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) argument
310 onTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) argument
338 onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) argument
346 onNestedPreScroll(CoordinatorLayout coordinatorLayout, V child, View target, int dx, int dy, int[] consumed) argument
383 onStopNestedScroll(CoordinatorLayout coordinatorLayout, V child, View target) argument
422 onNestedPreFling(CoordinatorLayout coordinatorLayout, V child, View target, float velocityX, float velocityY) argument
588 shouldHide(View child, float yvel) argument
621 startSettlingAnimation(View child, int state) 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.java45 * You can also specify gravity, which specifies the alignment of all the child elements by
104 * use the child at this index as the baseline.
112 * The additional offset to the child's baseline.
297 final View child = getVirtualChildAt(i);
299 if (child != null && child.getVisibility() != GONE) {
301 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
302 final int top = child.getTop() - lp.topMargin - mDividerHeight;
309 final View child = getVirtualChildAt(count - 1);
311 if (child
1346 getChildrenSkipCount(View child, int index) argument
1374 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
1388 getLocationOffset(View child) argument
1400 getNextLocationOffset(View child) argument
1644 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;
/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...]

Completed in 1147 milliseconds

1234567891011>>