/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutAppItemLayout.java | 51 int availableWidth = totalMeasuredWidth - totalPadding; in onMeasure() local 53 availableWidth = availableWidth - shortcutIcon.getMeasuredWidth(); in onMeasure() 56 Math.round(availableWidth * MAX_WIDTH_PERCENT_FOR_KEYWORDS)); in onMeasure()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarContextView.java | 322 int availableWidth = contentWidth - getPaddingLeft() - getPaddingRight(); in onMeasure() local 327 availableWidth = measureChildView(mClose, availableWidth, childSpecHeight, 0); in onMeasure() 329 availableWidth -= lp.leftMargin + lp.rightMargin; in onMeasure() 333 availableWidth = measureChildView(mMenuView, availableWidth, in onMeasure() 343 final boolean titleFits = titleWidth <= availableWidth; in onMeasure() 345 availableWidth -= titleWidth; in onMeasure() 349 availableWidth = measureChildView(mTitleLayout, availableWidth, childSpecHeight, 0); in onMeasure() 358 Math.min(lp.width, availableWidth) : availableWidth; in onMeasure()
|
D | ActionBarView.java | 926 int availableWidth = contentWidth - paddingLeft - paddingRight; in onMeasure() local 927 int leftOfCenter = availableWidth / 2; in onMeasure() 938 homeWidthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure() 958 availableWidth = Math.max(0, availableWidth - homeOffsetWidth); in onMeasure() 959 leftOfCenter = Math.max(0, availableWidth - homeOffsetWidth); in onMeasure() 963 availableWidth = measureChildView(mMenuView, availableWidth, exactHeightSpec, 0); in onMeasure() 969 availableWidth = measureChildView(mIndeterminateProgressView, availableWidth, in onMeasure() 980 availableWidth = Math.max(0, availableWidth - itemPaddingSize); in onMeasure() 983 MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in onMeasure() 986 availableWidth = Math.max(0, availableWidth - listNavWidth); in onMeasure() [all …]
|
D | AbsActionBarView.java | 305 protected int measureChildView(View child, int availableWidth, int childSpecHeight, in measureChildView() argument 307 child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST), in measureChildView() 310 availableWidth -= child.getMeasuredWidth(); in measureChildView() 311 availableWidth -= spacing; in measureChildView() 313 return Math.max(0, availableWidth); in measureChildView()
|
D | NotificationActionListLayout.java | 141 int availableWidth = innerWidth - usedWidth; in onMeasure() local 142 int maxWidthForChild = availableWidth / (notGoneChildren - measuredChildren); in onMeasure()
|
D | FloatingToolbar.java | 1188 int availableWidth = toolbarWidth; in layoutMainPanelItems() local 1251 availableWidth - mOverflowButtonSize.getWidth(); in layoutMainPanelItems() 1253 isLastItem && menuItemButtonWidth <= availableWidth; in layoutMainPanelItems() 1262 availableWidth -= menuItemButtonWidth; in layoutMainPanelItems()
|
/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() 72 x = left - (availableWidth - actualWidth); in scrollTo() 77 x = Math.min(x, right - availableWidth); in scrollTo()
|
/frameworks/base/core/java/android/widget/ |
D | AnalogClock.java | 190 int availableWidth = mRight - mLeft; in onDraw() local 193 int x = availableWidth / 2; in onDraw() 202 if (availableWidth < w || availableHeight < h) { in onDraw() 204 float scale = Math.min((float) availableWidth / (float) w, in onDraw()
|
D | AbsSeekBar.java | 949 final int availableWidth = width - mPaddingLeft - mPaddingRight; 959 scale = (availableWidth - x + mPaddingLeft) / (float) availableWidth; 968 scale = (x - mPaddingLeft) / (float) availableWidth;
|
D | TextView.java | 9442 final int availableWidth = mHorizontallyScrolling in autoSizeText() local 9448 if (availableWidth <= 0 || availableHeight <= 0) { in autoSizeText() 9454 TEMP_RECTF.right = availableWidth; in autoSizeText() 9462 makeNewLayout(availableWidth, 0 /* hintWidth */, UNKNOWN_BORING, UNKNOWN_BORING, in autoSizeText()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QuickQSPanel.java | 258 final int availableWidth = getMeasuredWidth() - getPaddingStart() - getPaddingEnd(); 259 final int leftoverWhitespace = availableWidth - maxTiles * mCellWidth; 268 Math.min(maxTiles, availableWidth / mCellWidth ); 269 mCellMarginHorizontal = (availableWidth - mColumns * mCellWidth) / (mColumns - 1);
|
D | TileLayout.java | 107 final int availableWidth = width - getPaddingStart() - getPaddingEnd(); in onMeasure() local 113 (availableWidth - mSidePadding * 2 - (mCellMarginHorizontal * mColumns)) / mColumns; in onMeasure()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PageAdapter.java | 428 final int availableWidth = mPreviewArea.getWidth(); in updatePreviewAreaPageSizeAndEmptyState() local 442 final int pageContentDesiredWidth = (int) ((((float) availableWidth in updatePreviewAreaPageSizeAndEmptyState() 459 final int horizontalPadding = (availableWidth - totalContentWidth) / 2; in updatePreviewAreaPageSizeAndEmptyState()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserActivity.java | 2259 final int availableWidth = right - left - v.getPaddingLeft() - v.getPaddingRight(); 2261 || mChooserRowAdapter.calculateChooserTargetWidth(availableWidth) 2263 || availableWidth != mCurrAvailableWidth) { 2264 mCurrAvailableWidth = availableWidth;
|