/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListViewTest.java | 574 MyListView listView = new MyListView(mContext); in testCheckLayoutParams() local 577 assertTrue(listView.checkLayoutParams(param1)); in testCheckLayoutParams() 580 assertFalse(listView.checkLayoutParams(param2)); in testCheckLayoutParams() 585 MyListView listView = new MyListView(mContext); in testComputeVerticalScrollValues() local 586 assertEquals(0, listView.computeVerticalScrollRange()); in testComputeVerticalScrollValues() 587 assertEquals(0, listView.computeVerticalScrollOffset()); in testComputeVerticalScrollValues() 588 assertEquals(0, listView.computeVerticalScrollExtent()); in testComputeVerticalScrollValues() 590 listView.setAdapter(mCountriesAdapter); in testComputeVerticalScrollValues() 591 listView.setSmoothScrollbarEnabled(false); in testComputeVerticalScrollValues() 592 assertEquals(mCountriesAdapter.getCount(), listView.computeVerticalScrollRange()); in testComputeVerticalScrollValues() [all …]
|
D | RemoteViewsFixedCollectionAdapterTest.java | 496 ListView listView = mView.findViewById(R.id.remoteView_list); in testSetRemoteAdapter_checkedChangeListener() local 522 Adapter adapter = listView.getAdapter(); in testSetRemoteAdapter_checkedChangeListener() 532 assertEquals(3, listView.getChildCount()); in testSetRemoteAdapter_checkedChangeListener() 533 TextView textView0 = (TextView) listView.getChildAt(0); in testSetRemoteAdapter_checkedChangeListener() 534 TextView textView1 = (TextView) listView.getChildAt(1); in testSetRemoteAdapter_checkedChangeListener() 536 (CompoundButton) ((ViewGroup) listView.getChildAt(2)).getChildAt(0); in testSetRemoteAdapter_checkedChangeListener() 565 ListView listView = mView.findViewById(R.id.remoteView_list); in testSetRemoteAdapter_clickFillListener() local 584 mActivityRule.runOnUiThread(() -> listView.performItemClick(listView.getChildAt(0), 0, 10)); in testSetRemoteAdapter_clickFillListener() 591 ListView listView = mView.findViewById(R.id.remoteView_list); in testSetRemoteAdapter_newViewTypeAddedCoveredByViewTypeCount() local 599 runOnMainAndDrawSync(mActivityRule, listView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_newViewTypeAddedCoveredByViewTypeCount() [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() 568 final ListView listView = mPopupWindow.getListView(); in testPromptViewAbove() local 569 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, listView, null); in testPromptViewAbove() 578 final View firstListChild = listView.getChildAt(0); in testPromptViewAbove() 601 final ListView listView = mPopupWindow.getListView(); in testPromptViewBelow() local 602 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, listView, null); in testPromptViewBelow() 611 final View lastListChild = listView.getChildAt(listView.getChildCount() - 1); in testPromptViewBelow() [all …]
|
D | ListViewTest.java | 586 MyListView listView = new MyListView(mActivity, mAttributeSet); in testCanAnimate() local 588 assertFalse(listView.canAnimate()); in testCanAnimate() 589 listView.setAdapter(mAdapter_countries); in testCanAnimate() 590 assertFalse(listView.canAnimate()); in testCanAnimate() 594 listView.setLayoutAnimation(controller); in testCanAnimate() 596 assertTrue(listView.canAnimate()); in testCanAnimate() 603 MyListView listView = new MyListView(mActivity, mAttributeSet); in testFindViewTraversal() local 607 assertNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal() 609 listView.addHeaderView(headerView); in testFindViewTraversal() 610 assertNotNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal() [all …]
|
D | PopupMenuTest.java | 459 private void emulateHoverOverVisibleItems(Instrumentation instrumentation, ListView listView) { in emulateHoverOverVisibleItems() argument 460 final int childCount = listView.getChildCount(); in emulateHoverOverVisibleItems() 464 View itemView = listView.getChildAt(i); in emulateHoverOverVisibleItems() 471 assertEquals(listView.getFirstVisiblePosition() + i, in emulateHoverOverVisibleItems() 472 listView.getSelectedItemPosition()); in emulateHoverOverVisibleItems()
|
/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 …]
|
/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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | AbstractTestListActivity.java | 118 protected final void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument 119 super.onListItemClick(listView, view, position, id); in onListItemClick() 125 handleItemClick(listView, view, position, id); in onListItemClick() 129 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTestFirstActivity.java | 44 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local 45 listView.setAdapter(cheeseAdapter); in onCreate()
|
D | UiAutomationTestSecondActivity.java | 43 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local 44 listView.setAdapter(cheeseAdapter); in onCreate()
|
D | UiAutomationTest.java | 199 final ListView listView = (ListView) activity.findViewById(R.id.list_view); in testWindowContentFrameStats() local 202 scrollListView(uiAutomation, listView, listView.getAdapter().getCount() - 1); in testWindowContentFrameStats() 203 scrollListView(uiAutomation, listView, 0); in testWindowContentFrameStats() 464 private void scrollListView(UiAutomation uiAutomation, final ListView listView, in scrollListView() argument 469 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/inputmethod/src/android/view/inputmethod/cts/ |
D | SearchViewTest.java | 101 final ListView listView = new ListView(activity); in launchTestActivityWithListView() 102 layout.addView(listView); in launchTestActivityWithListView() 106 listView.setAdapter(new SingleItemAdapter(searchView)); in launchTestActivityWithListView()
|
/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/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 | BleConnectionPriorityServerBaseActivity.java | 56 ListView listView = (ListView) findViewById(R.id.ble_server_connection_tests); in onCreate() local 57 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 | BleConnectionPriorityClientBaseActivity.java | 67 ListView listView = (ListView) findViewById(R.id.ble_client_connection_tests); in onCreate() local 68 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 | BleServerTestBaseActivity.java | 91 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local 92 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/wifi/ |
D | TestListActivity.java | 121 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument 128 super.handleItemClick(listView, view, position, id); in handleItemClick()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/ |
D | P2pTestListActivity.java | 160 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument 165 super.handleItemClick(listView, view, position, id); in handleItemClick()
|