/frameworks/base/core/tests/coretests/src/android/view/ |
D | VisibilityTest.java | 75 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/ |
D | ListTouchBottomGravityManyTest.java | 74 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()
|
D | ListTouchManyTest.java | 71 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()
|
D | ListOfTouchablesTest.java | 60 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()
|
D | ListTouchTest.java | 70 firstChild.getTop()); in testPullDown() 88 firstChild.getTop()); in testPushUp()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchVerticalSpacingStackFromBottomTest.java | 66 int lastTop = lastChild.getTop(); in testNoScroll() 73 assertEquals("View scrolled too early", lastTop, newLastChild.getTop()); in testNoScroll() 82 if (firstChild.getTop() < this.mGridView.getListPaddingTop()) { in testShortScroll() 88 int lastTop = lastChild.getTop(); in testShortScroll() 95 assertEquals("View scrolled to wrong position", lastTop, newLastChild.getTop() - 10); in testShortScroll() 104 if (firstChild.getTop() < mGridView.getListPaddingTop()) { in testLongScroll() 108 int firstTop = firstChild.getTop(); in testLongScroll() 116 + (distance - mViewConfig.getScaledTouchSlop() - 1), firstChild.getTop()); in testLongScroll() 137 firstTop = firstChild.getTop(); in testManyScrolls() 155 firstTop = firstChild.getTop(); in testManyScrolls()
|
D | GridTouchVerticalSpacingTest.java | 59 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/ |
D | ListOfItemsTallerThanScreenTest.java | 60 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()
|
D | ListItemFocusablesCloseTest.java | 54 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()
|
D | ListItemFocusablesFarApartTest.java | 59 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()
|
D | ListOfItemsShorterThanScreenTest.java | 49 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()
|
D | ListOfShortShortTallShortShortTest.java | 66 mListView.getSelectedView().getTop() < mListUtil.getListTop()); in testFadeTopTwoItemsOut() 109 mListView.getSelectedView().getTop() <= mListUtil.getListTop()); in testFadeOutBottomTwoItems() 137 mListView.getChildAt(0).getTop() <= mListUtil.getListTop()); in testFadeInTopTwoItems()
|
D | ListOfThinItemsTest.java | 77 mListView.getChildAt(0).getTop() <= 0); in testScrollToBottom() 118 mListView.getSelectedView().getTop() >= topThreshold); in testScrollToTop() 120 firstChild.getTop() <= 0); in testScrollToTop()
|
D | ListOfShortTallShortTest.java | 48 int topBeforeMove = mListView.getChildAt(1).getTop(); in testGoDownFromShortToTall() 55 mListView.getSelectedView().getTop()); in testGoDownFromShortToTall()
|
D | ListLastItemPartiallyVisibleTest.java | 75 final int lastTop = lastChild.getTop(); in testMovingUpToFullyVisibleNoScroll() 78 lastTop, lastChild.getTop()); in testMovingUpToFullyVisibleNoScroll()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | BackgroundFallback.java | 68 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()
|
D | MessagingPropertyAnimator.java | 53 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/packages/SystemUI/tests/src/com/android/systemui/screenshot/scroll/ |
D | ScrollCaptureControllerTest.java | 67 assertEquals("top", -90, screenshot.getTop()); in testInfinite() 72 float topPortion = abs(screenshot.getTop()) / abs((float) screenshot.getBottom()); in testInfinite() 104 assertEquals("top", -85, screenshot.getTop()); in testInfiniteWithPartialResultsTop() 131 assertEquals("top", -50, screenshot.getTop()); in testInfiniteWithPartialResultsBottom() 147 assertEquals("top", -100, screenshot.getTop()); in testLimitedBottom() 163 assertEquals("top", -50, screenshot.getTop()); in testLimitedTopAndBottom() 179 assertEquals("top", -10, screenshot.getTop()); in testVeryLimitedTopInfiniteBottom() 195 assertEquals("top", -10, screenshot.getTop()); in testVeryLimitedTopLimitedBottom()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | BaselineButtonsTest.java | 78 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/ |
D | ListView.java | 296 delta = child.getTop() - mListPadding.top; in adjustViewsUpOrDown() 644 return (mFirstPosition > 0) || (getChildAt(0).getTop() > listTop); in showingTopFadingEdge() 668 rect.offset(child.getLeft(), child.getTop()); in requestChildRectangleOnScreen() 726 int top = getChildAt(0).getTop(); in requestChildRectangleOnScreen() 735 mSelectedTop = child.getTop(); in requestChildRectangleOnScreen() 761 final int startOffset = count > 0 ? getChildAt(0).getTop() - mDividerHeight : in fillGap() 827 nextBottom = child.getTop() - mDividerHeight; in fillUp() 902 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow() 908 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow() 941 final int spaceAbove = sel.getTop() - topSelectionPixel; in fillFromSelection() [all …]
|
D | GridView.java | 293 getChildAt(0).getTop() - verticalSpacing : getHeight() - paddingBottom; in fillGap() 432 nextBottom = mReferenceView.getTop() - mVerticalSpacing; in fillUp() 503 fillUp(rowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSelection() 510 fillUp(rowStart - 1, referenceView.getTop() - verticalSpacing); in fillSelection() 521 final int top = getChildAt(0).getTop(); in pinToTop() 554 if (y >= getChildAt(i).getTop()) { in findMotionRow() 605 above = fillUp(motionRowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSpecific() 616 above = fillUp(motionRowStart - 1, referenceView.getTop() - verticalSpacing); in fillSpecific() 650 final int firstTop = firstChild.getTop(); in correctTooHigh() 666 firstChild.getTop() - verticalSpacing); in correctTooHigh() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | ButtonAboveTallInternalSelectionViewTest.java | 45 getActivity().getIsv().getTop() > in testPreconditions() 61 getActivity().getIsv().getTop() > in testMovingFocusDownToItemTallerThanScreenStillOnScreen()
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
D | AssistVisualizer.java | 49 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/src/com/android/systemui/screenshot/scroll/ |
D | ScrollCaptureController.java | 112 public int getTop() { in getTop() method in ScrollCaptureController.LongScreenshot 113 return mImageTileSet.getTop(); in getTop() 137 + "t=" + mImageTileSet.getTop() + ", " in toString() 300 Log.d(TAG, "bounds: " + mImageTileSet.getLeft() + "," + mImageTileSet.getTop() in onCaptureResult() 331 ? mImageTileSet.getTop() - mSession.getTileHeight() in onCaptureResult()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TouchAnimatorTest.java | 90 assertEquals(0, mTestView.getTop()); in testSetValueInt() 93 assertEquals(25, mTestView.getTop()); in testSetValueInt() 96 assertEquals(50, mTestView.getTop()); in testSetValueInt()
|