Home
last modified time | relevance | path

Searched refs:mGridView (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchStackFromBottomTest.java29 private GridView mGridView; field in GridTouchStackFromBottomTest
40 mGridView = getActivity().getGridView(); in setUp()
46 assertNotNull(mGridView); in testPreconditions()
49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
54 TouchUtils.scrollToBottom(this, mGridView); in testPushUp()
58 mGridView.getSelectedItemPosition()); in testPushUp()
60 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPushUp()
63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp()
66 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPushUp()
71 TouchUtils.scrollToTop(this, mGridView); in testPullDown()
[all …]
DGridTouchVerticalSpacingStackFromBottomTest.java33 private GridView mGridView; field in GridTouchVerticalSpacingStackFromBottomTest
45 mGridView = getActivity().getGridView(); in setUp()
53 assertNotNull(mGridView); in testPreconditions()
56 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
62 View firstChild = mGridView.getChildAt(0); in testNoScroll()
63 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
70 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
73 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testNoScroll()
80 View firstChild = mGridView.getChildAt(0); in testShortScroll()
81 if (firstChild.getTop() < this.mGridView.getListPaddingTop()) { in testShortScroll()
[all …]
DGridTouchVerticalSpacingTest.java32 private GridView mGridView; field in GridTouchVerticalSpacingTest
43 mGridView = getActivity().getGridView(); in setUp()
49 assertNotNull(mGridView); in testPreconditions()
51 assertEquals(0, mGridView.getSelectedItemPosition()); in testPreconditions()
56 View firstChild = mGridView.getChildAt(0); in testNoScroll()
57 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
64 View newFirstChild = mGridView.getChildAt(0); in testNoScroll()
73 View firstChild = mGridView.getChildAt(0); in testShortScroll()
74 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
81 View newFirstChild = mGridView.getChildAt(0); in testShortScroll()
[all …]
DGridTouchStackFromBottomManyTest.java30 private GridView mGridView; field in GridTouchStackFromBottomManyTest
41 mGridView = getActivity().getGridView(); in setUp()
47 assertNotNull(mGridView); in testPreconditions()
50 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
56 TouchUtils.scrollToTop(this, mGridView); in testScrollToTop()
60 mGridView.getSelectedItemPosition()); in testScrollToTop()
62 firstChild = mGridView.getChildAt(0); in testScrollToTop()
67 mGridView.getListPaddingTop(), firstChild.getTop()); in testScrollToTop()
72 TouchUtils.scrollToBottom(this, mGridView); in testScrollToBottom()
76 mGridView.getSelectedItemPosition()); in testScrollToBottom()
[all …]
DGridTouchSetSelectionTest.java33 private GridView mGridView; field in GridTouchSetSelectionTest
44 mGridView = getActivity().getGridView(); in setUp()
50 assertNotNull(mGridView); in testPreconditions()
60 mGridView.getSelectedItemPosition()); in testSetSelection()
62 final int targetPosition = mGridView.getAdapter().getCount() / 2; in testSetSelection()
66 mGridView.setSelection(targetPosition); in testSetSelection()
72 int childCount = mGridView.getChildCount(); in testSetSelection()
74 View child = mGridView.getChildAt(i); in testSetSelection()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java28 private GridView mGridView; field in GridSetSelectionBaseTest
39 mGridView = getActivity().getGridView(); in setUp()
45 assertNotNull(mGridView); in testPreconditions()
48 if (mGridView.isStackFromBottom()) { in testPreconditions()
49 assertEquals(mGridView.getAdapter().getCount() - 1, in testPreconditions()
50 mGridView.getSelectedItemPosition()); in testPreconditions()
52 assertEquals(0, mGridView.getSelectedItemPosition()); in testPreconditions()
58 final int target = mGridView.getAdapter().getCount() - 1; in testSetSelectionToTheEnd()
61 mGridView.setSelection(target); in testSetSelectionToTheEnd()
66 assertEquals(mGridView.getSelectedItemPosition(), target); in testSetSelectionToTheEnd()
[all …]
DGridPaddingTest.java24 private GridView mGridView; field in GridPaddingTest
35 mGridView = getActivity().getGridView(); in setUp()
40 assertNotNull(mGridView); in testPreconditions()
41 assertTrue("Not in touch mode", mGridView.isInTouchMode()); in testPreconditions()
47 assertEquals("The first item should be selected", mGridView.getSelectedItemPosition(), 0); in testResurrectSelection()
DGridInVerticalTest.java28 private GridView mGridView; field in GridInVerticalTest
39 mGridView = getActivity().getGridView(); in setUp()
45 assertNotNull(mGridView); in testPreconditions()
46 assertTrue("Grid has 0 width", mGridView.getMeasuredWidth() > 0); in testPreconditions()
47 assertTrue("Grid has 0 height", mGridView.getMeasuredHeight() > 0); in testPreconditions()
DGridStackFromBottomTest.java27 private GridView mGridView; field in GridStackFromBottomTest
38 mGridView = getActivity().getGridView(); in setUp()
44 assertNotNull(mGridView); in testPreconditions()
47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
DGridStackFromBottomManyTest.java27 private GridView mGridView; field in GridStackFromBottomManyTest
38 mGridView = getActivity().getGridView(); in setUp()
44 assertNotNull(mGridView); in testPreconditions()
47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
DGridInHorizontalTest.java28 private GridView mGridView; field in GridInHorizontalTest
39 mGridView = getActivity().getGridView(); in setUp()
45 assertNotNull(mGridView); in testPreconditions()
46 assertTrue("Grid has 0 width", mGridView.getMeasuredWidth() > 0); in testPreconditions()
47 assertTrue("Grid has 0 height", mGridView.getMeasuredHeight() > 0); in testPreconditions()
DGridSingleColumnTest.java27 private GridView mGridView; field in GridSingleColumnTest
38 mGridView = getActivity().getGridView(); in setUp()
44 assertNotNull(mGridView); in testPreconditions()
45 assertEquals(0, mGridView.getSelectedItemPosition()); in testPreconditions()
DGridScrollListener.java35 GridView mGridView; field in GridScrollListener
50 mGridView = (GridView) findViewById(R.id.grid); in onCreate()
51 mGridView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
54 mGridView.setOnScrollListener(this); in onCreate()
58 return mGridView; in getGridView()
DGridPadding.java30 private GridView mGridView; field in GridPadding
43 mGridView = (GridView) findViewById(R.id.grid); in onCreate()
44 mGridView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
49 return mGridView; in getGridView()
DGridInHorizontal.java34 GridView mGridView; field in GridInHorizontal
49 mGridView = (GridView) findViewById(R.id.grid); in onCreate()
50 mGridView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
56 return mGridView; in getGridView()
DGridInVertical.java34 GridView mGridView; field in GridInVertical
49 mGridView = (GridView) findViewById(R.id.grid); in onCreate()
50 mGridView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
56 return mGridView; in getGridView()
DGridScrollListenerTest.java33 private GridView mGridView; field in GridScrollListenerTest
47 mGridView = getActivity().getGridView(); in setUp()
48 mGridView.setOnScrollListener(this); in setUp()
54 assertNotNull(mGridView); in testPreconditions()
/frameworks/base/core/tests/coretests/src/android/util/
DGridScenario.java42 private GridView mGridView; field in GridScenario
63 return mGridView; in getGridView()
243 mGridView = new GridView(this); in onCreate()
244 mGridView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
247 mGridView.setDrawSelectorOnTop(false); in onCreate()
249 mGridView.setNumColumns(mNumColumns); in onCreate()
252 mGridView.setColumnWidth(mColumnWidth); in onCreate()
255 mGridView.setVerticalSpacing(mVerticalSpacing); in onCreate()
257 mGridView.setStretchMode(mStretchMode); in onCreate()
258 mGridView.setAdapter(createAdapter()); in onCreate()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DListRowPresenter.java57 final HorizontalGridView mGridView; field in ListRowPresenter.ViewHolder
67 mGridView = gridView; in ViewHolder()
69 mPaddingTop = mGridView.getPaddingTop(); in ViewHolder()
70 mPaddingBottom = mGridView.getPaddingBottom(); in ViewHolder()
71 mPaddingLeft = mGridView.getPaddingLeft(); in ViewHolder()
72 mPaddingRight = mGridView.getPaddingRight(); in ViewHolder()
80 return mGridView; in getGridView()
192 ShadowOverlayContainer.prepareParentForShadow(rowViewHolder.mGridView); in initializeRowViewHolder()
196 rowViewHolder.mGridView.setFocusDrawingOrderEnabled(!isUsingZOrder()); in initializeRowViewHolder()
197 rowViewHolder.mGridView.setOnChildSelectedListener( in initializeRowViewHolder()
[all …]
DListRowView.java28 private HorizontalGridView mGridView; field in ListRowView
44 mGridView = (HorizontalGridView) findViewById(R.id.row_content); in ListRowView()
53 return mGridView; in getGridView()
DFocusHighlightHelper.java192 private BaseGridView mGridView; field in FocusHighlightHelper.HeaderItemFocusHighlight
195 mGridView = gridView; in HeaderItemFocusHighlight()
214 mViewHolder = (ItemBridgeAdapter.ViewHolder) mGridView.getChildViewHolder(view); in HeaderFocusAnimator()
DVerticalGridPresenter.java33 final VerticalGridView mGridView; field in VerticalGridPresenter.ViewHolder
38 mGridView = view; in ViewHolder()
42 return mGridView; in getGridView()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDirectoryFragment.java96 private GridView mGridView; field in DirectoryFragment
210 mGridView = (GridView) view.findViewById(R.id.grid); in onCreateView()
211 mGridView.setOnItemClickListener(mItemListener); in onCreateView()
212 mGridView.setMultiChoiceModeListener(mMultiListener); in onCreateView()
213 mGridView.setRecyclerListener(mRecycleListener); in onCreateView()
223 final ViewGroup target = (mListView.getAdapter() != null) ? mListView : mGridView; in onDestroyView()
232 mGridView.setChoiceMode(AbsListView.CHOICE_MODE_NONE); in onDestroyView()
319 mGridView.smoothScrollToPosition(0); in onActivityCreated()
402 mGridView.setVisibility(state.derivedMode == MODE_GRID ? View.VISIBLE : View.GONE); in updateDisplayState()
416 mGridView.setAdapter(mAdapter); in updateDisplayState()
[all …]
/frameworks/base/docs/html/training/displaying-bitmaps/
Ddisplay-bitmap.jd257 final GridView mGridView = (GridView) v.findViewById(R.id.gridView);
258 mGridView.setAdapter(mAdapter);
259 mGridView.setOnItemClickListener(this);