/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
GridTouchStackFromBottomTest.java | 29 private GridView mGridView; 40 mGridView = getActivity().getGridView(); 46 assertNotNull(mGridView); 49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); 54 TouchUtils.scrollToBottom(this, mGridView); 58 mGridView.getSelectedItemPosition()); 60 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); 63 mGridView.getAdapter().getCount() - 1, lastChild.getId()) [all...] |
GridTouchStackFromBottomManyTest.java | 30 private GridView mGridView; 41 mGridView = getActivity().getGridView(); 47 assertNotNull(mGridView); 50 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); 56 TouchUtils.scrollToTop(this, mGridView); 60 mGridView.getSelectedItemPosition()); 62 firstChild = mGridView.getChildAt(0); 67 mGridView.getListPaddingTop(), firstChild.getTop()); 72 TouchUtils.scrollToBottom(this, mGridView); [all...] |
GridTouchVerticalSpacingStackFromBottomTest.java | 33 private GridView mGridView; 45 mGridView = getActivity().getGridView(); 53 assertNotNull(mGridView); 56 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); 62 View firstChild = mGridView.getChildAt(0); 63 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); 70 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1) [all...] |
GridTouchVerticalSpacingTest.java | 32 private GridView mGridView; 43 mGridView = getActivity().getGridView(); 49 assertNotNull(mGridView); 51 assertEquals(0, mGridView.getSelectedItemPosition()); 56 View firstChild = mGridView.getChildAt(0); 57 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); 64 View newFirstChild = mGridView.getChildAt(0); 73 View firstChild = mGridView.getChildAt(0); 74 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1) [all...] |
GridTouchSetSelectionTest.java | 33 private GridView mGridView; 44 mGridView = getActivity().getGridView(); 50 assertNotNull(mGridView); 60 mGridView.getSelectedItemPosition()); 62 final int targetPosition = mGridView.getAdapter().getCount() / 2; 66 mGridView.setSelection(targetPosition); 72 int childCount = mGridView.getChildCount(); 74 View child = mGridView.getChildAt(i);
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
GridSetSelectionBaseTest.java | 28 private GridView mGridView; 39 mGridView = getActivity().getGridView(); 45 assertNotNull(mGridView); 48 if (mGridView.isStackFromBottom()) { 49 assertEquals(mGridView.getAdapter().getCount() - 1, 50 mGridView.getSelectedItemPosition()); 52 assertEquals(0, mGridView.getSelectedItemPosition()); 58 final int target = mGridView.getAdapter().getCount() - 1; 61 mGridView.setSelection(target); 66 assertEquals(mGridView.getSelectedItemPosition(), target) [all...] |
GridInHorizontalTest.java | 28 private GridView mGridView; 39 mGridView = getActivity().getGridView(); 45 assertNotNull(mGridView); 46 assertTrue("Grid has 0 width", mGridView.getMeasuredWidth() > 0); 47 assertTrue("Grid has 0 height", mGridView.getMeasuredHeight() > 0);
|
GridInVerticalTest.java | 28 private GridView mGridView; 39 mGridView = getActivity().getGridView(); 45 assertNotNull(mGridView); 46 assertTrue("Grid has 0 width", mGridView.getMeasuredWidth() > 0); 47 assertTrue("Grid has 0 height", mGridView.getMeasuredHeight() > 0);
|
GridPaddingTest.java | 24 private GridView mGridView; 35 mGridView = getActivity().getGridView(); 40 assertNotNull(mGridView); 41 assertTrue("Not in touch mode", mGridView.isInTouchMode()); 47 assertEquals("The first item should be selected", mGridView.getSelectedItemPosition(), 0);
|
GridStackFromBottomManyTest.java | 27 private GridView mGridView; 38 mGridView = getActivity().getGridView(); 44 assertNotNull(mGridView); 47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition());
|
GridStackFromBottomTest.java | 27 private GridView mGridView; 38 mGridView = getActivity().getGridView(); 44 assertNotNull(mGridView); 47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition());
|
GridSingleColumnTest.java | 27 private GridView mGridView; 38 mGridView = getActivity().getGridView(); 44 assertNotNull(mGridView); 45 assertEquals(0, mGridView.getSelectedItemPosition());
|
GridInHorizontal.java | 34 GridView mGridView; 49 mGridView = (GridView) findViewById(R.id.grid); 50 mGridView.setAdapter(new ArrayAdapter<String>(this, 56 return mGridView;
|
GridInVertical.java | 34 GridView mGridView; 49 mGridView = (GridView) findViewById(R.id.grid); 50 mGridView.setAdapter(new ArrayAdapter<String>(this, 56 return mGridView;
|
GridPadding.java | 30 private GridView mGridView; 43 mGridView = (GridView) findViewById(R.id.grid); 44 mGridView.setAdapter(new ArrayAdapter<String>(this, 49 return mGridView;
|
GridScrollListener.java | 35 GridView mGridView; 50 mGridView = (GridView) findViewById(R.id.grid); 51 mGridView.setAdapter(new ArrayAdapter<String>(this, 54 mGridView.setOnScrollListener(this); 58 return mGridView;
|
GridScrollListenerTest.java | 33 private GridView mGridView; 47 mGridView = getActivity().getGridView(); 48 mGridView.setOnScrollListener(this); 54 assertNotNull(mGridView);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
GridViewTest.java | 55 private GridView mGridView; 70 mGridView = null; 113 mGridView = new GridView(mActivity); 116 mGridView.setAdapter(adapter); 117 assertSame(adapter, mGridView.getAdapter()); 119 mGridView.setAdapter(null); 120 assertNull(mGridView.getAdapter()); 124 mGridView = new GridView(mActivity); 125 mGridView.setSelection(0); 126 assertEquals(0, mGridView.getSelectedItemPosition()) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ListRowView.java | 28 private HorizontalGridView mGridView; 44 mGridView = (HorizontalGridView) findViewById(R.id.row_content); 46 // mGridView.setFocusScrollStrategy(HorizontalGridView.FOCUS_SCROLL_PAGE); 53 return mGridView;
|
ListRowPresenter.java | 57 final HorizontalGridView mGridView; 67 mGridView = gridView; 69 mPaddingTop = mGridView.getPaddingTop(); 70 mPaddingBottom = mGridView.getPaddingBottom(); 71 mPaddingLeft = mGridView.getPaddingLeft(); 72 mPaddingRight = mGridView.getPaddingRight(); 80 return mGridView; 192 ShadowOverlayContainer.prepareParentForShadow(rowViewHolder.mGridView); 196 rowViewHolder.mGridView.setFocusDrawingOrderEnabled(!isUsingZOrder()); 197 rowViewHolder.mGridView.setOnChildSelectedListener [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
GridLayoutAnimationControllerTest.java | 44 private GridView mGridView; 72 mGridView = mActivity.getGridView(); 93 AnimationTestUtils.assertRunController(getInstrumentation(), mGridView, mController, 96 Animation childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation(); 97 Animation childAnimation4 = mGridView.getChildAt(INDEX_OF_CHILD4).getAnimation(); 98 Animation childAnimation7 = mGridView.getChildAt(INDEX_OF_CHILD7).getAnimation(); 103 AnimationTestUtils.assertRunController(getInstrumentation(), mGridView, mController, 106 childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation(); 107 Animation childAnimation2 = mGridView.getChildAt(INDEX_OF_CHILD2).getAnimation(); 108 Animation childAnimation3 = mGridView.getChildAt(INDEX_OF_CHILD3).getAnimation() [all...] |
GridLayoutAnimCtsActivity.java | 33 private GridView mGridView; 40 mGridView = (GridView) findViewById(R.id.gridlayout_anim_gridview); 41 mGridView.setAdapter(new MockGridViewAdapter(GRID_NUM)); 45 return mGridView;
|
/frameworks/base/core/tests/coretests/src/android/util/ |
GridScenario.java | 42 private GridView mGridView; 63 return mGridView; 243 mGridView = new GridView(this); 244 mGridView.setLayoutParams(new ViewGroup.LayoutParams( 247 mGridView.setDrawSelectorOnTop(false); 249 mGridView.setNumColumns(mNumColumns); 252 mGridView.setColumnWidth(mColumnWidth); 255 mGridView.setVerticalSpacing(mVerticalSpacing); 257 mGridView.setStretchMode(mStretchMode); 258 mGridView.setAdapter(createAdapter()) [all...] |
/developers/build/prebuilts/gradle/ActivitySceneTransitionBasic/Application/src/main/java/com/example/android/activityscenetransitionbasic/ |
MainActivity.java | 42 private GridView mGridView; 51 mGridView = (GridView) findViewById(R.id.grid); 52 mGridView.setOnItemClickListener(this); 54 mGridView.setAdapter(mAdapter);
|
/developers/build/prebuilts/gradle/DoneBar/Application/src/main/java/com/example/android/donebar/ |
MainActivity.java | 36 private GridView mGridView; 51 mGridView = (GridView) findViewById(android.R.id.list); 52 mGridView.setAdapter(new SampleAdapter()); 53 mGridView.setOnItemClickListener(this);
|