/frameworks/support/v4/kitkat/android/support/v4/widget/ |
H A D | PopupWindowCompatKitKat.java | 28 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument 30 popup.showAsDropDown(anchor, xoff, yoff, gravity);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | AppCompatPopupWindow.java | 63 public void showAsDropDown(View anchor, int xoff, int yoff) { 66 yoff -= anchor.getHeight(); 68 super.showAsDropDown(anchor, xoff, yoff); 73 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { 76 yoff -= anchor.getHeight(); 78 super.showAsDropDown(anchor, xoff, yoff, gravity); 82 public void update(View anchor, int xoff, int yoff, int width, int height) { 85 yoff -= anchor.getHeight(); 87 super.update(anchor, xoff, yoff, width, height); 103 // we have an anchor vie [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | PopupWindowCompat.java | 32 void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity); argument 44 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument 46 popup.showAsDropDown(anchor, xoff, yoff); 90 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument 92 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity); 155 * corner of the anchor view offset by the specified x and y coordinates. 159 * corner of the popup is pinned at the top left corner of the anchor view.</p> 160 * <p>If the view later scrolls to move <code>anchor</code> to a different 164 * @param anchor the view on which to pin the popup window 165 * @param xoff A horizontal offset from the anchor i 169 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | PopupMenu.java | 37 * The popup will appear below the anchor view if there is room, or above it if there is not. 64 * Constructor to create a new popup menu with an anchor view. 68 * @param anchor Anchor view for this popup. The popup will appear below 69 * the anchor if there is room, or above it if there is not. 71 public PopupMenu(Context context, View anchor) { argument 72 this(context, anchor, Gravity.NO_GRAVITY); 76 * Constructor to create a new popup menu with an anchor view and alignment 81 * @param anchor Anchor view for this popup. The popup will appear below 82 * the anchor if there is room, or above it if there is not. 84 * anchor 86 PopupMenu(Context context, View anchor, int gravity) argument 107 PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, int popupStyleRes) argument [all...] |
H A D | PopupWindow.java | 167 final View anchor = mAnchor != null ? mAnchor.get() : null; 168 if (anchor != null && mDecorView != null) { 172 updateAboveAnchor(findDropDownPosition(anchor, p, mAnchorXoff, mAnchorYoff, 382 // used when the drop-down is placed above its anchor view, and the one to be 383 // used when the drop-down is placed below its anchor view. We extract 389 // at least one other drawable, intended for the 'below-anchor state'. 393 // Find the above-anchor view - this one's easy, it should be labeled as such. 396 // Now, for the below-anchor view, look for any other drawable specified in the 397 // StateListDrawable which is not for the above-anchor state and use that. 725 * Allow PopupWindow to scroll the anchor' 1047 showAsDropDown(View anchor) argument 1068 showAsDropDown(View anchor, int xoff, int yoff) argument 1092 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument 1394 findDropDownPosition(View anchor, WindowManager.LayoutParams p, int xoff, int yoff, int gravity) argument 1497 getMaxAvailableHeight(View anchor) argument 1512 getMaxAvailableHeight(View anchor, int yOffset) argument 1533 getMaxAvailableHeight(View anchor, int yOffset, boolean ignoreBottomDecorations) argument 1826 update(View anchor, int width, int height) argument 1846 update(View anchor, int xoff, int yoff, int width, int height) argument 1850 update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height) argument 1915 registerForScrollChanged(View anchor, int xoff, int yoff, int gravity) argument [all...] |
H A D | ActionMenuPresenter.java | 501 View anchor = findViewForItem(topSubMenu.getItem()); 502 if (anchor == null) { 504 anchor = mOverflowButton; 509 mActionButtonPopup.setAnchorView(anchor); 539 // Post this for later; we might still need a layout for the anchor to be right. 938 // Give a reasonable anchor to nested submenus.
|
H A D | ListPopupWindow.java | 136 * If used to specify a popup width, the popup will match the width of the anchor view. 407 * Returns the view that will be used to anchor this popup. 409 * @return The popup's anchor view 416 * Sets the popup's anchor view. This popup will always be positioned relative to 417 * the anchor view when shown. 419 * @param anchor The view to use as an anchor. 421 public void setAnchorView(View anchor) { argument 422 mDropDownAnchorView = anchor; 426 * @return The horizontal offset of the popup from its anchor i [all...] |
H A D | RelativeLayout.java | 1233 * When true, uses the parent as the anchor if the anchor doesn't exist or if 1234 * the anchor's visibility is GONE. 1403 * @param anchor The id of another view to use as an anchor, 1410 public void addRule(int verb, int anchor) { argument 1411 mRules[verb] = anchor; 1412 mInitialRules[verb] = anchor; 1437 * @return the id of another view to use as an anchor, a boolean value
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | PopupMenu.java | 66 * @param anchor Anchor view for this popup. The popup will appear below the anchor if there 69 public PopupMenu(Context context, View anchor) { argument 70 this(context, anchor, Gravity.NO_GRAVITY); 74 * Constructor to create a new popup menu with an anchor view and alignment 79 * @param anchor Anchor view for this popup. The popup will appear below 80 * the anchor if there is room, or above it if there is not. 82 * anchor. 84 public PopupMenu(Context context, View anchor, int gravity) { argument 85 this(context, anchor, gravit 105 PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, int popupStyleRes) argument [all...] |
H A D | ActionMenuPresenter.java | 292 View anchor = findViewForItem(topSubMenu.getItem()); 293 if (anchor == null) { 295 anchor = mOverflowButton; 300 mActionButtonPopup.setAnchorView(anchor); 330 // Post this for later; we might still need a layout for the anchor to be right. 722 // Give a reasonable anchor to nested submenus.
|
H A D | ListPopupWindow.java | 150 * If used to specify a popup width, the popup will match the width of the anchor view. 420 * Returns the view that will be used to anchor this popup. 422 * @return The popup's anchor view 429 * Sets the popup's anchor view. This popup will always be positioned relative to the anchor 432 * @param anchor The view to use as an anchor. 434 public void setAnchorView(View anchor) { argument 435 mDropDownAnchorView = anchor; 439 * @return The horizontal offset of the popup from its anchor i [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuPopupHelper.java | 107 public void setAnchorView(View anchor) { argument 108 mAnchorView = anchor; 125 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 151 final View anchor = mAnchorView; 152 if (anchor != null) { 154 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest 156 anchor.addOnAttachStateChangeListener(this); 157 mPopup.setAnchorView(anchor); 250 final View anchor = mAnchorView; 251 if (anchor [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | MenuPopupHelper.java | 112 public void setAnchorView(View anchor) { argument 113 mAnchorView = anchor; 130 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 145 View anchor = mAnchorView; 146 if (anchor != null) { 148 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest 150 mPopup.setAnchorView(anchor); 240 final View anchor = mAnchorView; 241 if (anchor == null || !anchor [all...] |
/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 | MediaPlayer.java | 1490 * a linear fashion using an anchor and a clock rate. During regular playback, the media 1491 * time moves fairly constantly (though the anchor frame may be rebased to a current 2137 SubtitleController.Anchor anchor) { 2140 mSubtitleController.setAnchor(anchor); 2135 setSubtitleAnchor( SubtitleController controller, SubtitleController.Anchor anchor) argument
|
/frameworks/rs/api/ |
H A D | GenerateDocumentation.cpp | 106 string anchor = systemSpecification.getHtmlAnchor(s); local 107 if (anchor.empty()) { 111 stream << anchor; local 190 string anchor = systemSpecification.getHtmlAnchor(id); local 191 if (anchor.empty()) { 195 s->replace(start, end - start, anchor);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | LinearLayoutManager.java | 134 * Re-used variable to keep anchor information on re-layout. 455 // 1) by checking children and other variables, find an anchor coordinate and an anchor 481 // calculate anchor position and coordinate 623 * even update anchor info if necessary. 627 * @param anchorInfo Simple data structure to keep anchor point information for the next layout 672 View anchor = getChildClosestToStart(); 673 updateLayoutStateToFillStart(getPosition(anchor), startOffset); 681 View anchor = getChildClosestToEnd(); 682 updateLayoutStateToFillEnd(getPosition(anchor), endOffse [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CoordinatorLayout.java | 81 * {@link CoordinatorLayout.LayoutParams#setAnchorId(int) anchor}. This view id must correspond 736 throw new IllegalStateException("An anchor may not be changed after CoordinatorLayout" 824 * Calculate the desired child rect relative to an anchor rect, respecting both 829 * @param anchorRect rect in CoordinatorLayout coordinates of the anchor view area 851 // Align to the anchor. This puts us in an assumed right/bottom child view gravity. 922 * CORE ASSUMPTION: anchor has been laid out by the time this is called for a given child view. 925 * @param anchor view to anchor child relative to; already laid out. 928 private void layoutChildWithAnchor(View child, View anchor, int layoutDirection) { argument 933 getDescendantRect(anchor, anchorRec [all...] |