Home
last modified time | relevance | path

Searched refs:availableSpace (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpec.kt186 var availableSpace: Int = 0 variable in com.android.launcher3.responsive.CalculatedResponsiveSpec
209 availableSpace: Int,
215 this.availableSpace = availableSpace
222 availableSpace,
226 spec.endPadding.getCalculatedValue(availableSpace, calculatedWorkspaceSpec.endPaddingPx)
227 gutterPx = spec.gutter.getCalculatedValue(availableSpace, calculatedWorkspaceSpec.gutterPx)
229 spec.cellSize.getCalculatedValue(availableSpace, calculatedWorkspaceSpec.cellSizePx)
231 updateRemainderSpaces(availableSpace, cells, spec)
234 constructor(aspectRatio: Float, availableSpace: Int, cells: Int, spec: ResponsiveSpec) {
236 this.availableSpace = availableSpace
[all …]
DResponsiveCellSpecsProvider.kt150 val availableSpace: Int, constant in CalculatedCellSpec
157 availableSpace: Int,
160 availableSpace = availableSpace,
162 iconSize = spec.iconSize.getCalculatedValue(availableSpace),
163 iconTextSize = spec.iconTextSize.getCalculatedValue(availableSpace),
164 iconDrawablePadding = spec.iconDrawablePadding.getCalculatedValue(availableSpace)
168 availableSpace: Int,
172 availableSpace = availableSpace,
174 iconSize = getCalculatedValue(availableSpace, spec.iconSize, workspaceCellSpec.iconSize),
176 getCalculatedValue(availableSpace, spec.iconTextSize, workspaceCellSpec.iconTextSize),
[all …]
DHotseatSpecsProvider.kt55 availableSpace: Int, in getCalculatedSpec()
62 val spec = getSpecIgnoringDimensionType(availableSpace, specsGroup) in getCalculatedSpec()
63 check(spec != null) { "No available spec found within $availableSpace. $specsGroup" } in getCalculatedSpec()
65 return CalculatedHotseatSpec(availableSpace, spec) in getCalculatedSpec()
146 class CalculatedHotseatSpec(val availableSpace: Int, val spec: HotseatSpec) { constant in CalculatedHotseatSpec
155 hotseatQsbSpace = spec.hotseatQsbSpace.getCalculatedValue(availableSpace)
156 edgePadding = spec.edgePadding.getCalculatedValue(availableSpace)
160 var result = availableSpace.hashCode() in hashCode()
169 availableSpace == other.availableSpace && in equals()
177 "availableSpace=$availableSpace, hotseatQsbSpace=$hotseatQsbSpace, " + in toString()
DResponsiveSpecsProvider.kt75 availableSpace: Int, in <lambda>()
78 val spec = specsGroup.getSpec(dimensionType, availableSpace) in <lambda>()
79 return CalculatedResponsiveSpec(aspectRatio, availableSpace, numCells, spec) in <lambda>()
100 availableSpace: Int, in <lambda>()
116 val spec = specsGroup.getSpec(dimensionType, availableSpace) in <lambda>()
119 availableSpace, in <lambda>()
DSizeSpec.kt45 fun getCalculatedValue(availableSpace: Int, workspaceValue: Int = 0): Int { in getCalculatedValue()
50 ofAvailableSpace > 0 -> (ofAvailableSpace * availableSpace).roundToInt() in getCalculatedValue()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/
DFolderSpecTest.kt118 val availableSpace = 900.dpToPx() in parseInvalidFile_missingWidthBreakpoint_throwsError() constant
123 maxAvailableSize = availableSpace, in parseInvalidFile_missingWidthBreakpoint_throwsError()
132 CalculatedResponsiveSpec(aspectRatio, availableSpace, cells, workspaceSpec) in parseInvalidFile_missingWidthBreakpoint_throwsError()
140 availableSpace, in parseInvalidFile_missingWidthBreakpoint_throwsError()
147 val availableSpace = 900.dpToPx() in parseInvalidFile_missingHeightBreakpoint_throwsError() constant
152 maxAvailableSize = availableSpace, in parseInvalidFile_missingHeightBreakpoint_throwsError()
161 CalculatedResponsiveSpec(aspectRatio, availableSpace, cells, workspaceSpec) in parseInvalidFile_missingHeightBreakpoint_throwsError()
169 availableSpace, in parseInvalidFile_missingHeightBreakpoint_throwsError()
176 val availableSpace = 800.dpToPx() in retrievesCalculatedWidthSpec() constant
181 maxAvailableSize = availableSpace, in retrievesCalculatedWidthSpec()
[all …]
DCalculatedWorkspaceSpecTest.kt63 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in normalPhone_returnsThirdBreakpointSpec()
70 assertThat(heightSpec.availableSpace).isEqualTo(availableHeight) in normalPhone_returnsThirdBreakpointSpec()
106 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in smallPhone_returnsFirstBreakpointSpec()
113 assertThat(heightSpec.availableSpace).isEqualTo(availableHeight) in smallPhone_returnsFirstBreakpointSpec()
148 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
155 assertThat(heightSpec.availableSpace).isEqualTo(availableHeight) in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
DCalculatedHotseatSpecTest.kt57 assertThat(heightSpec.availableSpace).isEqualTo(availableHeight) in normalPhone_returnsSecondBreakpointSpec()
83 assertThat(heightSpec.availableSpace).isEqualTo(availableHeight) in smallPhone_returnsFirstBreakpointSpec()
106 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in normalPhoneLandscape_returnsSecondBreakpointSpec()
DSizeSpecTest.kt63 val availableSpace = 100 in validate_getCalculatedValue() constant
68 SizeSpec(ofAvailableSpace = .5f) to (availableSpace * .5f).roundToInt(), in validate_getCalculatedValue()
79 val value = sizeSpec.getCalculatedValue(availableSpace, matchWorkspaceValue) in validate_getCalculatedValue()
DCalculatedFolderSpecTest.kt81 assertThat(availableSpace).isEqualTo(availableWidth) in validate_matchWidthWorkspace()
107 assertThat(availableSpace).isEqualTo(availableWidth) in validate_matchWidthWorkspace()
155 assertThat(availableSpace).isEqualTo(availableHeight) in validate_matchHeightWorkspace()
DCalculatedAllAppsSpecTest.kt77 assertThat(availableSpace).isEqualTo(availableWidth) in normalPhone_copiesFromWorkspace()
94 assertThat(availableSpace).isEqualTo(availableHeight) in normalPhone_copiesFromWorkspace()
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java167 private boolean suggestedSizeFitsInSpace(float suggestedSizeInPx, RectF availableSpace) { in suggestedSizeFitsInSpace() argument
173 return textPaint.getFontSpacing() <= availableSpace.bottom in suggestedSizeFitsInSpace()
174 && textPaint.measureText(text) <= availableSpace.right; in suggestedSizeFitsInSpace()
191 return layout.getHeight() <= availableSpace.bottom; in suggestedSizeFitsInSpace()
202 private float computeTextSize(int minSize, int maxSize, RectF availableSpace) { in computeTextSize() argument
207 int size = binarySearchSizes(minSize, maxSize, availableSpace); in computeTextSize()
218 private int binarySearchSizes(int minSize, int maxSize, RectF availableSpace) { in binarySearchSizes() argument
226 if (suggestedSizeFitsInSpace(dimension, availableSpace)) { in binarySearchSizes()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DClippedFolderIconLayoutRule.java26 public void init(int availableSpace, float intrinsicIconSize, boolean rtl) { in init() argument
27 mAvailableSpace = availableSpace; in init()
28 mRadius = ITEM_RADIUS_SCALE_FACTOR * availableSpace / 2f; in init()
31 mBaselineIconScale = availableSpace / (intrinsicIconSize * 1f); in init()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DScanNativeInterface.java273 void onScanFilterParamsConfigured(int action, int status, int clientIf, int availableSpace) { in onScanFilterParamsConfigured() argument
278 mScanHelper.onScanFilterParamsConfigured(action, status, clientIf, availableSpace); in onScanFilterParamsConfigured()
282 int action, int status, int clientIf, int filterType, int availableSpace) { in onScanFilterConfig() argument
287 mScanHelper.onScanFilterConfig(action, status, clientIf, filterType, availableSpace); in onScanFilterConfig()
DTransitionalScanHelper.java610 int action, int status, int clientIf, int availableSpace) { in onScanFilterParamsConfigured() argument
620 + availableSpace); in onScanFilterParamsConfigured()
626 int action, int status, int clientIf, int filterType, int availableSpace) { in onScanFilterConfig() argument
638 + availableSpace); in onScanFilterConfig()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryChartView.java403 final float availableSpace = bottomOffsetY - topOffsetY; in drawHorizontalDividers() local
406 final float dividerOffsetUnit = availableSpace / (float) (HORIZONTAL_DIVIDER_COUNT - 1); in drawHorizontalDividers()
611 final float availableSpace = in drawTrapezoids() local
613 final float unitHeight = availableSpace / 100f; in drawTrapezoids()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java600 int availableSpace = hotseatQsbSpace - (mInsets.bottom - hotseatBarBottomSpace); in DeviceProfile() local
603 if (availableSpace > 0) { in DeviceProfile()
605 if (availableSpace < minQsbMargin * 2) { in DeviceProfile()
606 minQsbMargin = availableSpace / 2; in DeviceProfile()