Home
last modified time | relevance | path

Searched refs:CarUiText (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/
DCarUiText.java28 public class CarUiText { class
37 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 CarUiText
62 public CarUiText(@NonNull CharSequence text) { in CarUiText() method in CarUiText
77 public CarUiText(@NonNull CharSequence text, int maxLines) { in CarUiText() method in CarUiText
95 public CarUiText(@NonNull List<CharSequence> variants, int maxLines) { in CarUiText() method in CarUiText
114 public CarUiText(@NonNull List<CharSequence> variants, int maxLines, int maxChars) { in CarUiText() method in CarUiText
197 public CarUiText build() { in build()
198 return new CarUiText(this); in build()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiContentListItem.java24 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()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiListItemTest.java50 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 …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/widget/
DCarUiTextViewImpl.java33 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()
DCarUiTextView.java28 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()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/widget/
DCarUiTextViewTest.java36 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()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DSharedLibraryFactoryAdapterV1.java28 import com.android.car.ui.CarUiText;
265 CarUiText.combineMultiLine(contentItem.getBody()))); in toOemListItem()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DSearchWidescreenController.java56 import com.android.car.ui.CarUiText;
255 item.getBody() != null ? CarUiText.combineMultiLine(item.getBody()).toString() in displaySearchWideScreen()