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

12345678910

/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();
36 child->serializeIntersectedClip(allocator, &rect, Matrix4::identity());
38 EXPECT_EQ(Rect(50, 50, 75, 75), intersectWithChild->rect) << "Expect intersect with child";
44 child->serializeIntersectedClip(allocator, &rect, Matrix4::identity());
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, [](RenderProperties& props, Canvas& canvas) { local
46 [&child](RenderProperties& props, Canvas& canvas) {
47 canvas.drawRenderNode(child.get());
52 EXPECT_TRUE(child->hasParents()) << "Child node has no parent";
59 EXPECT_TRUE(child->hasParents()) << "Child should still have a parent";
64 EXPECT_FALSE(child->hasParents()) << "Child should be removed";
69 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { local
73 [&child](RenderProperties& props, Canvas& canvas) {
74 canvas.drawRenderNode(child.get());
77 EXPECT_TRUE(child
131 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { local
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DUtil.java31 * Returns true if child == parent or is descendant of the parent.
33 public static boolean isDescendant(ViewGroup parent, View child) { argument
34 while (child != null) {
35 if (child == parent) {
38 ViewParent p = child.getParent();
42 child = (View) p;
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...]
H A DBrowseRowsFrameLayout.java26 * Customized FrameLayout excludes margin of child from calculating the child size.
48 protected void measureChildWithMargins(View child, argument
51 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
56 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
/frameworks/support/coordinatorlayout/src/androidTest/java/androidx/coordinatorlayout/testutils/
H A DCoordinatorLayoutUtils.java33 public boolean layoutDependsOn(CoordinatorLayout parent, View child, View dependency) { argument
/frameworks/base/cmds/statsd/benchmark/
H A Dfilter_value_benchmark.cpp42 auto child = field_matcher->add_child(); local
43 child->set_field(1);
44 child->set_position(FIRST);
45 child->add_child()->set_field(1);
H A Dget_dimensions_for_condition_benchmark.cpp45 auto child = field_matcher.add_child(); local
46 child->set_field(1);
47 child->set_position(FIRST);
48 child->add_child()->set_field(1);
/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/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/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();
54 Outline outline = child.mAttachInfo.mTmpOutline;
55 outlineProvider.getOutline(child, outline);
57 int restoreTo = transformCanvas(thisVG, canvas, child);
58 drawShadow(thisVG, canvas, child, outline);
63 return thisVG.drawChild_Original(canvas, child, drawingTime);
66 private static void drawShadow(ViewGroup parent, Canvas canvas, View child, argument
91 getElevation(View child, ViewGroup parent) argument
112 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/compat/src/main/java/androidx/core/view/
H A DNestedScrollingParentHelper.java62 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, argument
64 onNestedScrollAccepted(child, target, axes, ViewCompat.TYPE_TOUCH);
75 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, argument
H A DNestedScrollingParent2.java29 * that wish to support scrolling operations delegated by a nested child view.
57 * @param child Direct child of this ViewParent containing target
64 boolean onStartNestedScroll(@NonNull View child, @NonNull View target, @ScrollAxis int axes, argument
76 * @param child Direct child of this ViewParent containing target
84 void onNestedScrollAccepted(@NonNull View child, @NonNull View target, @ScrollAxis int axes, argument
104 * <p>This method will be called when the ViewParent's current nested scrolling child view
111 * position of multiple child elements, for example. The unconsumed portion may be used to
130 * to consume the scroll before the nested scrolling child doe
[all...]
/frameworks/support/coordinatorlayout/src/androidTest/java/androidx/coordinatorlayout/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/base/libs/hwui/tests/microbench/
H A DDisplayListCanvasBench.cpp164 sp<RenderNode> child = TestUtils::createNode(50, 50, 100, 100, [](auto& props, auto& canvas) { local
182 // Draw child loop
184 canvas->drawRenderNode(child.get());
/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;
94 public void removeViewStateForView(View child) { argument
95 mStateMap.remove(child);
105 ExpandableView child = (ExpandableView) mHostView.getChildAt(i);
106 ExpandableViewState state = mStateMap.get(child);
108 Log.wtf(CHILD_NOT_FOUND_TAG, "No child stat
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayWindowController.java79 public void positionChildAt(StackWindowController child, int position) { argument
81 if (DEBUG_STACK) Slog.i(TAG_WM, "positionTaskStackAt: positioning stack=" + child
88 if (child.mContainer == null) {
93 mContainer.positionStackAt(position, child.mContainer);
/frameworks/base/telephony/java/android/telephony/mbms/
H A DMbmsUtils.java39 public static boolean isContainedIn(File parent, File child) { argument
42 String childPath = child.getCanonicalPath();
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DMockView.java71 public void addView(View child) { argument
72 if (child == mView) {
73 super.addView(child);
78 public void addView(View child, int index) { argument
79 if (child == mView) {
80 super.addView(child, index);
85 public void addView(View child, int width, int height) { argument
86 if (child == mView) {
87 super.addView(child, width, height);
92 public void addView(View child, ViewGrou argument
99 addView(View child, int index, ViewGroup.LayoutParams params) argument
[all...]
/frameworks/support/car/src/main/java/androidx/car/moderator/
H A DSpeedBumpView.java71 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
72 super.addView(child, index, params);
80 // Overriding dispatchTouchEvent to intercept all touch events on child views.

Completed in 3551 milliseconds

12345678910