Home
last modified time | relevance | path

Searched refs:listItems (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
DListContent.java162 public int getListHeight(Context context, List<SliceItem> listItems) { in getListHeight() argument
163 if (listItems == null) { in getListHeight()
169 if (!listItems.isEmpty()) { in getListHeight()
170 maybeHeader = listItems.get(0); in getListHeight()
173 if (listItems.size() == 1 && !maybeHeader.hasHint(HINT_HORIZONTAL)) { in getListHeight()
176 int rowCount = listItems.size(); in getListHeight()
177 for (int i = 0; i < listItems.size(); i++) { in getListHeight()
178 height += getHeight(context, listItems.get(i), i == 0 && hasRealHeader /* isHeader */, in getListHeight()
/frameworks/support/car/src/main/java/androidx/car/app/
DCarListDialog.java286 List<ListItem> listItems = new ArrayList<>(); in initializeWithItems() local
289 listItems.add(createItem(/* text= */ items[i], /* position= */ i)); in initializeWithItems()
292 mAdapter = new ListItemAdapter(context, new ListItemProvider.ListProvider(listItems)); in initializeWithItems()
303 List<ListItem> listItems = new ArrayList<>(); in initializeWithSections() local
309 listItems.add(header); in initializeWithSections()
314 listItems.add(createItem(/* text= */ items[i], /* position= */ i)); in initializeWithSections()
318 mAdapter = new ListItemAdapter(context, new ListItemProvider.ListProvider(listItems)); in initializeWithSections()
/frameworks/base/core/java/android/accounts/
DChooseTypeAndAccountActivity.java241 String[] listItems = getListOfDisplayableOptions(mPossiblyVisibleAccounts); in onCreate() local
248 populateUIAccountList(listItems); in onCreate()
511 String[] listItems = new String[accounts.size() + (mDisallowAddAccounts ? 0 : 1)]; in getListOfDisplayableOptions() local
513 listItems[i] = accounts.get(i).name; in getListOfDisplayableOptions()
516 listItems[accounts.size()] = getResources().getString( in getListOfDisplayableOptions()
519 return listItems; in getListOfDisplayableOptions()
607 private final void populateUIAccountList(String[] listItems) { in populateUIAccountList() argument
610 android.R.layout.simple_list_item_single_choice, listItems)); in populateUIAccountList()