Home
last modified time | relevance | path

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

/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/apps/Dialer/tests/src/com/android/dialer/util/
DDialerUtilsTest.java40 private ArrayList<CharSequence> mItems = Lists.newArrayList(); field in DialerUtilsTest
53 mItems.clear(); in testJoinEmpty()
54 CharSequence joined = DialerUtils.join(mResources, mItems); in testJoinEmpty()
62 mItems.clear(); in testJoinOne()
63 mItems.add("Hello"); in testJoinOne()
64 CharSequence joined = DialerUtils.join(mResources, mItems); in testJoinOne()
72 mItems.clear(); in testJoinTwo()
73 mItems.add("Hello"); in testJoinTwo()
74 mItems.add("there"); in testJoinTwo()
75 CharSequence joined = DialerUtils.join(mResources, mItems); in testJoinTwo()
/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()
DMenuExecutor.java414 private final ArrayList<Path> mItems; field in MenuExecutor.MediaOperation
421 mItems = items; in MediaOperation()
432 for (Path id : mItems) { in run()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPickerColumn.java27 private final String[] mItems; field in PickerColumn
33 mItems = items; in PickerColumn()
38 mItems = new String[count]; in PickerColumn()
39 source.readStringArray(mItems); in PickerColumn()
43 return mItems; in getItems()
67 dest.writeInt(mItems.length); in writeToParcel()
68 dest.writeStringArray(mItems); in writeToParcel()
75 for (String s : mItems) { in toString()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningProcessesView.java217 final ArrayList<RunningState.MergedItem> mItems field in RunningProcessesView.ServiceListAdapter
247 mItems.clear(); in refreshItems()
249 mItems.clear(); in refreshItems()
250 mItems.addAll(newItems); in refreshItems()
252 Collections.sort(mItems, mState.mBackgroundComparator); in refreshItems()
263 return mItems.size(); in getCount()
268 return mState.hasData() && mItems.size() == 0; in isEmpty()
272 return mItems.get(position); in getItem()
276 return mItems.get(position).hashCode(); in getItemId()
284 return !mItems.get(position).mIsProcess; in isEnabled()
[all …]
DRunningState.java212 ArrayList<BaseItem> mItems = new ArrayList<BaseItem>(); field in RunningState
1242 mItems = newItems; in update()
1408 return mItems; in getCurrentItems()
/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/Browser/src/com/android/browser/view/
DPieMenu.java90 private List<PieItem> mItems; field in PieMenu
138 mItems = new ArrayList<PieItem>(); in init()
172 mItems.add(item); in addItem()
179 mItems.remove(item); in removeItem()
183 mItems.clear(); in clearItems()
203 mCurrentItems = mItems; in show()
331 if (!mItems.contains(item)) { in drawItem()
535 mCurrentItems = new ArrayList<PieItem>(mItems.size()); in openSub()
537 while (i < mItems.size()) { in openSub()
538 if (mItems.get(i) == item) { in openSub()
[all …]
DPieItem.java41 private List<PieItem> mItems; field in PieItem
59 return mItems != null; in hasItems()
63 return mItems; in getItems()
67 if (mItems == null) { in addItem()
68 mItems = new ArrayList<PieItem>(); in addItem()
70 mItems.add(item); in addItem()
/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/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/apps/Camera/src/com/android/camera/ui/
DPieItem.java47 private List<PieItem> mItems; field in PieItem
68 return mItems != null; in hasItems()
72 return mItems; in getItems()
76 if (mItems == null) { in addItem()
77 mItems = new ArrayList<PieItem>(); in addItem()
79 mItems.add(item); in addItem()
DPieRenderer.java84 private List<PieItem> mItems; field in PieRenderer
156 mItems = new ArrayList<PieItem>(); in init()
195 mItems.add(item); in addItem()
199 mItems.remove(item); in removeItem()
203 mItems.clear(); in clearItems()
235 for (PieItem item : mItems) { in show()
284 layoutItems(mItems, (float) (Math.PI / 2), inner, outer, gap); in layoutPie()
387 for (PieItem item : mItems) { in onDraw()
574 List<PieItem> items = (mOpenItem != null) ? mOpenItem.getItems() : mItems; in findItem()
/packages/apps/Launcher2/src/com/android/launcher2/
DAddAdapter.java39 private final ArrayList<ListItem> mItems = new ArrayList<ListItem>(); field in AddAdapter
73 mItems.add(new ListItem(res, R.string.group_wallpapers, in AddAdapter()
93 return mItems.size(); in getCount()
97 return mItems.get(position); in getItem()
/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()
DDataUsageSummary.java1667 private ArrayList<AppItem> mItems = Lists.newArrayList(); field in DataUsageSummary.DataUsageAdapter
1680 mItems.clear(); in bindStats()
1743 mItems.add(item); in bindStats()
1749 if (!mItems.isEmpty()) { in bindStats()
1752 mItems.add(title); in bindStats()
1755 Collections.sort(mItems); in bindStats()
1776 mItems.add(item); in accumulate()
1788 return mItems.size(); in getCount()
1793 return mItems.get(position); in getItem()
1798 return mItems.get(position).key; in getItemId()
[all …]
DActivityPicker.java272 private final List<Item> mItems; field in ActivityPicker.PickAdapter
279 mItems = items; in PickAdapter()
286 return mItems.size(); in getCount()
293 return mItems.get(position); in getItem()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java178 final ArrayList<SentenceLevelAdapter.SentenceWordItem> mItems = in splitAndSuggest() local
179 textInfoParams.mItems; in splitAndSuggest()
180 final int itemsSize = mItems.size(); in splitAndSuggest()
183 splitTextInfos[j] = mItems.get(j).mTextInfo; in splitAndSuggest()
DSentenceLevelAdapter.java67 final ArrayList<SentenceWordItem> mItems; field in SentenceLevelAdapter.SentenceTextInfoParams
71 mItems = items; in SentenceTextInfoParams()
179 final SentenceWordItem item = originalTextInfoParams.mItems.get(i);