Home
last modified time | relevance | path

Searched refs:anchorView (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java728 View anchorView = mActivity.findViewById(R.id.anchor_upper); in testGetMaxAvailableHeight() local
729 anchorView.getWindowVisibleDisplayFrame(displayFrame); in testGetMaxAvailableHeight()
731 int available = displayHeight - anchorView.getHeight(); in testGetMaxAvailableHeight()
732 int maxAvailableHeight = mPopupWindow.getMaxAvailableHeight(anchorView); in testGetMaxAvailableHeight()
734 mPopupWindow.getMaxAvailableHeight(anchorView, 0, true); in testGetMaxAvailableHeight()
740 int maxAvailableHeightWithOffset = mPopupWindow.getMaxAvailableHeight(anchorView, 2); in testGetMaxAvailableHeight()
744 mPopupWindow.getMaxAvailableHeight(anchorView, maxAvailableHeight); in testGetMaxAvailableHeight()
749 mPopupWindow.getMaxAvailableHeight(anchorView, maxAvailableHeight / 2 - 1); in testGetMaxAvailableHeight()
753 maxAvailableHeightWithOffset = mPopupWindow.getMaxAvailableHeight(anchorView, -1); in testGetMaxAvailableHeight()
758 mPopupWindow.getMaxAvailableHeight(anchorView, 2, true); in testGetMaxAvailableHeight()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsTouchUtils.java56 public static void emulateTapOnView(Instrumentation instrumentation, View anchorView, in emulateTapOnView() argument
58 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateTapOnView()
61 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView()
94 public static void emulateDoubleTapOnView(Instrumentation instrumentation, View anchorView, in emulateDoubleTapOnView() argument
96 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateDoubleTapOnView()
99 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()