Searched refs:availableWidth (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/java/android/text/method/ |
D | Touch.java | 39 final int availableWidth = widget.getWidth() - horizontalPadding; in scrollTo() local 59 right = availableWidth; in scrollTo() 64 if (actualWidth < availableWidth) { in scrollTo() 66 x = left - ((availableWidth - actualWidth) / 2); in scrollTo() 70 x = left - (availableWidth - actualWidth); in scrollTo() 75 x = Math.min(x, right - availableWidth); in scrollTo()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarContextView.java | 342 int availableWidth = contentWidth - getPaddingLeft() - getPaddingRight(); in onMeasure() local 347 availableWidth = measureChildView(mClose, availableWidth, childSpecHeight, 0); in onMeasure() 349 availableWidth -= lp.leftMargin + lp.rightMargin; in onMeasure() 353 availableWidth = measureChildView(mMenuView, availableWidth, in onMeasure() 362 final boolean titleFits = titleWidth <= availableWidth; in onMeasure() 364 availableWidth -= titleWidth; in onMeasure() 368 availableWidth = measureChildView(mTitleLayout, availableWidth, childSpecHeight, 0); in onMeasure() 377 Math.min(lp.width, availableWidth) : availableWidth; in onMeasure()
|
D | AbsActionBarView.java | 211 protected int measureChildView(View child, int availableWidth, int childSpecHeight, in measureChildView() argument 213 child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in measureChildView() 216 availableWidth -= child.getMeasuredWidth(); in measureChildView() 217 availableWidth -= spacing; in measureChildView() 219 return Math.max(0, availableWidth); in measureChildView()
|
D | ActionBarView.java | 859 int availableWidth = contentWidth - paddingLeft - paddingRight; in onMeasure() local 860 int leftOfCenter = availableWidth / 2; in onMeasure() 869 homeWidthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure() 876 availableWidth = Math.max(0, availableWidth - homeWidth); in onMeasure() 877 leftOfCenter = Math.max(0, availableWidth - homeWidth); in onMeasure() 881 availableWidth = measureChildView(mMenuView, availableWidth, in onMeasure() 888 availableWidth = measureChildView(mIndeterminateProgressView, availableWidth, in onMeasure() 902 availableWidth = Math.max(0, availableWidth - itemPaddingSize); in onMeasure() 905 MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in onMeasure() 908 availableWidth = Math.max(0, availableWidth - listNavWidth); in onMeasure() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | AnalogClock.java | 169 int availableWidth = mRight - mLeft; in onDraw() local 172 int x = availableWidth / 2; in onDraw() 181 if (availableWidth < w || availableHeight < h) { in onDraw() 183 float scale = Math.min((float) availableWidth / (float) w, in onDraw()
|