/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingAppWidgetHostView.java | 240 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()
|
D | DeferredAppWidgetHostView.java | 67 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/ |
D | OptionSelectorController.java | 299 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/ |
D | DefaultIndicatorSeekBar.java | 62 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/ |
D | WindowBounds.java | 44 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/ |
D | TaskThumbnailView.java | 477 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()
|
D | RecentsView.java | 3163 int availableWidth = mLastMeasureSize.x - mEmptyMessagePadding - mEmptyMessagePadding; 3165 mEmptyMessagePaint, availableWidth)
|
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/ |
D | WorkspacePageIndicator.java | 139 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/ |
D | DropTargetBar.java | 151 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()
|
D | ButtonDropTarget.java | 314 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()
|
D | InvariantDeviceProfile.java | 527 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/ |
D | PreviewPager.java | 164 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/ |
D | DeepShortcutView.java | 149 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/ |
D | AppsSearchContainerLayout.java | 123 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/ |
D | SuggestionStripLayoutHelper.java | 473 final int availableWidth = maxWidth - paddings - dividers; in getSuggestionWidth() local 474 return (int)(availableWidth * getSuggestionWeight(positionInStrip)); in getSuggestionWidth()
|