Home
last modified time | relevance | path

Searched refs:listView (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DAbsListViewTest.java421 MyListView listView = new MyListView(mActivity); in testDraw() local
422 listView.dispatchDraw(canvas); in testDraw()
469 MyListView listView = new MyListView(mActivity); in testCheckLayoutParams() local
472 assertTrue(listView.checkLayoutParams(param1)); in testCheckLayoutParams()
475 assertFalse(listView.checkLayoutParams(param2)); in testCheckLayoutParams()
479 MyListView listView = new MyListView(mActivity); in testComputeVerticalScrollValues() local
480 assertEquals(0, listView.computeVerticalScrollRange()); in testComputeVerticalScrollValues()
481 assertEquals(0, listView.computeVerticalScrollOffset()); in testComputeVerticalScrollValues()
482 assertEquals(0, listView.computeVerticalScrollExtent()); in testComputeVerticalScrollValues()
484 listView.setAdapter(mAdapter_countries); in testComputeVerticalScrollValues()
[all …]
DListViewTest.java605 MyListView listView = new MyListView(mActivity, mAttributeSet); in testCanAnimate() local
607 assertFalse(listView.canAnimate()); in testCanAnimate()
608 listView.setAdapter(mAdapter_countries); in testCanAnimate()
609 assertFalse(listView.canAnimate()); in testCanAnimate()
613 listView.setLayoutAnimation(controller); in testCanAnimate()
615 assertTrue(listView.canAnimate()); in testCanAnimate()
625 MyListView listView = new MyListView(mActivity, mAttributeSet); in testFindViewTraversal() local
628 assertNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal()
630 listView.addHeaderView(headerView); in testFindViewTraversal()
631 assertNotNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java83 protected final void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument
84 super.onListItemClick(listView, view, position, id); in onListItemClick()
85 handleItemClick(listView, view, position, id); in onListItemClick()
89 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTestFirstActivity.java44 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local
45 listView.setAdapter(cheeseAdapter); in onCreate()
DUiAutomationTestSecondActivity.java43 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local
44 listView.setAdapter(cheeseAdapter); in onCreate()
DUiAutomationTest.java68 UiScrollable listView = new UiScrollable(new UiSelector().resourceId( in testWindowContentFrameStats() local
72 listView.scrollToEnd(Integer.MAX_VALUE); in testWindowContentFrameStats()
73 listView.scrollToBeginning(Integer.MAX_VALUE); in testWindowContentFrameStats()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java35 public ListUtil(ListView listView, Instrumentation instrumentation) { in ListUtil() argument
36 mListView = listView; in ListUtil()
DExpandableListScenario.java56 protected void setAdapter(ListView listView) { in setAdapter() argument
57 ((ExpandableListView) listView).setAdapter(mAdapter = createAdapter()); in setAdapter()
DListScenario.java447 protected void setAdapter(ListView listView) { in setAdapter() argument
448 listView.setAdapter(new MyAdapter()); in setAdapter()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndActivity.java65 ListView listView = (ListView) findViewById(R.id.listview); in onCreate() local
66 listView.setAdapter(listAdapter); in onCreate()
DAccessibilityEndToEndTest.java73 final ListView listView = (ListView) getActivity().findViewById(R.id.listview); in testTypeViewSelectedAccessibilityEvent() local
84 listView.setSelection(1); in testTypeViewSelectedAccessibilityEvent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/
DListPresentation.java56 ListView listView = (ListView) view.findViewById(R.id.pla_list); in onCreate() local
58 listView.setAdapter(new ArrayAdapter<String>(getContext(), in onCreate()
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DTestListFragment.java78 public void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument
79 super.onListItemClick(listView, view, position, id); in onListItemClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleServerStartActivity.java54 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local
55 listView.setAdapter(mTestAdapter); in onCreate()
DBleClientStartActivity.java55 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local
56 listView.setAdapter(mTestAdapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DP2pTestListActivity.java128 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
133 super.handleItemClick(listView, view, position, id); in handleItemClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
DSuidFilesActivity.java119 protected void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument
120 super.onListItemClick(listView, view, position, id); in onListItemClick()
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
DCtsUiAutomatorTest.java97 UiScrollable listView = new UiScrollable( in testListScrollAndSelect() local
101 if (!listView.exists()) in testListScrollAndSelect()
1016 UiScrollable listView = new UiScrollable( in openTest() local
1020 if (!listView.exists()) in openTest()
1023 UiObject testItem = listView.getChildByText( in openTest()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java3193 final MockListView listView = new MockListView(mActivity); in testOnStartAndFinishTemporaryDetach() local
3202 mActivity.setContentView(listView); in testOnStartAndFinishTemporaryDetach()
3203 listView.setAdapter(adapter); in testOnStartAndFinishTemporaryDetach()
3207 final MockView focusChild = (MockView) listView.getChildAt(0); in testOnStartAndFinishTemporaryDetach()
3215 assertTrue(listView.getChildAt(0).isFocused()); in testOnStartAndFinishTemporaryDetach()
3219 listView.detachViewFromParent(focusChild); in testOnStartAndFinishTemporaryDetach()
3223 assertFalse(listView.hasCalledOnStartTemporaryDetach()); in testOnStartAndFinishTemporaryDetach()
3224 assertFalse(listView.hasCalledOnFinishTemporaryDetach()); in testOnStartAndFinishTemporaryDetach()