Home
last modified time | relevance | path

Searched refs:mListView (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DListViewTest.java63 private ListView mListView; field in ListViewTest
90 mListView = (ListView) mActivity.findViewById(R.id.listview_default); in setUp()
122 int scrollAmount = mListView.getMaxScrollAmount(); in testGetMaxScrollAmount()
126 scrollAmount = mListView.getMaxScrollAmount(); in testGetMaxScrollAmount()
133 mListView.setAdapter(adapter); in setAdapter()
142 mListView.setAdapter(mAdapter_countries); in testAccessDividerHeight()
147 Drawable d = mListView.getDivider(); in testAccessDividerHeight()
158 mListView.setDividerHeight(20); in testAccessDividerHeight()
162 assertEquals(20, mListView.getDividerHeight()); in testAccessDividerHeight()
167 mListView.setDividerHeight(10); in testAccessDividerHeight()
[all …]
DAbsListViewTest.java66 private ListView mListView; field in AbsListViewTest
102 mListView = (ListView)mActivity.findViewById(R.id.listview_default); in setUp()
112 mListView.setFastScrollEnabled(false); in testAccessFastScrollEnabled()
113 assertFalse(mListView.isFastScrollEnabled()); in testAccessFastScrollEnabled()
115 mListView.setFastScrollEnabled(true); in testAccessFastScrollEnabled()
116 assertTrue(mListView.isFastScrollEnabled()); in testAccessFastScrollEnabled()
120 mListView.setSmoothScrollbarEnabled(false); in testAccessSmoothScrollbarEnabled()
121 assertFalse(mListView.isSmoothScrollbarEnabled()); in testAccessSmoothScrollbarEnabled()
123 mListView.setSmoothScrollbarEnabled(true); in testAccessSmoothScrollbarEnabled()
124 assertTrue(mListView.isSmoothScrollbarEnabled()); in testAccessSmoothScrollbarEnabled()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java28 private final ListView mListView; field in ListUtil
36 mListView = listView; in ListUtil()
45 mListView.post(new Runnable() { in setSelectedPosition()
47 mListView.setSelection(pos); in setSelectedPosition()
57 return mListView.getListPaddingTop(); in getListTop()
64 return mListView.getHeight() - mListView.getListPaddingBottom(); in getListBottom()
73 if (desiredPos > mListView.getSelectedItemPosition()) { in arrowScrollToSelectedPosition()
82 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { in arrowDownToSelectedPosition()
85 if (position != mListView.getSelectedItemPosition()) { in arrowDownToSelectedPosition()
93 while(mListView.getSelectedItemPosition() > position && --maxUps > 0) { in arrowUpToSelectedPosition()
[all …]
DListScenario.java46 private ListView mListView; field in ListScenario
79 return mListView; in getListView()
314 mListView = createListView(); in onCreate()
315 mListView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
318 mListView.setDrawSelectorOnTop(false); in onCreate()
325 mListView.addHeaderView(header); in onCreate()
331 mListView.addFooterView(header); in onCreate()
335 setAdapter(mListView); in onCreate()
338 mListView.setItemsCanFocus(mItemsFocusable); in onCreate()
340 mListView.setSelection(mStartingSelectionPosition); in onCreate()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DLayoutAnimationControllerTest.java47 private ListView mListView; field in LayoutAnimationControllerTest
68 mListView = mActivity.getListView(); in setUp()
79 AnimationTestUtils.assertRunController(getInstrumentation(), mListView, mController, in testAccessOrder() local
82 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessOrder()
83 Animation childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessOrder()
84 Animation childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessOrder()
123 AnimationTestUtils.assertRunController(getInstrumentation(), mListView, mController, in testAccessOrder() local
129 childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessOrder()
130 childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessOrder()
131 childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessOrder()
[all …]
/cts/tests/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java66 private ListView mListView; field in AlertDialog_BuilderTest
122 mListView = null; in setUp()
326 mListView = mDialog.getListView(); in testSetItemsWithParamInt()
333 assertEquals(levels[0], mListView.getItemAtPosition(0)); in testSetItemsWithParamInt()
345 mListView = mDialog.getListView(); in testSetItemsWithParamCharSequence()
349 assertEquals(expect[0], mListView.getItemAtPosition(0)); in testSetItemsWithParamCharSequence()
359 mListView = mDialog.getListView(); in testSetAdapter()
363 assertEquals(adapter, mListView.getAdapter()); in testSetAdapter()
376 mListView = mDialog.getListView(); in testSetCursor()
377 mListView.performItemClick(null, 0, 0); in testSetCursor()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionStubActivity.java30 private ListView mListView; field in PermissionStubActivity
36 mListView = new ListView(this); in onCreate()
37 mListView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
40 setContentView(mListView); in onCreate()