Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java578 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local
588 () -> mPopupWindow.showAtLocation(upperAnchor, Gravity.NO_GRAVITY, xOff, yOff)); in testShowAtLocation()
608 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAsDropDownWithOffsets() local
609 upperAnchor.getLocationOnScreen(anchorXY); in testShowAsDropDownWithOffsets()
610 int height = upperAnchor.getHeight(); in testShowAsDropDownWithOffsets()
615 mInstrumentation.runOnMainSync(() -> mPopupWindow.showAsDropDown(upperAnchor, xOff, yOff)); in testShowAsDropDownWithOffsets()
632 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testOverlapAnchor() local
633 upperAnchor.getLocationOnScreen(anchorXY); in testOverlapAnchor()
639 mInstrumentation.runOnMainSync(() -> mPopupWindow.showAsDropDown(upperAnchor, 0, 0)); in testOverlapAnchor()
992 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testIsAboveAnchor() local
[all …]
DListPopupWindowTest.java204 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in verifyAnchoring() local
211 assertEquals(upperAnchor, mPopupWindow.getAnchorView()); in verifyAnchoring()
214 upperAnchor.getLocationOnScreen(anchorXY); in verifyAnchoring()
219 Gravity.getAbsoluteGravity(gravity, upperAnchor.getLayoutDirection()); in verifyAnchoring()
221 expectedListViewOnScreenX -= (listView.getWidth() - upperAnchor.getWidth()); in verifyAnchoring()
224 + upperAnchor.getHeight() + verticalOffset; in verifyAnchoring()