/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableLayoutTest.java | 377 View child1 = new TextView(mActivity); in testAddView() local 378 mTableEmpty.addView(child1); in testAddView() 379 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView() 386 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView() 395 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView() 412 View child1 = new TextView(mActivity); in testAddViewAtIndex() local 413 mTableEmpty.addView(child1, 0); in testAddViewAtIndex() 414 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddViewAtIndex() 422 assertSame(child1, mTableEmpty.getChildAt(1)); in testAddViewAtIndex() 431 assertSame(child1, mTableEmpty.getChildAt(1)); in testAddViewAtIndex() [all …]
|
D | GridViewTest.java | 293 View child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing() local 295 assertEquals(0, child1.getLeft() - child0.getRight()); in verifyAccessHorizontalSpacing() 297 assertEquals(0, child0.getLeft() - child1.getRight()); in verifyAccessHorizontalSpacing() 306 child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing() 308 assertEquals(5, child1.getLeft() - child0.getRight()); in verifyAccessHorizontalSpacing() 310 assertEquals(5, child0.getLeft() - child1.getRight()); in verifyAccessHorizontalSpacing() 324 View child1 = mGridView.getChildAt(1); in testAccessVerticalSpacing() local 325 assertEquals(0, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing() 332 child1 = mGridView.getChildAt(1); in testAccessVerticalSpacing() 333 assertEquals(5, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing() [all …]
|
D | HorizontalScrollViewTest.java | 119 TextView child1 = new TextView(mActivity); in testAddView() local 121 mScrollViewRegular.addView(child1); in testAddView() 137 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local 139 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex() 152 child1 = new TextView(mActivity); in testAddViewWithIndex() 154 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex() 181 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local 183 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams() 211 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local 213 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams() [all …]
|
D | ScrollViewTest.java | 135 TextView child1 = new TextView(mActivity); in testAddView() local 137 mScrollViewRegular.addView(child1); in testAddView() 153 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local 155 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex() 168 child1 = new TextView(mActivity); in testAddViewWithIndex() 170 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex() 197 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local 199 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams() 227 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local 229 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams() [all …]
|
D | LayoutDirectionTest.java | 134 ViewGroup child1 = (ViewGroup) mActivity.findViewById(child1Id); in verifyDirectionForOneLayoutFromXml() local 135 assertEquals(child1ResDir, child1.getLayoutDirection()); in verifyDirectionForOneLayoutFromXml()
|
D | LinearLayoutTest.java | 654 final View child1 = new View(mActivity); in testVisibilityAffectsLayout() local 655 child1.setBackgroundColor(Color.GREEN); in testVisibilityAffectsLayout() 657 child1.setLayoutParams(childParams); in testVisibilityAffectsLayout() 668 parent.addView(child1); in testVisibilityAffectsLayout() 670 verifyBounds(viewGroup, child1, countDownLatch1, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout() 682 child1.setVisibility(View.GONE); in testVisibilityAffectsLayout() 693 child1.setVisibility(View.VISIBLE); in testVisibilityAffectsLayout() 694 verifyBounds(viewGroup, child1, countDownLatch3, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 130 private void assertChildrenDelay(Animation child1, Animation child2, Animation child3) { in assertChildrenDelay() argument 131 long startTime = child1.getStartTime(); in assertChildrenDelay() 132 long offsetTime1 = child1.getStartOffset(); in assertChildrenDelay() 144 child1.getTransformation(startTime + 500, transformation1); in assertChildrenDelay() 152 child1.getTransformation(startTime + 1200, transformation1); in assertChildrenDelay() 160 child1.getTransformation(startTime + 2000, transformation1); in assertChildrenDelay() 168 child1.getTransformation(startTime + 2700, transformation1); in assertChildrenDelay() 176 child1.getTransformation(startTime + 3500, transformation1); in assertChildrenDelay() 305 final View child1 = mGridView.getChildAt(INDEX_OF_CHILD1); 315 child1.setLayoutParams(layoutParams1); [all …]
|
D | AnimatorInflaterTest.java | 131 final ObjectAnimator child1 = (ObjectAnimator) set.getChildAnimations().get(0); in testLoadAnimator() local 135 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
|
D | LayoutAnimationControllerTest.java | 366 final View child1 = mListView.getChildAt(INDEX_OF_CHILD1); 370 child1.setLayoutParams(layoutParams1); 378 assertEquals(0, controller.getDelayForView(child1));
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroupTest.java | 1329 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveDetachedView() local 1334 parent.addView(child1); in testRemoveDetachedView() 1337 parent.removeDetachedView(child1, false); in testRemoveDetachedView() 1340 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child1); in testRemoveDetachedView() 1342 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child1); in testRemoveDetachedView() 1408 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViews() local 1412 parent.addView(child1); in testRemoveViews() 1434 assertNull(child1.getParent()); in testRemoveViews() 1446 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViewsInLayout() local 1450 parent.addView(child1); in testRemoveViewsInLayout() [all …]
|
D | TooltipTest.java | 778 final View child1 = mActivity.findViewById(R.id.overlap1); in testMouseHoverOverlap() local 791 assertTrue(hasTooltip(child1)); in testMouseHoverOverlap() 793 setVisibility(child1, View.INVISIBLE); in testMouseHoverOverlap()
|
D | ViewTest.java | 482 View child1 = mActivity.findViewById(R.id.pointer_icon_overlap_child1); in testPointerIconOverlap() local 492 child1.setPointerIcon(iconChild1); in testPointerIconOverlap() 506 setVisibilityOnUiThread(child1, View.GONE); in testPointerIconOverlap()
|