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.java85 final int[] viewOnScreenXY = new int[2]; in emulateTapOnView() local
86 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView()
87 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
88 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
123 final int[] viewOnScreenXY = new int[2]; in emulateDoubleTapOnView() local
124 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()
125 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
126 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
381 final int[] viewOnScreenXY = new int[2]; in emulateFlingGesture() local
382 view.getLocationOnScreen(viewOnScreenXY); in emulateFlingGesture()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java672 int[] viewOnScreenXY = new int[2]; in testShowAsDropDownWithOffsets() local
686 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testShowAsDropDownWithOffsets()
688 assertEquals(anchorXY[0] + xOff + viewInWindowXY[0], viewOnScreenXY[0]); in testShowAsDropDownWithOffsets()
689 assertEquals(anchorXY[1] + height + yOff + viewInWindowXY[1], viewOnScreenXY[1]); in testShowAsDropDownWithOffsets()
697 int[] viewOnScreenXY = new int[2]; in testOverlapAnchor() local
711 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testOverlapAnchor()
713 assertEquals(anchorXY[0] + viewInWindowXY[0], viewOnScreenXY[0]); in testOverlapAnchor()
714 assertEquals(anchorXY[1] + viewInWindowXY[1], viewOnScreenXY[1]); in testOverlapAnchor()
DTextViewTest.java6756 final int[] viewOnScreenXY = new int[2]; in testClickableSpanOnClickDragOutside() local
6757 mTextView.getLocationOnScreen(viewOnScreenXY); in testClickableSpanOnClickDragOutside()
6760 swipeCoordinates.put(0, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside, in testClickableSpanOnClickDragOutside()
6761 viewOnScreenXY[1] + spanDetails.mYPosOutside)); in testClickableSpanOnClickDragOutside()
6762 swipeCoordinates.put(1, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside + 50, in testClickableSpanOnClickDragOutside()
6763 viewOnScreenXY[1] + spanDetails.mYPosOutside + 50)); in testClickableSpanOnClickDragOutside()
7738 int[] viewOnScreenXY = new int[2]; in testSmartSelection_dragSelection() local
7739 mTextView.getLocationOnScreen(viewOnScreenXY); in testSmartSelection_dragSelection()
7740 int startX = start.x + viewOnScreenXY[0]; in testSmartSelection_dragSelection()
7741 int startY = start.y + viewOnScreenXY[1]; in testSmartSelection_dragSelection()