/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableLayoutTest.java | 378 View child1 = new TextView(mContext); in testAddView1() local 379 tableLayout.addView(child1); in testAddView1() 380 assertSame(child1, tableLayout.getChildAt(0)); in testAddView1() 387 assertSame(child1, tableLayout.getChildAt(0)); in testAddView1() 396 assertSame(child1, tableLayout.getChildAt(0)); in testAddView1() 414 View child1 = new TextView(mContext); in testAddView2() local 415 tableLayout.addView(child1, 0); in testAddView2() 416 assertSame(child1, tableLayout.getChildAt(0)); in testAddView2() 424 assertSame(child1, tableLayout.getChildAt(1)); in testAddView2() 433 assertSame(child1, tableLayout.getChildAt(1)); in testAddView2() [all …]
|
D | GridViewTest.java | 270 View child1 = mGridView.getChildAt(1); in testSetHorizontalSpacing() local 272 assertEquals(0, child1.getLeft() - child0.getRight()); in testSetHorizontalSpacing() 274 assertEquals(0, child0.getLeft() - child1.getRight()); in testSetHorizontalSpacing() 285 child1 = mGridView.getChildAt(1); in testSetHorizontalSpacing() 287 assertEquals(5, child1.getLeft() - child0.getRight()); in testSetHorizontalSpacing() 289 assertEquals(5, child0.getLeft() - child1.getRight()); in testSetHorizontalSpacing() 306 View child1 = mGridView.getChildAt(1); in testSetVerticalSpacing() local 307 assertEquals(0, child1.getTop() - child0.getBottom()); in testSetVerticalSpacing() 317 child1 = mGridView.getChildAt(1); in testSetVerticalSpacing() 318 assertEquals(5, child1.getTop() - child0.getBottom()); in testSetVerticalSpacing() [all …]
|
D | HorizontalScrollViewTest.java | 94 TextView child1 = new TextView(mActivity); in testAddView() local 96 scrollView.addView(child1); in testAddView() 111 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local 113 scrollView.addView(child1, 1); in testAddViewWithIndex() 126 child1 = new TextView(mActivity); in testAddViewWithIndex() 128 scrollView.addView(child1, -1); in testAddViewWithIndex() 154 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local 156 scrollView.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams() 183 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local 185 scrollView.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams() [all …]
|
D | ScrollViewTest.java | 115 TextView child1 = new TextView(mActivity); in testAddView() local 117 scrollView.addView(child1); in testAddView() 132 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local 134 scrollView.addView(child1, 1); in testAddViewWithIndex() 147 child1 = new TextView(mActivity); in testAddViewWithIndex() 149 scrollView.addView(child1, -1); in testAddViewWithIndex() 175 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local 177 scrollView.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams() 204 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local 206 scrollView.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams() [all …]
|
D | LinearLayoutTest.java | 429 final View child1 = new View(mActivity); in testVisibilityAffectsLayout() local 430 child1.setBackgroundColor(Color.GREEN); in testVisibilityAffectsLayout() 432 child1.setLayoutParams(childParams); in testVisibilityAffectsLayout() 444 parent.addView(child1); in testVisibilityAffectsLayout() 446 checkBounds(viewGroup, child1, countDownLatch1, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout() 456 child1.setVisibility(View.GONE); in testVisibilityAffectsLayout() 465 child1.setVisibility(View.VISIBLE); in testVisibilityAffectsLayout() 466 checkBounds(viewGroup, child1, countDownLatch3, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
|
D | LayoutDirectionTest.java | 109 ViewGroup child1 = (ViewGroup) getActivity().findViewById(child1Id); in checkDirectionForOneLayoutFromXml() local 110 assertEquals(child1ResDir, child1.getLayoutDirection()); in checkDirectionForOneLayoutFromXml()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 120 private void assertChildrenDelay(Animation child1, Animation child2, Animation child3) { in assertChildrenDelay() argument 121 long startTime = child1.getStartTime(); in assertChildrenDelay() 122 long offsetTime1 = child1.getStartOffset(); in assertChildrenDelay() 134 child1.getTransformation(startTime + 500, transformation1); in assertChildrenDelay() 142 child1.getTransformation(startTime + 1200, transformation1); in assertChildrenDelay() 150 child1.getTransformation(startTime + 2000, transformation1); in assertChildrenDelay() 158 child1.getTransformation(startTime + 2700, transformation1); in assertChildrenDelay() 166 child1.getTransformation(startTime + 3500, transformation1); in assertChildrenDelay() 293 final View child1 = mGridView.getChildAt(INDEX_OF_CHILD1); 304 child1.setLayoutParams(layoutParams1); [all …]
|
D | AnimatorInflaterTest.java | 99 final ObjectAnimator child1 = (ObjectAnimator) set.getChildAnimations().get(0); in testLoadAnimator() local 105 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
|
D | LayoutAnimationControllerTest.java | 354 final View child1 = mListView.getChildAt(INDEX_OF_CHILD1); 359 child1.setLayoutParams(layoutParams1); 368 assertEquals(0, controller.getDelayForView(child1));
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroupTest.java | 1159 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveDetachedView() local 1163 parent.addView(child1); in testRemoveDetachedView() 1166 parent.removeDetachedView(child1, false); in testRemoveDetachedView() 1168 assertSame(child1, listener.sChild); in testRemoveDetachedView() 1239 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViews() local 1243 parent.addView(child1); in testRemoveViews() 1265 assertNull(child1.getParent()); in testRemoveViews() 1274 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViewsInLayout() local 1278 parent.addView(child1); in testRemoveViewsInLayout() 1300 assertNull(child1.getParent()); in testRemoveViewsInLayout() [all …]
|