/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 = findViewById(R.id.grid); 44 mGridView.setAdapter(new ArrayAdapter<String>(this, 49 return mGridView;
|
GridScrollListener.java | 35 GridView mGridView; 50 mGridView = 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 | 85 private GridView mGridView; 95 mGridView = (GridView) mActivity.findViewById(R.id.gridview); 142 mGridView.setAdapter(adapter); 143 assertSame(adapter, mGridView.getAdapter()); 145 mGridView.setAdapter(null); 146 assertNull(mGridView.getAdapter()); 152 mGridView.setSelection(0); 153 assertEquals(0, mGridView.getSelectedItemPosition()); 155 mGridView.setSelection(-1); 156 assertEquals(-1, mGridView.getSelectedItemPosition()) [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
GridWidgetTest.java | 83 protected BaseGridView mGridView; 155 mGridView.setSelectedPosition(position, scrollExtra); 169 mGridView.setSelectedPositionSmooth(position); 187 } while (mGridView.getLayoutManager().isSmoothScrolling() 188 || mGridView.getScrollState() != BaseGridView.SCROLL_STATE_IDLE); 197 if (mGridView.getLayoutDirection() == ViewGroup.LAYOUT_DIRECTION_RTL) { 205 if (mGridView.getLayoutDirection() == ViewGroup.LAYOUT_DIRECTION_RTL) { 222 if (mGridView.getLayoutDirection() == ViewGroup.LAYOUT_DIRECTION_RTL) { 230 if (mGridView.getLayoutDirection() == ViewGroup.LAYOUT_DIRECTION_RTL) { 247 for (int i = 0; i < mGridView.getChildCount(); i++) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ListRowView.java | 29 private HorizontalGridView mGridView; 45 mGridView = (HorizontalGridView) findViewById(R.id.row_content); 47 mGridView.setHasFixedSize(false); 50 // mGridView.setFocusScrollStrategy(HorizontalGridView.FOCUS_SCROLL_PAGE); 60 return mGridView;
|
ListRowPresenter.java | 61 final HorizontalGridView mGridView; 71 mGridView = gridView; 73 mPaddingTop = mGridView.getPaddingTop(); 74 mPaddingBottom = mGridView.getPaddingBottom(); 75 mPaddingLeft = mGridView.getPaddingLeft(); 76 mPaddingRight = mGridView.getPaddingRight(); 92 return mGridView; 108 return mGridView.getSelectedPosition(); 118 ItemBridgeAdapter.ViewHolder ibvh = (ItemBridgeAdapter.ViewHolder) mGridView 133 ItemBridgeAdapter.ViewHolder ibvh = (ItemBridgeAdapter.ViewHolder) mGridView [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
GridLayoutAnimationControllerTest.java | 67 private GridView mGridView; 80 mGridView = mActivity.getGridView(); 103 AnimationTestUtils.assertRunController(mActivityRule, mGridView, mController, 106 Animation childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation(); 107 Animation childAnimation4 = mGridView.getChildAt(INDEX_OF_CHILD4).getAnimation(); 108 Animation childAnimation7 = mGridView.getChildAt(INDEX_OF_CHILD7).getAnimation(); 113 AnimationTestUtils.assertRunController(mActivityRule, mGridView, mController, 116 childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation(); 117 Animation childAnimation2 = mGridView.getChildAt(INDEX_OF_CHILD2).getAnimation(); 118 Animation childAnimation3 = mGridView.getChildAt(INDEX_OF_CHILD3).getAnimation() [all...] |
GridLayoutAnimCtsActivity.java | 32 private GridView mGridView; 39 mGridView = (GridView) findViewById(R.id.gridlayout_anim_gridview); 40 mGridView.setAdapter(new MockGridViewAdapter(GRID_NUM)); 44 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);
|