Home
last modified time | relevance | path

Searched refs:getAdapter (Results 1 – 25 of 124) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchStackFromBottomTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp()
80 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDown()
97 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUpFast()
114 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDownFast()
DGridTouchVerticalSpacingStackFromBottomTest.java56 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
73 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testNoScroll()
95 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testShortScroll()
157 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, in testManyScrolls()
DGridTouchStackFromBottomManyTest.java50 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
80 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, in testScrollToBottom()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithOffScreenNextSelectableTest.java45 assertEquals(5, mListView.getAdapter().getCount()); in testPreconditions()
46 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions()
47 assertFalse(mListView.getAdapter().isEnabled(1)); in testPreconditions()
48 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
49 assertFalse(mListView.getAdapter().isEnabled(3)); in testPreconditions()
DListWithSeparatorsTest.java45 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions()
46 assertFalse(mListView.getAdapter().isEnabled(0)); in testPreconditions()
47 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
DListOfThinItemsTest.java46 mListView.getChildCount() < mListView.getAdapter().getCount()); in testPreconditions()
51 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom()
61 int bottomThreshold = (lastVisiblePosition < mListView.getAdapter().getCount() - 1) ? in testScrollToBottom()
79 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop()
DListWithScreenOfNoSelectablesTest.java43 mListView.getAdapter().isEnabled(0)); in testPreconditions()
47 mListView.getAdapter().isEnabled(i)); in testPreconditions()
DListOfItemsShorterThanScreenTest.java131 final int lastItemPosition = mListView.getAdapter().getCount() - 1; in testPressDownWhenAlreadyAtBottom()
143 final int lastItemPosition = mListView.getAdapter().getCount() - 1; in testNoVerticalFadingEdgeWhenMovingToBottom()
/frameworks/base/core/java/android/widget/
DAdapterView.java450 public abstract T getAdapter(); in getAdapter() method in AdapterView
583 T adapter = getAdapter(); in getSelectedItem()
678 final T adapter = getAdapter(); in setEmptyView()
706 final T adapter = getAdapter(); in setFocusable()
719 final T adapter = getAdapter(); in setFocusableInTouchMode()
731 final T adapter = getAdapter(); in checkFocus()
782 T adapter = getAdapter(); in getItemAtPosition()
787 T adapter = getAdapter(); in getItemIdAtPosition()
821 mItemCount = getAdapter().getCount(); in onChanged()
825 if (AdapterView.this.getAdapter().hasStableIds() && mInstanceState != null in onChanged()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityTest.java53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
68 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPullDown()
87 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
DListTouchBottomGravityManyTest.java56 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
91 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
111 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testNoScroll()
133 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testShortScroll()
DListSetSelectionTest.java62 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelection()
92 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelectionFromTop()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, in testPreconditions()
58 final int target = mGridView.getAdapter().getCount() - 1; in testSetSelectionToTheEnd()
74 final int target = mGridView.getAdapter().getCount() / 2; in testSetSelectionToMiddle()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DAbsSpinnerBindingAdapterTest.java52 assertEquals(mBindingObject.getEntries().length, mView.getAdapter().getCount()); in validateEntries()
54 SpinnerAdapter adapter = mView.getAdapter(); in validateEntries()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBaseRowSupportFragment.java117 public final ObjectAdapter getAdapter() { in getAdapter() method in BaseRowSupportFragment
140 if(mVerticalGridView != null && mVerticalGridView.getAdapter() != null) { in setSelectedPosition()
174 return ((ListRow) row).getAdapter().get(position); in getItem()
DBaseRowFragment.java115 public final ObjectAdapter getAdapter() { in getAdapter() method in BaseRowFragment
138 if(mVerticalGridView != null && mVerticalGridView.getAdapter() != null) { in setSelectedPosition()
172 return ((ListRow) row).getAdapter().get(position); in getItem()
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DGridActivity.java243 mGridView.getAdapter().notifyItemMoved(index1, index2); in swap()
244 mGridView.getAdapter().notifyItemMoved(index2 - 1, index1); in swap()
249 mGridView.getAdapter().notifyDataSetChanged(); in changeArraySize()
258 mGridView.getAdapter().notifyItemRangeRemoved(index, length); in removeItems()
272 mGridView.getAdapter().notifyItemRangeInserted(index, length); in addItems()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DScrollingTabContainerView.java161 if (mTabSpinner.getAdapter() == null) { in performCollapse()
313 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
328 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
341 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in updateTab()
351 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeTabAt()
361 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeAllTabs()
DListViewCompat.java144 final ListAdapter adapter = getAdapter(); in lookForSelectablePosition()
150 if (!getAdapter().areAllItemsEnabled()) { in lookForSelectablePosition()
266 final ListAdapter adapter = getAdapter(); in measureHeightOfChildrenCompat()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java151 if (mTabSpinner.getAdapter() == null) { in performCollapse()
302 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
317 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
330 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in updateTab()
340 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeTabAt()
350 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeAllTabs()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java253 final PagerAdapter adapter = pager.getAdapter(); in onAttachedToWindow()
265 updateAdapter(mPager.getAdapter(), null); in onDetachedFromWindow()
337 updateText(position, mPager.getAdapter()); in updateTextPositions()
491 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onPageSelected()
510 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onChanged()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java63 builder.setAdapter(mPresenter.getAdapter(), this); in show()
167 mMenu.performItemAction((MenuItemImpl) mPresenter.getAdapter().getItem(which), 0); in onClick()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DMenuDialogHelper.java64 builder.setAdapter(mPresenter.getAdapter(), this); in show()
168 mMenu.performItemAction((MenuItemImpl) mPresenter.getAdapter().getItem(which), 0); in onClick()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DListRow.java26 public final ObjectAdapter getAdapter() { in getAdapter() method in ListRow
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListBottomGravityManyTest.java47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()

12345