/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableLayoutTest.java | 380 View child1 = new TextView(mActivity); in testAddView() local 381 mTableEmpty.addView(child1); in testAddView() 382 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView() 389 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView() 398 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView() 415 View child1 = new TextView(mActivity); in testAddViewAtIndex() local 416 mTableEmpty.addView(child1, 0); in testAddViewAtIndex() 417 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddViewAtIndex() 425 assertSame(child1, mTableEmpty.getChildAt(1)); in testAddViewAtIndex() 434 assertSame(child1, mTableEmpty.getChildAt(1)); in testAddViewAtIndex() [all …]
|
D | GridViewTest.java | 287 View child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing() local 289 assertEquals(0, child1.getLeft() - child0.getRight()); in verifyAccessHorizontalSpacing() 291 assertEquals(0, child0.getLeft() - child1.getRight()); in verifyAccessHorizontalSpacing() 300 child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing() 302 assertEquals(5, child1.getLeft() - child0.getRight()); in verifyAccessHorizontalSpacing() 304 assertEquals(5, child0.getLeft() - child1.getRight()); in verifyAccessHorizontalSpacing() 317 View child1 = mGridView.getChildAt(1); in testAccessVerticalSpacing() local 318 assertEquals(0, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing() 325 child1 = mGridView.getChildAt(1); in testAccessVerticalSpacing() 326 assertEquals(5, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing() [all …]
|
D | ScrollViewTest.java | 156 TextView child1 = new TextView(mActivity); in testAddView() local 158 mScrollViewRegular.addView(child1); in testAddView() 174 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local 176 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex() 189 child1 = new TextView(mActivity); in testAddViewWithIndex() 191 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex() 218 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local 220 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams() 248 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local 250 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams() [all …]
|
D | HorizontalScrollViewTest.java | 143 TextView child1 = new TextView(mActivity); in testAddView() local 145 mScrollViewRegular.addView(child1); in testAddView() 161 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local 163 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex() 176 child1 = new TextView(mActivity); in testAddViewWithIndex() 178 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex() 205 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local 207 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams() 235 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local 237 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams() [all …]
|
D | LayoutDirectionTest.java | 135 ViewGroup child1 = (ViewGroup) mActivity.findViewById(child1Id); in verifyDirectionForOneLayoutFromXml() local 136 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 | 131 private void assertChildrenDelay(Animation child1, Animation child2, Animation child3) { in assertChildrenDelay() argument 132 long startTime = child1.getStartTime(); in assertChildrenDelay() 133 long offsetTime1 = child1.getStartOffset(); in assertChildrenDelay() 145 child1.getTransformation(startTime + 500, transformation1); in assertChildrenDelay() 153 child1.getTransformation(startTime + 1200, transformation1); in assertChildrenDelay() 161 child1.getTransformation(startTime + 2000, transformation1); in assertChildrenDelay() 169 child1.getTransformation(startTime + 2700, transformation1); in assertChildrenDelay() 177 child1.getTransformation(startTime + 3500, transformation1); in assertChildrenDelay() 306 final View child1 = mGridView.getChildAt(INDEX_OF_CHILD1); 316 child1.setLayoutParams(layoutParams1); [all …]
|
D | AnimatorInflaterTest.java | 132 final ObjectAnimator child1 = (ObjectAnimator) set.getChildAnimations().get(0); in testLoadAnimator() local 136 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
|
D | LayoutAnimationControllerTest.java | 367 final View child1 = mListView.getChildAt(INDEX_OF_CHILD1); 371 child1.setLayoutParams(layoutParams1); 379 assertEquals(0, controller.getDelayForView(child1));
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CustomViewActivityTest.java | 259 final ViewStructure child1 = session.newVirtualViewStructure(customViewId, 1); in testVirtualView_oneLevel() 260 child1.setText("child1"); in testVirtualView_oneLevel() 261 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_oneLevel() 264 session.notifyViewAppeared(child1); in testVirtualView_oneLevel() 443 final ViewStructure child1 = session.newVirtualViewStructure(customViewId, 1); in testVirtualView_batchDisappear() 444 child1.setText("child1"); in testVirtualView_batchDisappear() 445 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_batchDisappear() 448 session.notifyViewAppeared(child1); in testVirtualView_batchDisappear()
|
D | LoginActivityTest.java | 867 final TextView child1 = newImportantView(activity, "c1"); in testAddChildren_rightAway() 868 children[0] = child1; in testAddChildren_rightAway() 869 Log.v(TAG, "Adding child1(" + child1.getAutofillId() + "): " + child1); in testAddChildren_rightAway() 870 rootView.addView(child1); in testAddChildren_rightAway() 943 final TextView child1 = newImportantView(activity, "c1"); in testAddChildren_afterAnimation() 944 children[0] = child1; in testAddChildren_afterAnimation() 945 Log.v(TAG, "Adding child1(" + child1.getAutofillId() + "): " + child1); in testAddChildren_afterAnimation() 946 rootView.addView(child1); in testAddChildren_afterAnimation()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroupTest.java | 1501 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveDetachedView() local 1506 parent.addView(child1); in testRemoveDetachedView() 1509 parent.removeDetachedView(child1, false); in testRemoveDetachedView() 1512 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child1); in testRemoveDetachedView() 1514 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child1); in testRemoveDetachedView() 1580 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViews() local 1584 parent.addView(child1); in testRemoveViews() 1606 assertNull(child1.getParent()); in testRemoveViews() 1618 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViewsInLayout() local 1622 parent.addView(child1); in testRemoveViewsInLayout() [all …]
|
D | TooltipTest.java | 779 final View child1 = mActivity.findViewById(R.id.overlap1); in testMouseHoverOverlap() local 792 assertTrue(hasTooltip(child1)); in testMouseHoverOverlap() 794 setVisibility(child1, View.INVISIBLE); in testMouseHoverOverlap()
|
D | ViewTest.java | 555 View child1 = mActivity.findViewById(R.id.pointer_icon_overlap_child1); in testPointerIconOverlap() local 565 child1.setPointerIcon(iconChild1); in testPointerIconOverlap() 579 setVisibilityOnUiThread(child1, View.GONE); in testPointerIconOverlap()
|