Searched defs:items (Results 1 - 25 of 52) sorted by relevance

123

/packages/apps/Stk/src/com/android/stk/
H A DStkMenuAdapter.java32 * Icon list view adapter to show the list of STK items.
38 public StkMenuAdapter(Context context, List<Item> items, argument
40 super(context, 0, items);
/packages/services/Car/car-lib/src/android/car/app/menu/
H A DSubscriptionCallbacks.java23 * The callbacks to receive menu items updates.
27 * Called when the items with the specified parent id are loaded.
29 * @param items The list of menu items. To retrieve the content of the item, use the keys
32 public abstract void onChildrenLoaded(String parentId, List<Bundle> items); argument
35 * Called when there is an error loading the items with the specified id.
40 * Called when the car menu items with the specified parent id are changed.
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DPhotosDeletionPreference.java50 public void updatePreferenceText(int items, long bytes) { argument
52 setTitle(context.getString(R.string.deletion_helper_photos_title, items));
58 public void onFreeableChanged(int items, long bytes) { argument
65 PhotosDeletionPreference.super.onFreeableChanged(items, bytes);
66 updatePreferenceText(items, bytes);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
H A DPickerColumn.java29 public PickerColumn(String[] items) { argument
30 if (items == null) {
31 throw new IllegalArgumentException("items for PickerColumn cannot be null");
33 mItems = items;
/packages/apps/Settings/src/com/android/settings/
H A DAppWidgetLoader.java56 void putCustomAppWidgets(List<Item> items, Intent intent) { argument
105 if (LOGD) Log.d(TAG, "Using " + customInfo.size() + " custom items");
106 putAppWidgetItems(customInfo, customExtras, items, 0, true);
115 List<Bundle> customExtras, List<Item> items, int categoryFilter,
130 items.add(item);
140 * Build and return list of items to be shown in dialog. This will mix both
148 List<Item> items = new ArrayList<Item>();
154 putInstalledAppWidgets(items, categoryFilter);
156 // Sort all items together by label
158 putCustomAppWidgets(items, inten
114 putAppWidgetItems(List<AppWidgetProviderInfo> appWidgets, List<Bundle> customExtras, List<Item> items, int categoryFilter, boolean ignoreFilter) argument
178 putInstalledAppWidgets(List<Item> items, int categoryFilter) argument
[all...]
H A DActivityPicker.java56 * {@link Intent#EXTRA_INTENT} query, along with any injected items.
62 * Adapter of items that are displayed in this dialog.
98 // Build list adapter of pickable items
99 List<PickAdapter.Item> items = getItems();
100 mAdapter = new PickAdapter(this, items);
134 * Build and return list of items to be shown in dialog. Default
136 * {@link #putIntentItems(Intent, List)} with any injected items from
138 * change the items shown.
142 List<PickAdapter.Item> items = new ArrayList<PickAdapter.Item>();
144 // Add any injected pick items
182 putIntentItems(Intent baseIntent, List<PickAdapter.Item> items) argument
277 PickAdapter(Context context, List<Item> items) argument
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DSortedArrayAdapter.java29 * Keeps a set of {@code T} items sorted, but leaving a {@link EmptyHolder}
30 * if there is no items.
81 * Returns {@code true} if the list of items is empty.
105 * @param items A {@link Collection} of items to insert.
107 final void addAll(Collection<T> items) { argument
108 mItems.addAll(items);
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DComparableTester.java52 public final ComparableTester<T> addEquivalentGroup(T... items) { argument
53 listOfGroups.add(Arrays.asList(items));
H A DComparatorTester.java65 public final ComparatorTester<T> addComparableGroup(T... items) { argument
66 listOfGroups.add(Arrays.asList(items));
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarDebug.java81 // items is the list of items to display in the list.
82 List<Map<String, String>> items = new ArrayList<Map<String, String>>();
89 addItem(items, mActivity.getString(R.string.calendar_info_error), "");
131 addItem(items, displayName, text);
137 addItem(items, mActivity.getString(R.string.calendar_info_error), e.toString());
144 if (items.size() == 0) {
145 addItem(items, mActivity.getString(R.string.calendar_info_no_calendars), "");
147 return items;
153 * @param items Th
158 onPostExecute(List<Map<String, String>> items) argument
186 addItem(List<Map<String, String>> items, String title, String text) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventViewUtils.java225 ArrayList<LinearLayout> items, ArrayList<Integer> minuteValues,
230 if (items.size() >= maxReminders) {
274 items.add(reminderItem);
224 addReminder(Activity activity, View view, View.OnClickListener listener, ArrayList<LinearLayout> items, ArrayList<Integer> minuteValues, ArrayList<String> minuteLabels, ArrayList<Integer> methodValues, ArrayList<String> methodLabels, ReminderEntry newReminder, int maxReminders, OnItemSelectedListener onItemSelected) argument
/packages/apps/Camera2/src/com/android/camera/data/
H A DFilmstripDataAdapterProxy.java122 public List<AsyncTask> preloadItems(List<Integer> items) { argument
123 return mAdapter.preloadItems(items);
/packages/apps/Camera2/src/com/android/camera/widget/
H A DPreloader.java15 * @param <T> The type of items this class preload.
16 * @param <Y> The type of load tokens that can be used to cancel loads for the items this class
23 * Implemented by the source for items that should be preloaded.
32 * Returns the total number of items in the source.
38 * Responsible for the loading of items.
42 * Initiates a load for the specified items and returns a list of 0 or more load tokens that
43 * can be used to cancel the loads for the given items. Should preload the items in the list
46 public List<Y> preloadItems(List<T> items); argument
58 * we don't preload the same items repeatedl
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocationClustering.java70 // Separate items to two sets: with or without lat-long.
103 // cluster the items with lat-long
150 private static String generateName(ArrayList<SmallItem> items, argument
154 int n = items.size();
156 SmallItem item = items.get(i);
188 ArrayList<SmallItem> items = mClusters.get(index);
189 ArrayList<Path> result = new ArrayList<Path>(items.size());
190 for (int i = 0, n = items.size(); i < n; i++) {
191 result.add(items.get(i).path);
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
H A DEventDetector.java62 public void onPatDetected(List<PatItem> items) {
63 for (PatItem i : items) {
74 public void onEitItemParsed(VctItem channel, List<EitItem> items) {
89 // If at least a one caption track have been found in EIT items for the given channel,
92 for (EitItem item : items) {
103 for (EitItem item : items) {
108 mEventListener.onEventDetected(tunerChannel, items);
124 // Merges the audio and caption tracks located in PMT items into the tracks of the given
139 // If at least a one caption track have been found in VCT items for the given channel,
179 * @param items
181 onEventDetected(TunerChannel channel, List<EitItem> items) argument
[all...]
H A DChannelDataManager.java206 public void notifyEventDetected(TunerChannel channel, List<EitItem> items) { argument
207 mHandler.obtainMessage(MSG_HANDLE_EVENTS, new ChannelEvent(channel, items)).sendToTarget();
316 private void handleEvents(TunerChannel channel, List<EitItem> items) { argument
335 for (EitItem item : items) {
344 items.remove(item);
383 for (EitItem item : items) {
491 List<EitItem> items = new ArrayList<>();
511 items.add(eitItem);
515 return items;
/packages/apps/UnifiedEmail/src/com/android/mail/
H A DSenderInfoLoader.java266 private static String[] toStringArray(Collection<String> items) { argument
267 return items.toArray(new String[items.size()]);
270 private static void appendQuestionMarks(StringBuilder query, Iterable<?> items) { argument
272 for (Object item : items) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
H A DSentenceLevelAdapter.java71 public SentenceTextInfoParams(TextInfo ti, ArrayList<SentenceWordItem> items) { argument
73 mItems = items;
74 mSize = items.size();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSelectionManager.java60 // selected items is down to zero.
150 private static boolean expandMediaSet(ArrayList<Path> items, MediaSet set, int maxSelection) { argument
153 if (!expandMediaSet(items, set.getSubMediaSet(i), maxSelection)) {
167 && list.size() > (maxSelection - items.size())) {
171 items.add(item.getPath());
/packages/apps/Launcher2/src/com/android/launcher2/
H A DInstallShortcutReceiver.java241 // Lock on the app so that we don't try and get the items while apps are being added
250 final ArrayList<ItemInfo> items = LauncherModel.getItemsInLocalCoordinates(context);
259 found = installShortcut(context, data, items, name, intent, si, exists, sp,
278 private static boolean installShortcut(Context context, Intent data, ArrayList<ItemInfo> items, argument
282 if (findEmptyCell(context, items, tmpCoordinates, screen)) {
336 private static boolean findEmptyCell(Context context, ArrayList<ItemInfo> items, int[] xy, argument
344 for (int i = 0; i < items.size(); ++i) {
345 item = items.get(i);
/packages/apps/Settings/src/com/android/settings/datausage/
H A DDataUsageList.java316 ArrayList<AppItem> items = new ArrayList<>();
329 // Decide how to collapse items together
341 items, largest);
365 largest = accumulate(collapseKey, knownItems, entry, category, items, largest);
380 items.add(item);
386 Collections.sort(items);
388 for (int i = 0; i < items.size(); i++) {
389 final int percentTotal = largest != 0 ? (int) (items.get(i).total * 100 / largest) : 0;
391 items.get(i), percentTotal, mUidDetailProvider);
416 * @param knownItems collection of known (already existing) items
420 accumulate(int collapseKey, final SparseArray<AppItem> knownItems, NetworkStats.Entry entry, int itemCategory, ArrayList<AppItem> items, long largest) argument
[all...]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DCustomizeChannelListFragment.java161 private void cleanUpOneChannelGroupItem(List<Item> items) { argument
162 Iterator<Item> iter = items.iterator();
176 private void addItemForGroupBySource(List<Item> items) { argument
177 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_sources)));
188 items.add(new DividerItem(inputLabel));
190 items.add(selectGroupItem);
193 items.add(channelItem);
196 cleanUpOneChannelGroupItem(items);
199 private void addItemForGroupByHdSd(List<Item> items) { argument
200 items
[all...]
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
H A DRoutineWatchEvaluatorTest.java262 private static <T> void assertInOrder(T... items) { argument
263 TreeSet<T> copy = new TreeSet<>(Arrays.asList(items));
264 MoreAsserts.assertContentsInOrder(copy, items);
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
H A DDrawerApiAdapter.java152 // Disable all menu items if it is under unavailable category case.
154 // which makes some items are gray out, the others are not.
194 public synchronized void setItems(List<Bundle> items, boolean isCapped) { argument
196 mItems = items;
206 for (Bundle bundle : items) {
210 if (items.size() != 1) {
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DAlbumDataLoader.java241 public ArrayList<MediaItem> items; field in class:AlbumDataLoader.UpdateInfo
293 ArrayList<MediaItem> items = info.items;
296 if ((items == null) || items.isEmpty()) {
304 int end = Math.min(info.reloadStart + items.size(), mContentEnd);
309 MediaItem updateItem = items.get(i - info.reloadStart);
380 info.items = mSource.getMediaItem(info.reloadStart, info.reloadCount);

Completed in 649 milliseconds

123