Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DTooltipPopup.java75 void show(View anchorView, int anchorX, int anchorY, boolean fromTouch, in show() argument
83 computePosition(anchorView, anchorX, anchorY, fromTouch, mLayoutParams); in show()
102 private void computePosition(View anchorView, int anchorX, int anchorY, boolean fromTouch, in computePosition() argument
104 outParams.token = anchorView.getApplicationWindowToken(); in computePosition()
109 if (anchorView.getWidth() >= tooltipPreciseAnchorThreshold) { in computePosition()
114 offsetX = anchorView.getWidth() / 2; // Center on the view horizontally. in computePosition()
119 if (anchorView.getHeight() >= tooltipPreciseAnchorThreshold) { in computePosition()
127 offsetBelow = anchorView.getHeight(); // Place below the view in most cases. in computePosition()
136 final View appView = getAppRootView(anchorView); in computePosition()
158 anchorView.getLocationOnScreen(mTmpAnchorPos); in computePosition()
[all …]
DActionMenuPresenter.java728 public OverflowPopup(Context context, MenuBuilder menu, View anchorView, in OverflowPopup() argument
730 super(context, menu, anchorView, overflowOnly, R.attr.actionOverflowMenuStyle); in OverflowPopup()
747 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu, View anchorView) { in ActionButtonSubmenu() argument
748 super(context, subMenu, anchorView, false, R.attr.actionOverflowMenuStyle); in ActionButtonSubmenu()
DListPopupWindow.java1078 final View anchorView = mDropDownAnchorView; in onKeyPreIme() local
1080 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState(); in onKeyPreIme()
1086 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState(); in onKeyPreIme()
/frameworks/base/core/java/com/android/internal/view/
DTooltipPopup.java63 public void show(View anchorView, int anchorX, int anchorY, boolean fromTouch, in show() argument
71 computePosition(anchorView, anchorX, anchorY, fromTouch, mLayoutParams); in show()
94 private void computePosition(View anchorView, int anchorX, int anchorY, boolean fromTouch, in computePosition() argument
96 outParams.token = anchorView.getApplicationWindowToken(); in computePosition()
102 if (anchorView.getWidth() >= tooltipPreciseAnchorThreshold) { in computePosition()
107 offsetX = anchorView.getWidth() / 2; // Center on the view horizontally. in computePosition()
112 if (anchorView.getHeight() >= tooltipPreciseAnchorThreshold) { in computePosition()
120 offsetBelow = anchorView.getHeight(); // Place below the view in most cases. in computePosition()
132 anchorView.getApplicationWindowToken()); in computePosition()
140 anchorView.getLocationOnScreen(mTmpAnchorPos); in computePosition()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopupHelper.java63 @NonNull View anchorView) { in MenuPopupHelper() argument
64 this(context, menu, anchorView, false, com.android.internal.R.attr.popupMenuStyle, 0); in MenuPopupHelper()
68 @NonNull View anchorView, in MenuPopupHelper() argument
70 this(context, menu, anchorView, overflowOnly, popupStyleAttr, 0); in MenuPopupHelper()
74 @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr, in MenuPopupHelper() argument
78 mAnchorView = anchorView; in MenuPopupHelper()
DStandardMenuPopup.java114 public StandardMenuPopup(Context context, MenuBuilder menu, View anchorView, int popupStyleAttr, in StandardMenuPopup() argument
128 mAnchorView = anchorView; in StandardMenuPopup()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
DMenuPopupHelper.java72 @NonNull View anchorView) { in MenuPopupHelper() argument
73 this(context, menu, anchorView, false, R.attr.popupMenuStyle, 0); in MenuPopupHelper()
77 @NonNull View anchorView, in MenuPopupHelper() argument
79 this(context, menu, anchorView, overflowOnly, popupStyleAttr, 0); in MenuPopupHelper()
83 @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr, in MenuPopupHelper() argument
87 mAnchorView = anchorView; in MenuPopupHelper()
DStandardMenuPopup.java114 public StandardMenuPopup(Context context, MenuBuilder menu, View anchorView, int popupStyleAttr, in StandardMenuPopup() argument
128 mAnchorView = anchorView; in StandardMenuPopup()
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
DTestUtils.java297 public static void emulateTapOnView(Instrumentation instrumentation, View anchorView, in emulateTapOnView() argument
299 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateTapOnView()
302 anchorView.getLocationOnScreen(viewOnScreenXY); in emulateTapOnView()
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DRgbPlayerActivity.java159 View anchorView = this.getParent() instanceof View ? in attachMediaController() local
161 mMediaController.setAnchorView(anchorView); in attachMediaController()
DVideoDumpView.java206 View anchorView = this.getParent() instanceof View ? in attachMediaController() local
208 mMediaController.setAnchorView(anchorView); in attachMediaController()
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java932 public OverflowPopup(Context context, MenuBuilder menu, View anchorView, in OverflowPopup() argument
934 super(context, menu, anchorView, overflowOnly, in OverflowPopup()
952 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu, View anchorView) { in ActionButtonSubmenu() argument
953 super(context, subMenu, anchorView, false, in ActionButtonSubmenu()
DListPopupWindow.java1040 final View anchorView = mDropDownAnchorView; in onKeyPreIme() local
1042 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState(); in onKeyPreIme()
1048 KeyEvent.DispatcherState state = anchorView.getKeyDispatcherState(); in onKeyPreIme()
DVideoView.java446 View anchorView = this.getParent() instanceof View ? in attachMediaController() local
448 mMediaController.setAnchorView(anchorView); in attachMediaController()