Searched refs:horizontalOffset (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/location/src/android/location/cts/ |
D | GnssPseudorangeVerificationTest.java | 343 double horizontalOffset = calculatedLocation.distanceTo(locationFromApi); in testPseudoPosition() local 345 Log.i(TAG, "Calculated Location Offset: " + horizontalOffset in testPseudoPosition() 349 + horizontalOffset + " meters. Threshold = " in testPseudoPosition() 351 horizontalOffset < horizontalOffsetThresholdMeters); in testPseudoPosition()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MagnifierTest.java | 236 final int horizontalOffset = dpToPixelSize(0f); in testMagnifierDefaultParameters_withDeprecatedConstructor() local 237 assertEquals(horizontalOffset, magnifier.getDefaultHorizontalSourceToMagnifierOffset()); in testMagnifierDefaultParameters_withDeprecatedConstructor() 265 final int horizontalOffset = dpToPixelSize(0f); in testMagnifierDefaultParameters_withBuilder() local 266 assertEquals(horizontalOffset, magnifier.getDefaultHorizontalSourceToMagnifierOffset()); in testMagnifierDefaultParameters_withBuilder() 519 final int horizontalOffset = 5; in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed() local 523 .setDefaultSourceToMagnifierOffset(horizontalOffset, verticalOffset) in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed() 532 assertEquals(sourceCoords.x + mMagnifier.getSourceWidth() / 2f + horizontalOffset, in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed()
|
D | LinearLayoutTest.java | 562 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()
|
D | ListPopupWindowTest.java | 256 private void verifyAnchoring(int horizontalOffset, int verticalOffset, int gravity) { in verifyAnchoring() argument 273 int expectedListViewOnScreenX = anchorXY[0] + listViewInWindowXY[0] + horizontalOffset; in verifyAnchoring() 919 Builder withHorizontalOffset(int horizontalOffset) { in withHorizontalOffset() argument 920 mHorizontalOffset = horizontalOffset; in withHorizontalOffset()
|