Home
last modified time | relevance | path

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

123

/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()
DListWithFirstScreenUnSelectableTest.java44 assertFalse(mListView.getAdapter().isEnabled(0)); in testPreconditions()
/frameworks/base/core/java/android/widget/
DAdapterView.java433 public abstract T getAdapter(); in getAdapter() method in AdapterView
566 T adapter = getAdapter(); in getSelectedItem()
659 final T adapter = getAdapter(); in setEmptyView()
687 final T adapter = getAdapter(); in setFocusable()
700 final T adapter = getAdapter(); in setFocusableInTouchMode()
712 final T adapter = getAdapter(); in checkFocus()
763 T adapter = getAdapter(); in getItemAtPosition()
768 T adapter = getAdapter(); in getItemIdAtPosition()
802 mItemCount = getAdapter().getCount(); in onChanged()
806 if (AdapterView.this.getAdapter().hasStableIds() && mInstanceState != null in onChanged()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DAdapterViewICS.java442 public abstract T getAdapter(); in getAdapter() method in AdapterViewICS
575 T adapter = getAdapter(); in getSelectedItem()
661 final T adapter = getAdapter(); in setEmptyView()
689 final T adapter = getAdapter(); in setFocusable()
702 final T adapter = getAdapter(); in setFocusableInTouchMode()
714 final T adapter = getAdapter(); in checkFocus()
765 T adapter = getAdapter(); in getItemAtPosition()
770 T adapter = getAdapter(); in getItemIdAtPosition()
804 mItemCount = getAdapter().getCount(); in onChanged()
808 if (AdapterViewICS.this.getAdapter().hasStableIds() && mInstanceState != null in onChanged()
[all …]
DScrollingTabContainerView.java146 if (mTabSpinner.getAdapter() == null) { in performCollapse()
263 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
278 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in addTab()
291 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in updateTab()
301 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeTabAt()
311 ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); in removeAllTabs()
/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()
DGridStackFromBottomManyTest.java47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
DGridStackFromBottomTest.java47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java251 final PagerAdapter adapter = pager.getAdapter(); in onAttachedToWindow()
263 updateAdapter(mPager.getAdapter(), null); in onDetachedFromWindow()
334 updateText(position, mPager.getAdapter()); in updateTextPositions()
487 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onPageSelected()
506 updateText(mPager.getCurrentItem(), mPager.getAdapter()); in onChanged()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java153 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/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.java66 builder.setAdapter(mPresenter.getAdapter(), this); in show()
170 mMenu.performItemAction((MenuItemImpl) mPresenter.getAdapter().getItem(which), 0); in onClick()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListBottomGravityTest.java47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
DListBottomGravityManyTest.java47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
DListWithHeaders.java54 final ListAdapter adapter = listView.getAdapter(); in onCreate()

123