Home
last modified time | relevance | path

Searched refs:facet (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DItemAlignmentFacetHelper.java35 static int getAlignmentPosition(View itemView, ItemAlignmentFacet.ItemAlignmentDef facet, in getAlignmentPosition() argument
39 if (facet.mViewId != 0) { in getAlignmentPosition()
40 view = itemView.findViewById(facet.mViewId); in getAlignmentPosition()
45 int alignPos = facet.mOffset; in getAlignmentPosition()
50 if (facet.mOffsetWithPadding) { in getAlignmentPosition()
51 if (facet.mOffsetPercent == 0f) { in getAlignmentPosition()
53 } else if (facet.mOffsetPercent == 100f) { in getAlignmentPosition()
57 if (facet.mOffsetPercent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) { in getAlignmentPosition()
59 : view.getWidth()) * facet.mOffsetPercent) / 100f); in getAlignmentPosition()
67 if (facet.mOffsetWithPadding) { in getAlignmentPosition()
[all …]
DGridLayoutManager.java159 void setItemAlignmentFacet(ItemAlignmentFacet facet) { in setItemAlignmentFacet() argument
160 mAlignmentFacet = facet; in setItemAlignmentFacet()
958 final ItemAlignmentFacet facet = lp.getItemAlignmentFacet(); in getSubPositionByView() local
959 if (facet != null) { in getSubPositionByView()
960 final ItemAlignmentFacet.ItemAlignmentDef[] defs = facet.getAlignmentDefs(); in getSubPositionByView()
1583 E facet = null; in getFacet() local
1585 facet = (E) ((FacetProvider) vh).getFacet(facetClass); in getFacet()
1587 if (facet == null && mFacetProviderAdapter != null) { in getFacet()
1590 facet = (E) p.getFacet(facetClass); in getFacet()
1593 return facet; in getFacet()
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
DDetailsSupportFragment.java529 ItemAlignmentFacet facet = new ItemAlignmentFacet(); in setupDetailsOverviewRowPresenter() local
545 facet.setAlignmentDefs(defs); in setupDetailsOverviewRowPresenter()
546 presenter.setFacet(ItemAlignmentFacet.class, facet); in setupDetailsOverviewRowPresenter()
DDetailsFragment.java534 ItemAlignmentFacet facet = new ItemAlignmentFacet(); in setupDetailsOverviewRowPresenter() local
550 facet.setAlignmentDefs(defs); in setupDetailsOverviewRowPresenter()
551 presenter.setFacet(ItemAlignmentFacet.class, facet); in setupDetailsOverviewRowPresenter()
/frameworks/support/work/integration-tests/testapp/src/main/assets/
Dadvs.txt6318 and older jewels every facet may stand for a bloody deed. This stone