Home
last modified time | relevance | path

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

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsTouchUtils.java90 final int[] viewOnScreenXY = new int[2]; in emulateTapOnView() local
91 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView()
92 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
93 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
136 final int[] viewOnScreenXY = new int[2]; in emulateDoubleTapOnView() local
137 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()
138 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
139 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
416 final int[] viewOnScreenXY = new int[2]; in emulateFlingGesture() local
417 view.getLocationOnScreen(viewOnScreenXY); in emulateFlingGesture()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsTouchUtils.java89 final int[] viewOnScreenXY = new int[2]; in emulateTapOnView() local
90 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView()
91 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
92 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
135 final int[] viewOnScreenXY = new int[2]; in emulateDoubleTapOnView() local
136 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()
137 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
138 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
415 final int[] viewOnScreenXY = new int[2]; in emulateFlingGesture() local
416 view.getLocationOnScreen(viewOnScreenXY); in emulateFlingGesture()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java682 int[] viewOnScreenXY = new int[2]; in testShowAsDropDownWithOffsets() local
696 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testShowAsDropDownWithOffsets()
698 assertEquals(anchorXY[0] + xOff + viewInWindowXY[0], viewOnScreenXY[0]); in testShowAsDropDownWithOffsets()
699 assertEquals(anchorXY[1] + height + yOff + viewInWindowXY[1], viewOnScreenXY[1]); in testShowAsDropDownWithOffsets()
707 int[] viewOnScreenXY = new int[2]; in testOverlapAnchor() local
721 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testOverlapAnchor()
723 assertEquals(anchorXY[0] + viewInWindowXY[0], viewOnScreenXY[0]); in testOverlapAnchor()
724 assertEquals(anchorXY[1] + viewInWindowXY[1], viewOnScreenXY[1]); in testOverlapAnchor()
DTextViewTest.java7115 final int[] viewOnScreenXY = new int[2]; in testClickableSpanOnClickDragOutside() local
7116 mTextView.getLocationOnScreen(viewOnScreenXY); in testClickableSpanOnClickDragOutside()
7119 swipeCoordinates.put(0, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside, in testClickableSpanOnClickDragOutside()
7120 viewOnScreenXY[1] + spanDetails.mYPosOutside)); in testClickableSpanOnClickDragOutside()
7121 swipeCoordinates.put(1, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside + 50, in testClickableSpanOnClickDragOutside()
7122 viewOnScreenXY[1] + spanDetails.mYPosOutside + 50)); in testClickableSpanOnClickDragOutside()
8097 int[] viewOnScreenXY = new int[2]; in testSmartSelection_dragSelection() local
8098 mTextView.getLocationOnScreen(viewOnScreenXY); in testSmartSelection_dragSelection()
8099 int startX = start.x + viewOnScreenXY[0]; in testSmartSelection_dragSelection()
8100 int startY = start.y + viewOnScreenXY[1]; in testSmartSelection_dragSelection()