Home
last modified time | relevance | path

Searched refs:maxLines (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/widget/
DImageFloatingTextView.java104 int maxLines; in makeSingleLayout() local
106 maxLines = mMaxLinesForHeight; in makeSingleLayout()
108 maxLines = getMaxLines() >= 0 ? getMaxLines() : Integer.MAX_VALUE; in makeSingleLayout()
112 maxLines = Math.min(maxLines, mMaxLineUpperLimit); in makeSingleLayout()
115 builder.setMaxLines(maxLines); in makeSingleLayout()
116 mLayoutMaxLines = maxLines; in makeSingleLayout()
182 int maxLines = layout.getLineCount(); in onMeasure() local
183 while (maxLines > 1 && layout.getLineBottom(maxLines - 1) > availableHeight) { in onMeasure()
184 maxLines--; in onMeasure()
187 maxLines = Math.min(getMaxLines(), maxLines); in onMeasure()
[all …]
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/components/
DTexts.kt50 maxLines = 2, in WearDisplayNameText()
69 maxLines = 2,
79 maxLines: Int = 1, in WearButtonText()
91 maxLines = maxLines,
109 maxLines = 1,
DCredentialsScreenChip.kt60 maxLines = if (secondaryLabel != null) 1 else 2 in CredentialsScreenChip()
/frameworks/base/core/java/android/app/smartspace/uitemplatedata/
DText.java50 private Text(@NonNull CharSequence text, TextUtils.TruncateAt truncateAtType, int maxLines) { in Text() argument
53 mMaxLines = maxLines; in Text()
156 public Builder setMaxLines(int maxLines) { in setMaxLines() argument
157 mMaxLines = maxLines; in setMaxLines()
/frameworks/base/core/java/android/util/
DLocalLog.java50 public LocalLog(int maxLines) { in LocalLog() argument
51 this(maxLines, true /* useLocalTimestamps */); in LocalLog()
54 public LocalLog(int maxLines, boolean useLocalTimestamps) { in LocalLog() argument
55 mMaxLines = Math.max(0, maxLines); in LocalLog()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DText.kt91 maxLines: Int = Int.MAX_VALUE, in SettingsBody()
100 maxLines = maxLines, in SettingsBody()
139 maxLines = 1, in BasePreferencePreview()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DVariableDayDate.kt28 maxLines = 1, in <lambda>()
36 maxLines = 1, in <lambda>()
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java190 private static String truncate(String text, int maxLines) { in truncate() argument
193 for (int i = 0; i < maxLines && i < lines.length; i++) { in truncate()
197 if (lines.length > maxLines) { in truncate()
199 ret.append(lines.length - maxLines); in truncate()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/spatialaudio/ui/composable/
DSpatialAudioPopup.kt70 maxLines = 1, in Title()
103 maxLines = 2 in Content()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/people/ui/compose/
DPeopleScreenEmpty.kt111 maxLines = 1, in ExampleTile()
121 maxLines = 1, in ExampleTile()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/volume/ui/composable/
DVolumeSliderContent.kt72 maxLines = 1, in VolumeSliderContent()
87 maxLines = 1, in VolumeSliderContent()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/ui/
DTexts.kt76 maxLines = if (enforceOneLine) 1 else Int.MAX_VALUE,
110 maxLines = if (enforceOneLine) 1 else Int.MAX_VALUE,
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt118 title = { Title(title = title, maxLines = 3) }, in <lambda>()
122 smallTitle = { Title(title = title, maxLines = 1) }, in <lambda>()
134 private fun Title(title: String, maxLines: Int = Int.MAX_VALUE) { in Title()
143 maxLines = maxLines, in Title()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/preference/
DBasePreference.kt52 maxLines = if (singleLineSummary) 1 else Int.MAX_VALUE, in <lambda>()
DListPreference.kt141 maxLines = 1 in Radio()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/mediaoutput/ui/composable/
DMediaOutputComponent.kt123 maxLines = 1, in <lambda>()
131 maxLines = 1, in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/
DAncPopup.kt64 maxLines = 1, in Title()
DAncButtonComponent.kt111 maxLines = 2, in Content()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DBiometricCustomizedViewBinder.kt203 val maxLines = in PromptContentItem() constant
208 return numLines > maxLines in PromptContentItem()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/
DToggleButtonComponent.kt106 maxLines = 2, in Content()
DButtonComponent.kt109 maxLines = 2, in Content()
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/ui/compose/
DBrightnessSlider.kt98 maxLines = 1, in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DEnableWidgetDialog.kt111 maxLines = 1, in DialogComposable()
/frameworks/base/core/java/android/text/
DBoringLayout.java389 int maxLines, in BoringLayout() argument
402 fallbackLineSpacing, ellipsizedWidth, ellipsize, maxLines, breakStrategy, in BoringLayout()
DStaticLayout.java323 public Builder setMaxLines(@IntRange(from = 0) int maxLines) { in setMaxLines()
324 mMaxLines = maxLines; in setMaxLines()
694 TextUtils.TruncateAt ellipsize, int ellipsizedWidth, int maxLines) { in StaticLayout() argument
702 .setMaxLines(maxLines), includepad, in StaticLayout()

12