Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DWindowAlignment.java57 private int mWindowAlignment = WINDOW_ALIGN_BOTH_EDGE; field in WindowAlignment.Axis
85 return mWindowAlignment; in getWindowAlignment()
89 mWindowAlignment = windowAlignment; in setWindowAlignment()
237 if (!mReversedFlow ? (mWindowAlignment & WINDOW_ALIGN_LOW_EDGE) != 0 in updateMinMax()
238 : (mWindowAlignment & WINDOW_ALIGN_HIGH_EDGE) != 0) { in updateMinMax()
247 if (!mReversedFlow ? (mWindowAlignment & WINDOW_ALIGN_HIGH_EDGE) != 0 in updateMinMax()
248 : (mWindowAlignment & WINDOW_ALIGN_LOW_EDGE) != 0) { in updateMinMax()
258 if ((mWindowAlignment & WINDOW_ALIGN_LOW_EDGE) != 0) { in updateMinMax()
267 } else if ((mWindowAlignment & WINDOW_ALIGN_HIGH_EDGE) != 0) { in updateMinMax()
278 if ((mWindowAlignment & WINDOW_ALIGN_LOW_EDGE) != 0) { in updateMinMax()
[all …]
DGridLayoutManager.java247 if (mWindowAlignment.mainAxis().getSize() > 0) { in calculateTimeForScrolling()
249 / mWindowAlignment.mainAxis().getSize() * dx; in calculateTimeForScrolling()
677 final WindowAlignment mWindowAlignment = new WindowAlignment(); field in GridLayoutManager
726 mWindowAlignment.setOrientation(orientation); in setOrientation()
743 mWindowAlignment.horizontal.setReversedFlow(layoutDirection == View.LAYOUT_DIRECTION_RTL); in onRtlPropertiesChanged()
755 mWindowAlignment.mainAxis().setWindowAlignment(windowAlignment); in setWindowAlignment()
759 return mWindowAlignment.mainAxis().getWindowAlignment(); in getWindowAlignment()
763 mWindowAlignment.mainAxis().setWindowAlignmentOffset(alignmentOffset); in setWindowAlignmentOffset()
767 return mWindowAlignment.mainAxis().getWindowAlignmentOffset(); in getWindowAlignmentOffset()
771 mWindowAlignment.mainAxis().setWindowAlignmentOffsetPercent(offsetPercent); in setWindowAlignmentOffsetPercent()
[all …]
DBaseGridView.java326 mLayoutManager.mWindowAlignment.mainAxis() in setWindowAlignmentPreferKeyLineOverLowEdge()
341 mLayoutManager.mWindowAlignment.mainAxis() in setWindowAlignmentPreferKeyLineOverHighEdge()
355 return mLayoutManager.mWindowAlignment.mainAxis().isPreferKeylineOverLowEdge(); in isWindowAlignmentPreferKeyLineOverLowEdge()
368 return mLayoutManager.mWindowAlignment.mainAxis().isPreferKeylineOverHighEdge(); in isWindowAlignmentPreferKeyLineOverHighEdge()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetTest.java6173 options.mWindowAlignment = windowAlignment;
6183 int mWindowAlignment;
6200 mGridView.setWindowAlignment(options.mWindowAlignment);