Searched refs:upperAnchor (Results 1 – 2 of 2) sorted by relevance
653 final View upperAnchor = mActivity.findViewById(R.id.anchor_upper); in testShowAtLocation() local654 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() local687 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() local712 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()288 + upperAnchor.getHeight() + verticalOffset; in verifyAnchoring()