Searched refs:upperAnchor (Results 1 – 2 of 2) sorted by relevance
723 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local724 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() local757 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() local782 upperAnchor.getLocationOnScreen(anchorXY); in testOverlapAnchor()[all …]
273 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in verifyAnchoring() local280 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()