Searched defs:child (Results 1 - 25 of 222) sorted by relevance

123456789

/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...]
H A DRenderNodeTests.cpp42 auto child = TestUtils::createNode(0, 0, 200, 400, local
47 [&child](RenderProperties& props, Canvas& canvas) {
48 canvas.drawRenderNode(child.get());
53 EXPECT_TRUE(child->hasParents()) << "Child node has no parent";
60 EXPECT_TRUE(child->hasParents()) << "Child should still have a parent";
65 EXPECT_FALSE(child->hasParents()) << "Child should be removed";
70 auto child = TestUtils::createNode(0, 0, 200, 400, local
75 [&child](RenderProperties& props, Canvas& canvas) {
76 canvas.drawRenderNode(child.get());
79 EXPECT_TRUE(child
134 auto child = TestUtils::createNode(0, 0, 200, 400, local
[all...]
/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;
H A DBrowseRowsFrameLayout.java25 * Customized FrameLayout excludes margin of child from calculating the child size.
47 protected void measureChildWithMargins(View child, argument
50 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
55 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
H A DOnChildViewHolderSelectedListener.java20 * Interface for receiving notification when a child of this ViewGroup has been selected.
35 * Callback method to be invoked when a child of this ViewGroup has been selected. Listener
36 * might change the size of the child and the position of the child is not finalized. To get
37 * the final layout position of child, overide {@link #onChildViewHolderSelectedAndPositioned(
41 * @param child The ViewHolder within the RecyclerView that is selected, or null if no
48 public void onChildViewHolderSelected(RecyclerView parent, RecyclerView.ViewHolder child, argument
53 * Callback method to be invoked when a child of this ViewGroup has been selected and
57 * @param child The ViewHolder within the RecyclerView that is selected, or null if no
65 RecyclerView.ViewHolder child, in
64 onChildViewHolderSelectedAndPositioned(RecyclerView parent, RecyclerView.ViewHolder child, int position, int subposition) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DTextSwitcher.java57 * @throws IllegalArgumentException if child is not an instance of
61 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
62 if (!(child instanceof TextView)) {
67 super.addView(child, index, params);
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/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/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQuickTileLayout.java22 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
26 super.addView(child, index, params);
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DItemInflater.java27 void addChild(ItemHierarchy child); argument
36 protected void onAddChildItem(ItemHierarchy parent, ItemHierarchy child) { argument
38 ((ItemParent) parent).addChild(child);
40 throw new IllegalArgumentException("Cannot add child item to " + parent);
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
H A DReflectionInflaterTest.java77 protected void onAddChildItem(Animation parent, Animation child) { argument
79 group.addAnimation(child);
H A DSimpleInflaterTest.java60 protected void onAddChildItem(StringBuilder parent, StringBuilder child) { argument
61 parent.append(" > ").append(child);
/frameworks/support/core-ui/java/android/support/v4/view/
H A DNestedScrollingParentHelper.java61 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, argument
63 onNestedScrollAccepted(child, target, axes, ViewCompat.TYPE_TOUCH);
74 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, argument
/frameworks/support/design/tests/src/android/support/design/custom/
H A DTestFloatingBehavior.java37 public boolean layoutDependsOn(CoordinatorLayout parent, TextView child, View dependency) { argument
42 public boolean onDependentViewChanged(CoordinatorLayout parent, TextView child, argument
44 child.setTranslationY(Math.min(0,
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DCoordinatorLayoutUtils.java32 public boolean layoutDependsOn(CoordinatorLayout parent, View child, View dependency) { argument
/frameworks/base/libs/hwui/tests/microbench/
H A DDisplayListCanvasBench.cpp164 sp<RenderNode> child = TestUtils::createNode(50, 50, 100, 100, local
184 // Draw child loop
186 canvas->drawRenderNode(child.get());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DReverseLinearLayout.java50 public void addView(View child) { argument
51 reversParams(child.getLayoutParams());
53 super.addView(child, 0);
55 super.addView(child);
60 public void addView(View child, ViewGroup.LayoutParams params) { argument
63 super.addView(child, 0, params);
65 super.addView(child, params);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollState.java53 ExpandableView child = (ExpandableView) mHostView.getChildAt(i);
54 resetViewState(child);
56 // handling reset for child notifications
57 if (child instanceof ExpandableNotificationRow) {
58 ExpandableNotificationRow row = (ExpandableNotificationRow) child;
93 public void removeViewStateForView(View child) { argument
94 mStateMap.remove(child);
104 ExpandableView child = (ExpandableView) mHostView.getChildAt(i);
105 ExpandableViewState state = mStateMap.get(child);
107 Log.wtf(CHILD_NOT_FOUND_TAG, "No child stat
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DConfigurationContainerTests.java58 // Check child initial config.
64 // Check child initial config if root has overrides.
73 // Check child initial config if root has parent config set.
95 // Init child's config.
96 final TestConfigurationContainer child = root.addChild();
99 child.onOverrideConfigurationChanged(childOverrideConfig);
103 // Check configuration update when child is removed from parent.
104 root.removeChild(child);
105 assertEquals(childOverrideConfig, child.getOverrideConfiguration());
106 assertEquals(mergedOverrideConfig, child
226 removeChild(TestConfigurationContainer child) argument
[all...]
/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/core-ui/api21/android/support/v4/widget/
H A DDrawerLayoutCompatApi21.java47 public static void dispatchChildInsets(View child, Object insets, int gravity) { argument
56 child.dispatchApplyWindowInsets(wi);
/frameworks/support/design/src/android/support/design/widget/
H A DViewOffsetBehavior.java40 public boolean onLayoutChild(CoordinatorLayout parent, V child, int layoutDirection) { argument
41 // First let lay the child out
42 layoutChild(parent, child, layoutDirection);
45 mViewOffsetHelper = new ViewOffsetHelper(child);
61 protected void layoutChild(CoordinatorLayout parent, V child, int layoutDirection) { argument
63 parent.onLayoutChild(child, layoutDirection);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerNoOpUpdateTest.java101 View child = mGlm.getChildAt(i);
102 Rect childBounds = getChildBounds(mRecyclerView, child, true);
103 long id = mRecyclerView.getChildViewHolder(child).getItemId();
111 private Rect getChildBounds(RecyclerView recyclerView, View child, boolean offset) { argument
113 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) child.getLayoutParams();
114 Rect rect = new Rect(layoutManager.getDecoratedLeft(child) - lp.leftMargin,
115 layoutManager.getDecoratedTop(child) - lp.topMargin,
116 layoutManager.getDecoratedRight(child) + lp.rightMargin,
117 layoutManager.getDecoratedBottom(child) + lp.bottomMargin);

Completed in 533 milliseconds

123456789