Searched refs:anchorView (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PopupWindowTest.java | 731 View anchorView = mActivity.findViewById(R.id.anchor_upper); in testGetMaxAvailableHeight() local 732 anchorView.getWindowVisibleDisplayFrame(displayFrame); in testGetMaxAvailableHeight() 734 int available = displayHeight - anchorView.getHeight(); in testGetMaxAvailableHeight() 735 int maxAvailableHeight = mPopupWindow.getMaxAvailableHeight(anchorView); in testGetMaxAvailableHeight() 737 mPopupWindow.getMaxAvailableHeight(anchorView, 0, true); in testGetMaxAvailableHeight() 743 int maxAvailableHeightWithOffset = mPopupWindow.getMaxAvailableHeight(anchorView, 2); in testGetMaxAvailableHeight() 747 mPopupWindow.getMaxAvailableHeight(anchorView, maxAvailableHeight); in testGetMaxAvailableHeight() 752 mPopupWindow.getMaxAvailableHeight(anchorView, maxAvailableHeight / 2 - 1); in testGetMaxAvailableHeight() 756 maxAvailableHeightWithOffset = mPopupWindow.getMaxAvailableHeight(anchorView, -1); in testGetMaxAvailableHeight() 761 mPopupWindow.getMaxAvailableHeight(anchorView, 2, true); in testGetMaxAvailableHeight() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 81 public static void emulateTapOnView(Instrumentation instrumentation, View anchorView, in emulateTapOnView() argument 83 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateTapOnView() 86 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView() 119 public static void emulateDoubleTapOnView(Instrumentation instrumentation, View anchorView, in emulateDoubleTapOnView() argument 121 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateDoubleTapOnView() 124 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()
|