/frameworks/base/core/java/com/android/internal/widget/ |
ImageFloatingTextView.java | 84 int maxLines; 86 maxLines = mMaxLinesForHeight; 88 maxLines = getMaxLines() >= 0 ? getMaxLines() : Integer.MAX_VALUE; 90 builder.setMaxLines(maxLines); 91 mLayoutMaxLines = maxLines; 133 int maxLines = layout.getLineCount() - 1; 134 while (maxLines > 1 && layout.getLineBottom(maxLines - 1) > availableHeight) { 135 maxLines--; 138 maxLines = Math.min(getMaxLines(), maxLines) [all...] |
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
SwitchItem.java | 35 String checkedTitle, String uncheckedTitle, String description, int maxLines) { 36 super(checkedTitle, uncheckedTitle, description, maxLines);
|
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/ |
CrashCheckBase.java | 86 * @param maxLines 89 private static String truncate(String text, int maxLines) { 92 for (int i = 0; i < maxLines && i < lines.length; i++) { 96 if (lines.length > maxLines) { 98 ret.append(lines.length - maxLines);
|
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/ |
AutoResizeTextView.java | 55 private int maxLines; 95 return maxLines; 101 public final void setMaxLines(int maxLines) { 102 super.setMaxLines(maxLines); 103 this.maxLines = maxLines; 222 int maxLines = getMaxLines(); 223 if (maxLines == 1) { 238 // Return false if we need more than maxLines. The text is obviously too big in this case. 239 if (maxLines != NO_LINE_LIMIT && layout.getLineCount() > maxLines) [all...] |
/frameworks/base/core/java/android/util/ |
LocalLog.java | 34 public LocalLog(int maxLines) { 35 mMaxLines = Math.max(0, maxLines);
|
/external/libvncserver/libvncserver/ |
ultra.c | 167 int maxLines; 177 maxLines = ( ULTRA_MAX_SIZE(w) / w ); 187 if ( maxLines < linesRemaining ) 188 linesToComp = maxLines; 216 ( linesToComp == maxLines )) {
|
zlib.c | 266 int maxLines; 276 maxLines = ( ZLIB_MAX_SIZE(w) / w ); 286 if ( maxLines < linesRemaining ) 287 linesToComp = maxLines; 315 ( linesToComp == maxLines )) {
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
VvmLog.java | 120 private final int maxLines; 122 public LocalLog(int maxLines) { 123 this.maxLines = Math.max(0, maxLines); 124 log = new ArrayDeque<>(this.maxLines); 128 if (maxLines <= 0) { 137 while (log.size() >= maxLines) {
|
/external/gptfdisk/ |
parttypes.h | 63 void ShowAllTypes(int maxLines = 21) const;
|
parttypes.cc | 382 // in an ugly way. The maxLines value is the maximum number of lines 385 void PartType::ShowAllTypes(int maxLines) const { 403 if ((maxLines > 0) && (lineCount++ % maxLines) == 0) { 417 } // PartType::ShowAllTypes(int maxLines)
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
ResizingTextView.java | 218 final int maxLines = getMaxLines(); 219 if (maxLines > 1) { 220 resizeText = lineCount == maxLines;
|
AbstractDetailsDescriptionPresenter.java | 112 final int maxLines = titleLines > 1 ? mBodyMinLines : mBodyMaxLines; 113 if (mBody.getMaxLines() != maxLines) { 114 mBody.setMaxLines(maxLines);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
DetailsContentPresenter.java | 84 int maxLines = 90 if (bodyLines > maxLines) { 123 maxLines -= 1; 125 if (mBody.getMaxLines() != maxLines) { 126 mBody.setMaxLines(maxLines);
|
/device/generic/goldfish/libqemu/ |
test_guest_2.c | 192 const int maxLines = 12; 201 if (++numLines >= maxLines) {
|
/frameworks/support/compat/src/androidTest/java/android/support/v4/testutils/ |
TextViewActions.java | 39 public static ViewAction setMaxLines(final int maxLines) { 56 textView.setMaxLines(maxLines);
|
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/ |
AppCompatibility.java | 186 * @param maxLines 189 private static String truncate(String text, int maxLines) { 192 for (int i = 0; i < maxLines && i < lines.length; i++) { 196 if (lines.length > maxLines) { 198 ret.append(lines.length - maxLines);
|
/test/vti/dashboard/src/main/webapp/js/ |
test_results.js | 80 var maxLines = 0; 117 if (count > maxLines) { 118 maxLines = count; 122 containers.height(maxLines * lineHeight);
|
/external/icu/icu4c/source/samples/layout/ |
gnomelayout.cpp | 226 gint maxLines = context->paragraph->getLineCount() - 1; 230 context->paragraph->draw(&surface, firstLine, (maxLines < lastLine)? maxLines : lastLine);
|
cgnomelayout.c | 218 gint maxLines = pf_getLineCount(context->paragraph) - 1; 222 pf_draw(context->paragraph, surface, firstLine, (maxLines < lastLine)? maxLines : lastLine);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
ContactEntryAdapter.java | 47 public int maxLines = 1; 59 p.writeInt(maxLines); 73 maxLines = p.readInt();
|
ContactFragment.java | 421 entry.maxLines = 4; 472 entry.maxLines = 100; 477 entry.maxLines = 10; 602 // Choose the max of the maxLines and maxLabelLines values. 603 maxLines = Math.max(maxLines, entry.maxLines); 726 setMaxLines(data, entry.maxLines); 786 private void setMaxLines(TextView textView, int maxLines) { 787 if (maxLines == 1) [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
AppCompatTextViewAutoSizeHelper.java | 675 final int maxLines = Build.VERSION.SDK_INT >= 16 ? mTextView.getMaxLines() : -1; 689 text, alignment, Math.round(availableSpace.right), maxLines) 693 if (maxLines != -1 && (layout.getLineCount() > maxLines 708 Layout.Alignment alignment, int availableWidth, int maxLines) { 725 .setMaxLines(maxLines == -1 ? Integer.MAX_VALUE : maxLines) [all...] |
/external/icu/icu4c/source/tools/ctestfw/ |
uperf.cpp | 26 static const int MAXLINES = 40000; 218 lines = new ULine[MAXLINES]; 219 int maxLines = MAXLINES; 234 if (numLines >= maxLines) { 235 maxLines += MAXLINES; 236 ULine *newLines = new ULine[maxLines];
|
/development/samples/USB/AdbTest/src/com/android/adb/ |
AdbTestActivity.java | 90 int maxLines = r.height() / mLog.getLineHeight() - 1; 96 while (index > 0 && count <= maxLines) { 101 // truncate to maxLines
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiDiagnostics.java | 597 private ArrayList<String> getLogcat(int maxLines) { 598 ArrayList<String> lines = new ArrayList<String>(maxLines); 600 Process process = mJavaRuntime.exec(String.format("logcat -t %d", maxLines)); 619 private LimitedCircularArray<String> getKernelLog(int maxLines) { 621 LimitedCircularArray<String> lines = new LimitedCircularArray<String>(maxLines);
|