Searched refs:upperAnchor (Results 1 – 2 of 2) sorted by relevance
699 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local700 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() local733 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() local758 upperAnchor.getLocationOnScreen(anchorXY); in testOverlapAnchor()[all …]
257 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in verifyAnchoring() local264 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()