Home
last modified time | relevance | path

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

123456

/frameworks/base/core/tests/coretests/src/android/view/
DVisibilityTest.java75 int oldTop = mVictim.getTop(); in testVisibleToInvisible()
80 int newTop = mVictim.getTop(); in testVisibleToInvisible()
89 int oldTop = mVictim.getTop(); in testVisibleToGone()
94 int refDownTop = mRefDown.getTop(); in testVisibleToGone()
103 int oldTop = mVictim.getTop(); in testGoneToVisible()
108 int refDownTop = mRefDown.getTop(); in testGoneToVisible()
114 int newTop = mVictim.getTop(); in testGoneToVisible()
123 int oldTop = mVictim.getTop(); in testGoneToInvisible()
128 int refDownTop = mRefDown.getTop(); in testGoneToInvisible()
134 int newTop = mVictim.getTop(); in testGoneToInvisible()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchManyTest.java71 firstChild.getTop()); in testPullDown()
106 if ((child.getTop() >= mListView.getListPaddingTop()) in testPress()
134 if ((child.getTop() >= mListView.getListPaddingTop()) in testLongPress()
151 int firstTop = firstChild.getTop(); in testNoScroll()
158 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop()); in testNoScroll()
168 int firstTop = firstChild.getTop(); in testShortScroll()
175 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
184 int lastTop = lastChild.getTop(); in testLongScroll()
187 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
190 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListTouchBottomGravityManyTest.java74 firstChild.getTop()); in testPullDown()
103 int lastTop = lastChild.getTop(); in testNoScroll()
110 assertEquals("View scrolled too early", lastTop, newLastChild.getTop()); in testNoScroll()
119 if (firstChild.getTop() < this.mListView.getListPaddingTop()) { in testShortScroll()
125 int lastTop = lastChild.getTop(); in testShortScroll()
132 assertEquals("View scrolled to wrong position", lastTop, newLastChild.getTop() - 10); in testShortScroll()
141 if (firstChild.getTop() < mListView.getListPaddingTop()) { in testLongScroll()
145 int firstTop = firstChild.getTop(); in testLongScroll()
152 + (distance - ViewConfiguration.getTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
DListOfTouchablesTest.java60 int firstTop = firstChild.getTop(); in testShortScroll()
67 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
76 int lastTop = lastChild.getTop(); in testLongScroll()
79 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
82 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListTouchTest.java70 firstChild.getTop()); in testPullDown()
88 firstChild.getTop()); in testPushUp()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingStackFromBottomTest.java65 int lastTop = lastChild.getTop(); in testNoScroll()
72 assertEquals("View scrolled too early", lastTop, newLastChild.getTop()); in testNoScroll()
81 if (firstChild.getTop() < this.mGridView.getListPaddingTop()) { in testShortScroll()
87 int lastTop = lastChild.getTop(); in testShortScroll()
94 assertEquals("View scrolled to wrong position", lastTop, newLastChild.getTop() - 10); in testShortScroll()
103 if (firstChild.getTop() < mGridView.getListPaddingTop()) { in testLongScroll()
107 int firstTop = firstChild.getTop(); in testLongScroll()
114 + (distance - mViewConfig.getScaledTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
135 firstTop = firstChild.getTop(); in testManyScrolls()
153 firstTop = firstChild.getTop(); in testManyScrolls()
DGridTouchVerticalSpacingTest.java59 int firstTop = firstChild.getTop(); in testNoScroll()
66 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop()); in testNoScroll()
76 int firstTop = firstChild.getTop(); in testShortScroll()
83 assertEquals("View scrolled to wrong position", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
92 int lastTop = lastChild.getTop(); in testLongScroll()
95 mGridView.getTop()); in testLongScroll()
98 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
119 firstTop = firstChild.getTop(); in testManyScrolls()
138 firstTop = firstChild.getTop(); in testManyScrolls()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfItemsTallerThanScreenTest.java60 view.getTop()); in testScrollDownAcrossItem()
71 view.getTop()); in testScrollDownAcrossItem()
81 assertEquals(view.getBottom(), peekingView.getTop()); in testScrollDownAcrossItem()
93 final int topOfPeekingNext = mListView.getChildAt(1).getTop(); in testScrollDownToNextItem()
106 assertEquals(topOfPeekingNext - (mListView.getMaxScrollAmount()), next.getTop()); in testScrollDownToNextItem()
123 final int listTop = mListView.getTop() + mListView.getListPaddingTop(); in testScrollFirstItemOffScreen()
125 mListView.getSelectedView().getTop() < listTop); in testScrollFirstItemOffScreen()
165 assertEquals(listTop, mListView.getSelectedView().getTop()); in testScrollUpAcrossFirstItem()
175 assertEquals(listTop, mListView.getSelectedView().getTop()); in testScrollUpAcrossFirstItem()
191 selected.getTop() < realBottom); in getNumDownPressesToScrollDownAcrossSelected()
DListItemFocusablesCloseTest.java54 first.getTop()); in testPreconditions()
69 final int topOfFirstItemBefore = first.getTop(); in testChangeFocusWithinItem()
76 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
83 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
89 final int topOfFirstItemBefore = first.getTop(); in testMoveDownToButtonInDifferentSelection()
99 topOfFirstItemBefore, first.getTop()); in testMoveDownToButtonInDifferentSelection()
DListItemFocusablesFarApartTest.java59 return child.getTop() + listItem.getTop(); in getTopOfChildOfItem()
65 return child.getBottom() + listItem.getTop(); in getBottomOfChildOfItem()
83 int expectedTop = mListView.getChildAt(0).getTop(); in testPanWhenNextFocusableTooFarDown()
104 expectedTop, mListView.getChildAt(0).getTop()); in testPanWhenNextFocusableTooFarDown()
DListOfItemsShorterThanScreenTest.java49 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); in testPreconditions()
59 next.getTop()); in testMoveDownToOnScreenNextItem()
66 next.getTop()); in testMoveDownToOnScreenNextItem()
84 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); in testMoveDownToItemRequiringScrolling()
123 mListView.getSelectedView().getTop()); in testMoveUpToItemRequiringScrolling()
DListOfShortShortTallShortShortTest.java66 mListView.getSelectedView().getTop() < mListUtil.getListTop()); in testFadeTopTwoItemsOut()
109 mListView.getSelectedView().getTop() <= mListUtil.getListTop()); in testFadeOutBottomTwoItems()
137 mListView.getChildAt(0).getTop() <= mListUtil.getListTop()); in testFadeInTopTwoItems()
DListOfThinItemsTest.java77 mListView.getChildAt(0).getTop() <= 0); in testScrollToBottom()
118 mListView.getSelectedView().getTop() >= topThreshold); in testScrollToTop()
120 firstChild.getTop() <= 0); in testScrollToTop()
DListOfShortTallShortTest.java48 int topBeforeMove = mListView.getChildAt(1).getTop(); in testGoDownFromShortToTall()
55 mListView.getSelectedView().getTop()); in testGoDownFromShortToTall()
DListLastItemPartiallyVisibleTest.java75 final int lastTop = lastChild.getTop(); in testMovingUpToFullyVisibleNoScroll()
78 lastTop, lastChild.getTop()); in testMovingUpToFullyVisibleNoScroll()
/frameworks/base/core/java/com/android/internal/widget/
DBackgroundFallback.java68 final int rootOffsetY = root.getTop(); in draw()
93 top = Math.min(top, rootOffsetY + child.getTop()); in draw()
110 if (v.getTop() <= 0 && v.getBottom() >= height in draw()
115 if (v.getTop() <= 0 && v.getBottom() >= height in draw()
120 if (v.getTop() <= 0 && v.getBottom() >= top in draw()
125 if (v.getTop() <= bottom && v.getBottom() >= height in draw()
130 eachBarCoversTopInY &= v.getTop() <= 0 && v.getBottom() >= top; in draw()
DMessagingPropertyAnimator.java53 return getTop(object);
66 startTopAnimation(v, getTop(v), top, MessagingLayout.FAST_OUT_SLOW_IN); in onLayoutChange()
92 return getTop(view); in getLayoutTop()
105 startTopAnimation(view, getTop(view) + startTranslation, getLayoutTop(view), interpolator); in startLocalTranslationFrom()
116 int top = getTop(view); in startLocalTranslationTo()
120 public static int getTop(View v) { in getTop() method in MessagingPropertyAnimator
123 return v.getTop(); in getTop()
134 int top = getTop(v); in updateTopAndBottom()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineButtonsTest.java78 assertEquals("Pause wrong top", 0, mPause.getTop()); in testLayout()
79 assertEquals("Prev wrong top", (pauseHeight - prevHeight) / 2, mPrev.getTop()); in testLayout()
80 assertEquals("Next wrong top", (pauseHeight - nextHeight) / 2, mNext.getTop()); in testLayout()
83 assertTrue("CurrentTime too tall", mCurrentTime.getTop() > 0); in testLayout()
84 assertTrue("TotalTime too tall", mTotalTime.getTop() > 0); in testLayout()
/frameworks/base/core/java/android/widget/
DListView.java298 delta = child.getTop() - mListPadding.top; in adjustViewsUpOrDown()
646 return (mFirstPosition > 0) || (getChildAt(0).getTop() > listTop); in showingTopFadingEdge()
670 rect.offset(child.getLeft(), child.getTop()); in requestChildRectangleOnScreen()
728 int top = getChildAt(0).getTop(); in requestChildRectangleOnScreen()
737 mSelectedTop = child.getTop(); in requestChildRectangleOnScreen()
763 final int startOffset = count > 0 ? getChildAt(0).getTop() - mDividerHeight : in fillGap()
829 nextBottom = child.getTop() - mDividerHeight; in fillUp()
904 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
910 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
943 final int spaceAbove = sel.getTop() - topSelectionPixel; in fillFromSelection()
[all …]
DGridView.java292 getChildAt(0).getTop() - verticalSpacing : getHeight() - paddingBottom; in fillGap()
431 nextBottom = mReferenceView.getTop() - mVerticalSpacing; in fillUp()
502 fillUp(rowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSelection()
509 fillUp(rowStart - 1, referenceView.getTop() - verticalSpacing); in fillSelection()
520 final int top = getChildAt(0).getTop(); in pinToTop()
553 if (y >= getChildAt(i).getTop()) { in findMotionRow()
604 above = fillUp(motionRowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSpecific()
615 above = fillUp(motionRowStart - 1, referenceView.getTop() - verticalSpacing); in fillSpecific()
649 final int firstTop = firstChild.getTop(); in correctTooHigh()
665 firstChild.getTop() - verticalSpacing); in correctTooHigh()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMessagingLayoutTransformState.java109 float totalTranslation = ownGroup.getTop() - matchingGroup.getTop(); in transformViewInternal()
121 float newPosition = ownGroup.getTop() + currentTranslation; in transformViewInternal()
133 / (Math.abs(fadeStart) + ownGroup.getTop()); in transformViewInternal()
259 float distanceToTop = child.getTop() + child.getHeight() + previousTranslation; in transformGroups()
278 float totalTranslation = child.getTop() + ownGroup.getTop() in transformGroups()
279 - otherChild.getTop() - otherChild.getTop(); in transformGroups()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DButtonAboveTallInternalSelectionViewTest.java45 getActivity().getIsv().getTop() > in testPreconditions()
61 getActivity().getIsv().getTop() > in testMovingFocusDownToItemTallerThanScreenStillOnScreen()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java49 int top = parentTop+node.getTop(); in TextEntry()
98 matrix.setTranslate(windowNode.getLeft(), windowNode.getTop()); in setAssistStructure()
101 windowNode.getTop()); in setAssistStructure()
155 matrix.preTranslate(root.getLeft(), root.getTop());
157 int top = parentTop + root.getTop();
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskViewTransform.java49 mTmpRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom());
75 rect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom()); in fillIn()
131 ((int) rect.top != v.getTop()) || ((int) rect.bottom != v.getBottom()); in hasRectChangedFrom()
176 Rect fromViewRect = new Rect(v.getLeft(), v.getTop(), v.getRight(), v.getBottom()); in applyToTaskView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTouchAnimatorTest.java90 assertEquals(0, mTestView.getTop()); in testSetValueInt()
93 assertEquals(25, mTestView.getTop()); in testSetValueInt()
96 assertEquals(50, mTestView.getTop()); in testSetValueInt()

123456