Searched refs:horizontalOffset (Results 1 – 4 of 4) sorted by relevance
/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | GnssPseudorangeVerificationTest.java | 358 double horizontalOffset = calculatedLocation.distanceTo(locationFromApi); in testPseudoPosition() local 360 Log.i(TAG, "Calculated Location Offset: " + horizontalOffset in testPseudoPosition() 364 + horizontalOffset + " meters. Threshold = " in testPseudoPosition() 366 horizontalOffset < horizontalOffsetThresholdMeters); in testPseudoPosition()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MagnifierTest.java | 245 final int horizontalOffset = dpToPixelSize(0f); in testMagnifierDefaultParameters_withDeprecatedConstructor() local 246 assertEquals(horizontalOffset, magnifier.getDefaultHorizontalSourceToMagnifierOffset()); in testMagnifierDefaultParameters_withDeprecatedConstructor() 274 final int horizontalOffset = dpToPixelSize(0f); in testMagnifierDefaultParameters_withBuilder() local 275 assertEquals(horizontalOffset, magnifier.getDefaultHorizontalSourceToMagnifierOffset()); in testMagnifierDefaultParameters_withBuilder() 528 final int horizontalOffset = 5; in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed() local 532 .setDefaultSourceToMagnifierOffset(horizontalOffset, verticalOffset) in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed() 541 assertEquals(sourceCoords.x + mMagnifier.getSourceWidth() / 2f + horizontalOffset, in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed()
|
D | LinearLayoutTest.java | 571 int horizontalOffset = (parentWidth - topView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout() local 574 assertEquals(horizontalOffset, topView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout() 575 assertEquals(horizontalOffset + topView.getWidth(), topView.getRight()); in testHorizontalCenterGravityOnVerticalLayout() 577 horizontalOffset = (parentWidth - centerView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout() 580 assertEquals(horizontalOffset, centerView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout() 581 assertEquals(horizontalOffset + centerView.getWidth(), centerView.getRight()); in testHorizontalCenterGravityOnVerticalLayout() 583 horizontalOffset = (parentWidth - bottomView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout() 586 assertEquals(horizontalOffset, bottomView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout() 587 assertEquals(horizontalOffset + bottomView.getWidth(), bottomView.getRight()); in testHorizontalCenterGravityOnVerticalLayout()
|
D | ListPopupWindowTest.java | 272 private void verifyAnchoring(int horizontalOffset, int verticalOffset, int gravity) { in verifyAnchoring() argument 289 int expectedListViewOnScreenX = anchorXY[0] + listViewInWindowXY[0] + horizontalOffset; in verifyAnchoring() 1035 Builder withHorizontalOffset(int horizontalOffset) { in withHorizontalOffset() argument 1036 mHorizontalOffset = horizontalOffset; in withHorizontalOffset()
|