/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 45 ListView listView = new ListView(context); in testRequestLayout() local 48 listView.setAdapter(adapter); in testRequestLayout() 53 listView.measure(measureSpec, measureSpec); in testRequestLayout() 54 listView.layout(0, 0, 100, 100); in testRequestLayout() 56 MockView childView = (MockView) listView.getChildAt(0); in testRequestLayout() 60 listView.measure(measureSpec, measureSpec); in testRequestLayout() 61 listView.layout(0, 0, 100, 100); in testRequestLayout() 73 ListView listView = new ListView(context); in testNoSelectableItems() local 75 listView.addHeaderView(new View(context), null, false); in testNoSelectableItems() 78 listView.setAdapter(adapter); in testNoSelectableItems() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | HeadersFragment.java | 157 final VerticalGridView listView = getVerticalGridView(); in onViewCreated() local 158 if (listView == null) { in onViewCreated() 162 FocusHighlightHelper.setupHeaderItemFocusHighlight(listView); in onViewCreated() 165 listView.setBackgroundColor(mBackgroundColor); in onViewCreated() 168 Drawable d = listView.getBackground(); in onViewCreated() 177 final VerticalGridView listView = getVerticalGridView(); in updateListViewVisibility() local 178 if (listView != null) { in updateListViewVisibility() 182 listView.setChildrenVisibility(View.VISIBLE); in updateListViewVisibility() 184 listView.setChildrenVisibility(View.INVISIBLE); in updateListViewVisibility() 270 final VerticalGridView listView = getVerticalGridView(); in onTransitionStart() local [all …]
|
D | HeadersSupportFragment.java | 159 final VerticalGridView listView = getVerticalGridView(); in onViewCreated() local 160 if (listView == null) { in onViewCreated() 164 FocusHighlightHelper.setupHeaderItemFocusHighlight(listView); in onViewCreated() 167 listView.setBackgroundColor(mBackgroundColor); in onViewCreated() 170 Drawable d = listView.getBackground(); in onViewCreated() 179 final VerticalGridView listView = getVerticalGridView(); in updateListViewVisibility() local 180 if (listView != null) { in updateListViewVisibility() 184 listView.setChildrenVisibility(View.VISIBLE); in updateListViewVisibility() 186 listView.setChildrenVisibility(View.INVISIBLE); in updateListViewVisibility() 272 final VerticalGridView listView = getVerticalGridView(); in onTransitionStart() local [all …]
|
D | RowsFragment.java | 198 VerticalGridView listView = getVerticalGridView(); in setExpand() local 199 if (listView != null) { in setExpand() 200 final int count = listView.getChildCount(); in setExpand() 203 View view = listView.getChildAt(i); in setExpand() 205 = (ItemBridgeAdapter.ViewHolder) listView.getChildViewHolder(view); in setExpand() 216 VerticalGridView listView = getVerticalGridView(); in setOnItemViewSelectedListener() local 217 if (listView != null) { in setOnItemViewSelectedListener() 218 final int count = listView.getChildCount(); in setOnItemViewSelectedListener() 220 View view = listView.getChildAt(i); in setOnItemViewSelectedListener() 222 listView.getChildViewHolder(view); in setOnItemViewSelectedListener() [all …]
|
D | RowsSupportFragment.java | 200 VerticalGridView listView = getVerticalGridView(); in setExpand() local 201 if (listView != null) { in setExpand() 202 final int count = listView.getChildCount(); in setExpand() 205 View view = listView.getChildAt(i); in setExpand() 207 = (ItemBridgeAdapter.ViewHolder) listView.getChildViewHolder(view); in setExpand() 218 VerticalGridView listView = getVerticalGridView(); in setOnItemViewSelectedListener() local 219 if (listView != null) { in setOnItemViewSelectedListener() 220 final int count = listView.getChildCount(); in setOnItemViewSelectedListener() 222 View view = listView.getChildAt(i); in setOnItemViewSelectedListener() 224 listView.getChildViewHolder(view); in setOnItemViewSelectedListener() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListWithHeaders.java | 39 final ListView listView = getListView(); in onCreate() local 40 listView.setItemsCanFocus(true); in onCreate() 45 listView.addHeaderView(header); in onCreate() 51 listView.addFooterView(footer); in onCreate() 54 final ListAdapter adapter = listView.getAdapter(); in onCreate() 55 listView.setAdapter(adapter); in onCreate()
|
D | ListRecyclerProfiling.java | 41 ListView listView = (ListView) findViewById(R.id.list); in onCreate() local 43 ViewDebug.startRecyclerTracing("SimpleList", listView); in onCreate() 45 listView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteDialogHelper.java | 108 public static <E> HashMap<E, Rect> getItemBoundMap(ListView listView, 111 int firstVisiblePosition = listView.getFirstVisiblePosition(); 112 for (int i = 0; i < listView.getChildCount(); ++i) { 115 View view = listView.getChildAt(i); 132 ListView listView, ArrayAdapter<E> adapter) { 134 int firstVisiblePosition = listView.getFirstVisiblePosition(); 135 for (int i = 0; i < listView.getChildCount(); ++i) { 138 View view = listView.getChildAt(i);
|
/frameworks/support/v4/donut/android/support/v4/widget/ |
D | ListViewCompatDonut.java | 24 static void scrollListBy(final ListView listView, int y) { in scrollListBy() argument 25 final int firstPosition = listView.getFirstVisiblePosition(); in scrollListBy() 30 final View firstView = listView.getChildAt(0); in scrollListBy() 36 listView.setSelectionFromTop(firstPosition, newTop); in scrollListBy()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | ListViewRequireScrollHelper.java | 35 public static void requireScroll(NavigationBar navigationBar, ListView listView) { in requireScroll() argument 36 new ListViewRequireScrollHelper(navigationBar, listView).requireScroll(); in requireScroll() 41 private ListViewRequireScrollHelper(NavigationBar navigationBar, ListView listView) { in ListViewRequireScrollHelper() argument 43 mListView = listView; in ListViewRequireScrollHelper()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | SetupWizardListLayout.java | 119 final ListView listView = getListView(); in requireScrollToBottom() local 120 if (navigationBar != null && listView != null) { in requireScrollToBottom() 121 ListViewRequireScrollHelper.requireScroll(navigationBar, listView); in requireScrollToBottom() 151 final ListView listView = getListView(); in updateDivider() local 153 mDefaultDivider = listView.getDivider(); in updateDivider() 157 listView.setDivider(mDivider); in updateDivider()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | AlertDialogCursorTest.java | 155 final ListView listView = mAlertDialog.getListView(); in verifySimpleItemsContent() local 156 assertNotNull("List view is shown", listView); in verifySimpleItemsContent() 158 final ListAdapter listAdapter = listView.getAdapter(); in verifySimpleItemsContent() 213 final ListView listView = mAlertDialog.getListView(); in verifyMultiChoiceItemsState() local 214 assertNotNull("List view is shown", listView); in verifyMultiChoiceItemsState() 216 final ListAdapter listAdapter = listView.getAdapter(); in verifyMultiChoiceItemsState() 243 final ListView listView = mAlertDialog.getListView(); in verifyMultiChoiceItemsContent() local 244 assertNotNull("List view is shown", listView); in verifyMultiChoiceItemsContent() 246 final ListAdapter listAdapter = listView.getAdapter(); in verifyMultiChoiceItemsContent() 329 final ListView listView = mAlertDialog.getListView(); in verifySingleChoiceItemsState() local [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ListViewCompat.java | 35 public static void scrollListBy(@NonNull ListView listView, int y) { in scrollListBy() argument 37 ListViewCompatKitKat.scrollListBy(listView, y); in scrollListBy() 39 ListViewCompatDonut.scrollListBy(listView, y); in scrollListBy()
|
/frameworks/base/core/java/android/content/ |
D | SyncActivityTooManyDeletes.java | 73 ListView listView = new ListView(this); in onCreate() local 74 listView.setAdapter(adapter); in onCreate() 75 listView.setItemsCanFocus(true); in onCreate() 76 listView.setOnItemClickListener(this); in onCreate() 89 ll.addView(listView, lp); in onCreate()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | DialogListActivity.java | 29 ListView listView = new ListView(this); in onCreate() local 30 listView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, in onCreate() 35 builder.setView(listView); in onCreate()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 37 sp<RenderNode> listView; member in ListViewAnimation 49 listView = TestUtils::createNode(0, 0, width, height, in createContent() 57 canvas.drawRenderNode(listView.get()); in createContent() 66 listView->stagingProperties().getWidth(), in doFrame() 67 listView->stagingProperties().getHeight()); in doFrame() 79 listView->setStagingDisplayList(canvas.finishRecording(), nullptr); in doFrame()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBar.java | 145 ListView listView = new ListView(mActionBar.getPopupContext(), null, in createMenuPopup() local 158 listView.setLayoutParams(layoutParams); in createMenuPopup() 159 listView.setAdapter(adapter); in createMenuPopup() 162 listView.setBackground(a.getDrawable(R.styleable.PopupWindow_popupBackground)); in createMenuPopup() 163 listView.setDivider(a.getDrawable(R.attr.actionBarDivider)); in createMenuPopup() 165 listView.setElevation(mActionBar.getMenuPopupElevation()); in createMenuPopup() 167 mEnclosingLayout.addView(listView); in createMenuPopup()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | AlertController.java | 502 final ListView listView = mListView; in setupView() local 503 if (listView != null && mAdapter != null) { in setupView() 504 listView.setAdapter(mAdapter); in setupView() 507 listView.setItemChecked(checkedItem, true); in setupView() 508 listView.setSelection(checkedItem); in setupView() 813 void onPrepareListView(ListView listView); in onPrepareListView() argument 880 final ListView listView = (ListView) mInflater.inflate(dialog.mListLayout, null); in createListView() local 893 listView.setItemChecked(position, true); in createListView() 915 listView.setItemChecked(cursor.getPosition(), in createListView() 946 mOnPrepareListViewListener.onPrepareListView(listView); in createListView() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AlertController.java | 869 final ListView listView = mListView; in setBackground() local 870 if (listView != null && mAdapter != null) { in setBackground() 871 listView.setAdapter(mAdapter); in setBackground() 874 listView.setItemChecked(checkedItem, true); in setBackground() 875 listView.setSelection(checkedItem); in setBackground() 970 void onPrepareListView(ListView listView); in onPrepareListView() argument 1040 final RecycleListView listView = in createListView() local 1054 listView.setItemChecked(position, true); in createListView() 1075 listView.setItemChecked(cursor.getPosition(), in createListView() 1106 mOnPrepareListViewListener.onPrepareListView(listView); in createListView() [all …]
|
/frameworks/support/v4/kitkat/android/support/v4/widget/ |
D | ListViewCompatKitKat.java | 23 static void scrollListBy(final ListView listView, int y) { in scrollListBy() argument 24 listView.scrollListBy(y); in scrollListBy()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListUtil.java | 37 public ListUtil(ListView listView, Instrumentation instrumentation) { in ListUtil() argument 38 mListView = listView; in ListUtil()
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | BitmapView.java | 52 public void setListView(final ListView listView) { in setListView() argument 53 mListView = listView; in setListView()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
D | CascadingMenuPopup.java | 433 final ListView listView = popupWindow.getListView(); in showMenu() local 435 R.layout.abc_popup_menu_header_item_layout, listView, false); in showMenu() 439 listView.addHeaderView(titleItemView, null, false); in showMenu() 487 final ListView listView = parentInfo.getListView(); in findParentViewForSubmenu() local 488 final ListAdapter listAdapter = listView.getAdapter(); in findParentViewForSubmenu() 515 final int ownerViewPosition = ownerPosition - listView.getFirstVisiblePosition(); in findParentViewForSubmenu() 516 if (ownerViewPosition < 0 || ownerViewPosition >= listView.getChildCount()) { in findParentViewForSubmenu() 521 return listView.getChildAt(ownerViewPosition); in findParentViewForSubmenu()
|
D | StandardMenuPopup.java | 162 final ListView listView = mPopup.getListView(); in tryShow() local 163 listView.setOnKeyListener(this); in tryShow() 168 R.layout.abc_popup_menu_header_item_layout, listView, false); in tryShow() 174 listView.addHeaderView(titleItemView, null, false); in tryShow()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | CascadingMenuPopup.java | 439 final ListView listView = popupWindow.getListView(); in showMenu() local 441 R.layout.popup_menu_header_item_layout, listView, false); in showMenu() 445 listView.addHeaderView(titleItemView, null, false); in showMenu() 493 final ListView listView = parentInfo.getListView(); in findParentViewForSubmenu() local 494 final ListAdapter listAdapter = listView.getAdapter(); in findParentViewForSubmenu() 521 final int ownerViewPosition = ownerPosition - listView.getFirstVisiblePosition(); in findParentViewForSubmenu() 522 if (ownerViewPosition < 0 || ownerViewPosition >= listView.getChildCount()) { in findParentViewForSubmenu() 527 return listView.getChildAt(ownerViewPosition); in findParentViewForSubmenu()
|