Home
last modified time | relevance | path

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

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DTouchExplorerTest.java205 int[] viewLocation = new int[2]; in setUp() local
209 mView.getLocationOnScreen(viewLocation); in setUp()
210 mTapLocation = new PointF(viewLocation[0] + midX, viewLocation[1] + midY); in setUp()
656 int[] viewLocation = new int[2]; in getRightSideOfActivityWindowRegion() local
657 mView.getLocationOnScreen(viewLocation); in getRightSideOfActivityWindowRegion()
659 int top = viewLocation[1]; in getRightSideOfActivityWindowRegion()
660 int left = viewLocation[0] + mView.getWidth() / 2; in getRightSideOfActivityWindowRegion()
661 int right = viewLocation[0] + mView.getWidth(); in getRightSideOfActivityWindowRegion()
662 int bottom = viewLocation[1] + mView.getHeight(); in getRightSideOfActivityWindowRegion()
DTouchInteractionControllerTest.java187 int[] viewLocation = new int[2]; in setUp() local
191 mView.getLocationOnScreen(viewLocation); in setUp()
192 mTapLocation = new PointF(viewLocation[0] + midX, viewLocation[1] + midY); in setUp()
DAccessibilityMagnificationTest.java1521 final int[] viewLocation = new int[2]; in adjustViewBoundsIfNeeded() local
1522 topLeftview.getLocationOnScreen(viewLocation); in adjustViewBoundsIfNeeded()
1523 final Rect viewBounds = new Rect(viewLocation[0], viewLocation[1], in adjustViewBoundsIfNeeded()
1524 viewLocation[0] + topLeftview.getWidth(), in adjustViewBoundsIfNeeded()
1525 viewLocation[1] + topLeftview.getHeight()); in adjustViewBoundsIfNeeded()
DAccessibilityEndToEndTest.java1407 final int[] viewLocation = new int[2]; in testAccessibilityDataSensitive_canObserveHoverEvent() local
1408 view.getLocationOnScreen(viewLocation); in testAccessibilityDataSensitive_canObserveHoverEvent()
1409 final int x = viewLocation[0] + view.getWidth() / 2; in testAccessibilityDataSensitive_canObserveHoverEvent()
1410 final int y = viewLocation[1] + view.getHeight() / 2; in testAccessibilityDataSensitive_canObserveHoverEvent()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java150 Point viewLocation = clickLocationTask.get(5, TimeUnit.SECONDS); in testActionOutsideDoesNotContainedObscuredInformation() local
151 injectTap(viewLocation.x, viewLocation.y); in testActionOutsideDoesNotContainedObscuredInformation()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowInputTests.java783 final int[] viewLocation = new int[2]; in placeWindowAtCenterOfView() local
784 view.getLocationOnScreen(viewLocation); in placeWindowAtCenterOfView()
785 lp.x = viewLocation[0] + (view.getWidth() - lp.width) / 2; in placeWindowAtCenterOfView()
786 lp.y = viewLocation[1] + (view.getHeight() - lp.height) / 2; in placeWindowAtCenterOfView()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DDragDropTest.java242 int [] viewLocation = new int[2]; in expectEventWithOffset() local
243 v.getLocationOnScreen(viewLocation); in expectEventWithOffset()
247 locationViewLocation[0] - viewLocation[0] + offset / mInvCompatScale, in expectEventWithOffset()
248 locationViewLocation[1] - viewLocation[1] + offset / mInvCompatScale, in expectEventWithOffset()