/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/ |
D | CalculatedWorkspaceSpecTest.kt | 48 val availableWidth = deviceSpec.naturalSize.first in normalPhone_returnsThirdBreakpointSpec() constant 59 workspaceSpecs.getCalculatedSpec(aspectRatio, DimensionType.WIDTH, 4, availableWidth) in normalPhone_returnsThirdBreakpointSpec() 63 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in normalPhone_returnsThirdBreakpointSpec() 91 val availableWidth = deviceSpec.naturalSize.first in smallPhone_returnsFirstBreakpointSpec() constant 102 workspaceSpecs.getCalculatedSpec(aspectRatio, DimensionType.WIDTH, 4, availableWidth) in smallPhone_returnsFirstBreakpointSpec() 106 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in smallPhone_returnsFirstBreakpointSpec() 134 val availableWidth = deviceSpec.naturalSize.first in smallPhone_returnsFirstBreakpointSpec_unsortedFile() constant 144 workspaceSpecs.getCalculatedSpec(aspectRatio, DimensionType.WIDTH, 4, availableWidth) in smallPhone_returnsFirstBreakpointSpec_unsortedFile() 148 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
|
D | CalculatedFolderSpecTest.kt | 64 var availableWidth = deviceSpec.naturalSize.first in validate_matchWidthWorkspace() variable 70 availableWidth in validate_matchWidthWorkspace() 77 availableWidth, in validate_matchWidthWorkspace() 81 assertThat(availableSpace).isEqualTo(availableWidth) in validate_matchWidthWorkspace() 90 availableWidth = 2000.dpToPx() in validate_matchWidthWorkspace() 96 availableWidth in validate_matchWidthWorkspace() 103 availableWidth, in validate_matchWidthWorkspace() 107 assertThat(availableSpace).isEqualTo(availableWidth) in validate_matchWidthWorkspace()
|
D | CalculatedAllAppsSpecTest.kt | 47 val availableWidth = deviceSpec.naturalSize.first in normalPhone_copiesFromWorkspace() constant 58 workspaceSpecs.getCalculatedSpec(aspectRatio, DimensionType.WIDTH, 4, availableWidth) in normalPhone_copiesFromWorkspace() 73 availableWidth, in normalPhone_copiesFromWorkspace() 77 assertThat(availableSpace).isEqualTo(availableWidth) in normalPhone_copiesFromWorkspace()
|
D | CalculatedHotseatSpecTest.kt | 97 val availableWidth = deviceSpec.naturalSize.second in normalPhoneLandscape_returnsSecondBreakpointSpec() constant 104 hotseatSpecsProvider.getCalculatedSpec(aspectRatio, DimensionType.WIDTH, availableWidth) in normalPhoneLandscape_returnsSecondBreakpointSpec() 106 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in normalPhoneLandscape_returnsSecondBreakpointSpec()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | DisplayAspectRatioLinearLayout.kt | 45 val availableWidth = in <lambda>() constant 48 var width = availableWidth / childCount in <lambda>() 56 val availableWidth = parentWidth - paddingStart - paddingEnd in <lambda>() constant 61 if (width > availableWidth) { in <lambda>() 62 width = availableWidth in <lambda>()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetRecommendationsView.java | 153 final @Px float availableHeight, final @Px int availableWidth, in setRecommendations() argument 156 this.mAvailableWidth = availableWidth; in setRecommendations() 161 availableWidth, cellPadding); in setRecommendations() 190 final @Px int availableWidth, final @Px int cellPadding, final int requestedPage) { in setRecommendations() argument 192 this.mAvailableWidth = availableWidth; in setRecommendations() 209 availableWidth, cellPadding); in setRecommendations() 316 final @Px int availableWidth, final @Px int cellPadding) { in maybeDisplayInTable() argument 332 availableWidth, in maybeDisplayInTable()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DropTargetBar.java | 179 int availableWidth; in onMeasure() local 183 availableWidth = (dp.availableWidthPx - dp.dropTargetGapPx) / 2; in onMeasure() 186 availableWidth = dp.availableWidthPx - dp.dropTargetGapPx; in onMeasure() 189 int widthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure() 193 if (firstButton.isTextTruncated(availableWidth)) { in onMeasure() 203 availableWidth -= firstButton.getMeasuredWidth() + dp.dropTargetGapPx; in onMeasure() 204 widthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure() 209 if (secondButton.isTextTruncated(availableWidth)) { in onMeasure()
|
D | ButtonDropTarget.java | 395 public boolean isTextTruncated(int availableWidth) { in isTextTruncated() argument 396 availableWidth -= getPaddingLeft() + getPaddingRight(); in isTextTruncated() 398 availableWidth -= mDrawable.getIntrinsicWidth() + getCompoundDrawablePadding(); in isTextTruncated() 400 if (availableWidth <= 0) { in isTextTruncated() 403 CharSequence firstLine = TextUtils.ellipsize(mText, getPaint(), availableWidth, in isTextTruncated() 414 getPaint(), availableWidth, TextUtils.TruncateAt.END); in isTextTruncated() 452 int availableWidth = getMeasuredWidth(); in resizeTextToFit() local 455 while (isTextTruncated(availableWidth) || isTextClippedVertically(availableHeight)) { in resizeTextToFit()
|
/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 | 50 public WindowBounds(int width, int height, int availableWidth, int availableHeight, in WindowBounds() argument 53 this.availableSize = new Point(availableWidth, availableHeight); in WindowBounds() 55 this.insets = new Rect(0, 0, width - availableWidth, height - availableHeight); in WindowBounds()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/ |
D | EqualWidthContainer.kt | 35 val availableWidth = in onMeasure() constant 37 orientation = if (neededWidth <= availableWidth) HORIZONTAL else VERTICAL in onMeasure()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingAppWidgetHostView.java | 392 int availableWidth = getWidth() - paddingLeft - paddingRight - 2 * minPadding; in updateDrawableBounds() local 396 : Math.max(0, Math.min(availableWidth, availableHeight)); in updateDrawableBounds() 402 int maxSize = Math.max(availableWidth, availableHeight); in updateDrawableBounds() 414 if (availableWidth > 0 && !TextUtils.isEmpty(mLabel) in updateDrawableBounds() 418 mLabel, mPaint, availableWidth, Layout.Alignment.ALIGN_CENTER, 1, 0, true); in updateDrawableBounds()
|
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/ |
D | WorkspacePageIndicator.java | 136 int availableWidth = getWidth(); in onDraw() local 137 int lineWidth = (int) (availableWidth / mNumPagesFloat); in onDraw() 138 int lineLeft = (int) (progress * (availableWidth - lineWidth)); in onDraw()
|
/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 | 150 int availableWidth = mBubbleText.getWidth() - mBubbleText.getTotalPaddingLeft() in applyShortcutInfo() local 153 && mBubbleText.getPaint().measureText(longLabel.toString()) <= availableWidth; in applyShortcutInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | AppsSearchContainerLayout.java | 121 int availableWidth = parent.getWidth() - parent.getPaddingLeft() - parent.getPaddingRight(); in onLayout() local 123 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()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | ChooserActivity.java | 2251 final int availableWidth = right - left - v.getPaddingLeft() - v.getPaddingRight(); 2253 gridAdapter.calculateChooserTargetWidth(availableWidth) 2255 || availableWidth != mCurrAvailableWidth; 2262 mCurrAvailableWidth = availableWidth;
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | RecentsView.java | 5132 int availableWidth = mLastMeasureSize.x - mEmptyMessagePadding - mEmptyMessagePadding; 5134 mEmptyMessagePaint, availableWidth)
|