Home
last modified time | relevance | path

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

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsTouchUtils.java111 final int[] viewOnScreenXY = new int[2]; in emulateTapOnView() local
112 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView()
113 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
114 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
158 final int[] viewOnScreenXY = new int[2]; in emulateDoubleTapOnView() local
159 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()
160 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
161 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
567 final int[] viewOnScreenXY = new int[2]; in emulateFlingGesture() local
568 view.getLocationOnScreen(viewOnScreenXY); in emulateFlingGesture()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java551 int[] viewOnScreenXY = new int[2]; in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen() local
559 popup.getContentView().getLocationOnScreen(viewOnScreenXY); in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen()
560 assertEquals(appFrameLeft, viewOnScreenXY[0]); in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen()
561 assertEquals(appFrameTop, viewOnScreenXY[1]); in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen()
752 int[] viewOnScreenXY = new int[2]; in testShowAsDropDownWithOffsets() local
766 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testShowAsDropDownWithOffsets()
768 assertEquals(anchorXY[0] + xOff + viewInWindowXY[0], viewOnScreenXY[0]); in testShowAsDropDownWithOffsets()
769 assertEquals(anchorXY[1] + height + yOff + viewInWindowXY[1], viewOnScreenXY[1]); in testShowAsDropDownWithOffsets()
777 int[] viewOnScreenXY = new int[2]; in testOverlapAnchor() local
791 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testOverlapAnchor()
[all …]
DEditTextTest.java542 final int[] viewOnScreenXY = new int[2]; in getScreenCoords() local
543 textView.getLocationOnScreen(viewOnScreenXY); in getScreenCoords()
546 return new Point(viewOnScreenXY[0] + x, viewOnScreenXY[1] + y); in getScreenCoords()
DTextViewTest.java7773 final int[] viewOnScreenXY = new int[2]; in testClickableSpanOnClickDragOutside() local
7774 mTextView.getLocationOnScreen(viewOnScreenXY); in testClickableSpanOnClickDragOutside()
7777 swipeCoordinates.put(0, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside, in testClickableSpanOnClickDragOutside()
7778 viewOnScreenXY[1] + spanDetails.mYPosOutside)); in testClickableSpanOnClickDragOutside()
7779 swipeCoordinates.put(1, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside + 50, in testClickableSpanOnClickDragOutside()
7780 viewOnScreenXY[1] + spanDetails.mYPosOutside + 50)); in testClickableSpanOnClickDragOutside()
8876 int[] viewOnScreenXY = new int[2]; in testSmartSelection_dragSelection() local
8877 mTextView.getLocationOnScreen(viewOnScreenXY); in testSmartSelection_dragSelection()
8878 int startX = start.x + viewOnScreenXY[0]; in testSmartSelection_dragSelection()
8879 int startY = start.y + viewOnScreenXY[1]; in testSmartSelection_dragSelection()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlViewHostTests.java1587 final int[] viewOnScreenXY = new int[2]; in testEmbeddedWindowCanTransferTouchGestureToHost() local
1588 mSurfaceView.getLocationOnScreen(viewOnScreenXY); in testEmbeddedWindowCanTransferTouchGestureToHost()
1589 final int injectedX = viewOnScreenXY[0] + 1; in testEmbeddedWindowCanTransferTouchGestureToHost()
1590 final int injectedY = viewOnScreenXY[1] + 1; in testEmbeddedWindowCanTransferTouchGestureToHost()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java4775 final int[] viewOnScreenXY = new int[2]; in startDragAndDrop() local
4777 decorView.getLocationOnScreen(viewOnScreenXY); in startDragAndDrop()
4778 int xOnScreen = viewOnScreenXY[0] + decorView.getWidth() / 2; in startDragAndDrop()
4779 int yOnScreen = viewOnScreenXY[1] + decorView.getHeight() / 2; in startDragAndDrop()