Searched defs:width (Results 201 - 225 of 710) sorted by path

1234567891011>>

/frameworks/base/core/java/android/view/
H A DViewStructure.java45 * @param width The view's visible width, in pixels. This is the width visible on screen,
46 * not the total data width of a scrollable view.
50 public abstract void setDimens(int left, int top, int scrollX, int scrollY, int width, argument
H A DWindow.java925 * Set the width and height layout parameters of the window. The default
929 * @param width The desired layout width of the window.
933 * @see ViewGroup.LayoutParams#width
935 public void setLayout(int width, int height) { argument
937 attrs.width = width;
945 * is only useful when using WRAP_CONTENT for the layout width or height.
H A DWindowManagerPolicy.java564 public void setInitialDisplaySize(Display display, int width, int height, int density); argument
654 * Return the display width available after excluding any screen
670 * Return the available screen width that we should report for the
900 * @param displayWidth The current full width of the screen.
944 * @param displayWidth The width of the display.
976 * @param displayWidth The current full width of the screen.
1377 * @param displayWidth the current display width
1395 * @param displayWidth the current display width
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java68 * height or width of the object being animated.
74 * height or width of the parent of the object being animated.
347 * @param width Width of the object being animated
352 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
H A DAnimationSet.java424 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
425 super.initialize(width, height, parentWidth, parentHeight);
482 a.initialize(width, height, parentWidth, parentHeight);
H A DRotateAnimation.java178 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
179 super.initialize(width, height, parentWidth, parentHeight);
180 mPivotX = resolveSize(mPivotXType, mPivotXValue, width, parentWidth);
H A DScaleAnimation.java278 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
279 super.initialize(width, height, parentWidth, parentHeight);
281 mFromX = resolveScale(mFromX, mFromXType, mFromXData, width, parentWidth);
282 mToX = resolveScale(mToX, mToXType, mToXData, width, parentWidth);
286 mPivotX = resolveSize(mPivotXType, mPivotXValue, width, parentWidth);
H A DTranslateAnimation.java171 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
172 super.initialize(width, height, parentWidth, parentHeight);
173 mFromXDelta = resolveSize(mFromXType, mFromXValue, width, parentWidth);
174 mToXDelta = resolveSize(mToXType, mToXValue, width, parentWidth);
/frameworks/base/core/java/android/widget/
H A DAbsoluteLayout.java90 // Check against minimum height and width
99 * Returns a set of layout parameters with a width of
169 * Creates a new set of layout parameters with the specified width,
172 * @param width the width, either {@link #MATCH_PARENT},
179 public LayoutParams(int width, int height, int x, int y) { argument
180 super(width, height);
221 return output + "Absolute.LayoutParams={width="
222 + sizeToString(width) + ", height=" + sizeToString(height)
H A DActionMenuPresenter.java150 int width = mWidthLimit;
162 width -= mOverflowButton.getMeasuredWidth();
167 mActionItemWidthLimit = width;
181 public void setWidthLimit(int width, boolean strict) { argument
182 mWidthLimit = width;
703 // can break the max actions rule, but not the width limit.
738 // We broke the width limit. Demote the whole group, they all overflow now.
915 final int width = getWidth();
917 final int halfEdge = Math.max(width, height) / 2;
920 final int centerX = (width
[all...]
H A DActionMenuView.java172 // We already know the width mode is EXACTLY if we're here.
371 final int width = lp.cellsUsed * cellSize + lp.extraPixels;
372 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
385 * Measure a child view to fit within cell-based formatting. The child's width
491 final int width = v.getMeasuredWidth();
494 final int l = midHorizontal - width / 2;
496 v.layout(l, t, l + width, t + height);
513 int width = v.getMeasuredWidth();
516 v.layout(startRight - width, t, startRight, t + height);
517 startRight -= width
826 LayoutParams(int width, int height) argument
832 LayoutParams(int width, int height, boolean isOverflowButton) argument
[all...]
H A DAutoCompleteTextView.java265 // For dropdown width, the developer can specify a specific width, or
266 // MATCH_PARENT (for full screen width), or WRAP_CONTENT (to match the
267 // width of the anchored view).
362 * <p>Returns the current width for the auto-complete drop down list. This can
363 * be a fixed width, or {@link ViewGroup.LayoutParams#MATCH_PARENT} to fill the screen, or
364 * {@link ViewGroup.LayoutParams#WRAP_CONTENT} to fit the width of its anchor view.</p>
366 * @return the width for the drop down list
375 * <p>Sets the current width for the auto-complete drop down list. This can
376 * be a fixed width, o
383 setDropDownWidth(int width) argument
[all...]
H A DEdgeEffect.java134 * @param width Effect width in pixels
137 public void setSize(int width, int height) { argument
138 final float r = width * 0.75f / SIN;
148 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h));
312 * width of X=0 to X=width, beginning from Y=0 and extending to some factor <
330 float translateX = mBounds.width() * displacement / 2;
H A DEditor.java2216 final int width = drawable.getIntrinsicWidth();
2217 drawable.setBounds(left, top - mTempRect.top, left + width,
3058 final int width = mContentView.getMeasuredWidth();
3060 mPositionX = (int) (mTextView.getLayout().getPrimaryHorizontal(offset) - width / 2.0f);
3076 final int width = mContentView.getMeasuredWidth();
3078 displayMetrics.widthPixels - width + mClippingLimitRight, positionX);
3496 int width = 0;
3500 view.getLayoutParams().width = LayoutParams.WRAP_CONTENT;
3502 width = Math.max(width, vie
5615 ErrorPopup(TextView v, int width, int height) argument
[all...]
H A DFrameLayout.java140 * Returns a set of layout parameters with a width of
193 if (lp.width == LayoutParams.MATCH_PARENT ||
205 // Check against our minimum height and width
209 // Check against our foreground's minimum height and width
227 if (lp.width == LayoutParams.MATCH_PARENT) {
228 final int width = Math.max(0, getMeasuredWidth()
232 width, MeasureSpec.EXACTLY);
237 lp.width);
278 final int width = child.getMeasuredWidth();
295 childLeft = parentLeft + (parentRight - parentLeft - width) /
445 LayoutParams(int width, int height) argument
461 LayoutParams(int width, int height, int gravity) argument
[all...]
H A DGridLayout.java139 * {@link View#GONE GONE}, as having zero width and height. This is subtly different from
141 * view was alone in a column, that column would itself collapse to zero width if and only if
333 * one of GridLayout's children is dependent on its width - and its width is, in turn,
340 * deriving its height for a given width, but not the other way around.
344 * the height of the intended layout greatly exceeds its width.
884 int width = getWidth();
885 graphics.drawLine(width - x1, y1, width - x2, y2, paint);
1012 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, l
2044 LayoutParams( int width, int height, int left, int top, int right, int bottom, Spec rowSpec, Spec columnSpec) argument
[all...]
H A DLinearLayout.java337 * Get the width of the current divider drawable.
714 // See how tall everyone is. Also remember max width.
798 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) {
799 // The width of the linear layout will scale, and at least one
800 // child said it wanted to match our width. Set a flag
802 // we know our width.
812 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT;
910 lp.width);
923 lp.width == LayoutParams.MATCH_PARENT;
928 allFillParent = allFillParent && lp.width
1740 setChildFrame(View child, int left, int top, int width, int height) argument
1938 LayoutParams(int width, int height) argument
1953 LayoutParams(int width, int height, float weight) argument
[all...]
H A DListPopupWindow.java137 * If used to specify a popup width, the popup will match the width of the anchor view.
144 * If used to specify a popup width, the popup will use the width of its content.
483 * @return The width of the popup window in pixels.
490 * Sets the width of the popup window in pixels. Can also be {@link #MATCH_PARENT}
493 * @param width Width of the popup window.
495 public void setWidth(int width) { argument
496 mDropDownWidth = width;
500 * Sets the width o
505 setContentWidth(int width) argument
[all...]
H A DPopupWindow.java224 p.width, p.height, mAnchoredGravity));
340 * @param width the popup's width
343 public PopupWindow(int width, int height) { argument
344 this(null, width, height);
356 * @param width the popup's width
359 public PopupWindow(View contentView, int width, int height) { argument
360 this(contentView, width, height, false);
371 * @param width th
375 PopupWindow(View contentView, int width, int height, boolean focusable) argument
1063 setWidth(int width) argument
1526 findDropDownPosition(View anchor, WindowManager.LayoutParams outParams, int xOffset, int yOffset, int width, int height, int gravity) argument
1666 tryFitHorizontal(@onNull LayoutParams outParams, int xOffset, int width, int anchorWidth, int drawingLocationX, int screenLocationX, int displayFrameLeft, int displayFrameRight, boolean allowResize) argument
1684 positionInDisplayHorizontal(@onNull LayoutParams outParams, int width, int drawingLocationX, int screenLocationX, int displayFrameLeft, int displayFrameRight, boolean canResize) argument
1990 update(int width, int height) argument
2008 update(int x, int y, int width, int height) argument
2027 update(int x, int y, int width, int height, boolean force) argument
2110 update(View anchor, int width, int height) argument
2130 update(View anchor, int xoff, int yoff, int width, int height) argument
2134 update(View anchor, boolean updateLocation, int xoff, int yoff, int width, int height) argument
[all...]
H A DTextView.java480 mDrawableSizeError = compoundRect.width();
1571 dr.mDrawableSizeStart = compoundRect.width();
1583 dr.mDrawableSizeEnd = compoundRect.width();
1716 * This can be null if the text or width has recently changes.
2239 dr.mDrawableSizeLeft = compoundRect.width();
2249 dr.mDrawableSizeRight = compoundRect.width();
2260 dr.mDrawableWidthTop = compoundRect.width();
2270 dr.mDrawableWidthBottom = compoundRect.width();
2450 dr.mDrawableSizeStart = compoundRect.width();
2460 dr.mDrawableSizeEnd = compoundRect.width();
6963 compressText(float width) argument
[all...]
H A DToolbar.java1487 + widthUsed, lp.width);
1503 * Returns the width + uncollapsed margins
1519 mPaddingLeft + mPaddingRight + hMargins + widthUsed, lp.width);
1547 int width = 0;
1566 measureChildConstrained(mNavButtonView, widthMeasureSpec, width, heightMeasureSpec, 0,
1575 measureChildConstrained(mCollapseButtonView, widthMeasureSpec, width,
1585 width += Math.max(contentInsetStart, navWidth);
1590 measureChildConstrained(mMenuView, widthMeasureSpec, width, heightMeasureSpec, 0,
1599 width += Math.max(contentInsetEnd, menuWidth);
1603 width
2177 LayoutParams(int width, int height) argument
2182 LayoutParams(int width, int height, int gravity) argument
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java263 * @param xSize The width size of the content. This should not be 0.
332 final int width = newBounds.width();
335 mFrameAndBackdropNode.setLeftTopRightBottom(left, top, left + width, top + height);
338 DisplayListCanvas canvas = mFrameAndBackdropNode.start(width, height);
343 drawable.setBounds(0, 0, left + width, top + mLastCaptionHeight);
349 mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height);
354 drawColorViews(left, top, width, height, fullscreen, systemInsets, stableInsets);
362 private void drawColorViews(int left, int top, int width, int height, argument
367 DisplayListCanvas canvas = mSystemBarBackgroundNode.start(width, heigh
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java115 public void setFixedSize(int width, int height) { argument
116 if (mRequestedWidth != width || mRequestedHeight != height) {
117 mRequestedWidth = width;
227 public void setSurfaceFrameSize(int width, int height) { argument
230 mSurfaceFrame.right = width;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuView.java157 // Make sure to have some width for the divider
179 * @param width The available width for the icon menu.
181 private void layoutItems(int width) { argument
322 * @param menuWidth The width of this menu to assume for positioning
371 // Increment by item width
382 // Increment by divider width (even if we're not computing
417 // Maximum possible width and desired height
655 * @param width The available width o
657 calculateItemFittingMetadata(int width) argument
757 LayoutParams(int width, int height) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java458 // Check against our minimum height and width
482 final int width = child.getMeasuredWidth();
493 child.layout(childLeft, childTop, childLeft + width, childTop + height);
817 public LayoutParams(int width, int height) { argument
818 super(width, height);

Completed in 362 milliseconds

1234567891011>>