Searched defs:items (Results 1 - 25 of 82) sorted by path

1234

/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 DAvrcpControllerService.java410 * items - number of items to fetch
413 int items) {
436 mAvrcpCtSm.getChildren(parentMediaId, start, items);
441 int items) {
443 Log.d(TAG, "getNowPlayingList device = " + device + " start = " + start + "items = "
444 + items);
467 start, items, id);
473 int items) {
475 Log.d(TAG, "getFolderListing device = " + device + " start = " + start + "items
412 getChildren(BluetoothDevice device, String parentMediaId, int start, int items) argument
440 getNowPlayingList(BluetoothDevice device, String id, int start, int items) argument
472 getFolderList(BluetoothDevice device, String id, int start, int items) argument
503 getPlayerList(BluetoothDevice device, int start, int items) argument
929 handleGetFolderItemsRsp(int status, MediaItem[] items) argument
959 handleGetPlayerItemsRsp(AvrcpPlayer[] items) argument
1048 handleSetBrowsedPlayerRsp(int items, int depth) argument
[all...]
H A DAvrcpControllerStateMachine.java94 // Fetch only 20 items at a time.
96 // Fetch no more than 1000 items per directory.
622 // Fetch the next set of items.
640 // already sent all the items to the client hence simply
1045 void getChildren(String parentMediaId, int start, int items) { argument
1079 msg = obtainMessage(AvrcpControllerStateMachine.MESSAGE_GET_PLAYER_LIST, start, items);
1086 // Issue a request to fetch the items.
1088 items, parentMediaId);
1126 items, bn.getFolderUID());
1158 private void broadcastFolderList(String id, ArrayList<MediaItem> items) { argument
[all...]
H A DBrowseTree.java245 void addChildrenLocked(BrowseNode parent, List<BrowseNode> items) { argument
252 for (BrowseNode bn : items) {
/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/Bluetooth/src/com/android/bluetooth/newavrcp/helpers/
H A DUtil.java207 public static List<Metadata> toMetadataList(List<MediaSession.QueueItem> items) { argument
210 if (items == null) return list;
212 for (int i = 0; i < items.size(); i++) {
213 Metadata data = toMetadata(items.get(i));
215 data.numTracks = "" + items.size();
/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 DCameraFilmstripDataAdapter.java276 public List<AsyncTask> preloadItems(List<Integer> items) { argument
278 for (Integer id : items) {
340 Log.v(TAG, "new photos query return num items: " + newPhotoData.size());
351 // addOrUpdate does not dedupe session items, so we ignore them here
401 // items sorted descending by ID, as such we can just pull the
412 Log.v(TAG, "retrieved photo metadata, number of items: " + photoData.size());
416 Log.v(TAG, "retrieved video metadata, number of items: " + videoData.size());
451 protected Void doInBackground(FilmstripItem... items) { argument
452 for (FilmstripItem item : items) {
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/Dialer/src/com/android/car/dialer/ui/
H A DCallHistoryListItemProvider.java36 List<CallLogListingTask.CallLogItem> items) {
37 for (CallLogListingTask.CallLogItem callLogItem : items) {
35 setCallHistoryListItems(Context context, List<CallLogListingTask.CallLogItem> items) argument
H A DCallLogListingTask.java58 void onLoadComplete(List<CallLogItem> items); argument
H A DContactListItemProvider.java45 public ContactListItemProvider(Context context, List<ContactListFragment.ContactItem> items, argument
48 for (ContactListFragment.ContactItem contactItem : items) {
/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/Car/Media/src/com/android/car/media/
H A DMediaActivity.java142 List<MediaItemMetadata> items) {
144 updateTabs(items);
146 Log.w(TAG, "Received items for a wrong source: " +
439 * Updates the tabs displayed on the app bar, based on the top level items on the browse tree.
441 * If there are only playable items, then we show those items.
442 * If there are not items at all, we show the empty message.
445 * @param items top level items, or null if there was an error trying load those items
447 updateTabs(List<MediaItemMetadata> items) argument
479 customizeTabs(MediaSource mediaSource, List<MediaItemMetadata> items) argument
[all...]
/packages/apps/Car/Media/src/com/android/car/media/browse/
H A DBrowseAdapter.java53 * <p> The actual strategy to group and expand media items has to be supplied by providing an
95 /** Metadata for this items has been correctly loaded */
120 * Callback invoked when a user clicks on a the "more items" button on a section.
136 (mediaSource, parentId, items) -> {
137 if (items != null) {
138 onItemsLoaded(parentId, items);
172 // Browsable items could also be playable
186 * @param strategy a {@link ContentForwardStrategy} that would determine which items would be
244 * Sets media queue items into this adapter.
246 public void setQueue(List<MediaItemMetadata> items, CharSequenc argument
482 addItems(List<MediaItemMetadata> items, BrowseItemViewType viewType, int maxRows) argument
505 addBrowseBlock(MediaItemMetadata header, State state, List<MediaItemMetadata> items, BrowseItemViewType viewType, int maxChildren, boolean showHeader, boolean showMoreFooter) argument
[all...]
/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/Car/libs/car-list/src/com/android/car/list/
H A DSpinnerLineItem.java47 * @param items The List of items in the spinner
54 List<?> items,
57 mArrayAdapter = new ArrayAdapter(context, R.layout.spinner, items);
51 SpinnerLineItem( Context context, AdapterView.OnItemSelectedListener listener, List<?> items, CharSequence title, int selectedPosition) argument
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
H A DMediaSource.java116 * A subscription to a collection of items
120 * This method is called whenever media items are loaded or updated.
122 * @param mediaSource {@link MediaSource} these items belongs to
123 * @param parentId identifier of the items parent.
124 * @param items items loaded, or null if there was an error trying to load them.
127 @Nullable List<MediaItemMetadata> items);
272 * Unsubscribes to changes on the list of media items children of the given parent
126 onChildrenLoaded(MediaSource mediaSource, String parentId, @Nullable List<MediaItemMetadata> items) argument
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupMembersFragment.java343 private List<String> items = new ArrayList<>(); field in class:GroupMembersFragment.ContactDataHelperClass
356 items.add(item);
360 return primaryItemId != null || items.size() == 1;
693 // Update state of menu items (e.g. "Remove contacts") based on number of group members.
/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;
H A DPieRenderer.java77 private List<PieItem> items; field in class:PieRenderer
153 items = new ArrayList<PieItem>();
192 items.add(item);
196 items.remove(item);
200 items.clear();
233 for (PieItem item : items) {
281 layoutItems(items, (float) (Math.PI / 2), inner, outer, gap);
284 private void layoutItems(List<PieItem> items, float centerAngle, int inner, int outer, int gap) { argument
286 float sweep = (PIE_SWEEP - 2 * emptyangle) / items.size();
291 for (PieItem item : items) {
[all...]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
H A DSimulatorSubMenu.java32 List<Item> items = new ArrayList<>(); field in class:SimulatorSubMenu
39 items.add(new Item(title, clickHandler));
44 items.add(new Item(title, actionProvider));
68 for (Item item : items) {

Completed in 447 milliseconds

1234