/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListSetSelectionTest.java | 29 private ListView mListView; 40 mListView = getActivity().getListView(); 46 assertNotNull(mListView); 54 int childCount = mListView.getChildCount(); 56 mListView.setSelection(i); 57 assertEquals("Set selection", i, mListView.getSelectedItemPosition()); 66 mListView.setSelection(0); 67 assertEquals("Set selection", 0, mListView.getSelectedItemPosition()); 70 mListView.setSelection(ListView.INVALID_POSITION); 71 assertEquals("Set selection", 0, mListView.getSelectedItemPosition()) [all...] |
ListFocusableTest.java | 27 private ListView mListView; 38 mListView = getActivity().getListView(); 44 assertNotNull(mListView); 47 assertEquals(0, mListView.getSelectedItemPosition()); 53 assertTrue(mListView.isFocusable()); 59 assertFalse(mListView.isFocusable()); 65 assertFalse(mListView.isFocusable()); 70 assertTrue(mListView.isFocusable()); 73 assertTrue(mListView.isFocusable()); 78 assertTrue(mListView.isFocusable()) [all...] |
ListHeterogeneousTest.java | 30 private ListView mListView; 42 mListView = getActivity().getListView(); 48 assertNotNull(mListView); 55 int count = mListView.getAdapter().getCount();
|
ListItemRequestRectAboveThinFirstItemTest.java | 30 private ListView mListView; 38 mListView = getActivity().getListView(); 45 mListView.getChildAt(0).getBottom() < mListView.getVerticalFadingEdgeLength()); 47 mListView.getChildCount() >= 2); 57 assertEquals("selected position", 1, mListView.getSelectedItemPosition()); 59 final View second = mListView.getChildAt(1); 68 mListView.getListPaddingTop(), mListView.getChildAt(0).getTop()); 76 final int secondToLastPos = mListView.getCount() - 2 [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListItemFocusableAboveUnfocusableTest.java | 26 private ListView mListView; 35 mListView = getActivity().getListView(); 41 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); 42 assertTrue(mListView.getChildAt(0).isFocused()); 43 assertFalse(mListView.getChildAt(1).isFocusable()); 51 mListView.getChildAt(0).isFocused()); 52 assertEquals("selected position", 1, mListView.getSelectedItemPosition());
|
ListOfShortShortTallShortShortTest.java | 27 private ListView mListView; 37 mListView = getActivity().getListView(); 38 mListUtil = new ListUtil(mListView, getInstrumentation()); 43 assertEquals("list item count", 5, mListView.getCount()); 44 assertEquals("list visible child count", 3, mListView.getChildCount()); 45 int firstTwoHeight = mListView.getChildAt(0).getHeight() + mListView.getChildAt(1).getHeight(); 47 firstTwoHeight <= mListView.getVerticalFadingEdgeLength()); 49 firstTwoHeight <= mListView.getMaxScrollAmount()); 61 assertEquals("selected item position", 2, mListView.getSelectedItemPosition()) [all...] |
ListOfShortTallShortTest.java | 26 private ListView mListView; 36 mListView = getActivity().getListView(); 42 mListView.getChildAt(1).getHeight() > mListView.getHeight()); 47 int topBeforeMove = mListView.getChildAt(1).getTop(); 51 1, mListView.getSelectedItemPosition()); 54 mListView.getSelectedView().getTop()); 60 while (mListView.getSelectedItemPosition() != 2 && maxMoves > 0) { 65 mListView.getSelectedItemPosition()); 68 2, mListView.getChildCount()) [all...] |
ListWithNoFadingEdgeTest.java | 29 private ListView mListView; 39 mListView = getActivity().getListView(); 44 assertNotNull(mListView); 45 assertEquals("listview vertical fading edge", 0, mListView.getVerticalFadingEdgeLength()); 47 mListView.getChildCount() < mListView.getCount()); 52 final int numItems = mListView.getCount(); 55 assertEquals("selected position", i, mListView.getSelectedItemPosition()); 58 assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition()); 63 final int numItems = mListView.getCount() [all...] |
ListWithOnItemSelectedActionTest.java | 27 private ListView mListView; 36 mListView = getActivity().getListView(); 40 return ((TextView) mListView.getSelectedView()).getText().toString(); 45 assertEquals(0, mListView.getSelectedItemPosition()); 55 assertEquals(1, mListView.getSelectedItemPosition());
|
ListWithSeparatorsTest.java | 27 private ListView mListView; 38 mListView = getActivity().getListView(); 44 assertNotNull(mListView); 45 assertFalse(mListView.getAdapter().areAllItemsEnabled()); 46 assertFalse(mListView.getAdapter().isEnabled(0)); 47 assertFalse(mListView.getAdapter().isEnabled(2)); 48 assertEquals(1, mListView.getSelectedItemPosition()); 55 1, mListView.getSelectedItemPosition()); 58 mListView.getListPaddingTop(), mListView.getChildAt(0).getTop()) [all...] |
ListInterleaveFocusablesTest.java | 28 private ListView mListView; 39 mListView = getActivity().getListView(); 40 mListUtil = new ListUtil(mListView, getInstrumentation()); 45 assertEquals(7, mListView.getChildCount()); 46 assertTrue(mListView.getChildAt(1).isFocusable()); 47 assertTrue(mListView.getChildAt(3).isFocusable()); 48 assertTrue(mListView.getChildAt(6).isFocusable()); 55 assertEquals("selected item position", 1, mListView.getSelectedItemPosition()); 66 assertEquals("selected item position", 3, mListView.getSelectedItemPosition()); 75 assertEquals("selected item position", 1, mListView.getSelectedItemPosition()) [all...] |
ListLastItemPartiallyVisibleTest.java | 27 private ListView mListView; 38 mListView = getActivity().getListView(); 39 mListBottom = mListView.getHeight() - mListView.getPaddingBottom(); 45 "in adapter", mListView.getCount(), mListView.getChildCount()); 47 final View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 50 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); 56 final View firstChild = mListView.getChildAt(0) [all...] |
ListWithOffScreenNextSelectableTest.java | 29 private ListView mListView; 39 mListView = getActivity().getListView(); 44 assertNotNull(mListView); 45 assertEquals(5, mListView.getAdapter().getCount()); 46 assertFalse(mListView.getAdapter().areAllItemsEnabled()); 47 assertFalse(mListView.getAdapter().isEnabled(1)); 48 assertFalse(mListView.getAdapter().isEnabled(2)); 49 assertFalse(mListView.getAdapter().isEnabled(3)); 52 4, mListView.getChildCount()); 53 assertEquals(0, mListView.getSelectedItemPosition()) [all...] |
ListWithScreenOfNoSelectablesTest.java | 28 private ListView mListView; 37 mListView = getActivity().getListView(); 43 mListView.getAdapter().isEnabled(0)); 44 final int numItems = mListView.getCount(); 47 mListView.getAdapter().isEnabled(i)); 50 mListView.getChildCount() < mListView.getCount()); 58 View first = mListView.getChildAt(0); 64 assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); 65 assertNull("selected view", mListView.getSelectedView()) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
ListButtonsDiagonalAcrossItemsTest.java | 38 private ListView mListView; 52 mListView = getActivity().getListView(); 57 final ListView lv = mListView; 73 FocusFinder.getInstance().findNextFocus(mListView, mLeftButton, View.FOCUS_RIGHT)); 76 FocusFinder.getInstance().findNextFocus(mListView, mCenterButton, View.FOCUS_RIGHT)); 79 FocusFinder.getInstance().findNextFocus(mListView, mCenterButton, View.FOCUS_LEFT)); 88 mListView.getSelectedItemPosition()); 95 assertEquals("list view postion", 1, mListView.getSelectedItemPosition()); 101 mListView.getSelectedItemPosition());
|
ListHorizontalFocusWithinItemWinsTest.java | 31 private ListView mListView; 44 mListView = getActivity().getListView(); 52 assertEquals("list position", 0, mListView.getSelectedItemPosition()); 56 FocusFinder.getInstance().findNextFocus(mListView, mTopLeftButton, View.FOCUS_RIGHT)); 59 FocusFinder.getInstance().findNextFocus(mListView, mTopRightButton, View.FOCUS_LEFT)); 66 assertEquals("list position", 0, mListView.getSelectedItemPosition()); 70 assertEquals("list position", 0, mListView.getSelectedItemPosition());
|
ListWithEditTextHeaderTest.java | 31 private ListView mListView; 40 mListView = getActivity().getListView(); 45 assertTrue("listview.getItemsCanFocus()", mListView.getItemsCanFocus()); 46 assertFalse("out of touch-mode", mListView.isInTouchMode()); 47 assertEquals("header view count", 1, mListView.getHeaderViewsCount()); 48 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); 54 TouchUtils.clickView(this, mListView.getChildAt(0)); 55 assertTrue("header does not have focus", mListView.getChildAt(0).isFocused()); 56 assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosition()); 62 assertEquals("selected position", 1, mListView.getSelectedItemPosition()) [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactNameHighlightingAnimation.java | 29 private final ListView mListView; 34 this.mListView = listView; 42 int childCount = mListView.getChildCount(); 44 View itemView = mListView.getChildAt(i); 54 mSavedScrollingCacheEnabledFlag = mListView.isScrollingCacheEnabled(); 55 mListView.setScrollingCacheEnabled(false); 60 mListView.setScrollingCacheEnabled(mSavedScrollingCacheEnabledFlag);
|
/packages/apps/Dialer/src/com/android/dialer/ |
BackScrollManager.java | 39 private final ListView mListView; 80 mListView = listView; 84 mListView.setOnScrollListener(mScrollListener); 87 mListView.setVerticalScrollBarEnabled(false);
|
/cts/tests/src/android/widget/cts/util/ |
ListScenario.java | 47 private ListView mListView; 80 return mListView; 315 mListView = createListView(); 316 mListView.setLayoutParams(new ViewGroup.LayoutParams( 319 mListView.setDrawSelectorOnTop(false); 326 mListView.addHeaderView(header); 332 mListView.addFooterView(header); 336 setAdapter(mListView); 339 mListView.setItemsCanFocus(mItemsFocusable); 341 mListView.setSelection(mStartingSelectionPosition) [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
ListScenario.java | 46 private ListView mListView; 79 return mListView; 316 mListView = createListView(); 317 mListView.setLayoutParams(new ViewGroup.LayoutParams( 320 mListView.setDrawSelectorOnTop(false); 327 mListView.addHeaderView(header); 333 mListView.addFooterView(header); 337 setAdapter(mListView); 340 mListView.setItemsCanFocus(mItemsFocusable); 342 mListView.setSelection(mStartingSelectionPosition) [all...] |
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
SearchableDictionary.java | 47 private ListView mListView; 55 mListView = (ListView) findViewById(R.id.list); 112 mListView.setAdapter(words); 115 mListView.setOnItemClickListener(new OnItemClickListener() {
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListOfButtonsTest.java | 39 private ListView mListView; 53 mListView = a.getListView(); 60 assertNotNull(mListView); 63 assertTrue(mListView.hasFocus()); 65 0, mListView.getSelectedItemPosition()); 73 assertFalse(mListView.hasFocus()); 80 assertTrue(mListView.hasFocus()); 82 View childOne = mListView.getChildAt(1); 84 assertEquals(childOne, mListView.getFocusedChild()); 95 assertTrue(mListView.hasFocus()) [all...] |
ScrollingThroughListOfFocusablesTest.java | 37 private ListView mListView; 52 mListView = mActivity.getListView(); 54 mListView.setVerticalFadingEdgeEnabled(true); 55 mListView.setFadingEdgeLength(10); 68 assertNotNull(mListView); 77 assertEquals(0, mListView.getSelectedItemPosition()); 91 assertEquals(0, mListView.getSelectedItemPosition()); 93 mListView.getSelectedView(); 97 mListView.getBottom() - mListView.getVerticalFadingEdgeLength() [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
BaseAdapterWithImages.java | 43 private final AbsListView mListView; 122 mListView = listView; 126 mListView.setRecyclerListener(new AbsListView.RecyclerListener() { 153 final int count = mListView.getChildCount(); 155 final View rowView = mListView.getChildAt(i); 163 mListView.removeViews(0, count);
|