Searched refs:anchorView (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PopupWindowTest.java | 905 final View anchorView = mActivity.findViewById(R.id.anchor_upper); in testGetMaxAvailableHeight_topAnchor() local 907 final int expected = getVisibleDisplayFrame(anchorView).bottom - getViewBottom(anchorView); in testGetMaxAvailableHeight_topAnchor() 908 final int actual = mPopupWindow.getMaxAvailableHeight(anchorView); in testGetMaxAvailableHeight_topAnchor() 916 final View anchorView = mActivity.findViewById(R.id.anchor_upper); in testGetMaxAvailableHeight_topAnchor_ignoringBottomDecoration() local 918 final int expected = getDisplayFrame(anchorView).bottom - getViewBottom(anchorView); in testGetMaxAvailableHeight_topAnchor_ignoringBottomDecoration() 919 final int actual = mPopupWindow.getMaxAvailableHeight(anchorView, 0, IGNORE_BOTTOM_DECOR); in testGetMaxAvailableHeight_topAnchor_ignoringBottomDecoration() 927 final View anchorView = mActivity.findViewById(R.id.anchor_upper); in testGetMaxAvailableHeight_topAnchor_offset2() local 930 getVisibleDisplayFrame(anchorView).bottom - getViewBottom(anchorView) - 2; in testGetMaxAvailableHeight_topAnchor_offset2() 931 final int actual = mPopupWindow.getMaxAvailableHeight(anchorView, 2); in testGetMaxAvailableHeight_topAnchor_offset2() 939 final View anchorView = mActivity.findViewById(R.id.anchor_upper); in testGetMaxAvailableHeight_topAnchor_offset2_ignoringBottomDecoration() local [all …]
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceControlInputReceiverTests.java | 120 AnchorView anchorView = new AnchorView(mActivity.getApplicationContext(), sc); in testLocalSurfaceControlReceivesInput() local 125 mActivity.setContentView(anchorView); in testLocalSurfaceControlReceivesInput() 129 anchorView.waitForDrawn(); in testLocalSurfaceControlReceivesInput() 173 AnchorView anchorView = new AnchorView(mActivity.getApplicationContext(), sc); in testRemoteSurfaceControlReceivesInput() local 194 mActivity.setContentView(anchorView); in testRemoteSurfaceControlReceivesInput() 200 anchorView.waitForDrawn(); in testRemoteSurfaceControlReceivesInput() 251 AnchorView anchorView = new AnchorView(mActivity.getApplicationContext(), sc); in testNonBatchedSurfaceControlReceivesInput() local 255 mActivity.setContentView(anchorView); in testNonBatchedSurfaceControlReceivesInput() 258 anchorView.waitForDrawn(); in testNonBatchedSurfaceControlReceivesInput()
|
D | AttachedSurfaceControlTest.java | 353 GreenAnchorViewWithInsets anchorView = new GreenAnchorViewWithInsets(a, in testCropWithChildBoundingInsets() 355 parentLayout.addView(anchorView, in testCropWithChildBoundingInsets() 358 view[0] = anchorView; in testCropWithChildBoundingInsets()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 107 ActivityTestRule<?> activityTestRule, View anchorView, in emulateTapOnView() argument 109 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateTapOnView() 112 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView() 154 ActivityTestRule<?> activityTestRule, View anchorView, in emulateDoubleTapOnView() argument 156 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateDoubleTapOnView() 159 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateDoubleTapOnView()
|