/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 | 156 int availableWidth = innerWidth - usedWidth; in onMeasure() local 158 int maxWidthForChild = availableWidth / unmeasuredChildren; in onMeasure() 166 int widthAvailableForPriority = availableWidth - widthReservedForOtherChildren; in onMeasure()
|
D | FloatingToolbar.java | 1196 int availableWidth = toolbarWidth; in layoutMainPanelItems() local 1259 availableWidth - mOverflowButtonSize.getWidth(); in layoutMainPanelItems() 1261 isLastItem && menuItemButtonWidth <= availableWidth; in layoutMainPanelItems() 1270 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/packages/SystemUI/src/com/android/systemui/media/ |
D | SeekBarViewModel.kt | 344 val availableWidth = bar.width - padL - padR in onDown() constant 346 padL + availableWidth * (1 - widthFraction) in onDown() 348 padL + availableWidth * widthFraction in onDown()
|
/frameworks/base/core/java/android/widget/ |
D | AbsSeekBar.java | 908 final int availableWidth = getWidth() - mPaddingLeft - mPaddingRight; 910 - getMin()) - (event.getX() - mPaddingLeft) / availableWidth; 911 if (Math.abs(mTouchThumbOffset * availableWidth) > getThumbOffset()) { 987 final int availableWidth = width - mPaddingLeft - mPaddingRight; 997 scale = (availableWidth - x + mPaddingLeft) / (float) availableWidth 1007 scale = (x - mPaddingLeft) / (float) availableWidth + mTouchThumbOffset;
|
D | AnalogClock.java | 676 int availableWidth = mRight - mLeft; in onDraw() local 679 int x = availableWidth / 2; in onDraw() 688 if (availableWidth < w || availableHeight < h) { in onDraw() 690 float scale = Math.min((float) availableWidth / (float) w, in onDraw()
|
D | TextView.java | 9572 final int availableWidth = mHorizontallyScrolling in autoSizeText() local 9578 if (availableWidth <= 0 || availableHeight <= 0) { in autoSizeText() 9584 TEMP_RECTF.right = availableWidth; in autoSizeText() 9592 makeNewLayout(availableWidth, 0 /* hintWidth */, UNKNOWN_BORING, UNKNOWN_BORING, in autoSizeText()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | Task.java | 297 float availableWidth = lastSnapshotData.taskSize.x; in getVisibleThumbnailRatio() local 300 availableWidth -= in getVisibleThumbnailRatio() 305 return availableWidth / availableHeight; in getVisibleThumbnailRatio()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | TileLayout.java | 150 final int availableWidth = width - getPaddingStart() - getPaddingEnd(); in onMeasure() local 157 (availableWidth - (mCellMarginHorizontal * gaps) - mSidePadding * 2) / 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 | 2679 final int availableWidth = right - left - v.getPaddingLeft() - v.getPaddingRight(); 2681 || gridAdapter.calculateChooserTargetWidth(availableWidth) 2683 || availableWidth != mCurrAvailableWidth; 2686 mCurrAvailableWidth = availableWidth;
|