/frameworks/base/core/java/android/widget/ |
H A D | ActionMenuView.java | 43 * several top level options as action buttons while spilling remaining options over as 434 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 436 super.onLayout(changed, left, top, right, bottom); 441 final int midVertical = (bottom - top) / 2;
|
H A D | ActivityChooserView.java | 479 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 480 mActivityChooserContent.layout(0, 0, right - left, bottom - top);
|
H A D | AdapterView.java | 74 * The offset in pixels from the top of the AdapterView to the top 557 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1186 // Either we hit the top, or we are trying to move down
|
H A D | AdapterViewAnimator.java | 760 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
|
H A D | CheckedTextView.java | 336 protected void internalSetPadding(int left, int top, int right, int bottom) { argument 337 super.internalSetPadding(left, top, right, bottom); 400 final int top = y; 401 final int bottom = top + height; 411 checkMarkDrawable.setBounds(mScrollX + left, top, mScrollX + right, bottom); 416 background.setHotspotBounds(mScrollX + left, top, mScrollX + right, bottom);
|
H A D | DayPickerView.java | 214 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 226 final int height = bottom - top;
|
H A D | Editor.java | 483 // don't want the popup to be displayed on top of it. 540 * Returns the X offset to make the pointy top of the error point 571 * Returns the Y offset to make the pointy top of the error point 600 * The "2" is the distance between the point and the top edge 1782 final int top = layout.getLineTop(blockBeginLine); 1800 right - left, bottom - top); 1803 // brings this range of text back to the top left corner of the viewport 1804 displayListCanvas.translate(-left, -top); 1817 blockDisplayList.setLeftTopRightBottom(left, top, right, bottom); 1914 final int top 2302 updateCursorPosition(int cursorIndex, int top, int bottom, float horizontal) argument [all...] |
H A D | FrameLayout.java | 47 * <p>Child views are drawn in a stack, with the most recently added child on top. 124 mForegroundPaddingTop = padding.top; 260 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 261 layoutChildren(left, top, right, bottom, false /* no force left gravity */); 264 void layoutChildren(int left, int top, int right, int bottom, boolean forceLeftGravity) { argument 271 final int parentBottom = bottom - top - getPaddingBottomWithForeground();
|
H A D | GridLayout.java | 210 * {@link android.view.View#getTop() top}, 231 * the quantity {@code top - layoutParams.topMargin} is the same for all children that 930 int top = getPaddingTop() + insets.top; 939 drawLine(canvas, x, top, x, bottom, paint); 946 int y = top + ys[i]; 1117 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1121 int targetHeight = bottom - top; 2056 int left, int top, int right, int bottom, 2059 setMargins(left, top, righ 2054 LayoutParams( int width, int height, int left, int top, int right, int bottom, Spec rowSpec, Spec columnSpec) argument [all...] |
H A D | GridView.java | 292 * @param nextTop The location where the top of the item associated with pos 388 * Fills the list from pos up to the top of the list view. 402 end = mListPadding.top; 428 * Fills the list from top to bottom, starting with mFirstPosition 430 * @param nextTop The location where the top of the first item should be 501 final int top = getChildAt(0).getTop(); 502 final int offset = childrenTop - top; 549 * @param top the top of the view at that position 553 private View fillSpecific(int position, int top) { argument [all...] |
H A D | LinearLayout.java | 349 * to left and right end of dividers. For a horizontal layout, the padding is applied to top and 410 final int top = child.getTop() - lp.topMargin - mDividerHeight; 411 drawHorizontalDivider(canvas, top); 483 void drawHorizontalDivider(Canvas canvas, int top) { argument 484 mDivider.setBounds(getPaddingLeft() + mDividerPadding, top, 485 getWidth() - getPaddingRight() - mDividerPadding, top + mDividerHeight); 1558 * @param top 1562 void layoutVertical(int left, int top, int right, int bottom) { argument 1583 childTop = mPaddingTop + bottom - top - mTotalLength; 1588 childTop = mPaddingTop + (bottom - top 1667 layoutHorizontal(int left, int top, int right, int bottom) argument 1790 setChildFrame(View child, int left, int top, int width, int height) argument [all...] |
H A D | ListView.java | 172 * A class that represents a fixed view in a list, for example a header at the top 278 * Make sure views are touching the top or bottom edge, as appropriate for 290 // align with the top 292 delta = child.getTop() - mListPadding.top; 325 * Add a fixed view to appear at the top of the list. If this method is 369 * Add a fixed view to appear at the top of the list. If addHeaderView is 636 * @return Whether the list needs to show the top fading edge 639 final int listTop = mScrollY + mListPadding.top; 661 int rectTopWithinChild = rect.top; 673 // leave room for top fadin 1205 setupForSetSelection(int position, int top) argument 1480 fillSpecific(int position, int top) argument [all...] |
H A D | NumberPicker.java | 129 * The strength of fading in the top and bottom while drawing the selector. 449 * The top of the top selection divider. 776 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 778 super.onLayout(changed, left, top, right, bottom); 1621 // draw the top divider 2645 int left, int top, int right, int bottom) { 2655 boundsInParent.set(left, top, right, bottom); 2667 String text, int left, int top, int right, int bottom) { 2678 boundsInParent.set(left, top, righ 2644 createAccessibiltyNodeInfoForInputText( int left, int top, int right, int bottom) argument 2666 createAccessibilityNodeInfoForVirtualButton(int virtualViewId, String text, int left, int top, int right, int bottom) argument 2700 createAccessibilityNodeInfoForNumberPicker(int left, int top, int right, int bottom) argument [all...] |
H A D | RadialTimePickerView.java | 645 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
|
H A D | RemoteViews.java | 875 rect.top = (int) (pos[1] * appScale + 0.5f); 1901 public ViewPaddingAction(int viewId, int left, int top, int right, int bottom) { argument 1904 this.top = top; 1912 top = parcel.readInt(); 1921 dest.writeInt(top); 1930 target.setPadding(left, top, right, bottom); 1937 int left, top, right, bottom; field in class:RemoteViews.ViewPaddingAction 2552 * @param top The id of a drawable to place above the text, or 0 2556 public void setTextViewCompoundDrawables(int viewId, int left, int top, in argument 2571 setTextViewCompoundDrawablesRelative(int viewId, int start, int top, int end, int bottom) argument 2610 setTextViewCompoundDrawables(int viewId, Icon left, Icon top, Icon right, Icon bottom) argument 2628 setTextViewCompoundDrawablesRelative(int viewId, Icon start, Icon top, Icon end, Icon bottom) argument 2965 setViewPadding(int viewId, int left, int top, int right, int bottom) argument [all...] |
H A D | ScrollView.java | 928 * @param topFocus look for a candidate is the one at the top of the bounds 931 * @param top the top offset of the bounds in which a focusable must be 938 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument 944 * A fully contained focusable is one where its top is below the bound's 945 * top, and its bottom is above the bound's bottom. A partially 958 if (top < viewBottom && viewTop < bottom) { 964 final boolean viewIsFullyContained = (top < viewTop) && 1023 mTempRect.top = getScrollY() + height; 1027 if (mTempRect.top 1085 scrollAndFocus(int direction, int top, int bottom) argument [all...] |
H A D | SearchView.java | 366 public void onLayoutChange(View v, int left, int top, int right, int bottom, 819 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 820 super.onLayout(changed, left, top, right, bottom); 827 mSearchSrcTextViewBounds.left, 0, mSearchSrcTextViewBounds.right, bottom - top); 841 final int top = mTemp[1] - mTemp2[1]; 843 rect.set(left , top, left + view.getWidth(), top + view.getHeight()); 1602 // on top of the one we want. We don't want to do this in in-app search though, 1869 event.setLocation(x - mActualBounds.left, y - mActualBounds.top);
|
H A D | SimpleMonthView.java | 387 // day to the left, top, right, or bottom). Focus forward and back jumps out of the 880 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 887 final int h = bottom - top; 996 // Compute top edge. 1000 final int top = getPaddingTop() + headerHeight + row * rowHeight; 1002 outBounds.set(left, top, left + colWidth, top + rowHeight);
|
H A D | StackView.java | 1103 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1322 p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top, 1326 p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top, 1357 int top = Math.min(mView.getTop() + verticalOffsetDelta, mView.getTop()); 1360 invalidateRectf.set(left, top, right, bottom); 1363 float yoffset = -invalidateRectf.top; 1369 (int) Math.floor(invalidateRectf.top),
|
H A D | Switch.java | 1091 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1092 super.onLayout(changed, left, top, right, bottom); 1179 if (thumbInsets.top > padding.top) { 1180 trackTop += thumbInsets.top - padding.top; 1224 final int switchInnerTop = switchTop + padding.top; 1267 final int top = (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2; 1268 canvas.translate(left, top);
|
H A D | TextView.java | 2535 * Returns the top padding of the view, plus space for the top 2617 * Returns the extended top padding of the view, including both the 2618 * top Drawable if any and any extra space to keep more than maxLines 2634 int top = getCompoundPaddingTop(); 2636 int viewht = getHeight() - top - bottom; 2640 return top; 2645 return top; 2647 return top + viewht - layoutht; 2649 return top 2754 setCompoundDrawables(@ullable Drawable left, @Nullable Drawable top, @Nullable Drawable right, @Nullable Drawable bottom) argument 2894 setCompoundDrawablesWithIntrinsicBounds(@rawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom) argument 2918 setCompoundDrawablesWithIntrinsicBounds(@ullable Drawable left, @Nullable Drawable top, @Nullable Drawable right, @Nullable Drawable bottom) argument 2951 setCompoundDrawablesRelative(@ullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument 3098 setCompoundDrawablesRelativeWithIntrinsicBounds(@rawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument 3122 setCompoundDrawablesRelativeWithIntrinsicBounds(@ullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument 3326 setPadding(int left, int top, int right, int bottom) argument 3340 setPaddingRelative(int start, int top, int end, int bottom) argument 8532 onLayout(boolean changed, int left, int top, int right, int bottom) argument [all...] |
H A D | Toolbar.java | 386 * @param top the top title margin in pixels 395 public void setTitleMargin(int start, int top, int end, int bottom) { argument 397 mTitleMarginTop = top; 427 * @return the top title margin in pixels 436 * Sets the top title margin in pixels. 438 * @param margin the top title margin in pixels 1941 final int top = getChildTop(child, alignmentHeight); 1943 child.layout(left, top, left + childWidth, top [all...] |
H A D | VideoView.java | 130 /** Subtitle rendering widget overlaid on top of the video. */ 896 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 897 super.onLayout(changed, left, top, right, bottom);
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | Palette.java | 733 * @param top The top of the rectangle used for the region. 738 public Palette.Builder setRegion(int left, int top, int right, int bottom) { argument 744 if (!mRegion.intersect(left, top, right, bottom)) { 813 region.top = (int) Math.floor(region.top * scale); 901 System.arraycopy(pixels, ((row + mRegion.top) * bitmapWidth) + mRegion.left,
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | BackdropFrameRenderer.java | 335 final int top = mLastYOffset + newBounds.top; 339 mFrameAndBackdropNode.setLeftTopRightBottom(left, top, left + width, top + height); 347 drawable.setBounds(0, 0, left + width, top + mLastCaptionHeight); 353 mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height); 358 drawColorViews(left, top, width, height, fullscreen, systemInsets, stableInsets); 366 private void drawColorViews(int left, int top, int width, int height, argument 372 mSystemBarBackgroundNode.setLeftTopRightBottom(left, top, left + width, top [all...] |