/frameworks/base/core/tests/coretests/src/android/view/ |
D | VisibilityTest.java | 76 int oldTop = mVictim.getTop(); in testVisibleToInvisible() 81 int newTop = mVictim.getTop(); in testVisibleToInvisible() 91 int oldTop = mVictim.getTop(); in testVisibleToGone() 96 int refDownTop = mRefDown.getTop(); in testVisibleToGone() 105 int oldTop = mVictim.getTop(); in testGoneToVisible() 110 int refDownTop = mRefDown.getTop(); in testGoneToVisible() 116 int newTop = mVictim.getTop(); in testGoneToVisible() 125 int oldTop = mVictim.getTop(); in testGoneToInvisible() 130 int refDownTop = mRefDown.getTop(); in testGoneToInvisible() 136 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 | 61 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/listview/arrowscroll/ |
D | ListOfItemsTallerThanScreenTest.java | 59 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()
|
D | ListItemFocusablesCloseTest.java | 53 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()
|
D | ListItemFocusablesFarApartTest.java | 58 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()
|
D | ListOfItemsShorterThanScreenTest.java | 48 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()
|
D | ListOfThinItemsTest.java | 72 mListView.getChildAt(0).getTop() <= 0); in testScrollToBottom() 109 mListView.getSelectedView().getTop() >= topThreshold); in testScrollToTop() 111 firstChild.getTop() <= 0); in testScrollToTop()
|
D | ListOfShortShortTallShortShortTest.java | 65 mListView.getSelectedView().getTop() < mListUtil.getListTop()); in testFadeTopTwoItemsOut() 108 mListView.getSelectedView().getTop() <= mListUtil.getListTop()); in testFadeOutBottomTwoItems() 136 mListView.getChildAt(0).getTop() <= mListUtil.getListTop()); in testFadeInTopTwoItems()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchVerticalSpacingStackFromBottomTest.java | 65 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()
|
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/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/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
D | DetailsFragmentTest.java | 294 final int originalFirstRowTop = firstRow.getTop(); in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 296 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 308 return firstRow.getTop() >= screenHeight; in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 322 return firstRow.getTop() == originalFirstRowTop; in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 358 final int originalFirstRowTop = firstRow.getTop(); 360 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); 368 return firstRow.getTop() >= screenHeight; 385 return firstRow.getTop() == originalFirstRowTop; 429 final int originalFirstRowTop = firstRow.getTop(); 431 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); [all …]
|
D | DetailsSupportFragmentTest.java | 297 final int originalFirstRowTop = firstRow.getTop(); in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 299 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 311 return firstRow.getTop() >= screenHeight; in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 325 return firstRow.getTop() == originalFirstRowTop; in navigateBetweenRowsAndVideoUsingRequestFocusInternal() 361 final int originalFirstRowTop = firstRow.getTop(); 363 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); 371 return firstRow.getTop() >= screenHeight; 388 return firstRow.getTop() == originalFirstRowTop; 432 final int originalFirstRowTop = firstRow.getTop(); 434 assertTrue(firstRow.getTop() > 0 && firstRow.getTop() < screenHeight); [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ListView.java | 292 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 …]
|
D | GridView.java | 275 getChildAt(0).getTop() - verticalSpacing : getHeight() - paddingBottom; in fillGap() 412 nextBottom = mReferenceView.getTop() - mVerticalSpacing; in fillUp() 483 fillUp(rowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSelection() 490 fillUp(rowStart - 1, referenceView.getTop() - verticalSpacing); in fillSelection() 501 final int top = getChildAt(0).getTop(); in pinToTop() 534 if (y >= getChildAt(i).getTop()) { in findMotionRow() 585 above = fillUp(motionRowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSpecific() 596 above = fillUp(motionRowStart - 1, referenceView.getTop() - verticalSpacing); in fillSpecific() 630 final int firstTop = firstChild.getTop(); in correctTooHigh() 646 firstChild.getTop() - verticalSpacing); in correctTooHigh() [all …]
|
/frameworks/support/percent/tests/java/android/support/percent/ |
D | PercentRelativeTest.java | 88 final int childTop = childToTest.getTop(); in testTopChild() 109 final int childTop = childToTest.getTop(); in testLeftChild() 164 final int childTop = childToTest.getTop(); in testCenterChild() 182 bottomChild.getTop() - 0.1f * mContainerHeight, childBottom); in testCenterChild()
|
D | PercentRelativeRtlTest.java | 125 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()
|
D | PercentFrameTest.java | 93 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/support/design/tests/src/android/support/design/widget/ |
D | BottomSheetBehaviorWithInsetsTest.java | 42 assertThat(bottomSheet.getTop(), in testFitsSystemWindows() 44 assertThat(activity.mBottomSheetContent.getTop(), is(0)); in testFitsSystemWindows()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | ViewOffsetHelper.java | 45 mLayoutTop = mView.getTop(); in onViewLayout() 53 ViewCompat.offsetTopAndBottom(mView, mOffsetTop - (mView.getTop() - mLayoutTop)); in updateOffsets()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | ButtonAboveTallInternalSelectionViewTest.java | 46 getActivity().getIsv().getTop() > in testPreconditions() 62 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/support/compat/java/android/support/v4/widget/ |
D | ListViewCompat.java | 51 final int newTop = firstView.getTop() - y; in scrollListBy() 83 final int firstTop = listView.getChildAt(0).getTop(); in canScrollList()
|