Home
last modified time | relevance | path

Searched refs:CarUiGridLayoutStyle (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiGridLayoutStyle.java30 public final class CarUiGridLayoutStyle implements CarUiLayoutStyle { class
47 public static CarUiGridLayoutStyle from(@Nullable LayoutManager layoutManager) { in from()
53 CarUiGridLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in from()
DRecyclerViewAdapterV1.java88 setLayoutStyle(CarUiGridLayoutStyle.from(layoutManager)); in setLayoutManager()
253 return ((CarUiGridLayoutStyle) layoutStyle).getSpanSizeLookup() == null ? null in setLayoutStyle()
254 : position -> ((CarUiGridLayoutStyle) layoutStyle) in setLayoutStyle()
DCarUiRecyclerViewImpl.java281 if (layoutStyle instanceof CarUiGridLayoutStyle) { in setLayoutStyle()
283 ((CarUiGridLayoutStyle) layoutStyle).getSpanSizeLookup()); in setLayoutStyle()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java1541 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()