Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 105) sorted by relevance

12345

/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DCustomizeChannelListFragment.java161 private void cleanUpOneChannelGroupItem(List<Item> items) { in cleanUpOneChannelGroupItem() argument
162 Iterator<Item> iter = items.iterator(); in cleanUpOneChannelGroupItem()
176 private void addItemForGroupBySource(List<Item> items) { in addItemForGroupBySource() argument
177 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_sources))); in addItemForGroupBySource()
188 items.add(new DividerItem(inputLabel)); in addItemForGroupBySource()
190 items.add(selectGroupItem); in addItemForGroupBySource()
193 items.add(channelItem); in addItemForGroupBySource()
196 cleanUpOneChannelGroupItem(items); in addItemForGroupBySource()
199 private void addItemForGroupByHdSd(List<Item> items) { in addItemForGroupByHdSd() argument
200 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_hd_sd))); in addItemForGroupByHdSd()
[all …]
DSettingsFragment.java80 List<Item> items = new ArrayList<>(); in getItemList() local
103 items.add(customizeChannelListItem); in getItemList()
107 items.add(new ActionItem( in getItemList()
118 items.add(new ActionItem(getString(R.string.settings_parental_controls), in getItemList()
152 items.add(new LicenseActionItem(activity)); in getItemList()
155 items.add(new SimpleItem(getString(R.string.settings_menu_version), in getItemList()
157 return items; in getItemList()
DDebugOptionFragment.java39 List<Item> items = new ArrayList<>(); in getItemList() local
40 items.add(new ActionItem(getString(R.string.item_watch_history)) { in getItemList()
46 return items; in getItemList()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetLoader.java56 void putCustomAppWidgets(List<Item> items, Intent intent) { in putCustomAppWidgets() argument
106 putAppWidgetItems(customInfo, customExtras, items, 0, true); in putCustomAppWidgets()
115 List<Bundle> customExtras, List<Item> items, int categoryFilter, in putAppWidgetItems() argument
130 items.add(item); in putAppWidgetItems()
148 List<Item> items = new ArrayList<Item>(); in getItems() local
154 putInstalledAppWidgets(items, categoryFilter); in getItems()
158 putCustomAppWidgets(items, intent); in getItems()
160 Collections.sort(items, new Comparator<Item>() { in getItems()
170 items.addAll(customItems); in getItems()
172 return items; in getItems()
[all …]
DActivityPicker.java99 List<PickAdapter.Item> items = getItems(); in onCreate() local
100 mAdapter = new PickAdapter(this, items); in onCreate()
142 List<PickAdapter.Item> items = new ArrayList<PickAdapter.Item>(); in getItems() local
167 items.add(new PickAdapter.Item(this, label, icon)); in getItems()
173 putIntentItems(mBaseIntent, items); in getItems()
176 return items; in getItems()
182 protected void putIntentItems(Intent baseIntent, List<PickAdapter.Item> items) { in putIntentItems() argument
191 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); in putIntentItems()
277 public PickAdapter(Context context, List<Item> items) { in PickAdapter() argument
279 mItems = items; in PickAdapter()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebug.java82 List<Map<String, String>> items = new ArrayList<Map<String, String>>(); in doInBackground() local
89 addItem(items, mActivity.getString(R.string.calendar_info_error), ""); in doInBackground()
131 addItem(items, displayName, text); in doInBackground()
137 addItem(items, mActivity.getString(R.string.calendar_info_error), e.toString()); in doInBackground()
144 if (items.size() == 0) { in doInBackground()
145 addItem(items, mActivity.getString(R.string.calendar_info_no_calendars), ""); in doInBackground()
147 return items; in doInBackground()
158 protected void onPostExecute(List<Map<String, String>> items) { in onPostExecute() argument
160 ListAdapter adapter = new SimpleAdapter(mActivity, items, in onPostExecute()
186 protected void addItem(List<Map<String, String>> items, String title, String text) { in addItem() argument
[all …]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ts/
DTsParser.java79 void onPatDetected(List<PatItem> items); in onPatDetected() argument
82 void onEitItemParsed(VctItem channel, List<EitItem> items); in onEitItemParsed() argument
140 public void onPatParsed(List<PatItem> items) {
141 for (PatItem i : items) {
145 mListener.onPatDetected(items);
150 public void onPmtParsed(int programNumber, List<PmtItem> items) {
151 mProgramNumberToPMTMap.put(programNumber, items);
166 handleVctItem(vctItem, items);
172 public void onMgtParsed(List<MgtItem> items) {
173 for (MgtItem i : items) {
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java222 List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); in onDraw() local
231 if (!isValidHolderAndChild(holder, child, items)) { in onDraw()
235 if (shouldDrawItemDivider(holder, items) && !hasDrawnPredictedAppsDivider) { in onDraw()
243 } else if (showSectionNames && shouldDrawItemSection(holder, i, items)) { in onDraw()
247 AlphabeticalAppsList.AdapterItem item = items.get(pos); in onDraw()
253 AlphabeticalAppsList.AdapterItem nextItem = items.get(pos); in onDraw()
277 int appIndexInSection = items.get(pos).sectionAppIndex; in onDraw()
278 int nextRowPos = Math.min(items.size() - 1, in onDraw()
280 AlphabeticalAppsList.AdapterItem nextRowItem = items.get(nextRowPos); in onDraw()
335 List<AlphabeticalAppsList.AdapterItem> items) { in isValidHolderAndChild() argument
[all …]
DAllAppsRecyclerView.java178 List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); in fillInLaunchSourceData() local
179 AlphabeticalAppsList.AdapterItem item = items.get(position); in fillInLaunchSourceData()
260 List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); in onUpdateScrollbar() local
263 if (items.isEmpty() || mNumAppsPerRow == 0) { in onUpdateScrollbar()
346 List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); in getCurScrollState() local
347 if (items.isEmpty() || mNumAppsPerRow == 0) { in getCurScrollState()
356 AlphabeticalAppsList.AdapterItem item = items.get(position); in getCurScrollState()
/packages/apps/TV/src/com/android/tv/menu/
DRecordCardView.java119 final List<CharSequence> items = new ArrayList<>(); in showStartRecordingDialog() local
122 items.add(res.getString(R.string.recording_start_dialog_10_min_duration)); in showStartRecordingDialog()
124 items.add(res.getString(R.string.recording_start_dialog_30_min_duration)); in showStartRecordingDialog()
126 items.add(res.getString(R.string.recording_start_dialog_1_hour_duration)); in showStartRecordingDialog()
128 items.add(res.getString(R.string.recording_start_dialog_3_hours_duration)); in showStartRecordingDialog()
135 items.add(res.getString(R.string.recording_start_dialog_till_end_of_program)); in showStartRecordingDialog()
151 .setItems(items.toArray(new CharSequence[items.size()]), onClickListener) in showStartRecordingDialog()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
DEventDetector.java62 public void onPatDetected(List<PatItem> items) {
63 for (PatItem i : items) {
74 public void onEitItemParsed(VctItem channel, List<EitItem> items) {
92 for (EitItem item : items) {
103 for (EitItem item : items) {
108 mEventListener.onEventDetected(tunerChannel, items);
181 void onEventDetected(TunerChannel channel, List<EitItem> items); in onEventDetected() argument
DFileSourceEventDetector.java95 public void onPatDetected(List<PatItem> items) {
96 for (PatItem i : items) {
107 public void onEitItemParsed(VctItem channel, List<EitItem> items) {
125 for (EitItem item : items) {
136 for (EitItem item : items) {
141 mEventListener.onEventDetected(tunerChannel, items);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTimeClustering.java119 ArrayList<SmallItem> items = new ArrayList<SmallItem>(total); in run() local
122 items.add(buf[i]); in run()
126 Collections.sort(items, sDateComparator); in run()
128 int n = items.size(); in run()
132 long t = items.get(i).dateInMs; in run()
145 compute(items.get(i)); in run()
164 ArrayList<SmallItem> items = mClusters.get(index).getItems(); in getCluster() local
165 ArrayList<Path> result = new ArrayList<Path>(items.size()); in getCluster()
166 for (int i = 0, n = items.size(); i < n; i++) { in getCluster()
167 result.add(items.get(i).path); in getCluster()
DMediaSet.java77 ArrayList<MediaItem> items = getMediaItem(0, 1); in getCoverMediaItem() local
78 if (items.size() > 0) return items.get(0); in getCoverMediaItem()
207 ArrayList<MediaItem> items = getMediaItem(start, count); in enumerateMediaItems() local
208 for (int i = 0, n = items.size(); i < n; i++) { in enumerateMediaItems()
209 MediaItem item = items.get(i); in enumerateMediaItems()
DLocationClustering.java150 private static String generateName(ArrayList<SmallItem> items, in generateName() argument
154 int n = items.size(); in generateName()
156 SmallItem item = items.get(i); in generateName()
188 ArrayList<SmallItem> items = mClusters.get(index); in getCluster() local
189 ArrayList<Path> result = new ArrayList<Path>(items.size()); in getCluster()
190 for (int i = 0, n = items.size(); i < n; i++) { in getCluster()
191 result.add(items.get(i).path); in getCluster()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java82 List<Item> items = new ArrayList<>(); in getItemList() local
90 items.add(new RatingSystemItem(s)); in getItemList()
92 items.add(new RatingSystemItem(s)); in getItemList()
115 final List<Item> allItems = new ArrayList<>(items); in getItemList()
120 items.add(new ActionItem(getString(R.string.option_see_all_rating_systems)) { in getItemList()
126 return items; in getItemList()
DRatingsFragment.java103 List<Item> items = new ArrayList<>(); in getItemList() local
110 items.addAll(mRatingLevelItems); in getItemList()
122 items.add(new DividerItem(s.getDisplayName())); in getItemList()
127 items.add(item); in getItemList()
143 items.add(new DividerItem()); in getItemList()
144 items.add(new AttributionItem(getMainActivity())); in getItemList()
146 mItemsSize = items.size(); in getItemList()
147 return items; in getItemList()
DProgramRestrictionsFragment.java54 List<Item> items = new ArrayList<>(); in getItemList() local
56 items.add(new SubMenuItem(getString(R.string.option_country_rating_systems), in getItemList()
82 items.add(ratingsItem); in getItemList()
83 return items; in getItemList()
DSubRatingsFragment.java60 List<Item> items = new ArrayList<>(); in getItemList() local
61 items.add(new RatingItem()); in getItemList()
62 items.add(new DividerItem(getString(R.string.option_subrating_header))); in getItemList()
67 items.addAll(mSubRatingItems); in getItemList()
68 return items; in getItemList()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumDataLoader.java241 public ArrayList<MediaItem> items; field in AlbumDataLoader.UpdateInfo
293 ArrayList<MediaItem> items = info.items; in call() local
296 if ((items == null) || items.isEmpty()) { in call()
304 int end = Math.min(info.reloadStart + items.size(), mContentEnd); in call()
309 MediaItem updateItem = items.get(i - info.reloadStart); in call()
380 info.items = mSource.getMediaItem(info.reloadStart, info.reloadCount); in run()
DPhotoDataAdapter.java934 public ArrayList<MediaItem> items; field in PhotoDataAdapter.UpdateInfo
983 if (info.items != null) { in call()
985 int end = Math.min(info.contentStart + info.items.size(), mContentEnd); in call()
988 mData[dataIndex] = info.items.get(i - info.contentStart); in call()
1041 info.items = mSource.getMediaItem( in run()
1103 ArrayList<MediaItem> items = info.items; in findCurrentMediaItem() local
1105 return index < 0 || index >= items.size() ? null : items.get(index); in findCurrentMediaItem()
1110 ArrayList<MediaItem> items = info.items; in findIndexOfTarget()
1113 if (items != null) { in findIndexOfTarget()
1123 ArrayList<MediaItem> items = info.items; in findIndexOfPathInCache() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoSourceDialogFragment.java69 final CharSequence[] items = new CharSequence[choices.size()]; in onCreateDialog() local
70 for (int i = 0; i < items.length; i++) { in onCreateDialog()
71 items[i] = choices.get(i).toString(); in onCreateDialog()
96 builder.setItems(items, clickListener); in onCreateDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPicker.java400 public Adapter(int columnId, List<String> items) { in Adapter() argument
402 mItems = items; in Adapter()
454 public void setItems(List<String> items) { in setItems() argument
456 mItems = items; in setItems()
457 if (oldItems.size() < items.size()) { in setItems()
458 notifyItemRangeInserted(oldItems.size(), oldItems.size() - items.size()); in setItems()
459 } else if (items.size() < oldItems.size()) { in setItems()
460 notifyItemRangeRemoved(items.size(), items.size() - oldItems.size()); in setItems()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.java316 ArrayList<AppItem> items = new ArrayList<>(); in bindStats() local
341 items, largest); in bindStats()
365 largest = accumulate(collapseKey, knownItems, entry, category, items, largest); in bindStats()
380 items.add(item); in bindStats()
386 Collections.sort(items); in bindStats()
388 for (int i = 0; i < items.size(); i++) { in bindStats()
389 final int percentTotal = largest != 0 ? (int) (items.get(i).total * 100 / largest) : 0; in bindStats()
391 items.get(i), percentTotal, mUidDetailProvider); in bindStats()
421 NetworkStats.Entry entry, int itemCategory, ArrayList<AppItem> items, long largest) { in accumulate() argument
427 items.add(item); in accumulate()
/packages/apps/Camera2/src/com/android/camera/widget/
DPreloader.java46 public List<Y> preloadItems(List<T> items); in preloadItems() argument
108 final List<T> items = mItemSource.getItemsInRange(start, end); in preload() local
110 Collections.reverse(items); in preload()
112 registerLoadTokens(mItemLoader.preloadItems(items)); in preload()

12345