Searched defs:top (Results 276 - 300 of 343) sorted by last modified time

<<11121314

/frameworks/base/core/java/android/widget/
H A DActionMenuView.java43 * 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 DActivityChooserView.java479 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 DAdapterView.java74 * 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 DAdapterViewAnimator.java760 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
H A DCheckedTextView.java336 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 DDayPickerView.java214 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
226 final int height = bottom - top;
H A DEditor.java483 // 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 DFrameLayout.java47 * <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 DGridLayout.java210 * {@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 DGridView.java292 * @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 DLinearLayout.java349 * 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 DListView.java172 * 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 DNumberPicker.java129 * 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 DRadialTimePickerView.java645 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
H A DRemoteViews.java875 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 DScrollView.java928 * @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 DSearchView.java366 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 DSimpleMonthView.java387 // 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 DStackView.java1103 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 DSwitch.java1091 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 DTextView.java2535 * 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 DToolbar.java386 * @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 DVideoView.java130 /** 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 DPalette.java733 * @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 DBackdropFrameRenderer.java335 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...]

Completed in 267 milliseconds

<<11121314