Home
last modified time | relevance | path

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

12

/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationViewAdapter.java89 private final List<ConversationOverlayItem> mItems; field in ConversationViewAdapter
570 mItems = Lists.newArrayList(); in ConversationViewAdapter()
579 return mItems.size(); in getCount()
584 return mItems.get(position).getType(); in getItemViewType()
594 return mItems.get(position); in getItem()
630 final int pos = mItems.size(); in addItem()
632 mItems.add(item); in addItem()
637 mItems.clear(); in clear()
674 final int pos = mItems.indexOf(blockToRemove); in replaceSuperCollapsedBlock()
679 mItems.remove(pos); in replaceSuperCollapsedBlock()
[all …]
/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/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsAdapter.java50 private final ArrayList<Object> mItems = new ArrayList<Object>(); field in ContactDetailsAdapter
60 mItems.clear(); in setContact()
62 mItems.add(contact); in setContact()
65 mItems.addAll(contact.getNumbers()); in setContact()
76 Object obj = mItems.get(position); in getItemViewType()
86 return mItems.size(); in getItemCount()
113 viewHolder.bind(mContext, (Contact) mItems.get(position)); in onBindViewHolder()
116 viewHolder.bind(mContext, (PhoneNumber) mItems.get(position)); in onBindViewHolder()
/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.java253 private List<T> mItems; field in SideFragment.ItemAdapter
257 mItems = items; in ItemAdapter()
261 mItems = items; in reset()
288 return mItems == null ? 0 : mItems.size(); in getItemCount()
292 return mItems.get(position); in getItem()
296 int position = mItems.indexOf(item); in clearRadioGroup()
298 if ((item = mItems.get(i)) instanceof RadioButtonItem) { in clearRadioGroup()
304 for (int i = position + 1; i < mItems.size(); ++i) { in clearRadioGroup()
305 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/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()
DUserCredentialsSettings.java364 private final List<Credential> mItems; field in UserCredentialsSettings.CredentialAdapter
368 mItems = items; in CredentialAdapter()
380 getCredentialView(mItems.get(position), LAYOUT_RESOURCE, h.itemView, null, false); in onBindViewHolder()
381 h.itemView.setTag(mItems.get(position)); in onBindViewHolder()
387 return mItems.size(); in getItemCount()
/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