/frameworks/base/libs/hwui/tests/unit/ |
H A D | SnapshotTests.cpp | 28 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 D | RenderNodeTests.cpp | 42 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 D | Util.java | 30 * 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 D | BrowseRowsFrameLayout.java | 25 * 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 D | OnChildViewHolderSelectedListener.java | 20 * 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 D | TextSwitcher.java | 57 * @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 D | ViewSwitcher.java | 28 * 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 D | OSUCommand.java | 35 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 D | QuickTileLayout.java | 22 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 D | NotFilter.java | 30 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 D | ViewGroup_Delegate.java | 46 /*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 90 getElevation(View child, ViewGroup parent) argument 110 transformCanvas(ViewGroup thisVG, Canvas canvas, View child) argument [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | ItemInflater.java | 27 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 D | ReflectionInflaterTest.java | 77 protected void onAddChildItem(Animation parent, Animation child) { argument 79 group.addAnimation(child);
|
H A D | SimpleInflaterTest.java | 60 protected void onAddChildItem(StringBuilder parent, StringBuilder child) { argument 61 parent.append(" > ").append(child);
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | NestedScrollingParentHelper.java | 61 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 D | TestFloatingBehavior.java | 37 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 D | CoordinatorLayoutUtils.java | 32 public boolean layoutDependsOn(CoordinatorLayout parent, View child, View dependency) { argument
|
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | DisplayListCanvasBench.cpp | 164 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/stack/ |
H A D | StackScrollState.java | 53 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 D | ConfigurationContainerTests.java | 58 // 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/telephony/java/android/telephony/mbms/ |
H A D | MbmsUtils.java | 37 public static boolean isContainedIn(File parent, File child) { argument 40 String childPath = child.getCanonicalPath();
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
H A D | MockView.java | 71 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/design/src/android/support/design/widget/ |
H A D | ViewOffsetBehavior.java | 40 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 D | GridLayoutManagerNoOpUpdateTest.java | 101 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);
|
/frameworks/support/wear/src/android/support/wear/widget/ |
H A D | WearableLinearLayoutManager.java | 26 * offsetting logic for updating child layout. For round devices it offsets the children 42 * Override this method to implement custom child layout behavior on scroll. It is called 44 * modify any property of the child view. Examples include scaling the children based on 48 * @param child the current child to be affected. 51 public abstract void onLayoutFinished(View child, RecyclerView parent); argument 118 View child = getChildAt(count); 119 mLayoutCallback.onLayoutFinished(child, (WearableRecyclerView) child.getParent());
|