Home
last modified time | relevance | path

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

/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/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/
DActionBarShadowController.java59 View anchorView, Lifecycle lifecycle, View scrollView) { in attachToView() argument
60 return new ActionBarShadowController(anchorView, lifecycle, scrollView); in attachToView()
70 private ActionBarShadowController(View anchorView, Lifecycle lifecycle, View scrollView) { in ActionBarShadowController() argument
71 mScrollChangeWatcher = new ActionBarShadowController.ScrollChangeWatcher(anchorView); in ActionBarShadowController()
105 ScrollChangeWatcher(View anchorView) { in ScrollChangeWatcher() argument
106 mAnchorView = anchorView; in ScrollChangeWatcher()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsPopupMenu.kt61 anchorView?.rootView?.foreground = null in <lambda>()
70 anchorView?.let { in show()
105 private fun positionPopup(anchorView: View) { in positionPopup()
108 horizontalOffset = (-width + anchorView.width) / 2 in positionPopup()
109 if (anchorView.layoutDirection == View.LAYOUT_DIRECTION_RTL) { in positionPopup()
118 verticalOffset = -anchorView.height / 2 in positionPopup()
DControlsUiControllerImpl.kt549 anchorView = anchor in <lambda>()
625 anchorView = anchor in <lambda>()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopupHelper.java65 @NonNull View anchorView) { in MenuPopupHelper() argument
66 this(context, menu, anchorView, false, com.android.internal.R.attr.popupMenuStyle, 0); in MenuPopupHelper()
70 @NonNull View anchorView, in MenuPopupHelper() argument
72 this(context, menu, anchorView, overflowOnly, popupStyleAttr, 0); in MenuPopupHelper()
76 @NonNull View anchorView, boolean overflowOnly, @AttrRes int popupStyleAttr, in MenuPopupHelper() argument
80 mAnchorView = anchorView; in MenuPopupHelper()
DStandardMenuPopup.java120 public StandardMenuPopup(Context context, MenuBuilder menu, View anchorView, int popupStyleAttr, in StandardMenuPopup() argument
140 mAnchorView = anchorView; in StandardMenuPopup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/binder/
DUserSwitcherViewBinder.kt110 anchorView = addButton, in <lambda>()
175 anchorView: View, in <lambda>()
181 this.anchorView = anchorView in <lambda>()
/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/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlsPopupMenuTest.kt125 ControlsPopupMenu(testActivity).apply { anchorView = View(testActivity) } in <lambda>()
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java938 public OverflowPopup(Context context, MenuBuilder menu, View anchorView, in OverflowPopup() argument
940 super(context, menu, anchorView, overflowOnly, in OverflowPopup()
958 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu, View anchorView) { in ActionButtonSubmenu() argument
959 super(context, subMenu, anchorView, false, 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()
DVideoView.java459 View anchorView = this.getParent() instanceof View ? in attachMediaController() local
461 mMediaController.setAnchorView(anchorView); in attachMediaController()