Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchStackFromBottomTest.java60 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPushUp() local
63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp()
66 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPushUp()
77 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPullDown() local
80 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDown()
83 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPullDown()
94 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPushUpFast() local
97 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUpFast()
100 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPushUpFast()
111 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPullDownFast() local
[all …]
DGridTouchVerticalSpacingTest.java57 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll() local
61 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testNoScroll()
74 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll() local
78 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll()
90 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testLongScroll() local
92 int lastTop = lastChild.getTop(); in testLongScroll()
94 int distance = TouchUtils.dragViewToY(this, lastChild, Gravity.TOP | Gravity.LEFT, in testLongScroll()
98 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
123 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testManyScrolls() local
125 lastChild.getId()); in testManyScrolls()
DGridTouchVerticalSpacingStackFromBottomTest.java64 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll() local
66 int lastTop = lastChild.getTop(); in testNoScroll()
86 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll() local
88 int lastTop = lastChild.getTop(); in testShortScroll()
158 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testManyScrolls() local
160 lastChild.getId()); in testManyScrolls()
DGridTouchStackFromBottomManyTest.java78 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testScrollToBottom() local
81 lastChild.getId()); in testScrollToBottom()
84 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testScrollToBottom()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityTest.java62 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPullDown() local
69 lastChild.getId()); in testPullDown()
72 mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom()); in testPullDown()
77 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp() local
79 TouchUtils.dragViewToTop(this, lastChild); in testPushUp()
81 lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
88 lastChild.getId()); in testPushUp()
91 mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom()); in testPushUp()
DListTouchManyTest.java84 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp() local
87 lastChild.getId()); in testPushUp()
90 mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom()); in testPushUp()
149 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll() local
153 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testNoScroll()
166 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll() local
170 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll()
182 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testLongScroll() local
184 int lastTop = lastChild.getTop(); in testLongScroll()
186 int distance = TouchUtils.dragViewToY(this, lastChild, in testLongScroll()
[all …]
DListOfTouchablesTest.java58 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll() local
62 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll()
74 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testLongScroll() local
76 int lastTop = lastChild.getTop(); in testLongScroll()
78 int distance = TouchUtils.dragViewToY(this, lastChild, in testLongScroll()
82 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListTouchBottomGravityManyTest.java89 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp() local
92 lastChild.getId()); in testPushUp()
95 mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom()); in testPushUp()
101 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll() local
103 int lastTop = lastChild.getTop(); in testNoScroll()
123 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll() local
125 int lastTop = lastChild.getTop(); in testShortScroll()
DListTouchTest.java75 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp() local
77 TouchUtils.dragViewToTop(this, lastChild); in testPushUp()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListLastItemPartiallyVisibleTest.java48 final View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPreconditions() local
50 lastChild.getBottom() > mListBottom); in testPreconditions()
74 final View lastChild = mListView.getSelectedView(); in testMovingUpToFullyVisibleNoScroll() local
75 final int lastTop = lastChild.getTop(); in testMovingUpToFullyVisibleNoScroll()
78 lastTop, lastChild.getTop()); in testMovingUpToFullyVisibleNoScroll()
DListOfThinItemsTest.java64 final View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testScrollToBottom() local
65 final int lastVisiblePosition = lastChild.getId(); in testScrollToBottom()
79 lastChild.getBottom() >= listBottom); in testScrollToBottom()
107 final View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testScrollToTop() local
122 lastChild.getBottom() >= listBottom); in testScrollToTop()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DDynamicChildBindControllerTest.java83 NotificationEntry lastChild = mGroupNotifs.get(summary).get(TEST_CHILD_BIND_CUTOFF); in testContentViewsOfChildrenBeyondCutoffAreFreed() local
86 when(mBindStage.getStageParams(lastChild)).thenReturn(bindParams); in testContentViewsOfChildrenBeyondCutoffAreFreed()
94 verify(mBindStage).requestRebind(eq(lastChild), any()); in testContentViewsOfChildrenBeyondCutoffAreFreed()
101 NotificationEntry lastChild = mGroupNotifs.get(summary).get(TEST_CHILD_BIND_CUTOFF - 1); in testContentViewsBeforeCutoffAreBound() local
103 lastChild.getRow().getPrivateLayout().setContractedChild(null); in testContentViewsBeforeCutoffAreBound()
104 lastChild.getRow().getPrivateLayout().setExpandedChild(null); in testContentViewsBeforeCutoffAreBound()
107 when(mBindStage.getStageParams(lastChild)).thenReturn(bindParams); in testContentViewsBeforeCutoffAreBound()
115 verify(mBindStage).requestRebind(eq(lastChild), any()); in testContentViewsBeforeCutoffAreBound()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSectionsManager.kt211 newLastChildren.forEach { lastChild -> in <lambda>() method
212 val wasLastChild = oldLastChildren.remove(lastChild) in <lambda>()
214 val notAnimatedChild = !notificationRoundnessManager.isAnimatedChild(lastChild) in <lambda>()
215 val animated = lastChild.isShown && notAnimatedChild in <lambda>()
216 lastChild.requestBottomRoundness(1f, SECTION, animated) in <lambda>()
DNotificationStackScrollLayout.java3012 ExpandableView lastChild = getLastChildWithBackground(); in updateFirstAndLastBackgroundViews() local
3016 mAmbientState.setLastVisibleBackgroundChild(lastChild); in updateFirstAndLastBackgroundViews()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DNotificationShadeActivity.java143 View lastChild = mChildren.get(mChildrenCount - 1); in updateState() local
145 lastChild.setTranslationY(translationY); in updateState()
147 lastChild.setElevation((1 - p) * INITIAL_ELEVATION); in updateState()
/frameworks/base/core/java/com/android/internal/widget/
DWatchListDecorLayout.java308 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in onScrollChanged() local
311 lastChild.getY() + lastChild.getHeight() - mBottomPanel.getTop())); in onScrollChanged()
DRecyclerView.java2021 final View lastChild = mLayout.getChildAt(mLayout.getChildCount() - 1); in fling() local
2028 consumed = getChildAdapterPosition(lastChild) < mAdapter.getItemCount() - 1 in fling()
2029 || lastChild.getBottom() > getHeight() - getPaddingBottom(); in fling()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java368 View lastChild = layoutManager.getChildAt(layoutManager.getChildCount() - 1); in computeShownPages() local
369 ViewHolder lastHolder = mRecyclerView.getChildViewHolder(lastChild); in computeShownPages()
/frameworks/base/core/java/android/widget/
DFastScroller.java1332 final View lastChild = mList.getChildAt(visibleItemCount - 1); in getPosFromItemCount() local
1337 maxSize = lastChild.getHeight(); in getPosFromItemCount()
1338 currentVisibleSize = mList.getHeight() - bottomPadding - lastChild.getTop(); in getPosFromItemCount()
1340 maxSize = lastChild.getHeight() + bottomPadding; in getPosFromItemCount()
1341 currentVisibleSize = mList.getHeight() - lastChild.getTop(); in getPosFromItemCount()
DGridView.java638 final View lastChild = getChildAt(childCount - 1); in correctTooHigh() local
641 final int lastBottom = lastChild.getBottom(); in correctTooHigh()
691 final View lastChild = getChildAt(childCount - 1); in correctTooLow() local
692 final int lastBottom = lastChild.getBottom(); in correctTooLow()
709 lastChild.getBottom() + verticalSpacing); in correctTooLow()
DAbsListView.java2246 final View lastChild = getChildAt(childCount - 1); in onMeasure() local
2247 final int lastBottom = lastChild != null ? lastChild.getBottom() : listBottom; in onMeasure()
5935 final View lastChild = getChildAt(childCount - 1); in handleDataChanged() local
5936 final int lastBottom = lastChild != null ? lastChild.getBottom() : listBottom; in handleDataChanged()
8201 final View lastChild = getChildAt(childCount - 1); in run() local
8202 final int lastChildHeight = lastChild.getHeight(); in run()
8206 : (float) (lastChildHeight + getHeight() - lastChild.getBottom()) in run()
DListView.java1542 final View lastChild = getChildAt(childCount - 1); in correctTooHigh() local
1545 final int lastBottom = lastChild.getBottom(); in correctTooHigh()
1605 View lastChild = getChildAt(childCount - 1); in correctTooLow() local
1606 final int lastBottom = lastChild.getBottom(); in correctTooLow()
1622 fillDown(lastPosition + 1, lastChild.getBottom() + mDividerHeight); in correctTooLow()
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerHierarchy.cpp173 const bool lastChild = i == (mChildren.size() - 1); in dump() local
179 child->dump(out, childPrefix, childVariant, lastChild, includeMirroredHierarchy); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationIconContainer.java569 View lastChild = getChildAt(childCount - 1); in calculateIconXTranslations() local
570 mLastVisibleIconState = mIconStates.get(lastChild); in calculateIconXTranslations()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationShelf.java392 View lastChild = mAmbientState.getLastVisibleBackgroundChild(); in updateAppearance() local
417 boolean isLastChild = child == lastChild; in updateAppearance()