Searched refs:CarUiGridLayoutStyle (Results 1 – 4 of 4) sorted by relevance
30 public final class CarUiGridLayoutStyle implements CarUiLayoutStyle { class47 public static CarUiGridLayoutStyle from(@Nullable LayoutManager layoutManager) { in from()53 CarUiGridLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in from()
88 setLayoutStyle(CarUiGridLayoutStyle.from(layoutManager)); in setLayoutManager()253 return ((CarUiGridLayoutStyle) layoutStyle).getSpanSizeLookup() == null ? null in setLayoutStyle()254 : position -> ((CarUiGridLayoutStyle) layoutStyle) in setLayoutStyle()
281 if (layoutStyle instanceof CarUiGridLayoutStyle) { in setLayoutStyle()283 ((CarUiGridLayoutStyle) layoutStyle).getSpanSizeLookup()); in setLayoutStyle()
1541 CarUiLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in testSetGridLayoutStyle_setsLayoutManager()1565 CarUiLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in testNegativeSpanCount_setSpanCount()1566 assertThrows(AssertionError.class, () -> ((CarUiGridLayoutStyle) layoutStyle) in testNegativeSpanCount_setSpanCount()1572 CarUiGridLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in testSetGridLayoutStyle_setsLayoutManagerSpanSizeLookup()1627 CarUiGridLayoutStyle layoutStyle = CarUiGridLayoutStyle.from(layoutManager); in testCarUiGridLayoutStyle_LayoutManagerFrom()1658 assertThrows(AssertionError.class, () -> CarUiGridLayoutStyle.from(layoutManager)); in testCarUiGridLayoutStyle_fromLinearLayout_throwsException()1663 assertNull(CarUiGridLayoutStyle.from(null)); in testCarUiGridLayoutStyle_fromNull()1698 assertNull(CarUiGridLayoutStyle.from(null)); in testCarUiLinearLayoutStyle_fromNull()