Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/tests/coretests/src/android/view/
DVisibilityTest.java74 int oldTop = mVictim.getTop(); in testVisibleToInvisible()
79 int newTop = mVictim.getTop(); in testVisibleToInvisible()
88 int oldTop = mVictim.getTop(); in testVisibleToGone()
93 int refDownTop = mRefDown.getTop(); in testVisibleToGone()
102 int oldTop = mVictim.getTop(); in testGoneToVisible()
107 int refDownTop = mRefDown.getTop(); in testGoneToVisible()
113 int newTop = mVictim.getTop(); in testGoneToVisible()
122 int oldTop = mVictim.getTop(); in testGoneToInvisible()
127 int refDownTop = mRefDown.getTop(); in testGoneToInvisible()
133 int newTop = mVictim.getTop(); in testGoneToInvisible()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfItemsTallerThanScreenTest.java59 view.getTop()); in testScrollDownAcrossItem()
70 view.getTop()); in testScrollDownAcrossItem()
80 assertEquals(view.getBottom(), peekingView.getTop()); in testScrollDownAcrossItem()
92 final int topOfPeekingNext = mListView.getChildAt(1).getTop(); in testScrollDownToNextItem()
105 assertEquals(topOfPeekingNext - (mListView.getMaxScrollAmount()), next.getTop()); in testScrollDownToNextItem()
122 final int listTop = mListView.getTop() + mListView.getListPaddingTop(); in testScrollFirstItemOffScreen()
124 mListView.getSelectedView().getTop() < listTop); in testScrollFirstItemOffScreen()
164 assertEquals(listTop, mListView.getSelectedView().getTop()); in testScrollUpAcrossFirstItem()
174 assertEquals(listTop, mListView.getSelectedView().getTop()); in testScrollUpAcrossFirstItem()
190 selected.getTop() < realBottom); in getNumDownPressesToScrollDownAcrossSelected()
DListItemFocusablesCloseTest.java53 first.getTop()); in testPreconditions()
68 final int topOfFirstItemBefore = first.getTop(); in testChangeFocusWithinItem()
75 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
82 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
88 final int topOfFirstItemBefore = first.getTop(); in testMoveDownToButtonInDifferentSelection()
98 topOfFirstItemBefore, first.getTop()); in testMoveDownToButtonInDifferentSelection()
DListItemFocusablesFarApartTest.java58 return child.getTop() + listItem.getTop(); in getTopOfChildOfItem()
64 return child.getBottom() + listItem.getTop(); in getBottomOfChildOfItem()
82 int expectedTop = mListView.getChildAt(0).getTop(); in testPanWhenNextFocusableTooFarDown()
103 expectedTop, mListView.getChildAt(0).getTop()); in testPanWhenNextFocusableTooFarDown()
DListOfItemsShorterThanScreenTest.java48 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); in testPreconditions()
58 next.getTop()); in testMoveDownToOnScreenNextItem()
65 next.getTop()); in testMoveDownToOnScreenNextItem()
83 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); in testMoveDownToItemRequiringScrolling()
122 mListView.getSelectedView().getTop()); in testMoveUpToItemRequiringScrolling()
DListOfShortShortTallShortShortTest.java65 mListView.getSelectedView().getTop() < mListUtil.getListTop()); in testFadeTopTwoItemsOut()
108 mListView.getSelectedView().getTop() <= mListUtil.getListTop()); in testFadeOutBottomTwoItems()
136 mListView.getChildAt(0).getTop() <= mListUtil.getListTop()); in testFadeInTopTwoItems()
DListOfThinItemsTest.java76 mListView.getChildAt(0).getTop() <= 0); in testScrollToBottom()
117 mListView.getSelectedView().getTop() >= topThreshold); in testScrollToTop()
119 firstChild.getTop() <= 0); in testScrollToTop()
/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.java61 int firstTop = firstChild.getTop(); in testShortScroll()
68 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
77 int lastTop = lastChild.getTop(); in testLongScroll()
80 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
83 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
/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/java/com/android/internal/widget/
DBackgroundFallback.java63 final int rootOffsetY = root.getTop(); in draw()
88 top = Math.min(top, rootOffsetY + child.getTop()); in draw()
105 if (v.getTop() <= 0 && v.getBottom() >= height in draw()
110 if (v.getTop() <= 0 && v.getBottom() >= height in draw()
115 if (v.getTop() <= 0 && v.getBottom() >= top in draw()
120 if (v.getTop() <= bottom && v.getBottom() >= height in draw()
125 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/support/leanback/src/androidTest/java/androidx/leanback/app/
DDetailsSupportFragmentTest.java295 final int originalFirstRowTop = firstRow.getTop(); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
297 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
309 return firstRow.getTop() >= screenHeight; in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
323 return firstRow.getTop() == originalFirstRowTop; in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
359 final int originalFirstRowTop = firstRow.getTop();
361 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
369 return firstRow.getTop() >= screenHeight;
386 return firstRow.getTop() == originalFirstRowTop;
430 final int originalFirstRowTop = firstRow.getTop();
432 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
[all …]
DDetailsFragmentTest.java298 final int originalFirstRowTop = firstRow.getTop(); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
300 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
312 return firstRow.getTop() >= screenHeight; in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
326 return firstRow.getTop() == originalFirstRowTop; in navigateBetweenRowsAndVideoUsingRequestFocusInternal()
362 final int originalFirstRowTop = firstRow.getTop();
364 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
372 return firstRow.getTop() >= screenHeight;
389 return firstRow.getTop() == originalFirstRowTop;
433 final int originalFirstRowTop = firstRow.getTop();
435 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMessagingLayoutTransformState.java110 float totalTranslation = ownGroup.getTop() - matchingGroup.getTop(); in transformViewInternal()
115 float totalTranslation = matchingGroup.getTop() - ownGroup.getTop(); in transformViewInternal()
125 int distance = lastPairedGroup.getTop() - ownGroup.getTop(); in transformViewInternal()
254 float distanceToTop = child.getTop() + child.getHeight() + previousTranslation; in transformGroups()
271 float totalTranslation = child.getTop() + ownGroup.getTop() in transformGroups()
272 - otherChild.getTop() - otherChild.getTop(); in transformGroups()
/frameworks/base/core/java/android/widget/
DListView.java292 delta = child.getTop() - mListPadding.top; in adjustViewsUpOrDown()
640 return (mFirstPosition > 0) || (getChildAt(0).getTop() > listTop); in showingTopFadingEdge()
664 rect.offset(child.getLeft(), child.getTop()); in requestChildRectangleOnScreen()
722 int top = getChildAt(0).getTop(); in requestChildRectangleOnScreen()
731 mSelectedTop = child.getTop(); in requestChildRectangleOnScreen()
757 final int startOffset = count > 0 ? getChildAt(0).getTop() - mDividerHeight : in fillGap()
821 nextBottom = child.getTop() - mDividerHeight; in fillUp()
896 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
902 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
935 final int spaceAbove = sel.getTop() - topSelectionPixel; in fillFromSelection()
[all …]
DGridView.java280 getChildAt(0).getTop() - verticalSpacing : getHeight() - paddingBottom; in fillGap()
417 nextBottom = mReferenceView.getTop() - mVerticalSpacing; in fillUp()
488 fillUp(rowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSelection()
495 fillUp(rowStart - 1, referenceView.getTop() - verticalSpacing); in fillSelection()
506 final int top = getChildAt(0).getTop(); in pinToTop()
539 if (y >= getChildAt(i).getTop()) { in findMotionRow()
590 above = fillUp(motionRowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSpecific()
601 above = fillUp(motionRowStart - 1, referenceView.getTop() - verticalSpacing); in fillSpecific()
635 final int firstTop = firstChild.getTop(); in correctTooHigh()
651 firstChild.getTop() - verticalSpacing); in correctTooHigh()
[all …]
/frameworks/support/percent/src/androidTest/java/androidx/percentlayout/widget/
DPercentRelativeTest.java89 final int childTop = childToTest.getTop(); in testTopChild()
110 final int childTop = childToTest.getTop(); in testLeftChild()
165 final int childTop = childToTest.getTop(); in testCenterChild()
183 bottomChild.getTop() - 0.1f * mContainerHeight, childBottom); in testCenterChild()
DPercentRelativeRtlTest.java125 mPercentRelativeLayout.getTop(), mPercentRelativeLayout.getRight(), in switchToRtl()
148 final int childTop = childToTest.getTop(); in testTopChild()
188 final int childTop = childToTest.getTop(); in testStartChild()
274 final int childTop = childToTest.getTop(); in testCenterChild()
296 bottomChild.getTop() - 0.1f * mContainerHeight, childBottom); in testCenterChild()
DPercentFrameTest.java93 int childTop = childToTest.getTop(); in testMarginsSingle()
112 int childTop = childToTest.getTop(); in testMarginsMultiple()
133 int childTop = childToTest.getTop(); in testMarginsTopLeft()
191 mPercentFrameLayout.getTop(), mPercentFrameLayout.getRight(), in testMarginStartRtl()
233 mPercentFrameLayout.getTop(), mPercentFrameLayout.getRight(), in testMarginEndRtl()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DButtonAboveTallInternalSelectionViewTest.java46 getActivity().getIsv().getTop() > in testPreconditions()
62 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();

123456789