Home
last modified time | relevance | path

Searched refs:horizontalOffset (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DLinearLayoutTest.java562 int horizontalOffset = (parentWidth - topView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout() local
565 assertEquals(horizontalOffset, topView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout()
566 assertEquals(horizontalOffset + topView.getWidth(), topView.getRight()); in testHorizontalCenterGravityOnVerticalLayout()
568 horizontalOffset = (parentWidth - centerView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout()
571 assertEquals(horizontalOffset, centerView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout()
572 assertEquals(horizontalOffset + centerView.getWidth(), centerView.getRight()); in testHorizontalCenterGravityOnVerticalLayout()
574 horizontalOffset = (parentWidth - bottomView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout()
577 assertEquals(horizontalOffset, bottomView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout()
578 assertEquals(horizontalOffset + bottomView.getWidth(), bottomView.getRight()); in testHorizontalCenterGravityOnVerticalLayout()
DListPopupWindowTest.java242 private void verifyAnchoring(int horizontalOffset, int verticalOffset, int gravity) { in verifyAnchoring() argument
256 int expectedListViewOnScreenX = anchorXY[0] + listViewInWindowXY[0] + horizontalOffset; in verifyAnchoring()
878 public Builder withHorizontalOffset(int horizontalOffset) { in withHorizontalOffset() argument
879 mHorizontalOffset = horizontalOffset; in withHorizontalOffset()