Home
last modified time | relevance | path

Searched refs:child2 (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DTableLayoutTest.java387 View child2 = new RelativeLayout(mActivity); in testAddView() local
388 mTableEmpty.addView(child2); in testAddView()
390 assertSame(child2, mTableEmpty.getChildAt(1)); in testAddView()
399 assertSame(child2, mTableEmpty.getChildAt(1)); in testAddView()
422 View child2 = new RelativeLayout(mActivity); in testAddViewAtIndex() local
423 mTableEmpty.addView(child2, 0); in testAddViewAtIndex()
424 assertSame(child2, mTableEmpty.getChildAt(0)); in testAddViewAtIndex()
433 assertSame(child2, mTableEmpty.getChildAt(0)); in testAddViewAtIndex()
467 View child2 = new TableRow(mActivity); in testAddViewWithLayoutParams() local
468 assertNull(child2.getLayoutParams()); in testAddViewWithLayoutParams()
[all …]
DLayoutDirectionTest.java138 ViewGroup child2 = (ViewGroup) mActivity.findViewById(child2Id); in verifyDirectionForOneLayoutFromXml() local
139 assertEquals(child2ResDir, child2.getLayoutDirection()); in verifyDirectionForOneLayoutFromXml()
DTabHostTest.java335 TextView child2 = (TextView) tabHost.getTabContentView().getChildAt(2); in testGetTabContentView() local
337 assertEquals(TabHostCtsActivity.INITIAL_VIEW_TEXT, child2.getText().toString()); in testGetTabContentView()
351 child2 = (TextView) tabHost.getTabContentView().getChildAt(2); in testGetTabContentView()
353 assertEquals(TabHostCtsActivity.INITIAL_VIEW_TEXT, child2.getText().toString()); in testGetTabContentView()
DLinearLayoutTest.java658 final View child2 = new View(mActivity); in testVisibilityAffectsLayout() local
659 child2.setBackgroundColor(Color.RED); in testVisibilityAffectsLayout()
661 child2.setLayoutParams(childParams); in testVisibilityAffectsLayout()
669 parent.addView(child2); in testVisibilityAffectsLayout()
671 verifyBounds(viewGroup, child2, countDownLatch1, in testVisibilityAffectsLayout()
683 verifyBounds(viewGroup, child2, countDownLatch2, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
695 verifyBounds(viewGroup, child2, countDownLatch3, in testVisibilityAffectsLayout()
DGridViewTest.java523 View child2 = mGridView.getChildAt(2); in testAccessColumnWidth() local
525 assertEquals(child0.getLeft(), child2.getLeft()); in testAccessColumnWidth()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java131 private void assertChildrenDelay(Animation child1, Animation child2, Animation child3) { in assertChildrenDelay() argument
134 long offsetTime2 = child2.getStartOffset(); in assertChildrenDelay()
146 child2.getTransformation(startTime + 500, transformation2); in assertChildrenDelay()
154 child2.getTransformation(startTime + 1200, transformation2); in assertChildrenDelay()
162 child2.getTransformation(startTime + 2000, transformation2); in assertChildrenDelay()
170 child2.getTransformation(startTime + 2700, transformation2); in assertChildrenDelay()
178 child2.getTransformation(startTime + 3500, transformation2); in assertChildrenDelay()
307 final View child2 = mGridView.getChildAt(INDEX_OF_CHILD2);
317 child2.setLayoutParams(layoutParams2);
331 assertEquals(1000, controller.getDelayForView(child2));
DAnimatorInflaterTest.java133 final ObjectAnimator child2 = (ObjectAnimator) set.getChildAnimations().get(1); in testLoadAnimator() local
136 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
DLayoutAnimationControllerTest.java368 final View child2 = mListView.getChildAt(INDEX_OF_CHILD2);
372 child2.setLayoutParams(layoutParams2);
380 assertEquals(1000, controller.getDelayForView(child2));
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomViewActivityTest.java206 final ViewStructure child2 = session.newVirtualViewStructure(customViewId, 2); in testVirtualView_oneLevel()
207 child2.setText("child2"); in testVirtualView_oneLevel()
208 final AutofillId child2Id = child2.getAutofillId(); in testVirtualView_oneLevel()
212 session.notifyViewAppeared(child2); in testVirtualView_oneLevel()
391 final ViewStructure child2 = session.newVirtualViewStructure(customViewId, 2); in testVirtualView_batchDisappear()
392 child2.setText("child2"); in testVirtualView_batchDisappear()
393 final AutofillId child2Id = child2.getAutofillId(); in testVirtualView_batchDisappear()
396 session.notifyViewAppeared(child2); in testVirtualView_batchDisappear()
DLoginActivityTest.java607 final TextView child2 = newImportantView(activity, "c1"); in testAddChildren_rightAway()
608 children[1] = child2; in testAddChildren_rightAway()
609 Log.v(TAG, "Adding child2(" + child2.getAutofillId() + "): " + child2); in testAddChildren_rightAway()
610 rootView.addView(child2); in testAddChildren_rightAway()
649 final TextView child2 = newImportantView(activity, "c1"); in testAddChildren_afterAnimation()
650 children[1] = child2; in testAddChildren_afterAnimation()
651 Log.v(TAG, "Adding child2(" + child2.getAutofillId() + "): " + child2); in testAddChildren_afterAnimation()
652 rootView.addView(child2); in testAddChildren_afterAnimation()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java1498 MockViewGroup child2 = new MockViewGroup(mContext); in testRemoveDetachedView() local
1503 parent.addView(child2); in testRemoveDetachedView()
1509 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child2); in testRemoveDetachedView()
1577 MockViewGroup child2 = new MockViewGroup(mContext); in testRemoveViews() local
1581 parent.addView(child2); in testRemoveViews()
1606 assertNull(child2.getParent()); in testRemoveViews()
1615 MockViewGroup child2 = new MockViewGroup(mContext); in testRemoveViewsInLayout() local
1619 parent.addView(child2); in testRemoveViewsInLayout()
1644 assertNull(child2.getParent()); in testRemoveViewsInLayout()
2024 MockView child2 = new MockView(mContext); in testRequestTransparentRegion() local
[all …]
DTooltipTest.java780 final View child2 = mActivity.findViewById(R.id.overlap2); in testMouseHoverOverlap() local
788 assertTrue(hasTooltip(child2)); in testMouseHoverOverlap()
790 setTooltipText(child2, null); in testMouseHoverOverlap()
DViewTest.java552 View child2 = mActivity.findViewById(R.id.pointer_icon_overlap_child2); in testPointerIconOverlap() local
562 child2.setPointerIcon(iconChild2); in testPointerIconOverlap()
572 child2.setPointerIcon(null); in testPointerIconOverlap()