/cts/tests/tests/widget/src/android/widget/cts/ |
AbsListViewTest.java | 65 private ListView mListView; 101 mListView = (ListView)mActivity.findViewById(R.id.listview_default); 111 mListView.setFastScrollEnabled(false); 112 assertFalse(mListView.isFastScrollEnabled()); 114 mListView.setFastScrollEnabled(true); 115 assertTrue(mListView.isFastScrollEnabled()); 119 mListView.setSmoothScrollbarEnabled(false); 120 assertFalse(mListView.isSmoothScrollbarEnabled()); 122 mListView.setSmoothScrollbarEnabled(true); 123 assertTrue(mListView.isSmoothScrollbarEnabled()) [all...] |
ListViewTest.java | 60 private ListView mListView; 87 mListView = (ListView) mActivity.findViewById(R.id.listview_default); 119 int scrollAmount = mListView.getMaxScrollAmount(); 123 scrollAmount = mListView.getMaxScrollAmount(); 130 mListView.setAdapter(adapter); 139 mListView.setAdapter(mAdapter_countries); 144 Drawable d = mListView.getDivider(); 155 mListView.setDividerHeight(20); 159 assertEquals(20, mListView.getDividerHeight()); 164 mListView.setDividerHeight(10) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListOfInternalSelectionViews.java | 34 private ListView mListView; 49 return mListView; 124 mListView = new ListView(this); 125 mListView.setLayoutParams(new ViewGroup.LayoutParams( 128 mListView.setDrawSelectorOnTop(false); 129 mListView.setAdapter(new MyAdapter()); 130 mListView.setItemsCanFocus(true); 131 setContentView(mListView);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppTransferHistory.java | 67 private ListView mListView; 86 mListView = (ListView)findViewById(R.id.list); 87 mListView.setEmptyView(findViewById(R.id.empty)); 132 mListView.setAdapter(mTransferAdapter); 133 mListView.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET); 134 mListView.setOnCreateContextMenuListener(this); 135 mListView.setOnItemClickListener(this);
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleActivity.java | 71 private ListView mListView; 111 mListView = (ListView) findViewById(android.R.id.list); 112 mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 113 mListView.setItemsCanFocus(false); 114 mListView.setFocusable(true); 115 mListView.setFocusableInTouchMode(true); 116 mListView.requestFocus(); 182 Object o = mListView.getItemAtPosition(position); 246 mListView.setAdapter(new ArrayAdapter<LocaleInfo>( 284 ListAdapter a = mListView.getAdapter() [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
AccountFilterActivity.java | 61 private ListView mListView; 70 mListView = (ListView) findViewById(android.R.id.list); 71 mListView.setOnItemClickListener(this); 157 mListView.setAdapter(
|
ContactEntryListFragment.java | 108 private ListView mListView; 218 return mListView; 238 if (mListView != null) { 239 outState.putParcelable(KEY_LIST_STATE, mListView.onSaveInstanceState()); 519 if (mListView != null) { 520 mListView.setFastScrollEnabled(hasScrollbar); 521 mListView.setFastScrollAlwaysVisible(hasScrollbar); 522 mListView.setVerticalScrollbarPosition(mVerticalScrollbarPosition); 523 mListView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY); 533 mListView.setPadding(leftPadding, mListView.getPaddingTop() [all...] |
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
ListViewRemovalAnimation.java | 41 ListView mListView; 56 mListView = (ListView) findViewById(R.id.listview); 57 android.util.Log.d("Debug", "d=" + mListView.getDivider()); 64 mListView.setAdapter(mAdapter); 103 mListView.requestDisallowInterceptTouchEvent(true); 143 mListView.setEnabled(false); 153 animateRemoval(mListView, v); 157 mListView.setEnabled(true); 190 int position = mListView.getPositionForView(viewToRemove); 215 mListView.setEnabled(true) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListEmptyViewTest.java | 30 private ListView mListView; 42 mListView = getActivity().getListView(); 48 assertNotNull(mListView); 50 assertTrue("Empty view not shown", mListView.getVisibility() == View.GONE);
|
ListManagedCursorTest.java | 33 private ListView mListView; 44 mListView = getActivity().getListView(); 50 assertNotNull(mListView); 52 assertEquals(0, mListView.getFirstVisiblePosition()); 67 assertTrue("List changed to touch mode", !mListView.isInTouchMode()); 69 firstVisiblePosition == mListView.getFirstVisiblePosition()); 84 assertTrue("List not in touch mode", mListView.isInTouchMode()); 86 firstVisiblePosition == mListView.getFirstVisiblePosition()); 103 assertTrue("List did not change to touch mode", mListView.isInTouchMode()); 105 firstVisiblePosition == mListView.getFirstVisiblePosition()); [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListItemFocusablesFarApartTest.java | 29 private ListView mListView; 40 mListView = getActivity().getListView(); 41 mListTop = mListView.getListPaddingTop(); 42 mListBottom = mListView.getHeight() - mListView.getListPaddingBottom(); 51 return ((ViewGroup) mListView.getChildAt(listIndex)).getChildAt(index); 56 ViewGroup listItem = (ViewGroup) mListView.getChildAt(listIndex); 62 ViewGroup listItem = (ViewGroup) mListView.getChildAt(listIndex); 69 assertNotNull(mListView); 71 1, mListView.getChildCount()) [all...] |
ListItemsExpandOnSelectionTest.java | 27 private ListView mListView; 41 mListView = getActivity().getListView(); 42 mListTop = mListView.getListPaddingTop(); 43 mListBottom = mListView.getHeight() - mListView.getListPaddingBottom(); 44 mExpandedHeight = mListView.getChildAt(0).getHeight(); 45 mNormalHeight = mListView.getChildAt(1).getHeight(); 50 assertEquals(0, mListView.getSelectedItemPosition()); 60 assertEquals(1, mListView.getSelectedItemPosition()); 62 mListTop, mListView.getChildAt(0).getTop()) [all...] |
ListOfThinItemsTest.java | 28 private ListView mListView; 37 mListView = getActivity().getListView(); 42 assertNotNull(mListView); 44 mListView.getSelectedView().getHeight() < mListView.getVerticalFadingEdgeLength()); 46 mListView.getChildCount() < mListView.getAdapter().getCount()); 51 final int numItems = mListView.getAdapter().getCount(); 52 final int listBottom = mListView.getHeight() - mListView.getListPaddingBottom() [all...] |
ListOfItemsTallerThanScreenTest.java | 29 private ListView mListView; 36 mListView = getActivity().getListView(); 45 assertNotNull(mListView); 46 assertEquals("should only be one visible child", 1, mListView.getChildCount()); 47 final int amountOffScreen = mListView.getChildAt(0).getBottom() - (mListView.getBottom() - mListView.getListPaddingBottom()); 49 amountOffScreen > mListView.getMaxScrollAmount()); 54 final View view = mListView.getSelectedView(); 57 assertEquals(mListView.getListPaddingTop() [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
ListOfTouchablesTest.java | 35 private ListView mListView; 46 mListView = getActivity().getListView(); 52 assertNotNull(mListView); 58 View firstChild = mListView.getChildAt(0); 59 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 66 View newFirstChild = mListView.getChildAt(0); 75 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 80 Gravity.TOP | Gravity.LEFT, mListView.getTop()) [all...] |
ListSetSelectionTest.java | 33 private ListView mListView; 44 mListView = getActivity().getListView(); 50 assertNotNull(mListView); 60 mListView.getSelectedItemPosition()); 62 final int targetPosition = mListView.getAdapter().getCount() / 2; 66 mListView.setSelection(targetPosition); 72 int childCount = mListView.getChildCount(); 74 View child = mListView.getChildAt(i); 90 mListView.getSelectedItemPosition()); 92 final int targetPosition = mListView.getAdapter().getCount() / 2 [all...] |
ListTouchManyTest.java | 35 private ListView mListView; 46 mListView = getActivity().getListView(); 52 assertNotNull(mListView); 55 assertEquals(0, mListView.getSelectedItemPosition()); 60 TouchUtils.scrollToTop(this, mListView); 64 mListView.getSelectedItemPosition()); 66 View firstChild = mListView.getChildAt(0); 70 assertEquals("Item zero not at the top of the list", mListView.getListPaddingTop(), 76 int originalCount = mListView.getChildCount(); 78 TouchUtils.scrollToBottom(this, mListView); [all...] |
/packages/apps/Calendar/src/com/android/calendar/month/ |
SimpleDayPickerFragment.java | 95 protected ListView mListView; 233 SimpleWeekView child = (SimpleWeekView) mListView.getChildAt(0); 262 mListView = getListView(); 264 mListView.setCacheColorHint(0); 266 mListView.setDivider(null); 268 mListView.setItemsCanFocus(true); 270 mListView.setFastScrollEnabled(false); 271 mListView.setVerticalScrollBarEnabled(false); 272 mListView.setOnScrollListener(this); 273 mListView.setFadingEdgeLength(0) [all...] |
MonthByWeekFragment.java | 175 SimpleWeekView child = (SimpleWeekView) mListView.getChildAt(0); 258 if (mListView != null) { 259 mListView.removeCallbacks(mLoadingRunnable); 302 mListView.setSelector(new StateListDrawable()); 303 mListView.setOnTouchListener(this); 306 mListView.setBackgroundColor(getResources().getColor(R.color.month_bgcolor)); 312 mListView.postDelayed(mLoadingRunnable, mEventsLoadingDelay); 316 mAdapter.setListView(mListView);
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ui/ |
DirListActivity.java | 79 private ListView mListView; 192 mListView = getListView(); 194 mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { 208 mListView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { 381 int charCount = mListView.getWidth() / MEAN_TITLE_CHAR_SIZE;
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactTileListFragment.java | 62 private ListView mListView; 90 mListView = (ListView) listLayout.findViewById(R.id.contact_tile_list); 92 mListView.setItemsCanFocus(true); 93 mListView.setAdapter(mAdapter); 168 mListView.setEmptyView(mEmptyView);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
RunningProcessesView.java | 72 ListView mListView; 318 ServiceListAdapter adapter = (ServiceListAdapter)(mListView.getAdapter()); 418 mListView = (ListView)findViewById(android.R.id.list); 421 mListView.setEmptyView(emptyView); 423 mListView.setOnItemClickListener(this); 424 mListView.setRecyclerListener(this); 426 mListView.setAdapter(mAdapter);
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
LayoutAnimationControllerTest.java | 47 private ListView mListView; 68 mListView = mActivity.getListView(); 79 AnimationTestUtils.assertRunController(getInstrumentation(), mListView, mController, 82 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); 83 Animation childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); 84 Animation childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); 123 AnimationTestUtils.assertRunController(getInstrumentation(), mListView, mController, 129 childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); 130 childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); 131 childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation() [all...] |
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
ListViewItemAnimations.java | 53 ListView mListView; 71 mListView = (ListView) findViewById(R.id.listview); 78 mListView.setAdapter(mAdapter); 127 mListView.requestDisallowInterceptTouchEvent(true); 187 mListView.setEnabled(false); 198 animateOtherViews(mListView, view); 203 mListView.setEnabled(true); 220 animateOtherViews(mListView, view); 225 mListView.setEnabled(true); 276 int position = mListView.getPositionForView(viewToRemove) [all...] |
/frameworks/base/core/java/android/preference/ |
PreferenceScreen.java | 94 private ListView mListView; 161 if (mListView != null) { 162 mListView.setAdapter(null); 169 mListView = (ListView) childPrefScreen.findViewById(android.R.id.list); 170 bind(mListView);
|