Home
last modified time | relevance | path

Searched refs:availableWidth (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java240 int availableWidth = getWidth() - paddingLeft - paddingRight - 2 * minPadding; in updateDrawableBounds() local
245 int size = Math.min(maxSize, Math.min(availableWidth, availableHeight)); in updateDrawableBounds()
251 float iconSize = Math.max(0, Math.min(availableWidth, availableHeight)); in updateDrawableBounds()
256 int maxSize = Math.max(availableWidth, availableHeight); in updateDrawableBounds()
268 if (availableWidth > 0) { in updateDrawableBounds()
271 getResources().getText(R.string.gadget_setup_text), mPaint, availableWidth, in updateDrawableBounds()
DDeferredAppWidgetHostView.java67 int availableWidth = getMeasuredWidth() - 2 * (getPaddingLeft() + getPaddingRight()); in onMeasure() local
69 && mSetupTextLayout.getWidth() == availableWidth) { in onMeasure()
72 mSetupTextLayout = new StaticLayout(info.label, mPaint, availableWidth, in onMeasure()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java299 int availableWidth; in initOptions() local
304 availableWidth = metrics.widthPixels; in initOptions()
306 availableWidth = fixWidth; in initOptions()
313 int extraSpace = availableWidth - widthPerItem * numColumns; in initOptions()
316 extraSpace = availableWidth - widthPerItem * numColumns; in initOptions()
325 int extraSpace = availableWidth - totalWidth; in initOptions()
331 int spaceBetweenItems = availableWidth in initOptions()
/packages/apps/Settings/src/com/android/settings/widget/
DDefaultIndicatorSeekBar.java62 final int availableWidth = getWidth() - mPaddingLeft - mPaddingRight; in drawTickMarks() local
65 final int offset = (int) ((scale * availableWidth) + 0.5f); in drawTickMarks()
67 ? availableWidth - offset + mPaddingRight : offset + mPaddingLeft; in drawTickMarks()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWindowBounds.java44 public WindowBounds(int width, int height, int availableWidth, int availableHeight) { in WindowBounds() argument
46 this.availableSize = new Point(availableWidth, availableHeight); in WindowBounds()
48 this.insets = new Rect(0, 0, width - availableWidth, height - availableHeight); in WindowBounds()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskThumbnailView.java477 float availableWidth = surfaceWidth in updateThumbnailMatrix() local
484 float availableAspect = availableHeight / availableWidth; in updateThumbnailMatrix()
508 float croppedWidth = availableWidth; in updateThumbnailMatrix()
530 thumbnailClipHint.left += availableWidth - croppedWidth; in updateThumbnailMatrix()
536 thumbnailClipHint.right += availableWidth - croppedWidth; in updateThumbnailMatrix()
DRecentsView.java3163 int availableWidth = mLastMeasureSize.x - mEmptyMessagePadding - mEmptyMessagePadding;
3165 mEmptyMessagePaint, availableWidth)
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DWorkspacePageIndicator.java139 int availableWidth = getWidth(); in onDraw() local
140 int lineWidth = (int) (availableWidth / mNumPagesFloat); in onDraw()
141 int lineLeft = (int) (progress * (availableWidth - lineWidth)); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java151 int availableWidth = width / visibleCount; in onMeasure() local
155 textVisible = textVisible && !buttons.isTextTruncated(availableWidth); in onMeasure()
159 int widthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure()
DButtonDropTarget.java314 public boolean isTextTruncated(int availableWidth) { in isTextTruncated() argument
315 availableWidth -= (getPaddingLeft() + getPaddingRight() + mDrawable.getIntrinsicWidth() in isTextTruncated()
317 CharSequence displayedText = TextUtils.ellipsize(mText, getPaint(), availableWidth, in isTextTruncated()
DInvariantDeviceProfile.java527 float availableWidth = config.screenWidthDp * res.getDisplayMetrics().density; in getDeviceProfile() local
534 float diff = Math.abs(profile.availableWidthPx - availableWidth) in getDeviceProfile()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DPreviewPager.java164 int availableWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
168 if (availableWidth > 0) { in onMeasure()
171 int hPadding = (availableWidth / 2) - (absoluteCardWidth / 2); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DDeepShortcutView.java149 int availableWidth = mBubbleText.getWidth() - mBubbleText.getTotalPaddingLeft() in applyShortcutInfo() local
152 && mBubbleText.getPaint().measureText(longLabel.toString()) <= availableWidth; in applyShortcutInfo()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DAppsSearchContainerLayout.java123 int availableWidth = parent.getWidth() - parent.getPaddingLeft() - parent.getPaddingRight(); in onLayout() local
125 int expectedLeft = parent.getPaddingLeft() + (availableWidth - myWidth) / 2; in onLayout()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java473 final int availableWidth = maxWidth - paddings - dividers; in getSuggestionWidth() local
474 return (int)(availableWidth * getSuggestionWeight(positionInStrip)); in getSuggestionWidth()