/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()
|
D | ListWithFirstScreenUnSelectableTest.java | 44 assertFalse(mListView.getAdapter().isEnabled(0)); in testPreconditions()
|
/frameworks/base/core/java/android/widget/ |
D | AdapterView.java | 433 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/ |
D | AdapterViewICS.java | 442 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 …]
|
D | ScrollingTabContainerView.java | 146 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/ |
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()
|
D | GridStackFromBottomManyTest.java | 47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
|
D | GridStackFromBottomTest.java | 47 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | PagerTitleStrip.java | 251 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/ |
D | ScrollingTabContainerView.java | 153 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/ |
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 | 66 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/ |
D | ListBottomGravityTest.java | 47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
|
D | ListBottomGravityManyTest.java | 47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
|
D | ListWithHeaders.java | 54 final ListAdapter adapter = listView.getAdapter(); in onCreate()
|