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

123

/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetListRowEntry.java39 public WidgetListRowEntry(PackageItemInfo pkgItem, ArrayList<WidgetItem> items) { argument
41 this.widgets = items;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DStringConcatenator.java36 public String join(List<String> items) { argument
37 if (items == null) {
41 if (items.isEmpty()) {
45 final int count = items.size();
48 return items.get(0);
52 return mResources.getString(R.string.join_two_items, items.get(0), items.get(1));
55 String result = items.get(count - 2);
59 items.get(i), result);
61 result = mResources.getString(R.string.join_many_items_last, result, items
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestMenu.java36 private SparseArray<TestMenuItem> items = new SparseArray<>(); field in class:TestMenu
69 menu.items = new SparseArray<>();
78 items.put(id, item);
83 return items.get(id);
88 return items.size();
93 return items.valueAt(index);
/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/DocumentsUI/src/com/android/documentsui/sidebar/
H A DRootsAdapter.java45 List<Item> items,
47 super(activity, 0, items);
43 RootsAdapter( Activity activity, List<Item> items, OnDragListener dragListener) argument
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DBreadBot.java108 public void assertItemsPresent(String... items) { argument
113 assertItemsPresent(items, checker);
116 public void assertItemsPresent(String[] items, Predicate<String> predicate) { argument
118 for (String item : items) {
124 Assert.fail("Expected iteams " + Arrays.asList(items)
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
H A DAddWorkspaceItemsTaskTest.java52 private AddWorkspaceItemsTask newTask(ItemInfo... items) { argument
53 return new AddWorkspaceItemsTask(Provider.of(Arrays.asList(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...]
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DPhotosDeletionPreference.java51 public void updatePreferenceText(int items, long bytes) { argument
68 public void onFreeableChanged(int items, long bytes) { argument
74 PhotosDeletionPreference.super.onFreeableChanged(items, bytes);
75 updatePreferenceText(items, bytes);
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DSortedArrayAdapter.java30 * Keeps a set of items sorted
53 * @param items A {@link Collection} of items to be set.
56 final void setInitialItems(List<T> items) { argument
57 List<T> itemsCopy = new ArrayList<>(items);
80 * @param insertToEnd If items are inserted in a more or less sorted fashion,
98 * Adds an extra item to the end of the adapter. The items will not be subjected to the sorted
99 * order or the maximum number of items. One or more extra items can be added to the adapter.
/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/Car/LensPicker/src/com/android/support/car/lenspicker/
H A DResolverAdapter.java88 List<LensPickerItem> items = new ArrayList<>();
117 items.add(new LensPickerItem(displayName,
125 return items;
129 protected void onPostExecute(List<LensPickerItem> items) { argument
130 mItems.addAll(items);
/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/Launcher3/src/com/android/launcher3/model/
H A DBgDataModel.java125 writer.println(prefix + " ---- workspace items ");
129 writer.println(prefix + " ---- appwidget items ");
133 writer.println(prefix + " ---- folder items ");
137 writer.println(prefix + " ---- items id map ");
236 public synchronized void removeItem(Context context, ItemInfo... items) { argument
237 removeItem(context, Arrays.asList(items));
240 public synchronized void removeItem(Context context, Iterable<? extends ItemInfo> items) { argument
241 for (ItemInfo item : items) {
248 // We are deleting a folder which still contains items that
251 "contains items ("
[all...]
/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/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAddressedMediaPlayer.java84 List<MediaSession.QueueItem> items = getNowPlayingList(mediaController);
85 getFolderItemsFilterAttr(bdaddr, reqObj, items, AvrcpConstants.BTRC_SCOPE_NOW_PLAYING,
94 List<MediaSession.QueueItem> items = getNowPlayingList(mediaController);
108 for (MediaSession.QueueItem item : items) {
124 List<MediaSession.QueueItem> items = mediaController.getQueue();
125 if (items != null && !mNowPlayingListUpdated) {
126 mNowPlayingList = items;
129 if (items == null) {
136 items = new ArrayList<MediaSession.QueueItem>();
137 items
268 getQueueSubset( @onNull List<MediaSession.QueueItem> items, long startItem, long endItem) argument
292 getFolderItemsFilterAttr(byte[] bdaddr, AvrcpCmd.FolderItemsCmd folderItemsReqObj, @NonNull List<MediaSession.QueueItem> items, byte scope, long startItem, long endItem, @NonNull MediaController mediaController) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
H A DBrowseTree.java241 void addChildrenLocked(BrowseNode parent, List<BrowseNode> items) { argument
248 for (BrowseNode bn : items) {
/packages/apps/Car/Dialer/src/com/android/car/dialer/
H A DCallLogListingTask.java54 void onLoadComplete(List<CallLogItem> items); argument

Completed in 870 milliseconds

123