HomeSort by relevance Sort by last modified time
    Searched defs:mListView (Results 1 - 25 of 93) sorted by null

1 2 3 4

  /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);
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...]
  /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...]
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...]
  /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);
158 mListView.setVerticalScrollbarPosition(mVerticalScrollbarPosition);
159 mListView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY);
169 mListView.setPadding(leftPadding, mListView.getPaddingTop()
    [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());
  /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() {

Completed in 1542 milliseconds

1 2 3 4