Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DTableLayoutTest.java388 View child1 = new TextView(mActivity); in testAddView() local
389 mTableEmpty.addView(child1); in testAddView()
390 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView()
397 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView()
406 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddView()
423 View child1 = new TextView(mActivity); in testAddViewAtIndex() local
424 mTableEmpty.addView(child1, 0); in testAddViewAtIndex()
425 assertSame(child1, mTableEmpty.getChildAt(0)); in testAddViewAtIndex()
433 assertSame(child1, mTableEmpty.getChildAt(1)); in testAddViewAtIndex()
442 assertSame(child1, mTableEmpty.getChildAt(1)); in testAddViewAtIndex()
[all …]
DGridViewTest.java297 View child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing() local
299 assertEquals(0, child1.getLeft() - child0.getRight()); in verifyAccessHorizontalSpacing()
301 assertEquals(0, child0.getLeft() - child1.getRight()); in verifyAccessHorizontalSpacing()
310 child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing()
312 assertEquals(5, child1.getLeft() - child0.getRight()); in verifyAccessHorizontalSpacing()
314 assertEquals(5, child0.getLeft() - child1.getRight()); in verifyAccessHorizontalSpacing()
327 View child1 = mGridView.getChildAt(1); in testAccessVerticalSpacing() local
328 assertEquals(0, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing()
335 child1 = mGridView.getChildAt(1); in testAccessVerticalSpacing()
336 assertEquals(5, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing()
[all …]
DRemoteViewsFixedCollectionAdapterTest.java486 AppWidgetHostView child1 = (AppWidgetHostView) mListView.getChildAt(1); in testSetRemoteAdapter_withItems() local
488 TextView textView1 = (TextView) child1.getChildAt(0); in testSetRemoteAdapter_withItems()
546 AppWidgetHostView child1 = (AppWidgetHostView) listView.getChildAt(1); in testSetRemoteAdapter_checkedChangeListener() local
549 TextView textView1 = (TextView) child1.getChildAt(0); in testSetRemoteAdapter_checkedChangeListener()
633 AppWidgetHostView child1 = (AppWidgetHostView) listView.getChildAt(1); in testSetRemoteAdapter_newViewTypeAddedCoveredByViewTypeCount() local
635 assertSame(initialFirstItemView, child1.getChildAt(0)); in testSetRemoteAdapter_newViewTypeAddedCoveredByViewTypeCount()
663 AppWidgetHostView child1 = (AppWidgetHostView) listView.getChildAt(1); in testSetRemoteAdapter_newViewTypeAddedToIncreaseViewTypeCount() local
666 assertNotSame(initialFirstItemView, child1.getChildAt(0)); in testSetRemoteAdapter_newViewTypeAddedToIncreaseViewTypeCount()
683 AppWidgetHostView child1 = (AppWidgetHostView) listView.getChildAt(1); in testSetRemoteAdapter_viewTypeRemoved_viewTypeCountSame() local
684 TextView initialSecondItemView = (TextView) child1.getChildAt(0); in testSetRemoteAdapter_viewTypeRemoved_viewTypeCountSame()
[all …]
DHorizontalScrollViewTest.java166 TextView child1 = new TextView(mActivity); in testAddView() local
168 mScrollViewRegular.addView(child1); in testAddView()
184 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local
186 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex()
199 child1 = new TextView(mActivity); in testAddViewWithIndex()
201 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex()
228 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local
230 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
258 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local
260 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams()
[all …]
DScrollViewTest.java180 TextView child1 = new TextView(mActivity); in testAddView() local
182 mScrollViewRegular.addView(child1); in testAddView()
198 TextView child1 = new TextView(mActivity); in testAddViewWithIndex() local
200 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex()
213 child1 = new TextView(mActivity); in testAddViewWithIndex()
215 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex()
242 TextView child1 = new TextView(mActivity); in testAddViewWithLayoutParams() local
244 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
272 TextView child1 = new TextView(mActivity); in testAddViewWithIndexAndLayoutParams() local
274 mScrollViewRegular.addView(child1, 0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithIndexAndLayoutParams()
[all …]
DLayoutDirectionTest.java144 ViewGroup child1 = (ViewGroup) mActivity.findViewById(child1Id); in verifyDirectionForOneLayoutFromXml() local
145 assertEquals(child1ResDir, child1.getLayoutDirection()); in verifyDirectionForOneLayoutFromXml()
DLinearLayoutTest.java663 final View child1 = new View(mActivity); in testVisibilityAffectsLayout() local
664 child1.setBackgroundColor(Color.GREEN); in testVisibilityAffectsLayout()
666 child1.setLayoutParams(childParams); in testVisibilityAffectsLayout()
677 parent.addView(child1); in testVisibilityAffectsLayout()
679 verifyBounds(viewGroup, child1, countDownLatch1, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
691 child1.setVisibility(View.GONE); in testVisibilityAffectsLayout()
702 child1.setVisibility(View.VISIBLE); in testVisibilityAffectsLayout()
703 verifyBounds(viewGroup, child1, countDownLatch3, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java142 private void assertChildrenDelay(Animation child1, Animation child2, Animation child3) { in assertChildrenDelay() argument
143 long startTime = child1.getStartTime(); in assertChildrenDelay()
144 long offsetTime1 = child1.getStartOffset(); in assertChildrenDelay()
156 child1.getTransformation(startTime + 500, transformation1); in assertChildrenDelay()
164 child1.getTransformation(startTime + 1200, transformation1); in assertChildrenDelay()
172 child1.getTransformation(startTime + 2000, transformation1); in assertChildrenDelay()
180 child1.getTransformation(startTime + 2700, transformation1); in assertChildrenDelay()
188 child1.getTransformation(startTime + 3500, transformation1); in assertChildrenDelay()
317 final View child1 = mGridView.getChildAt(INDEX_OF_CHILD1);
327 child1.setLayoutParams(layoutParams1);
[all …]
DAnimatorInflaterTest.java147 final ObjectAnimator child1 = (ObjectAnimator) set.getChildAnimations().get(0); in testLoadAnimator() local
151 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
DLayoutAnimationControllerTest.java378 final View child1 = mListView.getChildAt(INDEX_OF_CHILD1);
382 child1.setLayoutParams(layoutParams1);
390 assertEquals(0, controller.getDelayForView(child1));
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomViewActivityTest.java237 final ViewStructure child1 = session.newVirtualViewStructure(customViewId, 1); in testVirtualView_oneLevel()
238 child1.setText("child1"); in testVirtualView_oneLevel()
239 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_oneLevel()
242 session.notifyViewAppeared(child1); in testVirtualView_oneLevel()
415 final ViewStructure child1 = session.newVirtualViewStructure(customViewId, 1); in testVirtualView_batchDisappear()
416 child1.setText("child1"); in testVirtualView_batchDisappear()
417 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_batchDisappear()
420 session.notifyViewAppeared(child1); in testVirtualView_batchDisappear()
473 final ViewStructure child1 = session.newVirtualViewStructure(customViewId, 1); in testVirtualView_batchAppear()
474 child1.setText("child1"); in testVirtualView_batchAppear()
[all …]
DLoginActivityTest.java848 final TextView child1 = newImportantView(activity, "c1"); in testAddChildren_rightAway()
849 children[0] = child1; in testAddChildren_rightAway()
850 Log.v(TAG, "Adding child1(" + child1.getAutofillId() + "): " + child1); in testAddChildren_rightAway()
851 rootView.addView(child1); in testAddChildren_rightAway()
922 final TextView child1 = newImportantView(activity, "c1"); in testAddChildren_afterAnimation()
923 children[0] = child1; in testAddChildren_afterAnimation()
924 Log.v(TAG, "Adding child1(" + child1.getAutofillId() + "): " + child1); in testAddChildren_afterAnimation()
925 rootView.addView(child1); in testAddChildren_afterAnimation()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityCacheTest.java144 AccessibilityNodeInfo child1 = root.getChild(1); in invalidateNode_subtreeInCacheInvalidated() local
145 AccessibilityNodeInfo grandChild = child1.getChild(0); in invalidateNode_subtreeInCacheInvalidated()
151 assertFalse("Child1 is in cache", mService.isNodeInCache(child1)); in invalidateNode_subtreeInCacheInvalidated()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java1510 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveDetachedView() local
1515 parent.addView(child1); in testRemoveDetachedView()
1518 parent.removeDetachedView(child1, false); in testRemoveDetachedView()
1521 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child1); in testRemoveDetachedView()
1523 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child1); in testRemoveDetachedView()
1589 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViews() local
1593 parent.addView(child1); in testRemoveViews()
1615 assertNull(child1.getParent()); in testRemoveViews()
1627 MockViewGroup child1 = new MockViewGroup(mContext); in testRemoveViewsInLayout() local
1631 parent.addView(child1); in testRemoveViewsInLayout()
[all …]
DTooltipTest.java827 final View child1 = mActivity.findViewById(R.id.overlap1); in testMouseHoverOverlap() local
841 assertTrue(hasTooltip(child1)); in testMouseHoverOverlap()
843 setVisibility(child1, View.INVISIBLE); in testMouseHoverOverlap()
DViewTest.java568 View child1 = mActivity.findViewById(R.id.pointer_icon_overlap_child1); in testPointerIconOverlap() local
578 child1.setPointerIcon(iconChild1); in testPointerIconOverlap()
593 setVisibilityOnUiThread(child1, View.GONE); in testPointerIconOverlap()