Home
last modified time | relevance | path

Searched refs:minHeight (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
DSize.kt65 minHeight = height, in Modifier()
82 minHeight = height, in size()
98 private val minHeight: Density.() -> Int = SizeUnspecified, constant in com.android.compose.modifiers.SizeModifier
126 val minHeight = constant
127 if (minHeight != SizeUnspecified) {
128 minHeight().coerceAtMost(maxHeight).coerceAtLeast(0).let { in <lambda>()
136 minHeight = minHeight,
164 if (minHeight != SizeUnspecified) { in measure()
165 targetConstraints.minHeight in measure()
167 constraints.minHeight.coerceAtMost(targetConstraints.maxHeight) in measure()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DSizeVoteTest.kt47 summary.minHeight = 200 in updates size if width and height not set and display resolution voting disabled()
54 assertThat(summary.minHeight).isEqualTo(MIN_HEIGHT) in updates size if width and height not set and display resolution voting disabled()
63 summary.minHeight = 200 in does not update size if width set and display resolution voting disabled()
70 assertThat(summary.minHeight).isEqualTo(200) in does not update size if width set and display resolution voting disabled()
79 summary.minHeight = 200 in does not update size if height set and display resolution voting disabled()
86 assertThat(summary.minHeight).isEqualTo(200) in does not update size if height set and display resolution voting disabled()
152 fun `updates minHeight if summary has less and display resolution voting enabled`() { in updates minHeight if summary has less and display resolution voting enabled()
155 summary.minHeight = 1150 in updates minHeight if summary has less and display resolution voting enabled()
159 assertThat(summary.minHeight).isEqualTo(MIN_HEIGHT) in updates minHeight if summary has less and display resolution voting enabled()
163 fun `does not update minHeight if summary has more and display resolution voting enabled`() { in does not update minHeight if summary has more and display resolution voting enabled()
[all …]
/frameworks/base/services/core/java/com/android/server/display/mode/
DSizeVote.java45 SizeVote(int width, int height, int minWidth, int minHeight) { in SizeVote() argument
49 mMinHeight = minHeight; in SizeVote()
62 summary.minHeight = mMinHeight; in updateSummary()
67 summary.minHeight = Math.max(summary.minHeight, mMinHeight); in updateSummary()
DVoteSummary.java41 public int minHeight; field in VoteSummary
369 || mode.getPhysicalHeight() < minHeight in updateSummaryWithBestAllowedResolution()
394 minHeight = 0; in reset()
418 + ", minHeight=" + minHeight in toString()
DVote.java198 static Vote forSizeAndPhysicalRefreshRatesRange(int minWidth, int minHeight, in forSizeAndPhysicalRefreshRatesRange() argument
202 new SizeVote(width, height, minWidth, minHeight), in forSizeAndPhysicalRefreshRatesRange()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/
DLargeTopAppBarNestedScrollConnection.kt39 minHeight: () -> Float, in <lambda>()
47 offsetAvailable < 0 && offsetBeforeStart == 0f && height() > minHeight() in <lambda>()
57 minHeight() < currentHeight && currentHeight < maxHeight() in <lambda>()
68 val amountLeft = minHeight() - currentHeight in <lambda>()
/frameworks/base/core/java/com/android/internal/widget/
DButtonBarLayout.java110 int minHeight = 0; in onMeasure() local
115 minHeight += getPaddingTop() + firstButton.getMeasuredHeight() in onMeasure()
120 minHeight += getChildAt(secondVisible).getPaddingTop() in onMeasure()
124 minHeight += getPaddingBottom(); in onMeasure()
128 if (getMinimumHeight() != minHeight) { in onMeasure()
129 setMinimumHeight(minHeight); in onMeasure()
DAlertDialogLayout.java258 final int minHeight = v.getMinimumHeight(); in resolveMinimumHeight() local
259 if (minHeight > 0) { in resolveMinimumHeight()
260 return minHeight; in resolveMinimumHeight()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DButtonBarLayout.java108 int minHeight = 0; in onMeasure() local
113 minHeight += getPaddingTop() + firstButton.getMeasuredHeight() in onMeasure()
118 minHeight += getChildAt(secondVisible).getPaddingTop() in onMeasure()
122 minHeight += getPaddingBottom(); in onMeasure()
126 if (getMinimumHeight() != minHeight) { in onMeasure()
127 setMinimumHeight(minHeight); in onMeasure()
DAlertDialogLayout.java257 final int minHeight = v.getMinimumHeight(); in resolveMinimumHeight() local
258 if (minHeight > 0) { in resolveMinimumHeight()
259 return minHeight; in resolveMinimumHeight()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPhoneSizeSpecSource.kt200 var minHeight = Math.round(maxSize.height * mPreferredMinimumSizePercent) in getMinSize() variable
204 minHeight = Math.max(minHeight, mDefaultMinSize) in getMinSize()
205 minWidth = Math.round(minHeight * aspectRatio) in getMinSize()
208 minHeight = Math.round(minWidth / aspectRatio) in getMinSize()
210 return Size(minWidth, minHeight) in getMinSize()
DLegacySizeSpecSource.kt129 val minHeight: Int in getMinSize() constant
133 minHeight = (minWidth / aspectRatio).toInt() in getMinSize()
135 minHeight = Math.min(getDefaultSize(aspectRatio).height.toFloat(), in getMinSize()
137 minWidth = (minHeight * aspectRatio).toInt() in getMinSize()
139 return Size(minWidth, minHeight) in getMinSize()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProviderInfo.java165 public int minHeight; field in AppWidgetProviderInfo
390 this.minHeight = in.readInt(); in AppWidgetProviderInfo()
517 out.writeInt(this.minHeight); in writeToParcel()
550 that.minHeight = this.minHeight; in clone()
605 minHeight = TypedValue.complexToDimensionPixelSize(minHeight, displayMetrics); in updateDimensions()
DAppWidgetHostView.java368 public void updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, in updateAppWidgetSize() argument
370 updateAppWidgetSize(newOptions, minWidth, minHeight, maxWidth, maxHeight, false); in updateAppWidgetSize()
400 float minHeight = Float.MAX_VALUE; in updateAppWidgetSize() local
409 minHeight = Math.min(minHeight, paddedSize.getHeight()); in updateAppWidgetSize()
419 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT, (int) minHeight); in updateAppWidgetSize()
430 public void updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, in updateAppWidgetSize() argument
443 int newMinHeight = minHeight - (ignorePadding ? 0 : yPaddingDips); in updateAppWidgetSize()
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java2311 int gravity, int minWidth, int minHeight) {
2312 this(width, widthFraction, height, heightFraction, gravity, minWidth, minHeight,
2318 int gravity, int minWidth, int minHeight, String windowLayoutAffinity) {
2325 this.minHeight = minHeight;
2337 minHeight = source.readInt();
2402 public final int minHeight;
2429 dest.writeInt(minHeight);
/frameworks/base/core/java/android/app/
DTaskInfo.java241 public int minHeight; field in TaskInfo
489 minHeight = source.readInt(); in readFromParcel()
536 dest.writeInt(minHeight); in writeToParcel()
565 + " minHeight=" + minHeight in toString()
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp457 AString minWidth, minHeight; in codecHandlesFormat() local
464 if (!splitString(minSize, "x", &minWidth, &minHeight)) { in codecHandlesFormat()
465 if (!splitString(minSize, "*", &minWidth, &minHeight)) { in codecHandlesFormat()
479 int minH = strtol(minHeight.c_str(), NULL, 10); in codecHandlesFormat()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/statusbar/ui/composable/
DStatusBar.kt37 modifier = modifier.fillMaxWidth().defaultMinSize(minHeight = 48.dp).padding(4.dp), in StatusBar()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsModifierTestsBase.java196 WindowLayoutBuilder setMinHeight(int minHeight) { in setMinHeight() argument
197 mMinHeight = minHeight; in setMinHeight()
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java38 public abstract Bitmap acquireBitmap(int minWidth, int minHeight); in acquireBitmap() argument
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/dialog/ui/composable/
DAlertDialogContent.kt69 Modifier.defaultMinSize(minWidth = defaultSize, minHeight = defaultSize), in <lambda>()
92 Box(Modifier.defaultMinSize(minHeight = 48.dp)) { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationShelfTest.kt166 whenever(expandableView.minHeight).thenReturn(20) in getAmountInShelf_lastViewBelowShelf_completelyInShelf()
196 whenever(expandableView.minHeight).thenReturn(20) in getAmountInShelf_lastViewAlmostBelowShelf_completelyInShelf()
226 whenever(expandableView.minHeight).thenReturn(25) in getAmountInShelf_lastViewHalfClippedByShelf_halfInShelf()
256 whenever(expandableView.minHeight).thenReturn(10) in getAmountInShelf_lastViewAboveShelf_notInShelf()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DParsedActivityTest.kt75 ActivityInfo.WindowLayout::minHeight in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragPositioningCallbackUtility.java186 return windowDecoration.mTaskInfo.minHeight < 0 ? getDefaultMinHeight(displayController, in getMinHeight()
188 : windowDecoration.mTaskInfo.minHeight; in getMinHeight()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/
DNotificationHeadsUpHeight.kt73 constraints.copy(minHeight = contentHeight, maxHeight = contentHeight) in measure()

123