Home
last modified time | relevance | path

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

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsTouchUtils.java60 final int[] viewOnScreenXY = new int[2]; in emulateTapOnView() local
61 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView()
62 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
63 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
98 final int[] viewOnScreenXY = new int[2]; in emulateDoubleTapOnView() local
99 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()
100 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
101 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
307 final int[] viewOnScreenXY = new int[2]; in emulateFlingGesture() local
308 view.getLocationOnScreen(viewOnScreenXY); in emulateFlingGesture()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java669 int[] viewOnScreenXY = new int[2]; in testShowAsDropDownWithOffsets() local
683 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testShowAsDropDownWithOffsets()
685 assertEquals(anchorXY[0] + xOff + viewInWindowXY[0], viewOnScreenXY[0]); in testShowAsDropDownWithOffsets()
686 assertEquals(anchorXY[1] + height + yOff + viewInWindowXY[1], viewOnScreenXY[1]); in testShowAsDropDownWithOffsets()
694 int[] viewOnScreenXY = new int[2]; in testOverlapAnchor() local
708 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testOverlapAnchor()
710 assertEquals(anchorXY[0] + viewInWindowXY[0], viewOnScreenXY[0]); in testOverlapAnchor()
711 assertEquals(anchorXY[1] + viewInWindowXY[1], viewOnScreenXY[1]); in testOverlapAnchor()
DTextViewTest.java6593 final int[] viewOnScreenXY = new int[2]; in testClickableSpanOnClickDragOutside() local
6594 mTextView.getLocationOnScreen(viewOnScreenXY); in testClickableSpanOnClickDragOutside()
6597 swipeCoordinates.put(0, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside, in testClickableSpanOnClickDragOutside()
6598 viewOnScreenXY[1] + spanDetails.mYPosOutside)); in testClickableSpanOnClickDragOutside()
6599 swipeCoordinates.put(1, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside + 50, in testClickableSpanOnClickDragOutside()
6600 viewOnScreenXY[1] + spanDetails.mYPosOutside + 50)); in testClickableSpanOnClickDragOutside()
7498 int[] viewOnScreenXY = new int[2]; in testSmartSelection_dragSelection() local
7499 mTextView.getLocationOnScreen(viewOnScreenXY); in testSmartSelection_dragSelection()
7500 int startX = start.x + viewOnScreenXY[0]; in testSmartSelection_dragSelection()
7501 int startY = start.y + viewOnScreenXY[1]; in testSmartSelection_dragSelection()