Searched refs:CarUiText (Results 1 – 8 of 8) sorted by relevance
28 public class CarUiText { class37 public static CharSequence combineMultiLine(@NonNull List<CarUiText> lines) { in combineMultiLine()40 for (CarUiText line : lines) { in combineMultiLine()48 private CarUiText(Builder builder) { in CarUiText() method in CarUiText62 public CarUiText(@NonNull CharSequence text) { in CarUiText() method in CarUiText77 public CarUiText(@NonNull CharSequence text, int maxLines) { in CarUiText() method in CarUiText95 public CarUiText(@NonNull List<CharSequence> variants, int maxLines) { in CarUiText() method in CarUiText114 public CarUiText(@NonNull List<CharSequence> variants, int maxLines, int maxChars) { in CarUiText() method in CarUiText197 public CarUiText build() { in build()198 return new CarUiText(this); in build()
24 import com.android.car.ui.CarUiText;113 private CarUiText mTitle;115 private List<CarUiText> mBody;140 public CarUiText getTitle() { in getTitle()150 mTitle = new CarUiText.Builder(title).build(); in setTitle()158 public void setTitle(@Nullable CarUiText text) { in setTitle()166 public List<CarUiText> getBody() { in getBody()181 mBody = Collections.singletonList(new CarUiText.Builder(body).build()); in setBody()189 public void setBody(@Nullable CarUiText body) { in setBody()204 public void setBody(@Nullable List<CarUiText> textList) { in setBody()
50 import com.android.car.ui.CarUiText;621 List<CarUiText> lines = new ArrayList<>(); in testTextTruncation_twoShortLines()622 lines.add(new CarUiText.Builder("Short text string").setMaxLines(2).build()); in testTextTruncation_twoShortLines()623 lines.add(new CarUiText.Builder("Second short string").setMaxLines(2).build()); in testTextTruncation_twoShortLines()640 List<CarUiText> lines = new ArrayList<>(); in testTextTruncation_oneLongOneShort_withMaxLines()641 lines.add(new CarUiText.Builder(LONG_CHAR_SEQUENCE).setMaxLines(2).build()); in testTextTruncation_oneLongOneShort_withMaxLines()642 lines.add(new CarUiText.Builder("Second short string").setMaxLines(2).build()); in testTextTruncation_oneLongOneShort_withMaxLines()662 List<CarUiText> lines = new ArrayList<>(); in testTextTruncation_oneLongOneShort_noMaxLines()663 lines.add(new CarUiText.Builder(LONG_CHAR_SEQUENCE).setMaxLines(Integer.MAX_VALUE).build()); in testTextTruncation_oneLongOneShort_noMaxLines()664 lines.add(new CarUiText.Builder("Second short string").setMaxLines(2).build()); in testTextTruncation_oneLongOneShort_noMaxLines()[all …]
33 import com.android.car.ui.CarUiText;46 private List<CarUiText> mText = Collections.emptyList();73 public void setText(@NonNull List<CarUiText> textList) { in setText()78 setText(CarUiText.combineMultiLine(textList)); in setText()85 public void setText(@NonNull CarUiText text) { in setText()114 CarUiText line = mText.get(i); in updateText()122 private CharSequence getBestVariant(CarUiText text) { in getBestVariant()
28 import com.android.car.ui.CarUiText;86 public abstract void setText(@NonNull List<CarUiText> textList); in setText()91 public abstract void setText(@NonNull CarUiText text); in setText()
36 import com.android.car.ui.CarUiText;84 textView.setText(new CarUiText.Builder(list).setMaxLines(1).build()); in testTruncateToVariant_startAsViewGone()102 textView.setText(new CarUiText.Builder(text).setMaxLines(3).build()); in testSpanOverLastLine()119 textView.setText(new CarUiText.Builder(text).setMaxLines(3).build()); in testLineBreaks_lineBreakAtEnd()136 textView.setText(new CarUiText.Builder(text).setMaxLines(3).build()); in testSpan()
28 import com.android.car.ui.CarUiText;265 CarUiText.combineMultiLine(contentItem.getBody()))); in toOemListItem()
56 import com.android.car.ui.CarUiText;255 item.getBody() != null ? CarUiText.combineMultiLine(item.getBody()).toString() in displaySearchWideScreen()