Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DMagnifierTest.java311 final Point sourcePosition = mMagnifier.getSourcePosition(); in testShow() local
312 assertNotNull(sourcePosition); in testShow()
314 sourcePosition.x + mMagnifier.getSourceWidth() / 2f, PIXEL_COMPARISON_DELTA); in testShow()
316 sourcePosition.y + mMagnifier.getSourceHeight() / 2f, PIXEL_COMPARISON_DELTA); in testShow()
321 assertEquals(sourcePosition.x + mMagnifier.getDefaultHorizontalSourceToMagnifierOffset() in testShow()
324 assertEquals(sourcePosition.y + mMagnifier.getDefaultVerticalSourceToMagnifierOffset() in testShow()
614 Point sourcePosition = mMagnifier.getSourcePosition(); in testSourcePosition_respectsMaxVisibleBounds_inHorizontalScrollableContainer() local
615 assertNotNull(sourcePosition); in testSourcePosition_respectsMaxVisibleBounds_inHorizontalScrollableContainer()
616 assertEquals(containerPosition[0], sourcePosition.x, PIXEL_COMPARISON_DELTA); in testSourcePosition_respectsMaxVisibleBounds_inHorizontalScrollableContainer()
620 sourcePosition = mMagnifier.getSourcePosition(); in testSourcePosition_respectsMaxVisibleBounds_inHorizontalScrollableContainer()
[all …]