Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DAbsListViewTest.java559 MyListView listView = new MyListView(mContext); in testCheckLayoutParams() local
562 assertTrue(listView.checkLayoutParams(param1)); in testCheckLayoutParams()
565 assertFalse(listView.checkLayoutParams(param2)); in testCheckLayoutParams()
570 MyListView listView = new MyListView(mContext); in testComputeVerticalScrollValues() local
571 assertEquals(0, listView.computeVerticalScrollRange()); in testComputeVerticalScrollValues()
572 assertEquals(0, listView.computeVerticalScrollOffset()); in testComputeVerticalScrollValues()
573 assertEquals(0, listView.computeVerticalScrollExtent()); in testComputeVerticalScrollValues()
575 listView.setAdapter(mCountriesAdapter); in testComputeVerticalScrollValues()
576 listView.setSmoothScrollbarEnabled(false); in testComputeVerticalScrollValues()
577 assertEquals(mCountriesAdapter.getCount(), listView.computeVerticalScrollRange()); in testComputeVerticalScrollValues()
[all …]
DListViewTest.java558 MyListView listView = new MyListView(mActivity, mAttributeSet); in testCanAnimate() local
560 assertFalse(listView.canAnimate()); in testCanAnimate()
561 listView.setAdapter(mAdapter_countries); in testCanAnimate()
562 assertFalse(listView.canAnimate()); in testCanAnimate()
566 listView.setLayoutAnimation(controller); in testCanAnimate()
568 assertTrue(listView.canAnimate()); in testCanAnimate()
575 MyListView listView = new MyListView(mActivity, mAttributeSet); in testFindViewTraversal() local
579 assertNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal()
581 listView.addHeaderView(headerView); in testFindViewTraversal()
582 assertNotNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal()
[all …]
DListPopupWindowTest.java258 final ListView listView = mPopupWindow.getListView(); in verifyAnchoring() local
268 listView.getLocationOnScreen(listViewOnScreenXY); in verifyAnchoring()
270 listView.getLocationInWindow(listViewInWindowXY); in verifyAnchoring()
277 expectedListViewOnScreenX -= (listView.getWidth() - upperAnchor.getWidth()); in verifyAnchoring()
567 final ListView listView = mPopupWindow.getListView(); in testPromptViewAbove() local
568 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, listView, null); in testPromptViewAbove()
577 final View firstListChild = listView.getChildAt(0); in testPromptViewAbove()
600 final ListView listView = mPopupWindow.getListView(); in testPromptViewBelow() local
601 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, listView, null); in testPromptViewBelow()
610 final View lastListChild = listView.getChildAt(listView.getChildCount() - 1); in testPromptViewBelow()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DDarkTextThemeTest.java180 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_light() local
181 verifyColor(listView.getChildAt(0), Color.WHITE); in testCollection_light()
182 verifyColor(listView.getChildAt(1), Color.WHITE); in testCollection_light()
183 verifyColor(listView.getChildAt(2), Color.WHITE); in testCollection_light()
196 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_dark() local
197 verifyColor(listView.getChildAt(0), Color.BLACK); in testCollection_dark()
198 verifyColor(listView.getChildAt(1), Color.BLACK); in testCollection_dark()
199 verifyColor(listView.getChildAt(2), Color.BLACK); in testCollection_dark()
237 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in setupAndAwaitCollectionWidget()
238 if (listView == null || listView.getChildCount() != 3) { in setupAndAwaitCollectionWidget()
[all …]
DWidgetTransitionTest.java246 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_sendBroadcast()
247 if (listView == null || listView.getChildCount() != 3) { in testCollection_sendBroadcast()
250 if (hasText("Text 0", listView.getChildAt(0)) in testCollection_sendBroadcast()
251 && hasText("Text 1", listView.getChildAt(1)) in testCollection_sendBroadcast()
252 && hasText("Text 2", listView.getChildAt(2))) { in testCollection_sendBroadcast()
266 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_sendBroadcast() local
267 verifyClickBroadcast(listView.getChildAt(0)); in testCollection_sendBroadcast()
268 verifyClickBroadcast(listView.getChildAt(1)); in testCollection_sendBroadcast()
269 verifyClickBroadcast(listView.getChildAt(2)); in testCollection_sendBroadcast()
/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/view/src/android/view/cts/
DView_DefaultFocusHighlightTest.java62 ListView listView = (ListView) activity.findViewById(R.id.listview); in testSettersAndGetters() local
68 assertFalse(listView.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
74 listView.setDefaultFocusHighlightEnabled(true); in testSettersAndGetters()
80 assertTrue(listView.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
96 ListView listView = (ListView) activity.findViewById(R.id.listview_to_inflate); in testInflating() local
103 assertTrue(listView.getDefaultFocusHighlightEnabled()); in testInflating()
/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
59 ((ExpandableListView) listView).setAdapter(mAdapter); in setAdapter()
DListScenario.java423 protected void setAdapter(ListView listView) { in setAdapter() argument
424 listView.setAdapter(new MyAdapter()); in setAdapter()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTestSecondActivity.java43 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local
44 listView.setAdapter(cheeseAdapter); in onCreate()
DUiAutomationTestFirstActivity.java44 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local
45 listView.setAdapter(cheeseAdapter); in onCreate()
DUiAutomationTest.java215 final ListView listView = (ListView) activity.findViewById(R.id.list_view); in testWindowContentFrameStats() local
218 scrollListView(uiAutomation, listView, listView.getAdapter().getCount() - 1); in testWindowContentFrameStats()
219 scrollListView(uiAutomation, listView, 0); in testWindowContentFrameStats()
486 private void scrollListView(UiAutomation uiAutomation, final ListView listView, in scrollListView() argument
491 listView.smoothScrollToPosition(position); in scrollListView()
/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/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java74 ListView listView = (ListView) findViewById(R.id.listview); in onCreate() local
75 listView.setAdapter(listAdapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestListActivity.java108 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
115 super.handleItemClick(listView, view, position, id); in handleItemClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleEncryptedServerBaseActivity.java57 ListView listView = (ListView) findViewById(R.id.ble_server_enctypted_tests); in onCreate() local
58 listView.setAdapter(mTestAdapter); in onCreate()
DBleEncryptedClientBaseActivity.java66 ListView listView = (ListView) findViewById(R.id.ble_client_enctypted_tests); in onCreate() local
67 listView.setAdapter(mTestAdapter); in onCreate()
68 listView.setOnItemClickListener(new ListView.OnItemClickListener() { in onCreate()
DBleConnectionPriorityServerBaseActivity.java62 ListView listView = (ListView) findViewById(R.id.ble_server_connection_tests); in onCreate() local
63 listView.setAdapter(mTestAdapter); in onCreate()
DBleCocServerTestBaseActivity.java66 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local
67 listView.setAdapter(mTestAdapter); in onCreate()
DBleConnectionPriorityClientBaseActivity.java72 ListView listView = (ListView) findViewById(R.id.ble_client_connection_tests); in onCreate() local
73 listView.setAdapter(mTestAdapter); in onCreate()
DBleServerTestBaseActivity.java89 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local
90 listView.setAdapter(mTestAdapter); in onCreate()
DBleCocClientTestBaseActivity.java70 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local
71 listView.setAdapter(mTestAdapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DP2pTestListActivity.java156 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
161 super.handleItemClick(listView, view, position, id); in handleItemClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DTestListActivity.java156 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
162 super.handleItemClick(listView, view, position, id); in handleItemClick()

12