/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | ContextMenuUtils.java | 127 * @param anchor Anchor view. 132 public static void assertContextMenuAlignment(View anchor, int offsetX, int offsetY) { argument 134 anchor.getLocationOnScreen(expectedLocation); 138 final boolean rtl = anchor.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
|
/frameworks/support/compat/src/main/java/androidx/core/widget/ |
H A D | PopupWindowCompat.java | 52 * corner of the anchor view offset by the specified x and y coordinates. 56 * corner of the popup is pinned at the top left corner of the anchor view.</p> 57 * <p>If the view later scrolls to move <code>anchor</code> to a different 61 * @param anchor the view on which to pin the popup window 62 * @param xoff A horizontal offset from the anchor in pixels 63 * @param yoff A vertical offset from the anchor in pixels 64 * @param gravity Alignment of the popup relative to the anchor 66 public static void showAsDropDown(@NonNull PopupWindow popup, @NonNull View anchor, argument 69 popup.showAsDropDown(anchor, xoff, yoff, gravity); 73 ViewCompat.getLayoutDirection(anchor)) [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | PopupMenu.java | 36 * {@link View}. The popup will appear below the anchor view if there is room, 52 * Constructor to create a new popup menu with an anchor view. 56 * @param anchor Anchor view for this popup. The popup will appear below 57 * the anchor if there is room, or above it if there is not. 59 public PopupMenu(Context context, View anchor) { argument 60 this(context, anchor, Gravity.NO_GRAVITY); 64 * Constructor to create a new popup menu with an anchor view and alignment 69 * @param anchor Anchor view for this popup. The popup will appear below 70 * the anchor if there is room, or above it if there is not. 72 * anchor 74 PopupMenu(Context context, View anchor, int gravity) argument 95 PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, int popupStyleRes) argument [all...] |
H A D | ListPopupWindow.java | 111 * Optional anchor-relative bounds to be used as the transition epicenter. 112 * When {@code null}, the anchor bounds are used as the epicenter. 140 * If used to specify a popup width, the popup will match the width of the anchor view. 410 * Returns the view that will be used to anchor this popup. 412 * @return The popup's anchor view 419 * Sets the popup's anchor view. This popup will always be positioned relative to 420 * the anchor view when shown. 422 * @param anchor The view to use as an anchor. 424 public void setAnchorView(@Nullable View anchor) { argument [all...] |
H A D | PopupWindow.java | 226 // The anchor might become attached again. 458 * the direction of travel. For popup windows, the anchor view bounds are 464 * @param bounds the epicenter bounds relative to the anchor view, or 511 // used when the drop-down is placed above its anchor view, and the one to be 512 // used when the drop-down is placed below its anchor view. We extract 518 // at least one other drawable, intended for the 'below-anchor state'. 522 // Find the above-anchor view - this one's easy, it should be labeled as such. 525 // Now, for the below-anchor view, look for any other drawable specified in the 526 // StateListDrawable which is not for the above-anchor state and use that. 853 * Allow PopupWindow to scroll the anchor' 1218 showAsDropDown(View anchor) argument 1239 showAsDropDown(View anchor, int xoff, int yoff) argument 1263 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument 1586 findDropDownPosition(View anchor, WindowManager.LayoutParams outParams, int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) argument 1794 getMaxAvailableHeight(@onNull View anchor) argument 1809 getMaxAvailableHeight(@onNull View anchor, int yOffset) argument 1828 getMaxAvailableHeight( @onNull View anchor, int yOffset, boolean ignoreBottomDecorations) argument 2062 update(View anchor, WindowManager.LayoutParams params) argument 2214 update(View anchor, int width, int height) argument 2234 update(View anchor, int xoff, int yoff, int width, int height) argument 2238 update(View anchor, boolean updateLocation, int xoff, int yoff, int width, int height) argument 2320 attachToAnchor(View anchor, int xoff, int yoff, int gravity) argument 2359 getAppRootView(View anchor) argument [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | PopupMenu.java | 60 * Constructor to create a new popup menu with an anchor view. 64 * @param anchor Anchor view for this popup. The popup will appear below 65 * the anchor if there is room, or above it if there is not. 67 public PopupMenu(@NonNull Context context, @NonNull View anchor) { argument 68 this(context, anchor, Gravity.NO_GRAVITY); 72 * Constructor to create a new popup menu with an anchor view and alignment 77 * @param anchor Anchor view for this popup. The popup will appear below 78 * the anchor if there is room, or above it if there is not. 80 * anchor. 82 public PopupMenu(@NonNull Context context, @NonNull View anchor, in argument 103 PopupMenu(@onNull Context context, @NonNull View anchor, int gravity, @AttrRes int popupStyleAttr, @StyleRes int popupStyleRes) argument [all...] |
H A D | TooltipCompatHandler.java | 108 private TooltipCompatHandler(View anchor, CharSequence tooltipText) { argument 109 mAnchor = anchor; 228 * Update the anchor position if it significantly (that is by at least mHoverSlope) 247 * Clear the anchor position to ensure that the next change is considered significant.
|
H A D | ListPopupWindow.java | 147 * Optional anchor-relative bounds to be used as the transition epicenter. 148 * When {@code null}, the anchor bounds are used as the epicenter. 176 * If used to specify a popup width, the popup will match the width of the anchor view. 449 * Returns the view that will be used to anchor this popup. 451 * @return The popup's anchor view 458 * Sets the popup's anchor view. This popup will always be positioned relative to 459 * the anchor view when shown. 461 * @param anchor The view to use as an anchor. 463 public void setAnchorView(@Nullable View anchor) { argument 1420 getMaxAvailableHeight(View anchor, int yOffset, boolean ignoreBottomDecorations) argument [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/media/subtitle/ |
H A D | SubtitleController.java | 36 * media source. It allows specifying which tracks to display, on which anchor 151 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 268 /** should be called from anchor thread */ 306 /** must be called from anchor thread */ 349 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 366 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 442 * Subtitle anchor, an object that is able to display a subtitle renderer, 462 * called from anchor's looper (if any, both when unsetting and 465 public void setAnchor(Anchor anchor) { argument 466 if (mAnchor == anchor) { [all...] |
/frameworks/base/core/java/android/view/autofill/ |
H A D | AutofillPopupWindow.java | 69 * the anchor view. 107 public void update(View anchor, int offsetX, int offsetY, int width, int height, argument 116 // anchor view position. 120 // delegates to the anchor but present itself with the same bounds as the 122 // symmetrically when the dropdown is below and above the anchor. 131 anchor.getContext().getDisplay().getSize(outPoint); 136 actualAnchor = anchor; 139 actualAnchor = new View(anchor.getContext()) { 148 return anchor.getAccessibilityViewId(); 153 return anchor 239 update(View anchor, WindowManager.LayoutParams params) argument 247 findDropDownPosition(View anchor, LayoutParams outParams, int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) argument 263 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument 287 attachToAnchor(View anchor, int xoff, int yoff, int gravity) argument [all...] |
H A D | AutofillManager.java | 417 * @param anchor The real view the UI needs to anchor to. 420 * @param virtualBounds The bounds of the virtual decendant of the anchor. 424 boolean autofillClientRequestShowFillUi(@NonNull View anchor, int width, int height, argument 429 * @param anchor The real view the UI needs to anchor to. 432 void autofillClientDispatchUnhandledKey(@NonNull View anchor, @NonNull KeyEvent keyEvent); argument 1690 final View anchor = findView(id); 1691 if (anchor == null) { 1701 if (client.autofillClientRequestShowFillUi(anchor, widt 2042 requestHideFillUi(AutofillId id, View anchor) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuPopup.java | 58 public abstract void setAnchorView(View anchor); argument 65 * Specifies the anchor-relative bounds of the popup's transition 68 * @param bounds anchor-relative bounds 75 * @return anchor-relative bounds of the popup's transition epicenter
|
H A D | MenuPopupHelper.java | 93 * @param anchor the view to which the popup window should be anchored 95 public void setAnchorView(@NonNull View anchor) { argument 96 mAnchorView = anchor; 116 * Sets the alignment of the popup window relative to the anchor view. 120 * @param gravity alignment of the popup relative to the anchor 127 * @return alignment of the popup relative to the anchor 135 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 141 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 173 * Shows the popup menu and makes a best-effort to anchor it to the 174 * specified (x,y) coordinate relative to the anchor vie [all...] |
H A D | StandardMenuPopup.java | 67 final View anchor = mShownAnchorView; 68 if (anchor == null || !anchor.isShown()) { 162 final View anchor = mShownAnchorView; 164 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest 168 anchor.addOnAttachStateChangeListener(mAttachStateChangeListener); 169 mPopup.setAnchorView(anchor); 208 throw new IllegalStateException("StandardMenuPopup cannot be used without an anchor"); 323 public void setAnchorView(View anchor) { argument 324 mAnchorView = anchor; [all...] |
H A D | CascadingMenuPopup.java | 89 final View anchor = mShownAnchorView; 90 if (anchor == null || !anchor.isShown()) { 201 * @param anchor A parent view to get the {@link android.view.View#getWindowToken()} token from. 203 public CascadingMenuPopup(@NonNull Context context, @NonNull View anchor, argument 206 mAnchorView = Preconditions.checkNotNull(anchor); 694 public void setAnchorView(@NonNull View anchor) { argument 695 if (mAnchorView != anchor) { 696 mAnchorView = anchor;
|
/frameworks/base/media/java/android/media/ |
H A D | SubtitleController.java | 32 * media source. It allows specifying which tracks to display, on which anchor 147 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 264 /** @hide - should be called from anchor thread */ 302 /** @hide - must be called from anchor thread */ 345 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 362 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 439 * Subtitle anchor, an object that is able to display a subtitle renderer, 461 * @hide - called from anchor's looper (if any, both when unsetting and 464 public void setAnchor(Anchor anchor) { argument 465 if (mAnchor == anchor) { [all...] |
H A D | MediaPlayer2.java | 1319 * a linear fashion using an anchor and a clock rate. During regular playback, the media 1320 * time moves fairly constantly (though the anchor frame may be rebased to a current 1547 SubtitleController.Anchor anchor) { } 1545 setSubtitleAnchor( SubtitleController controller, SubtitleController.Anchor anchor) argument
|
/frameworks/support/compat/src/androidTest/java/androidx/core/view/ |
H A D | DragStartHelperTest.java | 95 int action, View anchor, int offsetX, int offsetY) { 97 final int[] xy = getViewCenter(anchor); 102 private void sendTouchEvent(int action, View anchor, int offsetX, int offsetY) { argument 103 mInstrumentation.sendPointerSync(obtainTouchEvent(action, anchor, offsetX, offsetY)); 107 int action, int buttonState, View anchor, int offsetX, int offsetY) { 110 final int[] xy = getViewCenter(anchor); 129 int action, int buttonState, View anchor, int offsetX, int offsetY) { 131 action, buttonState, anchor, offsetX, offsetY)); 142 TouchPositionMatcher(View anchor, int x, int y) { argument 143 this(anchor 94 obtainTouchEvent( int action, View anchor, int offsetX, int offsetY) argument 106 obtainMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument 128 sendMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument [all...] |
/frameworks/support/media/src/main/java/androidx/media/subtitle/ |
H A D | SubtitleController.java | 40 * media source. It allows specifying which tracks to display, on which anchor 161 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 288 /** should be called from anchor thread */ 326 /** must be called from anchor thread */ 369 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 386 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 468 * Subtitle anchor, an object that is able to display a subtitle renderer, 488 * called from anchor's looper (if any, both when unsetting and 491 public void setAnchor(Anchor anchor) { argument 492 if (mAnchor == anchor) { [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/ |
H A D | MenuPopup.java | 58 public abstract void setAnchorView(View anchor); argument 65 * Specifies the anchor-relative bounds of the popup's transition 68 * @param bounds anchor-relative bounds 75 * @return anchor-relative bounds of the popup's transition epicenter
|
H A D | MenuPopupHelper.java | 102 * @param anchor the view to which the popup window should be anchored 104 public void setAnchorView(@NonNull View anchor) { argument 105 mAnchorView = anchor; 125 * Sets the alignment of the popup window relative to the anchor view. 129 * @param gravity alignment of the popup relative to the anchor 136 * @return alignment of the popup relative to the anchor 144 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 150 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 182 * Shows the popup menu and makes a best-effort to anchor it to the 183 * specified (x,y) coordinate relative to the anchor vie [all...] |
H A D | StandardMenuPopup.java | 67 final View anchor = mShownAnchorView; 68 if (anchor == null || !anchor.isShown()) { 161 final View anchor = mShownAnchorView; 163 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest 167 anchor.addOnAttachStateChangeListener(mAttachStateChangeListener); 168 mPopup.setAnchorView(anchor); 207 throw new IllegalStateException("StandardMenuPopup cannot be used without an anchor"); 322 public void setAnchorView(View anchor) { argument 323 mAnchorView = anchor; [all...] |
H A D | CascadingMenuPopup.java | 105 final View anchor = mShownAnchorView; 106 if (anchor == null || !anchor.isShown()) { 217 * @param anchor A parent view to get the {@link android.view.View#getWindowToken()} token from. 219 public CascadingMenuPopup(@NonNull Context context, @NonNull View anchor, argument 222 mAnchorView = anchor; 418 // same top-level anchor as the parent menu is using, with appropriate offsets. 422 // the framework will compute the new submenu position using the anchor's height, 746 public void setAnchorView(@NonNull View anchor) { argument 747 if (mAnchorView != anchor) { [all...] |
/frameworks/rs/script_api/ |
H A D | GenerateDocumentation.cpp | 109 string anchor = systemSpecification.getHtmlAnchor(s); local 110 if (anchor.empty()) { 114 stream << anchor; local 193 string anchor = systemSpecification.getHtmlAnchor(id); local 194 if (anchor.empty()) { 198 s->replace(start, end - start, anchor);
|
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/ |
H A D | CoordinatorLayout.java | 101 * {@link LayoutParams#setAnchorId(int) anchor}. This view id must correspond 862 throw new IllegalStateException("An anchor may not be changed after CoordinatorLayout" 976 // Align to the anchor. This puts us in an assumed right/bottom child view gravity. 1051 * Calculate the desired child rect relative to an anchor rect, respecting both 1056 * @param anchorRect rect in CoordinatorLayout coordinates of the anchor view area 1069 * CORE ASSUMPTION: anchor has been laid out by the time this is called for a given child view. 1072 * @param anchor view to anchor child relative to; already laid out. 1075 private void layoutChildWithAnchor(View child, View anchor, int layoutDirection) { argument 1079 getDescendantRect(anchor, anchorRec [all...] |