Searched defs:items (Results 26 - 50 of 82) sorted by relevance

1234

/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
H A DResolverAdapter.java91 List<LensPickerItem> items = new ArrayList<>();
128 items.add(new LensPickerItem(displayName,
136 return items;
140 protected void onPostExecute(List<LensPickerItem> items) { argument
141 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.java138 writer.println(prefix + " ---- workspace items ");
142 writer.println(prefix + " ---- appwidget items ");
146 writer.println(prefix + " ---- folder items ");
150 writer.println(prefix + " ---- items id map ");
249 public synchronized void removeItem(Context context, ItemInfo... items) { argument
250 removeItem(context, Arrays.asList(items));
253 public synchronized void removeItem(Context context, Iterable<? extends ItemInfo> items) { argument
254 for (ItemInfo item : items) {
261 // We are deleting a folder which still contains items that
264 "contains items ("
[all...]
H A DModelWriter.java79 // We store hotseat items in canonical form which is this orientation invariant position
159 * Move items in the DB to a new <container, screen, cellX, cellY>. We assume that the
162 public void moveItemsInDatabase(final ArrayList<ItemInfo> items, long container, int screen) { argument
164 int count = items.size();
167 ItemInfo item = items.get(i);
179 mWorkerExecutor.execute(new UpdateItemsRunnable(items, contentValues));
249 * Removes all the items from the database matching {@param matcher}.
256 * Removes the specified items from the database
258 public void deleteItemsFromDatabase(final Iterable<? extends ItemInfo> items) { argument
262 for (ItemInfo item : items) {
314 UpdateItemsRunnable(ArrayList<ItemInfo> items, ArrayList<ContentValues> values) argument
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DSortedArrayAdapter.java32 * Keeps a set of items sorted
57 * @param items A {@link Collection} of items to be set.
60 final void setInitialItems(List<T> items) { argument
61 List<T> itemsCopy = new ArrayList<>(items);
89 * @param insertToEnd If items are inserted in a more or less sorted fashion, sets this
110 * Adds an extra item to the end of the adapter. The items will not be subjected to the sorted
111 * order or the maximum number of items. One or more extra items can be added to the adapter.
/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.java85 List<MediaSession.QueueItem> items = updateNowPlayingList(mediaController);
86 getFolderItemsFilterAttr(bdaddr, reqObj, items, AvrcpConstants.BTRC_SCOPE_NOW_PLAYING,
95 List<MediaSession.QueueItem> items = updateNowPlayingList(mediaController);
110 for (MediaSession.QueueItem item : items) {
128 List<MediaSession.QueueItem> items = mediaController.getQueue();
129 if (items == null) {
155 items = new ArrayList<MediaSession.QueueItem>();
156 items.add(current);
159 if (!items.equals(mNowPlayingList)) {
162 mNowPlayingList = items;
271 getQueueSubset(@onNull List<MediaSession.QueueItem> items, long startItem, long endItem) argument
299 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.java245 void addChildrenLocked(BrowseNode parent, List<BrowseNode> items) { argument
252 for (BrowseNode bn : items) {
/packages/apps/Car/Media/src/com/android/car/media/widgets/
H A DAppBarView.java91 * Normal application state. If we are able to obtain media items from the media
196 * Updates the list of items to show in the application bar tabs.
198 * @param items list of tabs to show, or null if no tabs should be shown.
200 public void setItems(@Nullable List<MediaItemMetadata> items) { argument
203 if (items != null) {
210 for (MediaItemMetadata item : items) {
298 Log.d(TAG, "Updating state: " + state + " (has items: " + hasItems + ")");
/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());
H A DMenuExecutor.java418 public MediaOperation(int operation, ArrayList<Path> items, argument
421 mItems = items;
/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/Launcher3/src/com/android/launcher3/views/
H A DOptionsPopupView.java119 public static void show(Launcher launcher, RectF targetRect, List<OptionItem> items) { argument
124 for (OptionItem item : items) {
/packages/apps/Settings/src/com/android/settings/
H A DActivityPicker.java56 * {@link Intent#EXTRA_INTENT} query, along with any injected items.
62 * Adapter of items that are displayed in this dialog.
102 // Build list adapter of pickable items
103 List<PickAdapter.Item> items = getItems();
104 mAdapter = new PickAdapter(this, items);
138 * Build and return list of items to be shown in dialog. Default
140 * {@link #putIntentItems(Intent, List)} with any injected items from
142 * change the items shown.
146 List<PickAdapter.Item> items = new ArrayList<PickAdapter.Item>();
148 // Add any injected pick items
186 putIntentItems(Intent baseIntent, List<PickAdapter.Item> items) argument
281 PickAdapter(Context context, List<Item> items) argument
[all...]
H A DUserCredentialsSettings.java340 public CredentialAdapter(List<Credential> items, @Nullable View.OnClickListener listener) { argument
341 mItems = items;
/packages/apps/Settings/src/com/android/settings/datausage/
H A DDataUsageList.java339 ArrayList<AppItem> items = new ArrayList<>();
352 // Decide how to collapse items together
364 items, largest);
388 largest = accumulate(collapseKey, knownItems, entry, category, items, largest);
403 items.add(item);
409 Collections.sort(items);
411 for (int i = 0; i < items.size(); i++) {
412 final int percentTotal = largest != 0 ? (int) (items.get(i).total * 100 / largest) : 0;
414 items.get(i), percentTotal, mUidDetailProvider);
446 * @param knownItems collection of known (already existing) items
450 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.java173 private void cleanUpOneChannelGroupItem(List<Item> items) { argument
174 Iterator<Item> iter = items.iterator();
187 private void addItemForGroupBySource(List<Item> items) { argument
188 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_sources)));
199 items.add(new DividerItem(inputLabel));
201 items.add(selectGroupItem);
204 items.add(channelItem);
207 cleanUpOneChannelGroupItem(items);
210 private void addItemForGroupByHdSd(List<Item> items) { argument
211 items
[all...]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
H A DEventDetector.java61 public void onPatDetected(List<PsiData.PatItem> items) {
62 for (PsiData.PatItem i : items) {
77 PsipData.VctItem channel, List<PsipData.EitItem> items) {
97 // If at least a one caption track have been found in EIT items for the given
101 for (PsipData.EitItem item : items) {
112 for (PsipData.EitItem item : items) {
118 eventListener.onEventDetected(tunerChannel, items);
145 // Merges the audio and caption tracks located in PMT items into the tracks of
161 // If at least a one caption track have been found in VCT items for the given
195 // Merges the audio and caption tracks located in PMT items int
244 onEventDetected(TunerChannel channel, List<PsipData.EitItem> items) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/
H A DAvrcpNativeInterface.java131 // anything internally. It just returns the number of items in the root folder.
151 void getFolderItemsResponse(String parentId, List<ListItem> items) { argument
152 d("getFolderItemsResponse: parentId=" + parentId + " items.size=" + items.size());
153 getFolderItemsResponseNative(parentId, items);
H A DMediaPlayerList.java56 * TODO (apanicke): Add non-browsable players as song items to the root folder. Selecting that
102 void run(String parentId, List<ListItem> items); argument
215 // In this case the displayed player is the Bluetooth Player, the number of items is equal
365 // TODO (apanicke): Add timeouts for looking up folder items since media browsers don't
513 // Always have items in the queue
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmClockFragment.java289 * Updates the adapters items, deferring the update until the current animation is finished or
292 * @param items the new list of {@link AlarmItemHolder} to use
296 private void setAdapterItems(final List<AlarmItemHolder> items, final long updateToken) { argument
308 setAdapterItems(items, updateToken);
316 setAdapterItems(items, updateToken);
321 mItemAdapter.setItems(items);
324 final boolean noAlarms = items.isEmpty();
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
H A DPieItem.java43 private List<PieItem> items; field in class:PieItem
63 return items != null;
67 return items;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/
H A DGridModelTest.java268 assertEquals("Unexpected items " + mLastSelection + " in selection " + getSelectionArea(),
275 for (TestHost.Item item: mHost.items) {
313 private List<Item> items = new ArrayList<>(); field in class:GridModelTest.TestHost
338 items.add(new Item(
414 // Account for partial rows by actually tallying up the items in hidden rows.
425 return items.get(adapterPosition).rect;
/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 4570 milliseconds

1234