Searched refs:anchorView (Results 1 - 14 of 14) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DTooltipPopup.java73 void show(View anchorView, int anchorX, int anchorY, boolean fromTouch, argument
81 computePosition(anchorView, anchorX, anchorY, fromTouch, mLayoutParams);
100 private void computePosition(View anchorView, int anchorX, int anchorY, boolean fromTouch, argument
106 if (anchorView.getWidth() >= tooltipPreciseAnchorThreshold) {
111 offsetX = anchorView.getWidth() / 2; // Center on the view horizontally.
116 if (anchorView.getHeight() >= tooltipPreciseAnchorThreshold) {
124 offsetBelow = anchorView.getHeight(); // Place below the view in most cases.
133 final View appView = getAppRootView(anchorView);
155 anchorView.getLocationOnScreen(mTmpAnchorPos);
183 private static View getAppRootView(View anchorView) { argument
[all...]
H A DActionMenuPresenter.java727 public OverflowPopup(Context context, MenuBuilder menu, View anchorView, argument
729 super(context, menu, anchorView, overflowOnly, R.attr.actionOverflowMenuStyle);
746 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu, View anchorView) { argument
747 super(context, subMenu, anchorView, false, R.attr.actionOverflowMenuStyle);
H A DListPopupWindow.java1077 final View anchorView = mDropDownAnchorView;
1079 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState();
1085 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState();
/frameworks/base/core/java/com/android/internal/view/
H A DTooltipPopup.java63 public void show(View anchorView, int anchorX, int anchorY, boolean fromTouch, argument
71 computePosition(anchorView, anchorX, anchorY, fromTouch, mLayoutParams);
94 private void computePosition(View anchorView, int anchorX, int anchorY, boolean fromTouch, argument
96 outParams.token = anchorView.getApplicationWindowToken();
102 if (anchorView.getWidth() >= tooltipPreciseAnchorThreshold) {
107 offsetX = anchorView.getWidth() / 2; // Center on the view horizontally.
112 if (anchorView.getHeight() >= tooltipPreciseAnchorThreshold) {
120 offsetBelow = anchorView.getHeight(); // Place below the view in most cases.
132 anchorView.getApplicationWindowToken());
140 anchorView
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopupHelper.java63 @NonNull View anchorView) {
64 this(context, menu, anchorView, false, com.android.internal.R.attr.popupMenuStyle, 0);
68 @NonNull View anchorView,
70 this(context, menu, anchorView, overflowOnly, popupStyleAttr, 0);
74 @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr,
78 mAnchorView = anchorView;
62 MenuPopupHelper(@onNull Context context, @NonNull MenuBuilder menu, @NonNull View anchorView) argument
67 MenuPopupHelper(@onNull Context context, @NonNull MenuBuilder menu, @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr) argument
73 MenuPopupHelper(@onNull Context context, @NonNull MenuBuilder menu, @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr, @StyleRes int popupStyleRes) argument
H A DStandardMenuPopup.java113 public StandardMenuPopup(Context context, MenuBuilder menu, View anchorView, int popupStyleAttr, argument
127 mAnchorView = anchorView;
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuPopupHelper.java70 @NonNull View anchorView) {
71 this(context, menu, anchorView, false, R.attr.popupMenuStyle, 0);
75 @NonNull View anchorView,
77 this(context, menu, anchorView, overflowOnly, popupStyleAttr, 0);
81 @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr,
85 mAnchorView = anchorView;
69 MenuPopupHelper(@onNull Context context, @NonNull MenuBuilder menu, @NonNull View anchorView) argument
74 MenuPopupHelper(@onNull Context context, @NonNull MenuBuilder menu, @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr) argument
80 MenuPopupHelper(@onNull Context context, @NonNull MenuBuilder menu, @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr, @StyleRes int popupStyleRes) argument
H A DStandardMenuPopup.java111 public StandardMenuPopup(Context context, MenuBuilder menu, View anchorView, int popupStyleAttr, argument
125 mAnchorView = anchorView;
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java292 * @param anchorView the anchor view to determine the tap location on the screen
296 public static void emulateTapOnView(Instrumentation instrumentation, View anchorView, argument
298 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop();
301 anchorView.getLocationOnScreen(viewOnScreenXY);
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
H A DRgbPlayerActivity.java159 View anchorView = this.getParent() instanceof View ?
161 mMediaController.setAnchorView(anchorView);
H A DVideoDumpView.java206 View anchorView = this.getParent() instanceof View ?
208 mMediaController.setAnchorView(anchorView);
/frameworks/base/core/java/android/widget/
H A DActionMenuPresenter.java932 public OverflowPopup(Context context, MenuBuilder menu, View anchorView, argument
934 super(context, menu, anchorView, overflowOnly,
952 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu, View anchorView) { argument
953 super(context, subMenu, anchorView, false,
H A DVideoView.java446 View anchorView = this.getParent() instanceof View ?
448 mMediaController.setAnchorView(anchorView);
H A DListPopupWindow.java1038 final View anchorView = mDropDownAnchorView;
1040 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState();
1046 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState();

Completed in 972 milliseconds