/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListViewTest.java | 559 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 …]
|
D | ListViewTest.java | 558 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 …]
|
D | ListPopupWindowTest.java | 258 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/ |
D | DarkTextThemeTest.java | 180 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 …]
|
D | WidgetTransitionTest.java | 246 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/ |
D | AbstractTestListActivity.java | 83 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/ |
D | View_DefaultFocusHighlightTest.java | 62 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/ |
D | ListUtil.java | 35 public ListUtil(ListView listView, Instrumentation instrumentation) { in ListUtil() argument 36 mListView = listView; in ListUtil()
|
D | ExpandableListScenario.java | 56 protected void setAdapter(ListView listView) { in setAdapter() argument 59 ((ExpandableListView) listView).setAdapter(mAdapter); in setAdapter()
|
D | ListScenario.java | 423 protected void setAdapter(ListView listView) { in setAdapter() argument 424 listView.setAdapter(new MyAdapter()); in setAdapter()
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTestSecondActivity.java | 43 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local 44 listView.setAdapter(cheeseAdapter); in onCreate()
|
D | UiAutomationTestFirstActivity.java | 44 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local 45 listView.setAdapter(cheeseAdapter); in onCreate()
|
D | UiAutomationTest.java | 215 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/ |
D | ListPresentation.java | 56 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/ |
D | AccessibilityEndToEndActivity.java | 74 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/ |
D | TestListActivity.java | 108 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/ |
D | BleEncryptedServerBaseActivity.java | 57 ListView listView = (ListView) findViewById(R.id.ble_server_enctypted_tests); in onCreate() local 58 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleEncryptedClientBaseActivity.java | 66 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()
|
D | BleConnectionPriorityServerBaseActivity.java | 62 ListView listView = (ListView) findViewById(R.id.ble_server_connection_tests); in onCreate() local 63 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleCocServerTestBaseActivity.java | 66 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local 67 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleConnectionPriorityClientBaseActivity.java | 72 ListView listView = (ListView) findViewById(R.id.ble_client_connection_tests); in onCreate() local 73 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleServerTestBaseActivity.java | 89 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local 90 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleCocClientTestBaseActivity.java | 70 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/ |
D | P2pTestListActivity.java | 156 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/ |
D | TestListActivity.java | 156 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument 162 super.handleItemClick(listView, view, position, id); in handleItemClick()
|