Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DTableLayoutTest.java380 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 …]
DGridViewTest.java287 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 …]
DScrollViewTest.java138 TextView child1 = new TextView(mActivity); in testAddView() local
140 mScrollViewRegular.addView(child1); in testAddView()
156 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local
158 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex()
171 child1 = new TextView(mActivity); in testAddViewWithIndex()
173 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex()
200 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local
202 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
230 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local
232 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams()
[all …]
DHorizontalScrollViewTest.java122 TextView child1 = new TextView(mActivity); in testAddView() local
124 mScrollViewRegular.addView(child1); in testAddView()
140 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local
142 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex()
155 child1 = new TextView(mActivity); in testAddViewWithIndex()
157 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex()
184 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local
186 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
214 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local
216 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams()
[all …]
DLayoutDirectionTest.java135 ViewGroup child1 = (ViewGroup) mActivity.findViewById(child1Id); in verifyDirectionForOneLayoutFromXml() local
136 assertEquals(child1ResDir, child1.getLayoutDirection()); in verifyDirectionForOneLayoutFromXml()
DLinearLayoutTest.java654 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/
DGridLayoutAnimationControllerTest.java131 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 …]
DAnimatorInflaterTest.java132 final ObjectAnimator child1 = (ObjectAnimator) set.getChildAnimations().get(0); in testLoadAnimator() local
136 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
DLayoutAnimationControllerTest.java367 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/
DCustomViewActivityTest.java200 final ViewStructure child1 = session.newVirtualViewStructure(customViewId, 1); in testVirtualView_oneLevel()
201 child1.setText("child1"); in testVirtualView_oneLevel()
202 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_oneLevel()
205 session.notifyViewAppeared(child1); in testVirtualView_oneLevel()
384 final ViewStructure child1 = session.newVirtualViewStructure(customViewId, 1); in testVirtualView_batchDisappear()
385 child1.setText("child1"); in testVirtualView_batchDisappear()
386 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_batchDisappear()
389 session.notifyViewAppeared(child1); in testVirtualView_batchDisappear()
DLoginActivityTest.java603 final TextView child1 = newImportantView(activity, "c1"); in testAddChildren_rightAway()
604 children[0] = child1; in testAddChildren_rightAway()
605 Log.v(TAG, "Adding child1(" + child1.getAutofillId() + "): " + child1); in testAddChildren_rightAway()
606 rootView.addView(child1); in testAddChildren_rightAway()
645 final TextView child1 = newImportantView(activity, "c1"); in testAddChildren_afterAnimation()
646 children[0] = child1; in testAddChildren_afterAnimation()
647 Log.v(TAG, "Adding child1(" + child1.getAutofillId() + "): " + child1); in testAddChildren_afterAnimation()
648 rootView.addView(child1); in testAddChildren_afterAnimation()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java1497 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveDetachedView() local
1502 parent.addView(child1); in testRemoveDetachedView()
1505 parent.removeDetachedView(child1, false); in testRemoveDetachedView()
1508 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child1); in testRemoveDetachedView()
1510 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child1); in testRemoveDetachedView()
1576 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViews() local
1580 parent.addView(child1); in testRemoveViews()
1602 assertNull(child1.getParent()); in testRemoveViews()
1614 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViewsInLayout() local
1618 parent.addView(child1); in testRemoveViewsInLayout()
[all …]
DTooltipTest.java779 final View child1 = mActivity.findViewById(R.id.overlap1); in testMouseHoverOverlap() local
792 assertTrue(hasTooltip(child1)); in testMouseHoverOverlap()
794 setVisibility(child1, View.INVISIBLE); in testMouseHoverOverlap()
DViewTest.java551 View child1 = mActivity.findViewById(R.id.pointer_icon_overlap_child1); in testPointerIconOverlap() local
561 child1.setPointerIcon(iconChild1); in testPointerIconOverlap()
575 setVisibilityOnUiThread(child1, View.GONE); in testPointerIconOverlap()