Home
last modified time | relevance | path

Searched refs:screenRight (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
DBoxInsetLayoutTest.java29 import static androidx.wear.widget.util.MoreViewAssertions.screenRight;
103 .check(screenRight(equalTo(parentRight - desiredPadding))) in testCase1()
112 .check(screenRight(equalTo(parentRight - desiredPadding))) in testCase1()
168 .check(screenRight(is(equalTo(parentRight - desiredPadding)))) in testCase2()
177 .check(screenRight(equalTo(parentRight - desiredPadding))); in testCase2()
184 .check(screenRight(is(equalTo(parentRight - desiredPadding)))) in testCase2()
192 .check(screenRight(equalTo(parentRight - desiredPadding))) in testCase2()
201 .check(screenRight(is(equalTo(parentLeft + desiredPadding + child3.getWidth())))) in testCase2()
216 .check(screenRight(is(equalTo(parentWidth - desiredPadding)))) in testCase2()
223 onView(withId(R.id.content4)).check(screenRight(equalTo(parentWidth - desiredPadding))); in testCase2()
[all …]
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java1127 int screenRight = getScrollX() + getWidth(); in arrowScroll() local
1129 if (daRight - screenRight < maxJump) { in arrowScroll()
1130 scrollDelta = daRight - screenRight; in arrowScroll()
1391 int screenRight = screenLeft + width; in computeScrollDeltaToGetChildRectOnScreen() local
1402 screenRight -= fadingEdge; in computeScrollDeltaToGetChildRectOnScreen()
1407 if (rect.right > screenRight && rect.left > screenLeft) { in computeScrollDeltaToGetChildRectOnScreen()
1417 scrollXDelta += (rect.right - screenRight); in computeScrollDeltaToGetChildRectOnScreen()
1422 int distanceToRight = right - screenRight; in computeScrollDeltaToGetChildRectOnScreen()
1425 } else if (rect.left < screenLeft && rect.right < screenRight) { in computeScrollDeltaToGetChildRectOnScreen()
1432 scrollXDelta -= (screenRight - rect.right); in computeScrollDeltaToGetChildRectOnScreen()
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/
DMoreViewAssertions.java136 public static ViewAssertion screenRight(final Matcher<Integer> matcher) {