Searched refs:upperAnchor (Results 1 – 2 of 2) sorted by relevance
578 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local588 () -> mPopupWindow.showAtLocation(upperAnchor, Gravity.NO_GRAVITY, xOff, yOff)); in testShowAtLocation()608 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAsDropDownWithOffsets() local609 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() local633 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 …]
204 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in verifyAnchoring() local211 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()