Home
last modified time | relevance | path

Searched refs:viewXY (Results 1 – 2 of 2) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowUntrustedTouchTest.java708 int[] viewXY = new int[2]; in testWhenSelfTextToastWindow_allowsTouch() local
709 mContainer.getLocationOnScreen(viewXY); in testWhenSelfTextToastWindow_allowsTouch()
710 Rect containerRect = new Rect(viewXY[0], viewXY[1], viewXY[0] + mContainer.getWidth(), in testWhenSelfTextToastWindow_allowsTouch()
711 viewXY[1] + mContainer.getHeight()); in testWhenSelfTextToastWindow_allowsTouch()
1003 int[] viewXY = new int[2]; in addSawOverlay() local
1004 mContainer.getLocationOnScreen(viewXY); in addSawOverlay()
1005 getService(packageName).showSystemAlertWindow(name, opacity, viewXY[0], viewXY[1]); in addSawOverlay()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java1429 int[] viewXY = new int[2]; in testUpdateDimensionAndAlignAnchorViewWithOffsets() local
1451 mPopupWindow.getContentView().getLocationOnScreen(viewXY); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1454 assertEquals(anchorXY[0] + 20 + viewInWindowOff[0], viewXY[0]); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1455 assertEquals(anchorXY[1] + anchorView.getHeight() + 50 + viewInWindowOff[1], viewXY[1]); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1465 mPopupWindow.getContentView().getLocationOnScreen(viewXY); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1468 assertEquals(anchorXY[0] + 10 + viewInWindowOff[0], viewXY[0]); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1469 assertEquals(anchorXY[1] + anchorView.getHeight() + 50 + viewInWindowOff[1], viewXY[1]); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1481 mPopupWindow.getContentView().getLocationOnScreen(viewXY); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1484 assertEquals(newXY[0] + viewInWindowOff[0], viewXY[0]); in testUpdateDimensionAndAlignAnchorViewWithOffsets()
1485 assertEquals(newXY[1] + anotherView.getHeight() + viewInWindowOff[1], viewXY[1]); in testUpdateDimensionAndAlignAnchorViewWithOffsets()