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.java723 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local
724 final WindowInsets windowInsets = upperAnchor.getRootWindowInsets(); in testShowAtLocation()
733 () -> mPopupWindow.showAtLocation(upperAnchor, Gravity.NO_GRAVITY, xOff, yOff)); in testShowAtLocation()
739 upperAnchor.getWindowDisplayFrame(containingRect); in testShowAtLocation()
756 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAsDropDownWithOffsets() local
757 upperAnchor.getLocationOnScreen(anchorXY); in testShowAsDropDownWithOffsets()
758 int height = upperAnchor.getHeight(); in testShowAsDropDownWithOffsets()
763 mActivityRule.runOnUiThread(() -> mPopupWindow.showAsDropDown(upperAnchor, xOff, yOff)); in testShowAsDropDownWithOffsets()
781 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testOverlapAnchor() local
782 upperAnchor.getLocationOnScreen(anchorXY); in testOverlapAnchor()
[all …]
DListPopupWindowTest.java273 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in verifyAnchoring() local
280 assertEquals(upperAnchor, mPopupWindow.getAnchorView()); in verifyAnchoring()
285 upperAnchor.getLocationOnScreen(anchorXY); in verifyAnchoring()
291 Gravity.getAbsoluteGravity(gravity, upperAnchor.getLayoutDirection()); in verifyAnchoring()
293 expectedListViewOnScreenX -= (listView.getWidth() - upperAnchor.getWidth()); in verifyAnchoring()
305 + upperAnchor.getHeight() + verticalOffset; in verifyAnchoring()