Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DMagnifierTest.java234 final int verticalOffset = -dpToPixelSize(42f); in testMagnifierDefaultParameters_withDeprecatedConstructor() local
235 assertEquals(verticalOffset, magnifier.getDefaultVerticalSourceToMagnifierOffset()); in testMagnifierDefaultParameters_withDeprecatedConstructor()
263 final int verticalOffset = -dpToPixelSize(42f); in testMagnifierDefaultParameters_withBuilder() local
264 assertEquals(verticalOffset, magnifier.getDefaultVerticalSourceToMagnifierOffset()); in testMagnifierDefaultParameters_withBuilder()
520 final int verticalOffset = -10; in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed() local
523 .setDefaultSourceToMagnifierOffset(horizontalOffset, verticalOffset) in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed()
534 assertEquals(sourceCoords.y + mMagnifier.getSourceHeight() / 2f + verticalOffset, in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed()
DLinearLayoutTest.java470 int verticalOffset = (parentHeight - leftView.getHeight()) / 2; in testVerticalCenterGravityOnHorizontalLayout() local
471 assertEquals(verticalOffset, leftView.getTop()); in testVerticalCenterGravityOnHorizontalLayout()
472 assertEquals(verticalOffset + leftView.getHeight(), leftView.getBottom()); in testVerticalCenterGravityOnHorizontalLayout()
476 verticalOffset = (parentHeight - centerView.getHeight()) / 2; in testVerticalCenterGravityOnHorizontalLayout()
477 assertEquals(verticalOffset, centerView.getTop()); in testVerticalCenterGravityOnHorizontalLayout()
478 assertEquals(verticalOffset + centerView.getHeight(), centerView.getBottom()); in testVerticalCenterGravityOnHorizontalLayout()
482 verticalOffset = (parentHeight - rightView.getHeight()) / 2; in testVerticalCenterGravityOnHorizontalLayout()
483 assertEquals(verticalOffset, rightView.getTop()); in testVerticalCenterGravityOnHorizontalLayout()
484 assertEquals(verticalOffset + rightView.getHeight(), rightView.getBottom()); in testVerticalCenterGravityOnHorizontalLayout()
DListPopupWindowTest.java256 private void verifyAnchoring(int horizontalOffset, int verticalOffset, int gravity) { in verifyAnchoring() argument
288 + upperAnchor.getHeight() + verticalOffset; in verifyAnchoring()
924 Builder withVerticalOffset(int verticalOffset) { in withVerticalOffset() argument
925 mVerticalOffset = verticalOffset; in withVerticalOffset()