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.java653 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local
654 final WindowInsets windowInsets = upperAnchor.getRootWindowInsets(); in testShowAtLocation()
663 () -> mPopupWindow.showAtLocation(upperAnchor, Gravity.NO_GRAVITY, xOff, yOff)); in testShowAtLocation()
669 upperAnchor.getWindowDisplayFrame(containingRect); in testShowAtLocation()
686 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAsDropDownWithOffsets() local
687 upperAnchor.getLocationOnScreen(anchorXY); in testShowAsDropDownWithOffsets()
688 int height = upperAnchor.getHeight(); in testShowAsDropDownWithOffsets()
693 mActivityRule.runOnUiThread(() -> mPopupWindow.showAsDropDown(upperAnchor, xOff, yOff)); in testShowAsDropDownWithOffsets()
711 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testOverlapAnchor() local
712 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()
288 + upperAnchor.getHeight() + verticalOffset; in verifyAnchoring()