Searched refs:viewOnScreenXY (Results 1 – 5 of 5) sorted by relevance
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 124 final int[] viewOnScreenXY = new int[2]; in emulateTapOnView() local 125 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView() 126 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView() 127 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView() 171 final int[] viewOnScreenXY = new int[2]; in emulateDoubleTapOnView() local 172 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView() 173 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView() 174 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView() 609 final int[] viewOnScreenXY = new int[2]; in emulateFlingGesture() local 610 view.getLocationOnScreen(viewOnScreenXY); in emulateFlingGesture() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInputTests.java | 168 final int[] viewOnScreenXY = new int[2]; in testMoveWindowAndTap() local 169 mView.getLocationOnScreen(viewOnScreenXY); in testMoveWindowAndTap() 171 new Point(viewOnScreenXY[0] + vW / 2, viewOnScreenXY[1] + vH / 2); in testMoveWindowAndTap() 172 final Rect realBounds = new Rect(viewOnScreenXY[0], viewOnScreenXY[1], in testMoveWindowAndTap() 173 viewOnScreenXY[0] + vW, viewOnScreenXY[1] + vH); in testMoveWindowAndTap()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 513 final int[] viewOnScreenXY = new int[2]; in getScreenCoords() local 514 textView.getLocationOnScreen(viewOnScreenXY); in getScreenCoords() 517 return new Point(viewOnScreenXY[0] + x, viewOnScreenXY[1] + y); in getScreenCoords()
|
D | PopupWindowTest.java | 527 int[] viewOnScreenXY = new int[2]; in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen() local 535 popup.getContentView().getLocationOnScreen(viewOnScreenXY); in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen() 536 assertEquals(appFrameLeft, viewOnScreenXY[0]); in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen() 537 assertEquals(appFrameTop, viewOnScreenXY[1]); in testShowAsDropDown_ClipToScreen_Overlap_OutOfScreen() 728 int[] viewOnScreenXY = new int[2]; in testShowAsDropDownWithOffsets() local 742 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testShowAsDropDownWithOffsets() 744 assertEquals(anchorXY[0] + xOff + viewInWindowXY[0], viewOnScreenXY[0]); in testShowAsDropDownWithOffsets() 745 assertEquals(anchorXY[1] + height + yOff + viewInWindowXY[1], viewOnScreenXY[1]); in testShowAsDropDownWithOffsets() 753 int[] viewOnScreenXY = new int[2]; in testOverlapAnchor() local 767 mPopupWindow.getContentView().getLocationOnScreen(viewOnScreenXY); in testOverlapAnchor() [all …]
|
D | TextViewTest.java | 7252 final int[] viewOnScreenXY = new int[2]; in testClickableSpanOnClickDragOutside() local 7253 mTextView.getLocationOnScreen(viewOnScreenXY); in testClickableSpanOnClickDragOutside() 7256 swipeCoordinates.put(0, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside, in testClickableSpanOnClickDragOutside() 7257 viewOnScreenXY[1] + spanDetails.mYPosOutside)); in testClickableSpanOnClickDragOutside() 7258 swipeCoordinates.put(1, new Point(viewOnScreenXY[0] + spanDetails.mXPosOutside + 50, in testClickableSpanOnClickDragOutside() 7259 viewOnScreenXY[1] + spanDetails.mYPosOutside + 50)); in testClickableSpanOnClickDragOutside() 8334 int[] viewOnScreenXY = new int[2]; in testSmartSelection_dragSelection() local 8335 mTextView.getLocationOnScreen(viewOnScreenXY); in testSmartSelection_dragSelection() 8336 int startX = start.x + viewOnScreenXY[0]; in testSmartSelection_dragSelection() 8337 int startY = start.y + viewOnScreenXY[1]; in testSmartSelection_dragSelection()
|