Home
last modified time | relevance | path

Searched refs:layoutStyle (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/recyclerview/
DRecyclerViewImpl.java135 public void setLayoutStyle(LayoutStyleOEMV1 layoutStyle) { in setLayoutStyle() argument
136 if (layoutStyle.getLayoutType() == LayoutStyleOEMV1.LAYOUT_TYPE_LINEAR) { in setLayoutStyle()
138 layoutStyle.getOrientation(), in setLayoutStyle()
139 layoutStyle.getReverseLayout())); in setLayoutStyle()
142 layoutStyle.getSpanCount(), in setLayoutStyle()
143 layoutStyle.getOrientation(), in setLayoutStyle()
144 layoutStyle.getReverseLayout())); in setLayoutStyle()
145 if (layoutStyle.getSpanSizeLookup() != null) { in setLayoutStyle()
149 return layoutStyle.getSpanSizeLookup().getSpanSize(position); in setLayoutStyle()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DRecyclerViewAdapterV1.java226 public void setLayoutStyle(@Nullable CarUiLayoutStyle layoutStyle) { in setLayoutStyle() argument
227 if (layoutStyle == null) mOEMRecyclerView.setLayoutStyle(null); in setLayoutStyle()
232 return layoutStyle.getSpanCount(); in setLayoutStyle()
237 return layoutStyle.getLayoutType(); in setLayoutStyle()
242 return layoutStyle.getOrientation(); in setLayoutStyle()
247 return layoutStyle.getReverseLayout(); in setLayoutStyle()
252 if (layoutStyle instanceof CarUiLinearLayoutStyle) return null; in setLayoutStyle()
253 return ((CarUiGridLayoutStyle) layoutStyle).getSpanSizeLookup() == null ? null in setLayoutStyle()
254 : position -> ((CarUiGridLayoutStyle) layoutStyle) in setLayoutStyle()
DCarUiGridLayoutStyle.java53 CarUiGridLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in from() local
54 layoutStyle.setSpanCount(((GridLayoutManager) layoutManager).getSpanCount()); in from()
55 layoutStyle.setReverseLayout(((GridLayoutManager) layoutManager).getReverseLayout()); in from()
56 layoutStyle.setSpanSizeLookup(((GridLayoutManager) layoutManager).getSpanSizeLookup()); in from()
57 return layoutStyle; in from()
DCarUiLinearLayoutStyle.java47 CarUiLinearLayoutStyle layoutStyle = new CarUiLinearLayoutStyle(); in from() local
48 layoutStyle.setOrientation(((LinearLayoutManager) layoutManager).getOrientation()); in from()
49 layoutStyle.setReverseLayout(((LinearLayoutManager) layoutManager).getReverseLayout()); in from()
50 return layoutStyle; in from()
DCarUiRecyclerViewImpl.java245 public void setLayoutStyle(CarUiLayoutStyle layoutStyle) { in setLayoutStyle() argument
247 if (layoutStyle.getLayoutType() == CarUiRecyclerViewLayout.LINEAR) { in setLayoutStyle()
249 layoutStyle.getOrientation(), in setLayoutStyle()
250 layoutStyle.getReverseLayout()) { in setLayoutStyle()
265 layoutStyle.getSpanCount(), in setLayoutStyle()
266 layoutStyle.getOrientation(), in setLayoutStyle()
267 layoutStyle.getReverseLayout()) { in setLayoutStyle()
281 if (layoutStyle instanceof CarUiGridLayoutStyle) { in setLayoutStyle()
283 ((CarUiGridLayoutStyle) layoutStyle).getSpanSizeLookup()); in setLayoutStyle()
DCarUiRecyclerView.java285 public abstract void setLayoutStyle(CarUiLayoutStyle layoutStyle); in setLayoutStyle() argument
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java1519 CarUiLayoutStyle layoutStyle = new CarUiLinearLayoutStyle(); in testSetLinearLayoutStyle_setsLayoutManager() local
1521 carUiRecyclerView.setLayoutStyle(layoutStyle); in testSetLinearLayoutStyle_setsLayoutManager()
1534 layoutStyle.getOrientation()); in testSetLinearLayoutStyle_setsLayoutManager()
1536 .getReverseLayout(), layoutStyle.getReverseLayout()); in testSetLinearLayoutStyle_setsLayoutManager()
1541 CarUiLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in testSetGridLayoutStyle_setsLayoutManager() local
1543 carUiRecyclerView.setLayoutStyle(layoutStyle); in testSetGridLayoutStyle_setsLayoutManager()
1556 layoutStyle.getOrientation()); in testSetGridLayoutStyle_setsLayoutManager()
1558 layoutStyle.getReverseLayout()); in testSetGridLayoutStyle_setsLayoutManager()
1560 layoutStyle.getSpanCount()); in testSetGridLayoutStyle_setsLayoutManager()
1565 CarUiLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in testNegativeSpanCount_setSpanCount() local
[all …]
/packages/apps/Car/libs/car-ui-lib/oem-apis/src/main/java/com/android/car/ui/sharedlibrary/oemapis/recyclerview/
DRecyclerViewOEMV1.java56 void setLayoutStyle(LayoutStyleOEMV1 layoutStyle); in setLayoutStyle() argument
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DSharedLibraryFactoryAdapterV1.java178 final LayoutStyleOEMV1 layoutStyle = new LayoutStyleOEMV1() { in from() local
239 return layoutStyle; in from()