/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchStackFromBottomTest.java | 49 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()
|
D | GridTouchVerticalSpacingStackFromBottomTest.java | 56 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()
|
D | GridTouchStackFromBottomManyTest.java | 50 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/ |
D | ListWithOffScreenNextSelectableTest.java | 45 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()
|
D | ListWithSeparatorsTest.java | 45 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions() 46 assertFalse(mListView.getAdapter().isEnabled(0)); in testPreconditions() 47 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
|
D | ListOfThinItemsTest.java | 46 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()
|
D | ListWithScreenOfNoSelectablesTest.java | 43 mListView.getAdapter().isEnabled(0)); in testPreconditions() 47 mListView.getAdapter().isEnabled(i)); in testPreconditions()
|
D | ListOfItemsShorterThanScreenTest.java | 131 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/ |
D | AdapterView.java | 450 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/ |
D | ListTouchBottomGravityTest.java | 53 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()
|
D | ListTouchBottomGravityManyTest.java | 56 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()
|
D | ListSetSelectionTest.java | 62 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/ |
D | GridSetSelectionBaseTest.java | 49 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/ |
D | AbsSpinnerBindingAdapterTest.java | 52 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/ |
D | BaseRowSupportFragment.java | 117 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()
|
D | BaseRowFragment.java | 115 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/ |
D | GridActivity.java | 243 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/ |
D | ScrollingTabContainerView.java | 161 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()
|
D | ListViewCompat.java | 144 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/ |
D | ScrollingTabContainerView.java | 151 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/ |
D | PagerTitleStrip.java | 253 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/ |
D | MenuDialogHelper.java | 63 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/ |
D | MenuDialogHelper.java | 64 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/ |
D | ListRow.java | 26 public final ObjectAdapter getAdapter() { in getAdapter() method in ListRow
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListBottomGravityManyTest.java | 47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
|