Home
last modified time | relevance | path

Searched refs:gridView (Results 1 – 18 of 18) sorted by relevance

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetPrefetchTest.java41 public void validatePrefetch(BaseGridView gridView, int scrollX, int scrollY, in validatePrefetch() argument
45 when(state.getItemCount()).thenReturn(gridView.getAdapter().getItemCount()); in validatePrefetch()
49 gridView.getLayoutManager().collectAdjacentPrefetchPositions(scrollX, scrollY, in validatePrefetch()
82 HorizontalGridView gridView = new HorizontalGridView(getContext());
83 gridView.setNumRows(1);
84 gridView.setRowHeight(100);
85 gridView.setAdapter(createBoxAdapter());
87 layout(gridView, 150, 100);
90 assertEquals(2, gridView.getChildCount());
91 assertEquals(0, gridView.getLayoutManager().findViewByPosition(0).getLeft());
[all …]
DGridWidgetTest.java143 static String dumpGridView(BaseGridView gridView) { in dumpGridView() argument
144 return "findFocus:" + gridView.getRootView().findFocus() in dumpGridView()
145 + " isLayoutRequested:" + gridView.isLayoutRequested() in dumpGridView()
146 + " selectedPosition:" + gridView.getSelectedPosition() in dumpGridView()
147 + " adapter.itemCount:" + gridView.getAdapter().getItemCount() in dumpGridView()
148 + " itemAnimator.isRunning:" + gridView.getItemAnimator().isRunning() in dumpGridView()
149 + " scrollState:" + gridView.getScrollState(); in dumpGridView()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DHeadersSupportFragmentTest.java65 final VerticalGridView gridView = ((HeadersSupportFragment) activity.getTestFragment()) in defaultScale() local
68 gridView.findViewHolderForAdapterPosition(0); in defaultScale()
93 final VerticalGridView gridView = ((HeadersSupportFragment) activity.getTestFragment()) in disableScale() local
96 gridView.findViewHolderForAdapterPosition(0); in disableScale()
120 final VerticalGridView gridView = ((HeadersSupportFragment) activity.getTestFragment()) in disableScaleInConstructor() local
123 gridView.findViewHolderForAdapterPosition(0); in disableScaleInConstructor()
DHeadersFragmentTest.java68 final VerticalGridView gridView = ((HeadersFragment) activity.getTestFragment()) in defaultScale() local
71 gridView.findViewHolderForAdapterPosition(0); in defaultScale()
96 final VerticalGridView gridView = ((HeadersFragment) activity.getTestFragment()) in disableScale() local
99 gridView.findViewHolderForAdapterPosition(0); in disableScale()
123 final VerticalGridView gridView = ((HeadersFragment) activity.getTestFragment()) in disableScaleInConstructor() local
126 gridView.findViewHolderForAdapterPosition(0); in disableScaleInConstructor()
DRowsFragmentTest.java154 final VerticalGridView gridView = ((RowsFragment) activity.getTestFragment()) in defaultAlignment() local
156 View row0 = gridView.findViewHolderForAdapterPosition(0).itemView; in defaultAlignment()
158 gridView.offsetDescendantRectToMyCoords(row0, rect); in defaultAlignment()
162 waitForScrollIdle(gridView); in defaultAlignment()
163 View row1 = gridView.findViewHolderForAdapterPosition(1).itemView; in defaultAlignment()
167 gridView.offsetDescendantRectToMyCoords(row1, rect); in defaultAlignment()
199 final VerticalGridView gridView = ((RowsFragment) activity.getTestFragment()) in selectBeforeSetAdapter() local
201 assertEquals(7, gridView.getSelectedPosition()); in selectBeforeSetAdapter()
202 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectBeforeSetAdapter()
233 final VerticalGridView gridView = ((RowsFragment) activity.getTestFragment()) in selectBeforeAddData() local
[all …]
DRowsSupportFragmentTest.java151 final VerticalGridView gridView = ((RowsSupportFragment) activity.getTestFragment()) in defaultAlignment() local
153 View row0 = gridView.findViewHolderForAdapterPosition(0).itemView; in defaultAlignment()
155 gridView.offsetDescendantRectToMyCoords(row0, rect); in defaultAlignment()
159 waitForScrollIdle(gridView); in defaultAlignment()
160 View row1 = gridView.findViewHolderForAdapterPosition(1).itemView; in defaultAlignment()
164 gridView.offsetDescendantRectToMyCoords(row1, rect); in defaultAlignment()
196 final VerticalGridView gridView = ((RowsSupportFragment) activity.getTestFragment()) in selectBeforeSetAdapter() local
198 assertEquals(7, gridView.getSelectedPosition()); in selectBeforeSetAdapter()
199 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectBeforeSetAdapter()
230 final VerticalGridView gridView = ((RowsSupportFragment) activity.getTestFragment()) in selectBeforeAddData() local
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DFocusHighlightHelper.java215 public static void setupHeaderItemFocusHighlight(VerticalGridView gridView) { in setupHeaderItemFocusHighlight() argument
216 setupHeaderItemFocusHighlight(gridView, true); in setupHeaderItemFocusHighlight()
229 public static void setupHeaderItemFocusHighlight(VerticalGridView gridView, in setupHeaderItemFocusHighlight() argument
231 if (gridView != null && gridView.getAdapter() instanceof ItemBridgeAdapter) { in setupHeaderItemFocusHighlight()
232 ((ItemBridgeAdapter) gridView.getAdapter()) in setupHeaderItemFocusHighlight()
DListRowPresenter.java70 public ViewHolder(View rootView, HorizontalGridView gridView, ListRowPresenter p) { in ViewHolder() argument
72 mGridView = gridView; in ViewHolder()
209 HorizontalGridView gridView = ((ListRowPresenter.ViewHolder) holder).getGridView(); in run() local
222 gridView.setSelectedPositionSmooth(mItemPosition, task); in run()
224 gridView.setSelectedPosition(mItemPosition, task); in run()
630 HorizontalGridView gridView = rowView.getGridView(); in setupFadingEffect() local
632 TypedArray ta = gridView.getContext() in setupFadingEffect()
638 gridView.setFadingLeftEdgeLength(mBrowseRowsFadingEdgeLength); in setupFadingEffect()
DHorizontalHoverCardSwitcher.java68 public void select(HorizontalGridView gridView, View childView, Object object) { in select() argument
70 gridView.getViewSelectedOffsets(childView, mTmpOffsets); in select()
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
DRowsSupportFragment.java559 final VerticalGridView gridView = getVerticalGridView(); in setAlignment() local
561 if (gridView != null) { in setAlignment()
562 gridView.setItemAlignmentOffset(0); in setAlignment()
563 gridView.setItemAlignmentOffsetPercent( in setAlignment()
565 gridView.setItemAlignmentOffsetWithPadding(true); in setAlignment()
566 gridView.setWindowAlignmentOffset(mAlignedTop); in setAlignment()
568 gridView.setWindowAlignmentOffsetPercent( in setAlignment()
570 gridView.setWindowAlignment(VerticalGridView.WINDOW_ALIGN_NO_EDGE); in setAlignment()
DRowsFragment.java564 final VerticalGridView gridView = getVerticalGridView(); in setAlignment() local
566 if (gridView != null) { in setAlignment()
567 gridView.setItemAlignmentOffset(0); in setAlignment()
568 gridView.setItemAlignmentOffsetPercent( in setAlignment()
570 gridView.setItemAlignmentOffsetWithPadding(true); in setAlignment()
571 gridView.setWindowAlignmentOffset(mAlignedTop); in setAlignment()
573 gridView.setWindowAlignmentOffsetPercent( in setAlignment()
575 gridView.setWindowAlignment(VerticalGridView.WINDOW_ALIGN_NO_EDGE); in setAlignment()
DDetailsSupportFragment.java653 final VerticalGridView gridView = getVerticalGridView(); in onRowSelected() local
654 final int count = gridView.getChildCount(); in onRowSelected()
660 gridView.getChildViewHolder(gridView.getChildAt(i)); in onRowSelected()
DDetailsFragment.java658 final VerticalGridView gridView = getVerticalGridView(); in onRowSelected() local
659 final int count = gridView.getChildCount(); in onRowSelected()
665 gridView.getChildViewHolder(gridView.getChildAt(i)); in onRowSelected()
DBrowseSupportFragment.java1541 final VerticalGridView gridView = mHeadersSupportFragment.getVerticalGridView(); in swapToMainFragment() local
1542 if (isShowingHeaders() && gridView != null in swapToMainFragment()
1543 && gridView.getScrollState() != RecyclerView.SCROLL_STATE_IDLE) { in swapToMainFragment()
1548 gridView.addOnScrollListener(new RecyclerView.OnScrollListener() { in swapToMainFragment()
1553 gridView.removeOnScrollListener(this); in swapToMainFragment()
DBrowseFragment.java1563 final VerticalGridView gridView = mHeadersFragment.getVerticalGridView(); in swapToMainFragment() local
1564 if (isShowingHeaders() && gridView != null in swapToMainFragment()
1565 && gridView.getScrollState() != RecyclerView.SCROLL_STATE_IDLE) { in swapToMainFragment()
1570 gridView.addOnScrollListener(new RecyclerView.OnScrollListener() { in swapToMainFragment()
1575 gridView.removeOnScrollListener(this); in swapToMainFragment()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
DR$id.classR.java package com.android.layoutlib.test.myapplication public final com.android. ...
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/picker/
DDatePickerTest.java360 ViewGroup gridView = (ViewGroup) mDatePickerInnerView.getChildAt(2 * i); in testInvisibleColumnsAlpha() local
361 int childCount = gridView.getChildCount(); in testInvisibleColumnsAlpha()
365 View pickerItem = gridView.getChildAt(j); in testInvisibleColumnsAlpha()
/frameworks/support/gridlayout/src/androidTest/java/androidx/gridlayout/widget/
DGridLayoutTest.java71 mGridView = activity.findViewById(R.id.gridView); in setContentView()