Home
last modified time | relevance | path

Searched refs:mItems (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsAdapter.java50 private final ArrayList<Object> mItems = new ArrayList<>(); field in ContactDetailsAdapter
66 mItems.clear(); in setContact()
67 mItems.add(contact); in setContact()
69 mItems.addAll(contact.getNumbers()); in setContact()
71 mItems.addAll(contact.getPostalAddresses()); in setContact()
79 Object obj = mItems.get(position); in getItemViewType()
94 return mItems.size(); in getItemCount()
124 viewHolder.bind(mContext, (Contact) mItems.get(position)); in onBindViewHolder()
127 viewHolder.bind(mContext, mContact, (PhoneNumber) mItems.get(position)); in onBindViewHolder()
130 viewHolder.bind(mContext, (PostalAddress) mItems.get(position)); in onBindViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSmsDefaultDialog.java178 private final List<Item> mItems; field in SmsDefaultDialog.AppListAdapter
183 mItems = getItems(); in AppListAdapter()
187 Item item = mItems.remove(selected); in AppListAdapter()
188 mItems.add(0, item); in AppListAdapter()
196 return mItems != null ? mItems.size() : 0; in getCount()
201 return mItems != null && position < mItems.size() ? mItems.get(position) : null; in getItem()
279 for (int i = 0; i < mItems.size(); i++) { in getSelectedIndex()
280 if (TextUtils.equals(mItems.get(i).packgeName, defaultSmsAppPackageName)) { in getSelectedIndex()
DAppWidgetPickActivity.java51 List<PickAdapter.Item> mItems; field in AppWidgetPickActivity
91 mItems = mAppWidgetLoader.getItems(getIntent()); in getItems()
92 return mItems; in getItems()
147 PickAdapter.Item item = mItems.get(which); in onClick()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDialogDetailsView.java120 private final ArrayList<String> mItems; field in DialogDetailsView.DetailsAdapter
129 mItems = new ArrayList<String>(details.size()); in DetailsAdapter()
142 mLocationIndex = mItems.size(); in setDetails()
187 mWidthIndex = mItems.size(); in setDetails()
196 mHeightIndex = mItems.size(); in setDetails()
242 mItems.add(value); in setDetails()
261 return mItems.size(); in getCount()
283 tv.setText(mItems.get(position)); in getView()
289 mItems.set(mLocationIndex, address); in onAddressAvailable()
304 mItems.set(mWidthIndex, String.valueOf(widthString)); in onResolutionAvailable()
[all …]
DPopupList.java60 private final ArrayList<Item> mItems = new ArrayList<Item>(); field in PopupList
79 mItems.add(new Item(id, title)); in addItem()
83 mItems.clear(); in clearItems()
173 for (Item item : mItems) { in findItem()
182 return mItems.size(); in getCount()
187 return mItems.get(position); in getItem()
192 return mItems.get(position).id; in getItemId()
202 text.setText(mItems.get(position).title); in getView()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java259 private List<T> mItems; field in SideFragment.ItemAdapter
263 mItems = items; in ItemAdapter()
267 mItems = items; in reset()
294 return mItems == null ? 0 : mItems.size(); in getItemCount()
298 return mItems.get(position); in getItem()
302 int position = mItems.indexOf(item); in clearRadioGroup()
304 if ((item = mItems.get(i)) instanceof RadioButtonItem) { in clearRadioGroup()
310 for (int i = position + 1; i < mItems.size(); ++i) { in clearRadioGroup()
311 if ((item = mItems.get(i)) instanceof RadioButtonItem) { in clearRadioGroup()
DCustomizeChannelListFragment.java59 private final List<Item> mItems = new ArrayList<>(); field in CustomizeChannelListFragment
112 for (Item item : mItems) { in onCreateView()
160 mItems.clear(); in getItemList()
164 addItemForGroupBySource(mItems); in getItemList()
167 addItemForGroupByHdSd(mItems); in getItemList()
169 return mItems; in getItemList()
/packages/apps/Camera2/src/com/android/camera/ui/
DDetailsDialog.java77 private final ArrayList<String> mItems;
86 mItems = new ArrayList<String>(details.size());
137 mWidthIndex = mItems.size();
146 mHeightIndex = mItems.size();
194 mItems.add(value);
220 return mItems.size();
242 tv.setText(mItems.get(position));
256 mItems.set(mWidthIndex, String.valueOf(widthString));
257 mItems.set(mHeightIndex, String.valueOf(heightString));
/packages/apps/Settings/src/com/android/settings/applications/
DRunningProcessesView.java214 final ArrayList<RunningState.MergedItem> mItems field in RunningProcessesView.ServiceListAdapter
244 mItems.clear(); in refreshItems()
246 mItems.clear(); in refreshItems()
247 mItems.addAll(newItems); in refreshItems()
249 Collections.sort(mItems, mState.mBackgroundComparator); in refreshItems()
260 return mItems.size(); in getCount()
265 return mState.hasData() && mItems.size() == 0; in isEmpty()
269 return mItems.get(position); in getItem()
273 return mItems.get(position).hashCode(); in getItemId()
281 return !mItems.get(position).mIsProcess; in isEnabled()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningProcessesView.java214 final ArrayList<RunningState.MergedItem> mItems field in RunningProcessesView.ServiceListAdapter
244 mItems.clear(); in refreshItems()
246 mItems.clear(); in refreshItems()
247 mItems.addAll(newItems); in refreshItems()
249 Collections.sort(mItems, mState.mBackgroundComparator); in refreshItems()
260 return mItems.size(); in getCount()
265 return mState.hasData() && mItems.size() == 0; in isEmpty()
269 return mItems.get(position); in getItem()
273 return mItems.get(position).hashCode(); in getItemId()
281 return !mItems.get(position).mIsProcess; in isEnabled()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieItem.java46 private List<PieItem> mItems; field in PieItem
67 return mItems != null; in hasItems()
71 return mItems; in getItems()
75 if (mItems == null) { in addItem()
76 mItems = new ArrayList<PieItem>(); in addItem()
78 mItems.add(item); in addItem()
DPieRenderer.java79 private List<PieItem> mItems; field in PieRenderer
151 mItems = new ArrayList<PieItem>(); in init()
190 mItems.add(item); in addItem()
194 mItems.remove(item); in removeItem()
198 mItems.clear(); in clearItems()
230 for (PieItem item : mItems) { in show()
279 layoutItems(mItems, (float) (Math.PI / 2), inner, outer, gap); in layoutPie()
377 for (PieItem item : mItems) { in onDraw()
564 List<PieItem> items = (mOpenItem != null) ? mOpenItem.getItems() : mItems; in findItem()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiListItemAdapter.java55 private List<? extends CarUiListItem> mItems; field in CarUiListItemAdapter
59 this.mItems = items; in CarUiListItemAdapter()
88 return mItems; in getItems()
93 if (mItems.get(position) instanceof CarUiContentListItem) { in getItemViewType()
95 } else if (mItems.get(position) instanceof CarUiHeaderListItem) { in getItemViewType()
110 CarUiListItem item = mItems.get(position); in onBindViewHolder()
124 CarUiListItem header = mItems.get(position); in onBindViewHolder()
141 ? mItems.size() in getItemCount()
142 : Math.min(mItems.size(), mMaxItems); in getItemCount()
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java130 if (prevScanning == scanning && mAdapter.mItems.size() == 0) return; in updateScanningDialog()
135 } else if (scanning && mAdapter.mItems.size() == 0) { in updateScanningDialog()
198 mAdapter.mItems.get(position).launch(this); in launchFolderGallery()
229 if (position < 0 || position >= mAdapter.mItems.size()) { in onSlideShowClicked()
233 Item item = mAdapter.mItems.get(position); in onSlideShowClicked()
487 int numItems = mAdapter.mItems.size(); in checkBucketIdsFinished()
491 mAdapter.mItems.get(0).launch(this); in checkBucketIdsFinished()
872 ArrayList<Item> mItems = new ArrayList<Item>();
880 mItems.add(item);
888 mItems.clear();
[all …]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DChannelsBlockedFragment.java61 private final List<Item> mItems = new ArrayList<>(); field in ChannelsBlockedFragment
128 mItems.clear(); in getItemList()
129 mItems.add(mLockAllItem); in getItemList()
145 mItems.add(new DividerItem(getString(R.string.option_channels_subheader_hidden))); in getItemList()
148 mItems.add(new ChannelBlockedItem(channel)); in getItemList()
153 mSelectedPosition = mItems.size() - 1; in getItemList()
156 return mItems; in getItemList()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java315 private SortedList mItems; field in SelectFromListWizardFragment.VerticalListAdapter
322 mItems = new SortedList<ListItem>( in VerticalListAdapter()
339 mItems.addAll(choices.toArray(new ListItem[0]), false); in VerticalListAdapter()
377 if (position >= mItems.size()) {
382 ListItem item = (ListItem) mItems.get(position);
387 return mItems;
392 return mItems.size();
401 for (int j = 0; j < mItems.size(); j++) {
402 ListItem oldItem = (ListItem) mItems.get(j);
408 mItems.remove(item);
[all …]
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerAdapter.java47 private final List<LensPickerItem> mItems = new ArrayList<>(); field in LensPickerAdapter
76 holder.bind(mContext, mItems.get(position), mSelectionHandler); in onBindViewHolder()
81 return mItems.size(); in getItemCount()
150 int oldSize = mItems.size(); in appendAndNotify()
152 mItems.add(mLoadedItems.get(i)); in appendAndNotify()
154 notifyItemRangeInserted(oldSize, mItems.size()); in appendAndNotify()
DResolverAdapter.java46 private final List<LensPickerItem> mItems = new ArrayList<>(); field in ResolverAdapter
69 holder.bind(mContext, mResolveInfos.get(position), mItems.get(position), mHandler); in onBindViewHolder()
74 return mItems == null ? 0 : mItems.size(); in getItemCount()
141 mItems.addAll(items); in onPostExecute()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTimeClustering.java356 private ArrayList<SmallItem> mItems = new ArrayList<SmallItem>(); field in Cluster
362 mItems.add(item); in addItem()
366 return mItems.size(); in size()
370 int n = mItems.size(); in getLastItem()
371 return (n == 0) ? null : mItems.get(n - 1); in getLastItem()
375 return mItems; in getItems()
379 int n = mItems.size(); in generateCaption()
384 long t = mItems.get(i).dateInMs; in generateCaption()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionAdapter.java35 private final List<UserRestrictionListItem> mItems; field in UserRestrictionAdapter
39 mItems = items; in UserRestrictionAdapter()
44 return mItems.size(); in getCount()
49 return mItems.get(index); in getItem()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DBaseTimeZoneAdapter.java58 private List<T> mItems; field in BaseTimeZoneAdapter
67 mItems = items; in BaseTimeZoneAdapter()
115 return mItems.size() + getHeaderCount(); in getItemCount()
153 return mItems.get(position - getHeaderCount()); in getDataItem()
282 mItems = (List<T>) results.values; in publishResults()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DBaseTimeZoneAdapter.java58 private List<T> mItems; field in BaseTimeZoneAdapter
67 mItems = items; in BaseTimeZoneAdapter()
115 return mItems.size() + getHeaderCount(); in getItemCount()
153 return mItems.get(position - getHeaderCount()); in getDataItem()
282 mItems = (List<T>) results.values; in publishResults()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetPickActivity.java51 List<PickAdapter.Item> mItems; field in AppWidgetPickActivity
91 mItems = mAppWidgetLoader.getItems(getIntent()); in getItems()
92 return mItems; in getItems()
147 PickAdapter.Item item = mItems.get(which); in onClick()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DMoreOptionsFragment.java59 private Map<String, RecommendationItem> mItems = new HashMap<>(); field in MoreOptionsFragment
128 List<RecommendationItem> itemList = new ArrayList<>(mItems.values()); in onPrintServiceRecommendationsChanged()
146 RecommendationItem item = mItems.get(packageName); in getOrCreateItem()
149 mItems.put(packageName, item); in getOrCreateItem()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java181 final ArrayList<SentenceLevelAdapter.SentenceWordItem> mItems = in splitAndSuggest() local
182 textInfoParams.mItems; in splitAndSuggest()
183 final int itemsSize = mItems.size(); in splitAndSuggest()
186 splitTextInfos[j] = mItems.get(j).mTextInfo; in splitAndSuggest()

12