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.java699 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local
700 final WindowInsets windowInsets = upperAnchor.getRootWindowInsets(); in testShowAtLocation()
709 () -> mPopupWindow.showAtLocation(upperAnchor, Gravity.NO_GRAVITY, xOff, yOff)); in testShowAtLocation()
715 upperAnchor.getWindowDisplayFrame(containingRect); in testShowAtLocation()
732 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAsDropDownWithOffsets() local
733 upperAnchor.getLocationOnScreen(anchorXY); in testShowAsDropDownWithOffsets()
734 int height = upperAnchor.getHeight(); in testShowAsDropDownWithOffsets()
739 mActivityRule.runOnUiThread(() -> mPopupWindow.showAsDropDown(upperAnchor, xOff, yOff)); in testShowAsDropDownWithOffsets()
757 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testOverlapAnchor() local
758 upperAnchor.getLocationOnScreen(anchorXY); in testOverlapAnchor()
[all …]
DListPopupWindowTest.java257 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in verifyAnchoring() local
264 assertEquals(upperAnchor, mPopupWindow.getAnchorView()); in verifyAnchoring()
269 upperAnchor.getLocationOnScreen(anchorXY); in verifyAnchoring()
275 Gravity.getAbsoluteGravity(gravity, upperAnchor.getLayoutDirection()); in verifyAnchoring()
277 expectedListViewOnScreenX -= (listView.getWidth() - upperAnchor.getWidth()); in verifyAnchoring()
289 + upperAnchor.getHeight() + verticalOffset; in verifyAnchoring()