Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DTableLayoutTest.java395 View child2 = new RelativeLayout(mActivity); in testAddView() local
396 mTableEmpty.addView(child2); in testAddView()
398 assertSame(child2, mTableEmpty.getChildAt(1)); in testAddView()
407 assertSame(child2, mTableEmpty.getChildAt(1)); in testAddView()
430 View child2 = new RelativeLayout(mActivity); in testAddViewAtIndex() local
431 mTableEmpty.addView(child2, 0); in testAddViewAtIndex()
432 assertSame(child2, mTableEmpty.getChildAt(0)); in testAddViewAtIndex()
441 assertSame(child2, mTableEmpty.getChildAt(0)); in testAddViewAtIndex()
475 View child2 = new TableRow(mActivity); in testAddViewWithLayoutParams() local
476 assertNull(child2.getLayoutParams()); in testAddViewWithLayoutParams()
[all …]
DLayoutDirectionTest.java147 ViewGroup child2 = (ViewGroup) mActivity.findViewById(child2Id); in verifyDirectionForOneLayoutFromXml() local
148 assertEquals(child2ResDir, child2.getLayoutDirection()); in verifyDirectionForOneLayoutFromXml()
DTabHostTest.java345 TextView child2 = (TextView) tabHost.getTabContentView().getChildAt(2); in testGetTabContentView() local
347 assertEquals(TabHostCtsActivity.INITIAL_VIEW_TEXT, child2.getText().toString()); in testGetTabContentView()
361 child2 = (TextView) tabHost.getTabContentView().getChildAt(2); in testGetTabContentView()
363 assertEquals(TabHostCtsActivity.INITIAL_VIEW_TEXT, child2.getText().toString()); in testGetTabContentView()
DLinearLayoutTest.java667 final View child2 = new View(mActivity); in testVisibilityAffectsLayout() local
668 child2.setBackgroundColor(Color.RED); in testVisibilityAffectsLayout()
670 child2.setLayoutParams(childParams); in testVisibilityAffectsLayout()
678 parent.addView(child2); in testVisibilityAffectsLayout()
680 verifyBounds(viewGroup, child2, countDownLatch1, in testVisibilityAffectsLayout()
692 verifyBounds(viewGroup, child2, countDownLatch2, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
704 verifyBounds(viewGroup, child2, countDownLatch3, in testVisibilityAffectsLayout()
DRemoteViewsFixedCollectionAdapterTest.java547 AppWidgetHostView child2 = (AppWidgetHostView) listView.getChildAt(2); in testSetRemoteAdapter_checkedChangeListener() local
551 (CompoundButton) ((ViewGroup) child2.getChildAt(0)).getChildAt(0); in testSetRemoteAdapter_checkedChangeListener()
781 AppWidgetHostView child2 = (AppWidgetHostView) mGridView.getChildAt(2); in testSetRemoteAdapter_gridView() local
785 TextView textView2 = (TextView) child2.getChildAt(0); in testSetRemoteAdapter_gridView()
DGridViewTest.java533 View child2 = mGridView.getChildAt(2); in testAccessColumnWidth() local
535 assertEquals(child0.getLeft(), child2.getLeft()); in testAccessColumnWidth()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java142 private void assertChildrenDelay(Animation child1, Animation child2, Animation child3) { in assertChildrenDelay() argument
145 long offsetTime2 = child2.getStartOffset(); in assertChildrenDelay()
157 child2.getTransformation(startTime + 500, transformation2); in assertChildrenDelay()
165 child2.getTransformation(startTime + 1200, transformation2); in assertChildrenDelay()
173 child2.getTransformation(startTime + 2000, transformation2); in assertChildrenDelay()
181 child2.getTransformation(startTime + 2700, transformation2); in assertChildrenDelay()
189 child2.getTransformation(startTime + 3500, transformation2); in assertChildrenDelay()
318 final View child2 = mGridView.getChildAt(INDEX_OF_CHILD2);
328 child2.setLayoutParams(layoutParams2);
342 assertEquals(1000, controller.getDelayForView(child2));
DAnimatorInflaterTest.java148 final ObjectAnimator child2 = (ObjectAnimator) set.getChildAnimations().get(1); in testLoadAnimator() local
151 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
DLayoutAnimationControllerTest.java379 final View child2 = mListView.getChildAt(INDEX_OF_CHILD2);
383 child2.setLayoutParams(layoutParams2);
391 assertEquals(1000, controller.getDelayForView(child2));
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomViewActivityTest.java243 final ViewStructure child2 = session.newVirtualViewStructure(customViewId, 2); in testVirtualView_oneLevel()
244 child2.setText("child2"); in testVirtualView_oneLevel()
245 final AutofillId child2Id = child2.getAutofillId(); in testVirtualView_oneLevel()
249 session.notifyViewAppeared(child2); in testVirtualView_oneLevel()
422 final ViewStructure child2 = session.newVirtualViewStructure(customViewId, 2); in testVirtualView_batchDisappear()
423 child2.setText("child2"); in testVirtualView_batchDisappear()
424 final AutofillId child2Id = child2.getAutofillId(); in testVirtualView_batchDisappear()
427 session.notifyViewAppeared(child2); in testVirtualView_batchDisappear()
478 final ViewStructure child2 = session.newVirtualViewStructure(customViewId, 2); in testVirtualView_batchAppear()
479 child2.setText("child2"); in testVirtualView_batchAppear()
[all …]
DLoginActivityTest.java852 final TextView child2 = newImportantView(activity, "c1"); in testAddChildren_rightAway()
853 children[1] = child2; in testAddChildren_rightAway()
854 Log.v(TAG, "Adding child2(" + child2.getAutofillId() + "): " + child2); in testAddChildren_rightAway()
855 rootView.addView(child2); in testAddChildren_rightAway()
926 final TextView child2 = newImportantView(activity, "c1"); in testAddChildren_afterAnimation()
927 children[1] = child2; in testAddChildren_afterAnimation()
928 Log.v(TAG, "Adding child2(" + child2.getAutofillId() + "): " + child2); in testAddChildren_afterAnimation()
929 rootView.addView(child2); in testAddChildren_afterAnimation()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java1511 MockViewGroup child2 = new MockViewGroup(mContext); in testRemoveDetachedView() local
1516 parent.addView(child2); in testRemoveDetachedView()
1522 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child2); in testRemoveDetachedView()
1590 MockViewGroup child2 = new MockViewGroup(mContext); in testRemoveViews() local
1594 parent.addView(child2); in testRemoveViews()
1619 assertNull(child2.getParent()); in testRemoveViews()
1628 MockViewGroup child2 = new MockViewGroup(mContext); in testRemoveViewsInLayout() local
1632 parent.addView(child2); in testRemoveViewsInLayout()
1657 assertNull(child2.getParent()); in testRemoveViewsInLayout()
2055 MockView child2 = new MockView(mContext); in testRequestTransparentRegion() local
[all …]
DTooltipTest.java828 final View child2 = mActivity.findViewById(R.id.overlap2); in testMouseHoverOverlap() local
837 assertTrue(hasTooltip(child2)); in testMouseHoverOverlap()
839 setTooltipText(child2, null); in testMouseHoverOverlap()
DViewTest.java569 View child2 = mActivity.findViewById(R.id.pointer_icon_overlap_child2); in testPointerIconOverlap() local
579 child2.setPointerIcon(iconChild2); in testPointerIconOverlap()
590 child2.setPointerIcon(null); in testPointerIconOverlap()