Home
last modified time | relevance | path

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

123

/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/Browser/src/com/android/browser/
DSuggestionsAdapter.java138 return mMixedResults.items.get(position); in getItem()
220 protected void onPostExecute(List<SuggestItem> items) { in onPostExecute() argument
221 mSuggestResults = items; in onPostExecute()
333 ArrayList<SuggestItem> items; field in SuggestionsAdapter.SuggestionResults
338 items = new ArrayList<SuggestItem>(24); in SuggestionResults()
349 while ((ix < items.size()) && (item.type >= items.get(ix).type)) in addResult()
351 items.add(ix, item); in addResult()
356 return Math.min((mLandscapeMode ? mLinesLandscape : mLinesPortrait), items.size()); in getLineCount()
361 if (items == null) return null; in toString()
362 if (items.size() == 0) return "[]"; in toString()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DDeliveryReportActivity.java115 List<DeliveryReportItem> items = getReportItems(); in initListAdapter() local
116 if (items == null) { in initListAdapter()
117 items = new ArrayList<DeliveryReportItem>(1); in initListAdapter()
118 items.add(new DeliveryReportItem("", getString(R.string.status_none), null)); in initListAdapter()
121 setListAdapter(new DeliveryReportAdapter(this, items)); in initListAdapter()
185 List<DeliveryReportItem> items = new ArrayList<DeliveryReportItem>(); in getSmsReportItems() local
198 items.add(new DeliveryReportItem( in getSmsReportItems()
204 return items; in getSmsReportItems()
280 List<DeliveryReportItem> items = new ArrayList<DeliveryReportItem>(); in getMmsReportItems() local
284 items.add(new DeliveryReportItem(getString(R.string.recipient_label) + in getMmsReportItems()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
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 …]
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()
/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()
DLocationClustering.java151 private static String generateName(ArrayList<SmallItem> items, in generateName() argument
155 int n = items.size(); in generateName()
157 SmallItem item = items.get(i); in generateName()
189 ArrayList<SmallItem> items = mClusters.get(index); in getCluster() local
190 ArrayList<Path> result = new ArrayList<Path>(items.size()); in getCluster()
191 for (int i = 0, n = items.size(); i < n; i++) { in getCluster()
192 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()
/packages/apps/Launcher2/src/com/android/launcher2/
DAppsCustomizePagedView.java80 items = l; in AsyncTaskPageData()
93 widgetPreviewLoader.recycleBitmap(items.get(i), generatedImages.get(i)); in cleanup()
100 ArrayList<Object> items; field in AsyncTaskPageData
1031 ArrayList<Object> items = new ArrayList<Object>(); in syncAppsPageItems() local
1051 items.add(info); in syncAppsPageItems()
1175 final ArrayList<Object> items = new ArrayList<Object>(); in syncWidgetPageItems() local
1186 items.add(mWidgets.get(i)); in syncWidgetPageItems()
1192 for (int i = 0; i < items.size(); ++i) { in syncWidgetPageItems()
1193 Object rawInfo = items.get(i); in syncWidgetPageItems()
1260 AsyncTaskPageData data = new AsyncTaskPageData(page, items, in syncWidgetPageItems()
[all …]
DInstallShortcutReceiver.java250 final ArrayList<ItemInfo> items = LauncherModel.getItemsInLocalCoordinates(context); in processInstallShortcut() local
259 found = installShortcut(context, data, items, name, intent, si, exists, sp, in processInstallShortcut()
278 private static boolean installShortcut(Context context, Intent data, ArrayList<ItemInfo> items, in installShortcut() argument
282 if (findEmptyCell(context, items, tmpCoordinates, screen)) { in installShortcut()
336 private static boolean findEmptyCell(Context context, ArrayList<ItemInfo> items, int[] xy, in findEmptyCell() argument
344 for (int i = 0; i < items.size(); ++i) { in findEmptyCell()
345 item = items.get(i); in findEmptyCell()
/packages/apps/Gallery2/src/com/android/camera/ui/
DPieRenderer.java370 private void layoutItems(int level, List<PieItem> items) { in layoutItems() argument
375 final int count = items.size(); in layoutItems()
377 for (PieItem item : items) { in layoutItems()
528 List<PieItem> items = getParent().getItems(); in onDraw() local
529 final int count = items.size(); in onDraw()
540 List<PieItem> items = getOpenItem().getItems(); in onDraw() local
541 final int count = items.size(); in onDraw()
543 for (PieItem inner : items) { in onDraw()
776 List<PieItem> items = getOpenItem().getItems(); in getItemPos() local
777 return items.indexOf(target); in getItemPos()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java442 ArrayList<RunningState.MergedItem> items;
444 items = new ArrayList<RunningState.MergedItem>(mMergedItem.mChildren);
445 Collections.sort(items, mState.mBackgroundComparator);
447 items = mMergedItem.mChildren;
449 for (int i=0; i<items.size(); i++) {
450 addDetailsViews(items.get(i), true, false);
452 for (int i=0; i<items.size(); i++) {
453 addDetailsViews(items.get(i), false, true);
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DImportVCardActivity.java778 final String[] items = new String[ImportTypeSelectedListener.IMPORT_TYPE_SIZE]; in getSelectImportTypeDialog() local
779 items[ImportTypeSelectedListener.IMPORT_ONE] = in getSelectImportTypeDialog()
781 items[ImportTypeSelectedListener.IMPORT_MULTIPLE] = in getSelectImportTypeDialog()
783 items[ImportTypeSelectedListener.IMPORT_ALL] = in getSelectImportTypeDialog()
785 builder.setSingleChoiceItems(items, ImportTypeSelectedListener.IMPORT_ONE, listener); in getSelectImportTypeDialog()
799 CharSequence[] items = new CharSequence[size]; in getVCardFileSelectDialog() local
815 items[i] = stringBuilder; in getVCardFileSelectDialog()
818 builder.setMultiChoiceItems(items, (boolean[])null, listener); in getVCardFileSelectDialog()
820 builder.setSingleChoiceItems(items, 0, listener); in getVCardFileSelectDialog()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventFragment.java713 CharSequence[] items; in displayEditWhichDialog() local
721 items = new CharSequence[1]; in displayEditWhichDialog()
723 items = new CharSequence[2]; in displayEditWhichDialog()
727 items = new CharSequence[2]; in displayEditWhichDialog()
729 items = new CharSequence[3]; in displayEditWhichDialog()
731 items[itemIndex++] = mContext.getText(R.string.modify_event); in displayEditWhichDialog()
733 items[itemIndex++] = mContext.getText(R.string.modify_all); in displayEditWhichDialog()
737 items[itemIndex++] = mContext.getText(R.string.modify_all_following); in displayEditWhichDialog()
746 .setItems(items, new OnClickListener() { in displayEditWhichDialog()
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java206 ArrayList<String> items = new ArrayList<String>(); in parseTechLists() local
212 items.add(parser.nextText()); in parseTechLists()
214 int size = items.size(); in parseTechLists()
217 techs = items.toArray(techs); in parseTechLists()
218 items.clear(); in parseTechLists()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDockService.java511 CharSequence[] items = initBtSettings(device, state, firstTime); in createDialog() local
516 ab.setMultiChoiceItems(items, mCheckedItems, mMultiClickListener); in createDialog()
649 CharSequence[] items = new CharSequence[numOfProfiles]; in initBtSettings() local
654 items[0] = getString(R.string.bluetooth_dock_settings_headset); in initBtSettings()
655 items[1] = getString(R.string.bluetooth_dock_settings_a2dp); in initBtSettings()
671 items[0] = getString(R.string.bluetooth_dock_settings_a2dp); in initBtSettings()
681 return items; in initBtSettings()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DEmailSyncAdapter.java301 int items = getEstimate(Eas.FILTER_1_WEEK); in getAutomaticLookback() local
303 if (items > 1050) { in getAutomaticLookback()
306 } else if (items > 350 || (items == -1)) { in getAutomaticLookback()
309 } else if (items > 150) { in getAutomaticLookback()
312 } else if (items > 75) { in getAutomaticLookback()
315 } else if (items < 5) { in getAutomaticLookback()
317 items = getEstimate(Eas.FILTER_ALL); in getAutomaticLookback()
318 if (items >= 0 && items < 100) { in getAutomaticLookback()
/packages/apps/Camera/src/com/android/camera/ui/
DPieRenderer.java287 private void layoutItems(List<PieItem> items, float centerAngle, int inner, in layoutItems() argument
290 float sweep = (float) (PIE_SWEEP - 2 * emptyangle) / items.size(); in layoutItems()
295 for (PieItem item : items) { in layoutItems()
303 for (PieItem item : items) { in layoutItems()
574 List<PieItem> items = (mOpenItem != null) ? mOpenItem.getItems() : mItems; in findItem() local
575 for (PieItem item : items) { in findItem()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java149 private static boolean expandMediaSet(ArrayList<Path> items, MediaSet set, int maxSelection) { in expandMediaSet() argument
152 if (!expandMediaSet(items, set.getSubMediaSet(i), maxSelection)) { in expandMediaSet()
166 && list.size() > (maxSelection - items.size())) { in expandMediaSet()
170 items.add(item.getPath()); in expandMediaSet()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DSingleSpellCheckerPreference.java139 final CharSequence[] items = new CharSequence[size + 1]; in onSubtypeButtonClicked() local
140 items[0] = mRes.getString(R.string.use_system_language_to_select_input_method_subtypes); in onSubtypeButtonClicked()
146 items[i + 1] = label; in onSubtypeButtonClicked()
160 builder.setSingleChoiceItems(items, checkedItem, new AlertDialog.OnClickListener() { in onSubtypeButtonClicked()
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/
DPhoneNumberInteractionTest.java222 List<PhoneItem> items = interaction.mPhoneList; in testShowDisambigDialogForCalling() local
223 assertNotNull(items); in testShowDisambigDialogForCalling()
224 assertEquals(2, items.size()); in testShowDisambigDialogForCalling()
226 PhoneItem item = items.get(0); in testShowDisambigDialogForCalling()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitiesActivity.java162 ArrayList<CityObj> items = new ArrayList<CityObj>(); in loadCitiesDataBase() local
174 items.add(new CityObj(val, null, null)); in loadCitiesDataBase()
177 items.add(city); in loadCitiesDataBase()
182 mAllTheCitiesList = items.toArray(); in loadCitiesDataBase()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSharePopup.java242 ArrayList<HashMap<String, Object>> items = new ArrayList<HashMap<String, Object>>(); in createShareMenu() local
248 items.add(map); in createShareMenu()
255 mShareList.setNumColumns(items.size()); in createShareMenu()
260 SimpleAdapter listItemAdapter = new MySimpleAdapter(mContext, items, in createShareMenu()

123