/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListViewTest.java | 637 MyListView listView = new MyListView(mContext); in testCheckLayoutParams() local 640 assertTrue(listView.checkLayoutParams(param1)); in testCheckLayoutParams() 643 assertFalse(listView.checkLayoutParams(param2)); in testCheckLayoutParams() 648 MyListView listView = new MyListView(mContext); in testComputeVerticalScrollValues() local 649 assertEquals(0, listView.computeVerticalScrollRange()); in testComputeVerticalScrollValues() 650 assertEquals(0, listView.computeVerticalScrollOffset()); in testComputeVerticalScrollValues() 651 assertEquals(0, listView.computeVerticalScrollExtent()); in testComputeVerticalScrollValues() 653 listView.setAdapter(mCountriesAdapter); in testComputeVerticalScrollValues() 654 listView.setSmoothScrollbarEnabled(false); in testComputeVerticalScrollValues() 655 assertEquals(mCountriesAdapter.getCount(), listView.computeVerticalScrollRange()); in testComputeVerticalScrollValues() [all …]
|
D | RemoteViewsFixedCollectionAdapterTest.java | 508 ListView listView = mView.findViewById(R.id.remoteView_list); in testSetRemoteAdapter_checkedChangeListener() local 534 Adapter adapter = listView.getAdapter(); in testSetRemoteAdapter_checkedChangeListener() 544 assertEquals(3, listView.getChildCount()); in testSetRemoteAdapter_checkedChangeListener() 545 AppWidgetHostView child0 = (AppWidgetHostView) listView.getChildAt(0); in testSetRemoteAdapter_checkedChangeListener() 546 AppWidgetHostView child1 = (AppWidgetHostView) listView.getChildAt(1); in testSetRemoteAdapter_checkedChangeListener() 547 AppWidgetHostView child2 = (AppWidgetHostView) listView.getChildAt(2); in testSetRemoteAdapter_checkedChangeListener() 580 ListView listView = mView.findViewById(R.id.remoteView_list); in testSetRemoteAdapter_clickFillListener() local 599 mActivityRule.runOnUiThread(() -> listView.performItemClick(listView.getChildAt(0), 0, 10)); in testSetRemoteAdapter_clickFillListener() 606 ListView listView = mView.findViewById(R.id.remoteView_list); in testSetRemoteAdapter_newViewTypeAddedCoveredByViewTypeCount() local 614 runOnMainAndDrawSync(mActivityRule, listView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_newViewTypeAddedCoveredByViewTypeCount() [all …]
|
D | ListPopupWindowTest.java | 274 final ListView listView = mPopupWindow.getListView(); in verifyAnchoring() local 284 listView.getLocationOnScreen(listViewOnScreenXY); in verifyAnchoring() 286 listView.getLocationInWindow(listViewInWindowXY); in verifyAnchoring() 293 expectedListViewOnScreenX -= (listView.getWidth() - upperAnchor.getWidth()); in verifyAnchoring() 584 final ListView listView = mPopupWindow.getListView(); in testPromptViewAbove() local 585 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, listView, null); in testPromptViewAbove() 594 final View firstListChild = listView.getChildAt(0); in testPromptViewAbove() 617 final ListView listView = mPopupWindow.getListView(); in testPromptViewBelow() local 618 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, listView, null); in testPromptViewBelow() 627 final View lastListChild = listView.getChildAt(listView.getChildCount() - 1); in testPromptViewBelow() [all …]
|
D | ListViewTest.java | 601 MyListView listView = new MyListView(mActivity, mAttributeSet); in testCanAnimate() local 603 assertFalse(listView.canAnimate()); in testCanAnimate() 604 listView.setAdapter(mAdapter_countries); in testCanAnimate() 605 assertFalse(listView.canAnimate()); in testCanAnimate() 609 listView.setLayoutAnimation(controller); in testCanAnimate() 611 assertTrue(listView.canAnimate()); in testCanAnimate() 618 MyListView listView = new MyListView(mActivity, mAttributeSet); in testFindViewTraversal() local 622 assertNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal() 624 listView.addHeaderView(headerView); in testFindViewTraversal() 625 assertNotNull(listView.findViewTraversal(R.id.headerview1)); in testFindViewTraversal() [all …]
|
D | PopupMenuTest.java | 467 private void emulateHoverOverVisibleItems(ListView listView) { in emulateHoverOverVisibleItems() argument 468 final int childCount = listView.getChildCount(); in emulateHoverOverVisibleItems() 472 View itemView = listView.getChildAt(i); in emulateHoverOverVisibleItems() 478 assertEquals(listView.getFirstVisiblePosition() + i, in emulateHoverOverVisibleItems() 479 listView.getSelectedItemPosition()); in emulateHoverOverVisibleItems()
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderTestBase.java | 64 void reAttachListViewAdapter(ListView listView) { in reAttachListViewAdapter() argument 67 adapter[0] = listView.getAdapter(); in reAttachListViewAdapter() 68 ((ViewGroup) listView.getParent()).removeView(listView); in reAttachListViewAdapter() 69 a.addContentView(listView, new ViewGroup.LayoutParams(1, 1)); in reAttachListViewAdapter() 73 () -> !listView.isInTouchMode()); in reAttachListViewAdapter() 74 mActivityRule.getScenario().onActivity(a -> listView.setAdapter(adapter[0])); in reAttachListViewAdapter()
|
D | ExpandableListActivitySelectTest.java | 70 ExpandableListView listView = mActivity.getExpandableListView(); in testSelect() local 72 listView.expandGroup(i); in testSelect() 84 listView.collapseGroup(i); in testSelect()
|
/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 | 248 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_sendBroadcast() 249 if (listView == null || listView.getChildCount() != 3) { in testCollection_sendBroadcast() 252 if (hasText("Text 0", listView.getChildAt(0)) in testCollection_sendBroadcast() 253 && hasText("Text 1", listView.getChildAt(1)) in testCollection_sendBroadcast() 254 && hasText("Text 2", listView.getChildAt(2))) { in testCollection_sendBroadcast() 268 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_sendBroadcast() local 269 verifyClickBroadcast(listView.getChildAt(0)); in testCollection_sendBroadcast() 270 verifyClickBroadcast(listView.getChildAt(1)); in testCollection_sendBroadcast() 271 verifyClickBroadcast(listView.getChildAt(2)); in testCollection_sendBroadcast()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_DefaultFocusHighlightTest.java | 73 ListView listView = (ListView) activity.findViewById(R.id.listview); in testSettersAndGetters() local 79 assertFalse(listView.getDefaultFocusHighlightEnabled()); in testSettersAndGetters() 85 listView.setDefaultFocusHighlightEnabled(true); in testSettersAndGetters() 91 assertTrue(listView.getDefaultFocusHighlightEnabled()); in testSettersAndGetters() 107 ListView listView = (ListView) activity.findViewById(R.id.listview_to_inflate); in testInflating() local 114 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 | 141 protected final void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument 142 super.onListItemClick(listView, view, position, id); in onListItemClick() 148 handleItemClick(listView, view, position, id); in onListItemClick() 152 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
|
/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/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTestActivity.java | 51 ListView listView = (ListView) findViewById(R.id.list_view); in onCreate() local 52 listView.setAdapter(listAdapter); in onCreate()
|
D | UiAutomationTest.java | 215 final ListView listView = mActivity.findViewById(R.id.list_view); in testWindowContentFrameStats() local 216 scrollListView(listView, listView.getAdapter().getCount() - 1); in testWindowContentFrameStats() 217 scrollListView(listView, 0); in testWindowContentFrameStats() 450 private void scrollListView(final ListView listView, final int position) in scrollListView() argument 452 getInstrumentation().runOnMainSync(() -> listView.smoothScrollToPosition(position)); in scrollListView()
|
/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/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | SearchViewTest.java | 108 final ListView listView = new ListView(activity); in launchTestActivityWithListView() 109 layout.addView(listView); in launchTestActivityWithListView() 113 listView.setAdapter(new SingleItemAdapter(searchView)); in launchTestActivityWithListView()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleEncryptedServerBaseActivity.java | 59 ListView listView = (ListView) findViewById(R.id.ble_server_enctypted_tests); in onCreate() local 60 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleConnectionPriorityServerBaseActivity.java | 58 ListView listView = (ListView) findViewById(R.id.ble_server_connection_tests); in onCreate() local 59 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleEncryptedClientBaseActivity.java | 68 ListView listView = (ListView) findViewById(R.id.ble_client_enctypted_tests); in onCreate() local 69 listView.setAdapter(mTestAdapter); in onCreate() 70 listView.setOnItemClickListener(new ListView.OnItemClickListener() { in onCreate()
|
D | BleConnectionPriorityClientBaseActivity.java | 74 ListView listView = (ListView) findViewById(R.id.ble_client_connection_tests); in onCreate() local 75 listView.setAdapter(mTestAdapter); in onCreate()
|
D | BleCocServerTestBaseActivity.java | 68 ListView listView = (ListView) findViewById(R.id.ble_server_tests); in onCreate() local 69 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()
|