Searched refs:layoutStyle (Results 1 – 9 of 9) sorted by relevance
135 public void setLayoutStyle(LayoutStyleOEMV1 layoutStyle) { in setLayoutStyle() argument136 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()
226 public void setLayoutStyle(@Nullable CarUiLayoutStyle layoutStyle) { in setLayoutStyle() argument227 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()
53 CarUiGridLayoutStyle layoutStyle = new CarUiGridLayoutStyle(); in from() local54 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()
47 CarUiLinearLayoutStyle layoutStyle = new CarUiLinearLayoutStyle(); in from() local48 layoutStyle.setOrientation(((LinearLayoutManager) layoutManager).getOrientation()); in from()49 layoutStyle.setReverseLayout(((LinearLayoutManager) layoutManager).getReverseLayout()); in from()50 return layoutStyle; in from()
245 public void setLayoutStyle(CarUiLayoutStyle layoutStyle) { in setLayoutStyle() argument247 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()
285 public abstract void setLayoutStyle(CarUiLayoutStyle layoutStyle); in setLayoutStyle() argument
1519 CarUiLayoutStyle layoutStyle = new CarUiLinearLayoutStyle(); in testSetLinearLayoutStyle_setsLayoutManager() local1521 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() local1543 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 …]
56 void setLayoutStyle(LayoutStyleOEMV1 layoutStyle); in setLayoutStyle() argument
178 final LayoutStyleOEMV1 layoutStyle = new LayoutStyleOEMV1() { in from() local239 return layoutStyle; in from()