Home
last modified time | relevance | path

Searched refs:firstChild (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingStackFromBottomTest.java62 View firstChild = mGridView.getChildAt(0); in testNoScroll() local
67 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, in testNoScroll()
80 View firstChild = mGridView.getChildAt(0); in testShortScroll() local
81 if (firstChild.getTop() < this.mGridView.getListPaddingTop()) { in testShortScroll()
82 firstChild = mGridView.getChildAt(1); in testShortScroll()
89 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, in testShortScroll()
102 View firstChild = mGridView.getChildAt(0); in testLongScroll() local
103 if (firstChild.getTop() < mGridView.getListPaddingTop()) { in testLongScroll()
104 firstChild = mGridView.getChildAt(1); in testLongScroll()
107 int firstTop = firstChild.getTop(); in testLongScroll()
[all …]
DGridTouchVerticalSpacingTest.java56 View firstChild = mGridView.getChildAt(0); in testNoScroll() local
59 int firstTop = firstChild.getTop(); in testNoScroll()
73 View firstChild = mGridView.getChildAt(0); in testShortScroll() local
76 int firstTop = firstChild.getTop(); in testShortScroll()
105 View firstChild; in testManyScrolls() local
117 firstChild = mGridView.getChildAt(0); in testManyScrolls()
118 firstId = firstChild.getId(); in testManyScrolls()
119 firstTop = firstChild.getTop(); in testManyScrolls()
136 firstChild = mGridView.getChildAt(0); in testManyScrolls()
137 firstId = firstChild.getId(); in testManyScrolls()
[all …]
DGridTouchStackFromBottomManyTest.java55 View firstChild; in testScrollToTop() local
62 firstChild = mGridView.getChildAt(0); in testScrollToTop()
64 assertEquals("Item zero not the first child in the grid", 0, firstChild.getId()); in testScrollToTop()
67 mGridView.getListPaddingTop(), firstChild.getTop()); in testScrollToTop()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityManyTest.java69 View firstChild = mListView.getChildAt(0); in testPullDown() local
71 assertEquals("Item zero not the first child in the list", 0, firstChild.getId()); in testPullDown()
74 firstChild.getTop()); in testPullDown()
100 View firstChild = mListView.getChildAt(0); in testNoScroll() local
105 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, in testNoScroll()
118 View firstChild = mListView.getChildAt(0); in testShortScroll() local
119 if (firstChild.getTop() < this.mListView.getListPaddingTop()) { in testShortScroll()
120 firstChild = mListView.getChildAt(1); in testShortScroll()
127 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, in testShortScroll()
140 View firstChild = mListView.getChildAt(0); in testLongScroll() local
[all …]
DListTouchTest.java57 View firstChild = mListView.getChildAt(0); in testPullDown() local
59 TouchUtils.dragViewToBottom(this, firstChild); in testPullDown()
65 firstChild = mListView.getChildAt(0); in testPullDown()
67 assertEquals("Item zero not the first child in the list", 0, firstChild.getId()); in testPullDown()
70 firstChild.getTop()); in testPullDown()
83 View firstChild = mListView.getChildAt(0); in testPushUp() local
85 assertEquals("Item zero not the first child in the list", 0, firstChild.getId()); in testPushUp()
88 firstChild.getTop()); in testPushUp()
DListTouchManyTest.java66 View firstChild = mListView.getChildAt(0); in testPullDown() local
68 assertEquals("Item zero not the first child in the list", 0, firstChild.getId()); in testPullDown()
71 firstChild.getTop()); in testPullDown()
148 View firstChild = mListView.getChildAt(0); in testNoScroll() local
151 int firstTop = firstChild.getTop(); in testNoScroll()
165 View firstChild = mListView.getChildAt(0); in testShortScroll() local
168 int firstTop = firstChild.getTop(); in testShortScroll()
DListTouchBottomGravityTest.java58 View firstChild = mListView.getChildAt(0); in testPullDown() local
60 TouchUtils.dragViewToBottom(this, firstChild); in testPullDown()
DListOfTouchablesTest.java58 View firstChild = mListView.getChildAt(0); in testShortScroll() local
61 int firstTop = firstChild.getTop(); in testShortScroll()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListLastItemPartiallyVisibleTest.java56 final View firstChild = mListView.getChildAt(0); in testMovingDownToFullyVisibleNoScroll() local
57 final int firstBottom = firstChild.getBottom(); in testMovingDownToFullyVisibleNoScroll()
60 firstBottom, firstChild.getBottom()); in testMovingDownToFullyVisibleNoScroll()
DListOfThinItemsTest.java97 final View firstChild = mListView.getChildAt(0); in testScrollToTop() local
99 final int firstVisiblePosition = firstChild.getId(); in testScrollToTop()
111 firstChild.getTop() <= 0); in testScrollToTop()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DYearPickerView.java140 final View firstChild = getChildAt(0); in getFirstPositionOffset() local
141 if (firstChild == null) { in getFirstPositionOffset()
144 return firstChild.getTop(); in getFirstPositionOffset()
/frameworks/base/core/java/android/widget/
DYearPickerView.java227 final View firstChild = getChildAt(0); in getFirstPositionOffset() local
228 if (firstChild == null) { in getFirstPositionOffset()
231 return firstChild.getTop(); in getFirstPositionOffset()
DCalendarViewLegacyDelegate.java779 View firstChild = mListView.getChildAt(0); in goTo() local
780 if (firstChild != null && firstChild.getTop() < 0) { in goTo()
784 if (firstChild != null && firstChild.getTop() > mBottomBuffer) { in goTo()
DGridView.java629 final View firstChild = getChildAt(0); in correctTooHigh() local
630 final int firstTop = firstChild.getTop(); in correctTooHigh()
646 firstChild.getTop() - verticalSpacing); in correctTooHigh()
657 final View firstChild = getChildAt(0); in correctTooLow() local
660 final int firstTop = firstChild.getTop(); in correctTooLow()
DListView.java1462 View firstChild = getChildAt(0); in correctTooHigh() local
1463 final int firstTop = firstChild.getTop(); in correctTooHigh()
1477 fillUp(mFirstPosition - 1, firstChild.getTop() - mDividerHeight); in correctTooHigh()
1499 final View firstChild = getChildAt(0); in correctTooLow() local
1502 final int firstTop = firstChild.getTop(); in correctTooLow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationChildrenContainer.java376 boolean firstChild = true;
385 if (!firstChild) {
403 firstChild = false;
427 boolean firstChild = true;
442 if (!firstChild) {
458 firstChild = false;
811 boolean firstChild = true;
817 if (!firstChild) {
820 firstChild = false;
DNotificationStackScrollLayout.java770 final ExpandableView firstChild = getFirstChildNotGone(); in getFirstItemMinHeight() local
771 return firstChild != null ? firstChild.getMinHeight() : mCollapsedSize; in getFirstItemMinHeight()
2196 final ExpandableView firstChild = getFirstChildNotGone(); in getFirstChildIntrinsicHeight() local
2197 int firstChildMinHeight = firstChild != null in getFirstChildIntrinsicHeight()
2198 ? firstChild.getIntrinsicHeight() in getFirstChildIntrinsicHeight()
2213 final ExpandableView firstChild = getFirstChildNotGone(); in getPeekHeight() local
2214 final int firstChildMinHeight = firstChild != null ? firstChild.getCollapsedHeight() in getPeekHeight()
2545 ActivatableNotificationView firstChild = getFirstChildWithBackground(); in updateFirstAndLastBackgroundViews() local
2548 mAnimateNextBackgroundTop = firstChild != mFirstVisibleBackgroundChild; in updateFirstAndLastBackgroundViews()
2554 mFirstVisibleBackgroundChild = firstChild; in updateFirstAndLastBackgroundViews()
/frameworks/base/core/java/com/android/internal/app/
DLocalePickerWithRegion.java200 final View firstChild = list.getChildAt(0); in onPause() local
202 mTopDistance = (firstChild == null) ? 0 : (firstChild.getTop() - list.getPaddingTop()); in onPause()
/frameworks/base/core/java/com/android/internal/widget/
DWatchListDecorLayout.java293 View firstChild = mListView.getChildAt(0); in onScrollChanged() local
295 firstChild.getY() - mTopPanel.getHeight() - mTopPanel.getTop()); in onScrollChanged()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java365 View firstChild = layoutManager.getChildAt(0); in computeShownPages() local
366 ViewHolder firstHolder = mRecyclerView.getChildViewHolder(firstChild); in computeShownPages()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DStaggeredGridLayoutManagerBaseConfigSetTest.java829 View firstChild = mLayoutManager.getChildAt(0); in consistentRelayoutTest() local
831 .getDecoratedStart(firstChild); in consistentRelayoutTest()
832 int distance = mLayoutManager.mPrimaryOrientation.getDecoratedMeasurement(firstChild) / 2; in consistentRelayoutTest()
839 mLayoutManager.mPrimaryOrientation.getDecoratedStart(firstChild)); in consistentRelayoutTest()
/frameworks/base/tools/preload/
Dsorttable.js48 table.insertBefore(the,table.firstChild);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearLayoutManager.java398 final int firstChild = getPosition(getChildAt(0)); in findViewByPosition() local
399 final int viewPosition = position - firstChild; in findViewByPosition()