Home
last modified time | relevance | path

Searched refs:getChildAt (Results 1 – 25 of 376) sorted by relevance

12345678910>>...16

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java191 mView.getChildAt(2).performClick(); in testSendSmartReply_intentContainsResultsAndSource()
214 mView.getChildAt(2).performClick(); in testSendSmartReply_keyguardCancelled()
238 mView.getChildAt(2).performClick(); in testSendSmartReply_waitsForKeyguard()
255 mView.getChildAt(2).performClick(); in testSendSmartReply_controllerCalled()
264 mView.getChildAt(0).performClick(); in testSendSmartReply_hidesContainer()
274 mView.getChildAt(2).performClick(); in testTapSmartReply_beforeInitDelay_blocked()
286 mView.getChildAt(2).performClick(); in testTapSmartReply_afterInitDelay_clickReceived()
302 mView.getChildAt(2).performClick(); in testTapSmartReply_withoutDelayedOnClickListener_bypassesDelay()
340 assertReplyButtonShownWithEqualMeasures(expectedView.getChildAt(0), mView.getChildAt(0)); in testMeasure_shortChoices()
341 assertReplyButtonShownWithEqualMeasures(expectedView.getChildAt(1), mView.getChildAt(1)); in testMeasure_shortChoices()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingStackFromBottomTest.java63 View firstChild = mGridView.getChildAt(0); in testNoScroll()
64 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
71 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
81 View firstChild = mGridView.getChildAt(0); in testShortScroll()
83 firstChild = mGridView.getChildAt(1); in testShortScroll()
86 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
93 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
103 View firstChild = mGridView.getChildAt(0); in testLongScroll()
105 firstChild = mGridView.getChildAt(1); in testLongScroll()
135 firstChild = mGridView.getChildAt(0); in testManyScrolls()
[all …]
DGridTouchVerticalSpacingTest.java56 View firstChild = mGridView.getChildAt(0); in testNoScroll()
57 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
64 View newFirstChild = mGridView.getChildAt(0); in testNoScroll()
73 View firstChild = mGridView.getChildAt(0); in testShortScroll()
74 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
81 View newFirstChild = mGridView.getChildAt(0); in testShortScroll()
90 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testLongScroll()
117 firstChild = mGridView.getChildAt(0); in testManyScrolls()
123 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testManyScrolls()
136 firstChild = mGridView.getChildAt(0); in testManyScrolls()
[all …]
DGridTouchStackFromBottomTest.java60 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPushUp()
77 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPullDown()
88 TouchUtils.dragViewToTop(this, mGridView.getChildAt(mGridView.getChildCount() - 1), 2); in testPushUpFast()
94 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPushUpFast()
105 TouchUtils.dragViewToBottom(this, mGridView.getChildAt(0), 2); in testPullDownFast()
111 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPullDownFast()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListItemFocusablesFarApartTest.java52 return ((ViewGroup) mListView.getChildAt(listIndex)).getChildAt(index); in getChildOfItem()
57 ViewGroup listItem = (ViewGroup) mListView.getChildAt(listIndex); in getTopOfChildOfItem()
58 View child = listItem.getChildAt(index); in getTopOfChildOfItem()
63 ViewGroup listItem = (ViewGroup) mListView.getChildAt(listIndex); in getBottomOfChildOfItem()
64 View child = listItem.getChildAt(index); in getBottomOfChildOfItem()
83 int expectedTop = mListView.getChildAt(0).getTop(); in testPanWhenNextFocusableTooFarDown()
96 "item should have focus", mListView.getChildAt(0).hasFocus()); in testPanWhenNextFocusableTooFarDown()
104 expectedTop, mListView.getChildAt(0).getTop()); in testPanWhenNextFocusableTooFarDown()
DListOfShortShortTallShortShortTest.java48 … int firstTwoHeight = mListView.getChildAt(0).getHeight() + mListView.getChildAt(1).getHeight(); in testPreconditions()
88 assertEquals("new view position", 3, mListView.getChildAt(1).getId()); in testFadeInTwoBottomItems()
89 assertEquals("new view position", 4, mListView.getChildAt(2).getId()); in testFadeInTwoBottomItems()
92 mListView.getChildAt(2).getBottom() >= mListUtil.getListBottom()); in testFadeInTwoBottomItems()
133 assertEquals("new view position", 0, mListView.getChildAt(0).getId()); in testFadeInTopTwoItems()
134 assertEquals("new view position", 1, mListView.getChildAt(1).getId()); in testFadeInTopTwoItems()
137 mListView.getChildAt(0).getTop() <= mListUtil.getListTop()); in testFadeInTopTwoItems()
DListOfShortTallShortTest.java43 mListView.getChildAt(1).getHeight() > mListView.getHeight()); in testPreconditions()
48 int topBeforeMove = mListView.getChildAt(1).getTop(); in testGoDownFromShortToTall()
71 mListView.getChildAt(1), mListView.getSelectedView()); in testGoUpFromShortToTall()
73 final int bottomBeforeMove = mListView.getChildAt(0).getBottom(); in testGoUpFromShortToTall()
79 mListView.getChildAt(0).getBottom()); in testGoUpFromShortToTall()
DListItemFocusableAboveUnfocusableTest.java43 assertTrue(mListView.getChildAt(0).isFocused()); in testPreconditions()
44 assertFalse(mListView.getChildAt(1).isFocusable()); in testPreconditions()
52 mListView.getChildAt(0).isFocused()); in testMovingToUnFocusableTakesFocusAway()
DListOfItemsShorterThanScreenTest.java48 assertTrue(mListView.getChildAt(0).isSelected()); in testPreconditions()
54 final View next = mListView.getChildAt(1); in testMoveDownToOnScreenNextItem()
81 final View lastItem = mListView.getChildAt(lastOnScreenItemIndex); in testMoveDownToItemRequiringScrolling()
98 … assertEquals(mListView.getSelectedView(), mListView.getChildAt(mListView.getChildCount() - 2)); in testMoveDownToItemRequiringScrolling()
101 final TextView view = (TextView) mListView.getChildAt(mListView.getChildCount() - 1); in testMoveDownToItemRequiringScrolling()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityManyTest.java69 View firstChild = mListView.getChildAt(0); in testPullDown()
89 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
100 View firstChild = mListView.getChildAt(0); in testNoScroll()
101 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll()
108 View newLastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll()
118 View firstChild = mListView.getChildAt(0); in testShortScroll()
120 firstChild = mListView.getChildAt(1); in testShortScroll()
123 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll()
130 View newLastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll()
140 View firstChild = mListView.getChildAt(0); in testLongScroll()
[all …]
DListTouchManyTest.java66 View firstChild = mListView.getChildAt(0); in testPullDown()
84 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
105 View child = mListView.getChildAt(i); in testPress()
133 View child = mListView.getChildAt(i); in testLongPress()
148 View firstChild = mListView.getChildAt(0); in testNoScroll()
149 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll()
156 View newFirstChild = mListView.getChildAt(0); in testNoScroll()
165 View firstChild = mListView.getChildAt(0); in testShortScroll()
166 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll()
173 View newFirstChild = mListView.getChildAt(0); in testShortScroll()
[all …]
DListTouchTest.java57 View firstChild = mListView.getChildAt(0); in testPullDown()
65 firstChild = mListView.getChildAt(0); in testPullDown()
75 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
83 View firstChild = mListView.getChildAt(0); in testPushUp()
DListOfTouchablesTest.java57 View firstChild = mListView.getChildAt(0); in testShortScroll()
58 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll()
65 View newFirstChild = mListView.getChildAt(0); in testShortScroll()
74 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testLongScroll()
DListTouchBottomGravityTest.java58 View firstChild = mListView.getChildAt(0); in testPullDown()
62 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPullDown()
77 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
81 lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListButtonsDiagonalAcrossItems.java38 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0); in getLeftButton()
42 return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1); in getCenterButton()
46 return (Button) ((ViewGroup) getListView().getChildAt(2)).getChildAt(2); in getRightButton()
DListHorizontalFocusWithinItemWins.java39 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0); in getTopLeftButton()
43 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(2); in getTopRightButton()
47 return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1); in getBottomMiddleButton()
DAdjacentListsWithAdjacentISVsInside.java47 ((ViewGroup) mLeftListView.getChildAt(0)).getChildAt(0); in getLeftIsv()
52 ((ViewGroup) mLeftListView.getChildAt(0)).getChildAt(1); in getLeftMiddleIsv()
57 ((ViewGroup) mRightListView.getChildAt(0)).getChildAt(0); in getRightMiddleIsv()
62 ((ViewGroup) mRightListView.getChildAt(0)).getChildAt(1); in getRightIsv()
DListItemRequestRectAboveThinFirstItemTest.java47 mListView.getChildAt(0).getBottom() < mListView.getVerticalFadingEdgeLength()); in testPreconditions()
61 final View second = mListView.getChildAt(1); in testSecondItemRequestRectAboveTop()
70 mListView.getListPaddingTop(), mListView.getChildAt(0).getTop()); in testSecondItemRequestRectAboveTop()
99 mListView.getChildAt(mListView.getChildCount() - 1).getBottom()); in testSecondToLastItemRequestRectBelowBottom()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DListWithEditTextHeaderTest.java50 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testPreconditions()
56 TouchUtils.clickView(this, mListView.getChildAt(0)); in testClickingHeaderKeepsFocus()
57 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testClickingHeaderKeepsFocus()
66 TouchUtils.clickView(this, mListView.getChildAt(0)); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
67 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
73 View header = mListView.getChildAt(0); in testScrollingDoesNotDetachHeaderViewFromWindow()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DZenRadioLayout.java42 ViewGroup radioGroup = (ViewGroup) getChildAt(0); in onMeasure()
43 ViewGroup radioContent = (ViewGroup) getChildAt(1); in onMeasure()
51 View radio = radioGroup.getChildAt(i); in onMeasure()
52 View content = radioContent.getChildAt(i); in onMeasure()
75 View v = findFirstClickable(group.getChildAt(i)); in findFirstClickable()
87 View v = findLastClickable(group.getChildAt(i)); in findLastClickable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DViewHierarchyAnimatorTest.kt95 val child = rootView.getChildAt(0) in respectsAnimationParameters()
194 assertNotNull(rootView.getChildAt(0).getTag(R.id.tag_animator)) in animatesRootAndChildren_withoutExcludedViews()
195 assertNotNull(rootView.getChildAt(1).getTag(R.id.tag_animator)) in animatesRootAndChildren_withoutExcludedViews()
198 checkBounds(rootView.getChildAt(0), l = 0, t = 0, r = 100, b = 100) in animatesRootAndChildren_withoutExcludedViews()
199 checkBounds(rootView.getChildAt(1), l = 100, t = 0, r = 200, b = 100) in animatesRootAndChildren_withoutExcludedViews()
202 assertNull(rootView.getChildAt(0).getTag(R.id.tag_animator)) in animatesRootAndChildren_withoutExcludedViews()
203 assertNull(rootView.getChildAt(1).getTag(R.id.tag_animator)) in animatesRootAndChildren_withoutExcludedViews()
206 checkBounds(rootView.getChildAt(0), l = 0, t = 0, r = 95, b = 100) in animatesRootAndChildren_withoutExcludedViews()
207 checkBounds(rootView.getChildAt(1), l = 95, t = 0, r = 190, b = 100) in animatesRootAndChildren_withoutExcludedViews()
216 excludedViews = setOf(rootView.getChildAt(0)) in animatesRootAndChildren_withExcludedViews()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
DAddColumnTest.java62 TableRow row1 = (TableRow) mTable.getChildAt(0); in testWidths()
63 TableRow row2 = (TableRow) mTable.getChildAt(1); in testWidths()
68 assertEquals(row2.getChildAt(i).getWidth(), row1.getChildAt(i).getWidth()); in testWidths()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationBar.java86 View leftPadding = getChildAt(0); in setupNavBar()
87 View rightPadding = getChildAt(6); in setupNavBar()
92 View navButton = getChildAt(i); in setupNavBar()
96 setSize(context, getChildAt(2), orientation, 128); in setupNavBar()
97 setSize(context, getChildAt(4), orientation, 128); in setupNavBar()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DDescendantFocusability.java44 beforeDescendantsChild = (Button) beforeDescendants.getChildAt(0); in onCreate()
47 afterDescendantsChild = (Button) afterDescendants.getChildAt(0); in onCreate()
50 blocksDescendantsChild = (Button) blocksDescendants.getChildAt(0); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileRequestDialogTest.kt95 assertThat(content.getChildAt(0)).isInstanceOf(TextView::class.java) in setTileData_hasCorrectViews()
96 assertThat(content.getChildAt(1)).isInstanceOf(QSTileView::class.java) in setTileData_hasCorrectViews()
108 val text = content.getChildAt(0) as TextView in setTileData_hasCorrectAppName()
123 val tile = content.getChildAt(1) as QSTileView in setTileData_hasCorrectLabel()
138 val tile = content.getChildAt(1) as QSTileView in setTileData_hasIcon()
152 val tile = content.getChildAt(1) as QSTileView in setTileData_nullIcon_hasIcon()
167 val tile = content.getChildAt(1) as QSTileView in setTileData_hasNoStateDescription()
183 val tile = content.getChildAt(1) as QSTileView in setTileData_tileNotClickable()
200 val tile = content.getChildAt(1) as QSTileView in setTileData_tileHasCorrectContentDescription()
232 val tile = content.getChildAt(1) as QSTileView in uriIconLoadSuccess_correctIcon()
[all …]

12345678910>>...16