Home
last modified time | relevance | path

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

/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
DBoxInsetLayoutTest.java28 import static androidx.wear.widget.util.MoreViewAssertions.screenLeft;
101 .check(screenLeft(equalTo(parentLeft))) in testCase1()
110 .check(screenLeft(equalTo(parentLeft))) in testCase1()
166 .check(screenLeft(is(equalTo(parentLeft + desiredPadding)))) in testCase2()
175 .check(screenLeft(equalTo(parentLeft + desiredPadding))) in testCase2()
182 .check(screenLeft(is(equalTo(parentLeft + desiredPadding)))) in testCase2()
191 .check(screenLeft(equalTo(parentLeft + desiredPadding))) in testCase2()
199 .check(screenLeft(is(equalTo(parentLeft + desiredPadding)))) in testCase2()
208 onView(withId(R.id.content3)).check(screenLeft(equalTo(desiredPadding))); in testCase2()
214 .check(screenLeft(is(parentWidth - desiredPadding - child4.getWidth()))) in testCase2()
[all …]
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java1390 int screenLeft = getScrollX(); in computeScrollDeltaToGetChildRectOnScreen() local
1391 int screenRight = screenLeft + width; in computeScrollDeltaToGetChildRectOnScreen()
1397 screenLeft += fadingEdge; in computeScrollDeltaToGetChildRectOnScreen()
1407 if (rect.right > screenRight && rect.left > screenLeft) { in computeScrollDeltaToGetChildRectOnScreen()
1414 scrollXDelta += (rect.left - screenLeft); in computeScrollDeltaToGetChildRectOnScreen()
1425 } else if (rect.left < screenLeft && rect.right < screenRight) { in computeScrollDeltaToGetChildRectOnScreen()
1435 scrollXDelta -= (screenLeft - rect.left); in computeScrollDeltaToGetChildRectOnScreen()
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/
DMoreViewAssertions.java99 public static ViewAssertion screenLeft(final Matcher<Integer> matcher) {