Searched defs:item (Results 276 - 300 of 479) sorted by relevance

<<11121314151617181920

/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMockPlaylistAgent.java81 public void addPlaylistItem(int index, MediaItem2 item) { argument
84 mItem = item;
89 public void removePlaylistItem(MediaItem2 item) { argument
91 mItem = item;
96 public void replacePlaylistItem(int index, MediaItem2 item) { argument
99 mItem = item;
104 public void skipToPlaylistItem(MediaItem2 item) { argument
106 mItem = item;
/frameworks/support/media/src/main/java/androidx/media/
H A DMediaInterface2.java59 void skipToPlaylistItem(MediaItem2 item); argument
63 void addPlaylistItem(int index, MediaItem2 item); argument
64 void removePlaylistItem(MediaItem2 item); argument
65 void replacePlaylistItem(int index, MediaItem2 item); argument
H A DMediaPlaylistAgent.java63 * Playback of the current playing media item will be repeated.
277 * Returns currently playing media item.
282 * Adds the media item to the playlist at position index. Index equals or greater than
283 * the current playlist size (e.g. {@link Integer#MAX_VALUE}) will add the item at the end of
286 * This will not change the currently playing media item.
291 * @param item the media item you want to add
293 public abstract void addPlaylistItem(int index, @NonNull MediaItem2 item); argument
296 * Removes the media item from the playlist
298 * @param item medi
300 removePlaylistItem(@onNull MediaItem2 item) argument
309 replacePlaylistItem(int index, @NonNull MediaItem2 item) argument
316 skipToPlaylistItem(@onNull MediaItem2 item) argument
[all...]
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
H A DMockPlaylistAgent.java85 public void addPlaylistItem(int index, MediaItem2 item) { argument
88 mItem = item;
93 public void removePlaylistItem(MediaItem2 item) { argument
95 mItem = item;
100 public void replacePlaylistItem(int index, MediaItem2 item) { argument
103 mItem = item;
108 public void skipToPlaylistItem(MediaItem2 item) { argument
110 mItem = item;
/frameworks/support/paging/common/src/main/java/androidx/paging/
H A DItemKeyedDataSource.java30 * Implement a DataSource using ItemKeyedDataSource if you need to use data from item {@code N - 1}
31 * to load item {@code N}. This is common, for example, in sorted database queries where
32 * attributes of the item such just before the next query define how to execute it.
144 * @param position Position of the item at the front of the list. If there are {@code N}
239 final Key getKey(int position, Value item) { argument
240 if (item == null) {
244 return getKey(item);
326 * passed, so if you vary size, ensure that the last item is adjacent to the passed key.
342 * Return a key associated with the given item.
345 * integer ID, you would return {@code item
359 getKey(@onNull Value item) argument
[all...]
H A DPageKeyedDataSource.java176 * @param position Position of the item at the front of the list. If there are {@code N}
312 final Key getKey(int position, Value item) { argument
H A DPositionalDataSource.java33 * positions, and provide a fixed item count. If your data source can't support loading arbitrary
149 * @param position Position of the item at the front of the list. If there are {@code N}
171 * @param position Position of the item at the front of the list. If there are {@code N}
549 Integer getKey(int position, Value item) { argument
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DBrowseFragment.java64 void onMediaItemSelected(MediaBrowserCompat.MediaItem item); argument
97 for (MediaBrowserCompat.MediaItem item : children) {
99 mMediaItems.set(itemIndex, item);
101 mMediaItems.add(item);
195 MediaBrowserCompat.MediaItem item = mBrowserAdapter.getItem(position);
198 listener.onMediaItemSelected(item);
287 MediaBrowserCompat.MediaItem item = getItem(position);
288 holder.mTitleView.setText(item.getDescription().getTitle());
289 holder.mDescriptionView.setText(item.getDescription().getDescription());
290 if (item
[all...]
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java77 // Adds an item at the top-left quarter of the custom view.
80 // Adds an item at the bottom-right quarter of the custom view.
84 // Add an item at the bottom quarter of Item B.
89 // Add an item at the left quarter of Item C.
98 * Simple custom view that draws rectangular items to the screen. Each item
99 * has a checked state that may be toggled by tapping on the item.
144 * Adds an item to the custom view. The item is positioned relative to
147 * @param description The item's description.
159 final CustomItem item
174 setParentItem(CustomItem item, CustomItem parent) argument
188 layoutItem(CustomItem item) argument
[all...]
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
H A DPlayer.java63 public abstract void play(final PlaylistItem item); argument
64 public abstract void seek(final PlaylistItem item); argument
65 public abstract void getStatus(final PlaylistItem item, final boolean update); argument
72 public abstract void enqueue(final PlaylistItem item); argument
H A DRemotePlayer.java126 public void play(final PlaylistItem item) { argument
128 Log.d(TAG, "play: item=" + item);
130 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() {
135 item.setRemoteItemId(itemId);
136 if (item.getPosition() > 0) {
137 seekInternal(item);
139 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) {
157 public void seek(final PlaylistItem item) { argument
158 seekInternal(item);
162 getStatus(final PlaylistItem item, final boolean update) argument
284 enqueue(final PlaylistItem item) argument
359 enqueueInternal(final PlaylistItem item) argument
401 seekInternal(final PlaylistItem item) argument
424 startSession(final PlaylistItem item) argument
[all...]
H A DSampleMediaRouteProvider.java76 * of the currently playing media item
246 public void onItemChanged(PlaylistItem item) {
247 handleStatusChange(item);
387 PlaylistItem item = mSessionManager.add(null, uri, mime, receiver);
389 if (item != null) {
391 result.putString(MediaControlIntent.EXTRA_SESSION_ID, item.getSessionId());
392 result.putString(MediaControlIntent.EXTRA_ITEM_ID, item.getItemId());
394 item.getStatus().asBundle());
410 PlaylistItem item = mSessionManager.remove(iid);
412 if (item !
570 handleStatusChange(PlaylistItem item) argument
[all...]
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/
H A DFancySelectionDemoActivity.java139 public boolean onOptionsItemSelected(MenuItem item) { argument
140 switch (item.getItemId()) {
151 return super.onOptionsItemSelected(item);
190 public void focusItem(ItemDetails<Uri> item) { argument
191 toast(mContext, "Focused item: " + item.getSelectionKey());
220 public boolean onItemActivated(ItemDetails<Uri> item, MotionEvent e) { argument
221 toast(mContext, "Activate item: " + item.getSelectionKey());
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/simple/
H A DSimpleSelectionDemoActivity.java147 public boolean onOptionsItemSelected(MenuItem item) { argument
148 switch (item.getItemId()) {
159 return super.onOptionsItemSelected(item);
200 public boolean onItemActivated(ItemDetails<Long> item, MotionEvent e) { argument
201 toast(mContext, "Activate item: " + item.getSelectionKey());
216 public void focusItem(ItemDetails<Long> item) { argument
217 toast(mContext, "Focused item: " + item.getSelectionKey());
/frameworks/support/samples/SupportContentDemos/src/main/java/com/example/android/support/content/demos/
H A DContentPagerDemoActivity.java88 public boolean onOptionsItemSelected(MenuItem item) { argument
90 switch (item.getItemId()) {
101 // Handle action bar item clicks here. The action bar will
104 int id = item.getItemId();
111 return super.onOptionsItemSelected(item);
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DBrowseFragment.java87 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item,
89 Log.i(TAG, "onItemSelected: " + item + " row " + row);
127 Object item = rowViewHolder == null ? null : rowViewHolder.getSelectedItem();
128 if (item != null) {
129 mBackgroundHelper.setBackground(((PhotoItem) item).getImageResourceId());
221 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument
226 if (((PhotoItem) item).getImageResourceId() == R.drawable.gallery_photo_6) {
231 } else if (((PhotoItem) item).getImageResourceId() == R.drawable.gallery_photo_5) {
235 } else if (((PhotoItem) item).getImageResourceId() == R.drawable.gallery_photo_8) {
239 } else if (((PhotoItem) item)
[all...]
H A DBrowseSupportFragment.java90 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item,
92 Log.i(TAG, "onItemSelected: " + item + " row " + row);
130 Object item = rowViewHolder == null ? null : rowViewHolder.getSelectedItem();
131 if (item != null) {
132 mBackgroundHelper.setBackground(((PhotoItem) item).getImageResourceId());
224 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, argument
229 if (((PhotoItem) item).getImageResourceId() == R.drawable.gallery_photo_6) {
234 } else if (((PhotoItem) item).getImageResourceId() == R.drawable.gallery_photo_5) {
238 } else if (((PhotoItem) item).getImageResourceId() == R.drawable.gallery_photo_8) {
242 } else if (((PhotoItem) item)
[all...]
/frameworks/support/slices/core/src/main/java/androidx/slice/
H A DSlice.java438 public Slice.Builder addItem(SliceItem item) { argument
439 mItems.add(item);
472 SliceItem item = mItems[i];
473 sb.append(item.toString(nextIndent));
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
H A DGridRowView.java269 // In small format we display one text item and prefer titles
281 SliceItem item = iterator.next();
282 if (!item.hasAnyHints(HINT_TITLE, HINT_LARGE)) {
289 SliceItem item = cellItems.get(i);
290 final String itemFormat = item.getFormat();
294 if (textItems != null && !textItems.contains(item)) {
297 if (addItem(item, mTintColor, cellContainer, padding)) {
298 prevItem = item;
302 } else if (imageCount < MAX_CELL_IMAGES && FORMAT_IMAGE.equals(item.getFormat())) {
303 if (addItem(item, mTintColo
344 addItem(SliceItem item, int color, ViewGroup container, int padding) argument
[all...]
H A DListContent.java158 * GridContent or RowContent) and in order (i.e. first item could be a header).
219 // Only add see more if we're at least showing one item and it's not the header
232 public int getHeight(Context context, SliceItem item, boolean isHeader, int index, argument
234 if (item.hasHint(HINT_HORIZONTAL)) {
235 GridContent gc = new GridContent(context, item);
241 RowContent rc = new RowContent(context, item, isHeader);
284 * @return whether this list has an explicit header (i.e. row item without HINT_LIST_ITEM)
298 * The type of template that the provided row item represents.
301 * @param rowItem the row item to determine the template type of.
302 * @param isHeader whether this row item i
[all...]
H A DRowContent.java104 // If we've only got one item that's a slice / action use those items instead
128 final SliceItem item = rowItems.get(i);
129 if (FORMAT_TEXT.equals(item.getFormat())) {
131 && item.hasHint(HINT_TITLE) && !item.hasHint(HINT_SUMMARY)) {
132 mTitleItem = item;
133 } else if (mSubtitleItem == null && !item.hasHint(HINT_SUMMARY)) {
134 mSubtitleItem = item;
135 } else if (mSummaryItem == null && item.hasHint(HINT_SUMMARY)) {
136 mSummaryItem = item;
167 processContent(@onNull SliceItem item, boolean isAction) argument
411 isValidRowContent(SliceItem slice, SliceItem item) argument
[all...]
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
H A DBaseTestActivity.java77 public boolean onOptionsItemSelected(MenuItem item) { argument
78 mOptionsItemSelected = item;
79 return super.onOptionsItemSelected(item);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/
H A DStandaloneActionMode.java140 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
141 return mCallback.onActionItemClicked(this, item);
H A DSupportActionModeWrapper.java170 android.view.MenuItem item) {
172 MenuWrapperFactory.wrapSupportMenuItem(mContext, (SupportMenuItem) item));
169 onActionItemClicked(androidx.appcompat.view.ActionMode mode, android.view.MenuItem item) argument
H A DWindowCallbackWrapper.java108 public boolean onMenuItemSelected(int featureId, MenuItem item) { argument
109 return mWrapped.onMenuItemSelected(featureId, item);

Completed in 184 milliseconds

<<11121314151617181920