/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListUnspecifiedMeasure.java | 28 private ListView mListView; 39 mListView = (ListView) mActivity.findViewById(R.id.list); 45 assertNotNull(mListView); 50 assertTrue(mListView.getMeasuredWidth() > 0); 51 assertTrue(mListView.getWidth() > 0); 52 assertTrue(mListView.getMeasuredHeight() > 0); 53 assertTrue(mListView.getHeight() > 0);
|
ListDividers.java | 30 private ListView mListView; 43 mListView = (ListView) findViewById(android.R.id.list); 44 mListView.setAdapter(new ArrayAdapter<String>(this, 50 return mListView;
|
ListInHorizontal.java | 33 private ListView mListView; 46 mListView = (ListView) findViewById(R.id.list); 47 mListView.setAdapter(new ArrayAdapter<String>(this, 53 return mListView;
|
ListInVertical.java | 33 private ListView mListView; 46 mListView = (ListView) findViewById(R.id.list); 47 mListView.setAdapter(new ArrayAdapter<String>(this, 53 return mListView;
|
ListBottomGravityManyTest.java | 27 private ListView mListView; 38 mListView = getActivity().getListView(); 44 assertNotNull(mListView); 47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition());
|
ListBottomGravityTest.java | 27 private ListView mListView; 38 mListView = getActivity().getListView(); 44 assertNotNull(mListView); 47 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition());
|
ListGetCheckItemIdsTest.java | 30 private ListView mListView; 40 mListView = getActivity().getListView(); 45 long[] checkItemIds = mListView.getCheckItemIds(); 60 mListView.setChoiceMode(ListView.CHOICE_MODE_NONE); 62 mListView.setItemChecked(0, true); 69 mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 73 int childCount = mListView.getChildCount(); 75 mListView.setItemChecked(i, true); 81 mListView.setItemChecked(i, true); 82 mListView.setItemChecked((i - 3 + childCount) % childCount, false) [all...] |
ListScrollListenerTest.java | 32 private ListView mListView; 46 mListView = getActivity().getListView(); 47 mListView.setOnScrollListener(this); 53 assertNotNull(mListView);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
PermissionStubActivity.java | 30 private ListView mListView; 36 mListView = new ListView(this); 37 mListView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 40 setContentView(mListView);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
ListGetSelectedViewTest.java | 34 private ListView mListView; 45 mListView = getActivity().getListView(); 51 assertNotNull(mListView); 53 assertEquals(0, mListView.getSelectedItemPosition()); 58 View last = mListView.getChildAt(1); 61 assertNull(mListView.getSelectedItem()); 62 assertNull(mListView.getSelectedView()); 63 assertEquals(-1, mListView.getSelectedItemPosition());
|
ListTouchBottomGravityManyTest.java | 36 private ListView mListView; 47 mListView = getActivity().getListView(); 53 assertNotNull(mListView); 56 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); 61 int originalCount = mListView.getChildCount(); 63 TouchUtils.scrollToTop(this, mListView); 67 mListView.getSelectedItemPosition()); 69 View firstChild = mListView.getChildAt(0); 73 assertEquals("Item zero not at the top of the list", mListView.getListPaddingTop() [all...] |
ListTouchBottomGravityTest.java | 33 private ListView mListView; 44 mListView = getActivity().getListView(); 50 assertNotNull(mListView); 53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); 58 View firstChild = mListView.getChildAt(0); 62 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 66 mListView.getSelectedItemPosition()); 68 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1 [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListWithFirstScreenUnSelectableTest.java | 27 private ListView mListView; 38 mListView = getActivity().getListView(); 42 assertTrue(mListView.isInTouchMode()); 43 assertEquals(1, mListView.getChildCount()); 44 assertFalse(mListView.getAdapter().isEnabled(0)); 45 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); 50 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); 55 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); 56 assertEquals(1, mListView.getChildCount()); 57 assertEquals(0, mListView.getFirstVisiblePosition()) [all...] |
ListOfItemsShorterThanScreenTest.java | 29 private ListView mListView; 40 mListView = getActivity().getListView(); 45 assertEquals(0, mListView.getSelectedItemPosition()); 46 assertTrue(mListView.getChildAt(0).isSelected()); 47 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); 52 final View next = mListView.getChildAt(1); 54 final int secondPosition = mListView.getSelectedView().getBottom(); 60 assertEquals(1, mListView.getSelectedItemPosition()); 72 assertEquals(0, mListView.getSelectedItemPosition()) [all...] |
ListItemFocusablesCloseTest.java | 27 private ListView mListView; 38 mListView = getActivity().getListView(); 39 mListTop = mListView.getListPaddingTop(); 40 mListBottom = mListView.getHeight() - mListView.getListPaddingBottom(); 45 assertNotNull(mListView); 46 assertTrue(mListView.getAdapter().areAllItemsEnabled()); 47 assertTrue(mListView.getItemsCanFocus()); 48 assertEquals(0, mListView.getSelectedItemPosition()); 49 final LinearLayout first = (LinearLayout) mListView.getSelectedView() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
SearchViewFilterMode.java | 38 private ListView mListView; 51 mListView = (ListView) findViewById(R.id.list_view); 52 mListView.setAdapter(mAdapter = new ArrayAdapter<String>(this, 55 mListView.setTextFilterEnabled(true); 68 mListView.clearTextFilter(); 70 mListView.setFilterText(newText.toString());
|
/cts/tests/src/android/widget/cts/util/ |
ListUtil.java | 28 private final ListView mListView; 36 mListView = listView; 45 mListView.post(new Runnable() { 47 mListView.setSelection(pos); 57 return mListView.getListPaddingTop(); 64 return mListView.getHeight() - mListView.getListPaddingBottom(); 73 if (desiredPos > mListView.getSelectedItemPosition()) { 82 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { 85 if (position != mListView.getSelectedItemPosition()) [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
ListUtil.java | 30 private final ListView mListView; 38 mListView = listView; 47 mListView.post(new Runnable() { 49 mListView.setSelection(pos); 59 return mListView.getListPaddingTop(); 66 return mListView.getHeight() - mListView.getListPaddingBottom(); 75 if (desiredPos > mListView.getSelectedItemPosition()) { 84 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { 87 if (position != mListView.getSelectedItemPosition()) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupBrowseListFragment.java | 83 private AutoScrollListView mListView; 118 mListView = (AutoScrollListView) mRootView.findViewById(R.id.list); 119 mListView.setOnFocusChangeListener(this); 120 mListView.setOnTouchListener(this); 121 mListView.setAdapter(mAdapter); 122 mListView.setOnItemClickListener(new OnItemClickListener() { 132 mListView.setEmptyView(mEmptyView); 154 if (mListView != null) { 160 mListView.setVerticalScrollbarPosition(mVerticalScrollbarPosition); 161 mListView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListOfEditTexts.java | 33 private ListView mListView; 37 return mListView; 61 mListView = new ListView(this); 62 mListView.setLayoutParams(new ViewGroup.LayoutParams( 65 mListView.setDrawSelectorOnTop(false); 66 mListView.setItemsCanFocus(true); 67 mListView.setLayoutParams((new LinearLayout.LayoutParams( 78 mListView.setAdapter(new MyAdapter(this, bodies)); 79 mLinearLayout.addView(mListView);
|
ListWithFooterViewAndNewLabelsTest.java | 34 private ListView mListView; 50 mListView = a.getListView(); 57 assertNotNull(mListView); 64 2, mListView.getCount()); 69 0, mListView.getSelectedItemPosition());
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
InsertingCells.java | 42 private InsertionListView mListView; 71 mListView = (InsertionListView)findViewById(R.id.listview); 73 mListView.setAdapter(mAdapter); 74 mListView.setData(mData); 75 mListView.setLayout(mLayout); 76 mListView.setRowAdditionAnimationListener(this); 87 boolean shouldAnimateInNewImage = mListView.shouldAnimateInNewImage(); 89 mListView.addRow(newObj); 93 mListView.setEnabled(false); 98 mListView.addRow(newObj) [all...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
QuickContactListFragment.java | 42 private ListView mListView; 57 mListView = (ListView) mFragmentContainer.findViewById(R.id.list); 58 mListView.setItemsCanFocus(true); 79 if (mActions == null || mListView == null) return; 81 mListView.setAdapter(new BaseAdapter() {
|
/developers/samples/android/common/src/java/com/example/android/common/actionbarcompat/ |
MultiSelectionUtil.java | 65 private final ListView mListView; 82 mListView.setChoiceMode(AbsListView.CHOICE_MODE_NONE); 88 mListView = listView; 137 if (mActionMode != null && mListView.getAdapter().hasStableIds()) { 138 outState.putLongArray(getStateKey(), mListView.getCheckedItemIds()); 145 return MultiSelectionUtil.class.getSimpleName() + "_" + mListView.getId(); 149 if (idsToCheckOnRestore == null || mListView.getAdapter() == null) { 154 Adapter adapter = mListView.getAdapter(); 183 mOldItemClickListener = mListView.getOnItemClickListener(); 186 mListView.setOnItemClickListener(this) [all...] |
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
ExpandingCells.java | 41 private ExpandingListView mListView; 67 mListView = (ExpandingListView)findViewById(R.id.main_list_view); 68 mListView.setAdapter(adapter); 69 mListView.setDivider(null);
|