Searched defs:item (Results 376 - 400 of 479) sorted by relevance

<<11121314151617181920

/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DAnimatedRecyclerView.java179 public void endAnimation(RecyclerView.ViewHolder item) {
180 super.endAnimation(item);
183 if (anim.mViewHolder == item) {
186 dispatchChangeFinished(item, true);
190 ItemChangeAnimator animator = mRunningAnimations.get(item);
198 if (vh == item) {
200 dispatchChangeFinished(item, true);
342 public boolean onOptionsItemSelected(MenuItem item) { argument
344 return super.onOptionsItemSelected(item);
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
H A DRowsFragmentTest.java118 final int item) {
123 new ListRowPresenter.SelectItemViewHolderTask(item));
318 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item,
990 // select item 2 on row 1
1001 // validate restored activity selected row and selected item
1199 // select item 2 on row 1.
1244 // Select item 1 on row 1 in SampleRowsFragment
1266 // Validate SampleRowsFragment's selected row and selected item
117 selectAndWaitFragmentAnimation(final F_Base fragment, final int row, final int item) argument
H A DRowsSupportFragmentTest.java115 final int item) {
120 new ListRowPresenter.SelectItemViewHolderTask(item));
315 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item,
987 // select item 2 on row 1
998 // validate restored activity selected row and selected item
1196 // select item 2 on row 1.
1241 // Select item 1 on row 1 in SampleRowsSupportFragment
1263 // Validate SampleRowsSupportFragment's selected row and selected item
114 selectAndWaitFragmentAnimation(final F_Base fragment, final int row, final int item) argument
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DListRowPresenterTest.java73 public void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
169 // measure hight should equals item height plus top and bottom paddings
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
H A DMediaPlayerGlue.java484 public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, argument
486 if (item instanceof Action) {
487 mSelectedAction = (Action) item;
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DDetailsOverviewRowPresenter.java36 * Renders a {@link DetailsOverviewRow} to display an overview of an item.
545 protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item) { argument
546 super.onBindRowViewHolder(holder, item);
548 DetailsOverviewRow row = (DetailsOverviewRow) item;
H A DPlaybackTransportRowPresenter.java553 public void onControlSelected(Presenter.ViewHolder itemViewHolder, Object item,
556 if (vh.mSelectedViewHolder != itemViewHolder || vh.mSelectedItem != item) {
558 vh.mSelectedItem = item;
567 public void onControlClicked(Presenter.ViewHolder itemViewHolder, Object item,
571 vh.getOnItemViewClickedListener().onItemClicked(itemViewHolder, item,
574 if (mOnActionClickedListener != null && item instanceof Action) {
575 mOnActionClickedListener.onActionClicked((Action) item);
596 * @param descriptionPresenter Presenter for displaying item details.
685 protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item) { argument
686 super.onBindRowViewHolder(holder, item);
[all...]
H A DRowPresenter.java263 * Sets the listener for item or row selection. RowPresenter fires row selection
264 * event with null item. A subclass of RowPresenter e.g. {@link ListRowPresenter} may
265 * fire a selection event with selected item.
272 * Returns the listener for item or row selection.
279 * Sets the listener for item click event. RowPresenter does nothing but subclass of
280 * RowPresenter may fire item click event if it has the concept of item.
282 * item presenter sets during {@link Presenter#onCreateViewHolder(ViewGroup)}.
289 * Returns the listener for item click event.
295 * Return {@link ViewHolder} of currently selected item insid
599 onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) argument
609 onBindRowViewHolder(ViewHolder vh, Object item) argument
[all...]
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMediaBrowser2Test.java708 public void onBufferingStateChanged(MediaController2 controller, MediaItem2 item, argument
710 mCallbackProxy.onBufferingStateChanged(controller, item, state);
719 public void onCurrentMediaItemChanged(MediaController2 controller, MediaItem2 item) { argument
720 mCallbackProxy.onCurrentMediaItemChanged(controller, item);
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/
H A DMediaBrowserCompatTest.java427 // Remote MediaBrowserService will create a media item with the given MediaMetadataCompat.
502 // Subscribe four pages, one item per page.
547 // Subscribe four pages, one item per page.
684 for (MediaItem item : mSearchCallback.mSearchResults) {
685 assertNotNull(item.getMediaId());
686 assertTrue(item.getMediaId().contains(SEARCH_QUERY));
986 public void onItemLoaded(MediaItem item) { argument
988 mLastMediaItem = item;
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/
H A DMediaBrowserCompatTest.java453 // Subscribe four pages, one item per page.
498 // Subscribe four pages, one item per page.
635 for (MediaItem item : mSearchCallback.mSearchResults) {
636 assertNotNull(item.getMediaId());
637 assertTrue(item.getMediaId().contains(SEARCH_QUERY));
921 public void onItemLoaded(MediaItem item) { argument
923 mLastMediaItem = item;
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DAnimatedRecyclerView.java179 public void endAnimation(RecyclerView.ViewHolder item) {
180 super.endAnimation(item);
183 if (anim.mViewHolder == item) {
186 dispatchChangeFinished(item, true);
190 ItemChangeAnimator animator = mRunningAnimations.get(item);
198 if (vh == item) {
200 dispatchChangeFinished(item, true);
342 public boolean onOptionsItemSelected(MenuItem item) { argument
344 return super.onOptionsItemSelected(item);
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
H A DSliceView.java98 * @param item the specific item within the {@link Slice} that was interacted with.
100 void onSliceAction(@NonNull EventInfo info, @NonNull SliceItem item); argument
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/
H A DSupportMenuInflater.java78 private static final String XML_ITEM = "item";
180 // A menu start tag denotes a submenu for an item
199 // Add the item if it hasn't been added (if the item was
253 "Couldn't resolve menu item onClick handler " + methodName +
261 public boolean onMenuItemClick(MenuItem item) { argument
264 return (Boolean) mMethod.invoke(mRealOwner, item);
266 mMethod.invoke(mRealOwner, item);
285 * Group state is set on items as they are added, allowing an item to
382 * Called when the parser is pointing to an item ta
464 setItem(MenuItem item) argument
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DMenuItemWrapperICS.java270 // Make framework menu item inflate the view
396 public boolean onMenuItemClick(android.view.MenuItem item) { argument
397 return mWrappedObject.onMenuItemClick(getMenuItemWrapper(item));
409 public boolean onMenuItemActionExpand(android.view.MenuItem item) { argument
410 return mWrappedObject.onMenuItemActionExpand(getMenuItemWrapper(item));
414 public boolean onMenuItemActionCollapse(android.view.MenuItem item) { argument
415 return mWrappedObject.onMenuItemActionCollapse(getMenuItemWrapper(item));
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DActionMenuPresenter.java194 public View getItemView(final MenuItemImpl item, View convertView, ViewGroup parent) { argument
195 View actionView = item.getActionView();
196 if (actionView == null || item.hasCollapsibleActionView()) {
197 actionView = super.getItemView(item, convertView, parent);
199 actionView.setVisibility(item.isActionViewExpanded() ? View.GONE : View.VISIBLE);
210 public void bindItemView(MenuItemImpl item, MenuView.ItemView itemView) { argument
211 itemView.initialize(item, 0);
224 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument
225 return item.isActionButton();
293 // This means the submenu was opened from an overflow menu item, indicatin
320 findViewForItem(MenuItem item) argument
[all...]
H A DActionMenuView.java221 // Reset padding for generated menu item views; it may change below
250 // When we have overflow and a single expanded (text) item, we want to try centering it
292 // If this item is already at our small item count, mark it for later.
298 // Add padding to this item such that it centers.
342 // First item gets part of its new padding pushed out of sight.
343 // The last item will get this implicitly from layout.
624 public boolean invokeItem(MenuItemImpl item) { argument
625 return mMenu.performItemAction(item, 0);
760 * Interface responsible for receiving menu item clic
771 onMenuItemClick(MenuItem item) argument
779 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewFocusRecoveryTest.java45 * represent the same item in the adapter. Keeping a focused view visible is up-to-the
136 // waiting for RV's ItemAnimator to finish the animation of the removed item
176 // waiting for RV's ItemAnimator to finish the animation of the removed item
204 // waiting for RV's ItemAnimator to finish the animation of the removed item
237 // waiting for RV's ItemAnimator to finish the animation of the removed item
268 // waiting for RV's ItemAnimator to finish the animation of the removed item
293 Item item = mAdapter.mItems.get(6);
294 item.setFocusable(false);
532 Item item = mAdapter.mItems.get(3);
533 item
879 onBind(Item item) argument
907 onBind(Item item) argument
918 getText(Item item) argument
926 onBind(Item item) argument
928 bindTo(Item item) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DSortedList.java43 * Used by {@link #indexOf(Object)} when he item cannot be found in the list.
118 * Adds the given item to the list. If this is a new item, SortedList calls
121 * If the item already exists in the list and its sorting criteria is not changed, it is
123 * {@link Callback#areItemsTheSame(Object, Object)} to check if two items are the same item
126 * reference to the old item and puts the new item into the backing array even if
129 * If the sorting criteria of the item is changed, SortedList won't be able to find
131 * If you need to update sorting criteria of an item that already exists in the list,
132 * use {@link #updateItemAt(int, Object)}. You can find the index of the item usin
142 add(T item) argument
395 findSameItem(T item, T[] items, int from, int to) argument
541 add(T item, boolean notify) argument
573 remove(T item) argument
592 remove(T item, boolean notify) argument
630 updateItemAt(int index, T item) argument
727 indexOf(T item) argument
742 findIndexOf(T item, T[] mData, int left, int right, int reason) argument
767 linearEqualitySearch(T item, int middle, int left, int right) argument
792 addToData(int index, T item) argument
[all...]
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/
H A DWearableActionDrawerMenu.java44 public void itemChanged(WearableActionDrawerMenuItem item) {
46 if (mItems.get(i) == item) {
75 WearableActionDrawerMenuItem item =
77 mItems.add(item);
79 return item;
458 * Invokes the item by calling the listener if set.
469 void itemChanged(WearableActionDrawerMenuItem item); argument
/frameworks/av/media/libaudioclient/
H A DAudioRecord.cpp138 status_t AudioRecord::getMetrics(MediaAnalyticsItem * &item) argument
145 item = tmp;
/frameworks/av/media/libstagefright/bqhelper/
H A DGraphicBufferSource.cpp556 VideoBuffer item; local
560 if (acquireBuffer_l(&item) != OK) {
567 item = *mAvailableBuffers.begin();
571 int64_t itemTimeUs = item.mTimestampNs / 1000;
658 if (mSkipFramesBeforeNs < 0ll || item.mTimestampNs >= mSkipFramesBeforeNs) {
661 item.mTimestampNs -= mSkipFramesBeforeNs;
664 int64_t timeUs = item.mTimestampNs / 1000;
670 err = submitBuffer_l(item); // this takes shared ownership of the acquired buffer on succeess
675 ALOGV("submitBuffer_l failed, will release bq slot %d", item.mBuffer->getSlot());
681 setLatestBuffer_l(item);
727 setLatestBuffer_l(const VideoBuffer &item) argument
808 submitBuffer_l(const VideoBuffer &item) argument
1059 VideoBuffer item; local
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp107 Media &item = mMediaItems.editItemAt(mMediaItems.size() - 1); local
109 item.mName = name;
112 item.mURI = uri;
116 item.mLanguage = language;
119 item.mFlags = flags;
216 const Media &item = mMediaItems.itemAt(index); local
217 const char *lang = item.mLanguage.empty() ? "und" : item.mLanguage.c_str();
223 format->setInt32("auto", !!(item.mFlags & MediaGroup::FLAG_AUTOSELECT));
224 format->setInt32("default", !!(item
234 const Media &item = mMediaItems.itemAt(i); local
679 Item *item = &mItems.editItemAt(mItems.size() - 1); local
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp523 MediaAnalyticsItem *item = new MediaAnalyticsItem(kAudioPolicy); local
524 if (item != NULL) {
526 item->setCString(kAudioPolicyReason, audioConcurrencyString(concurrency).c_str());
527 item->setInt32(kAudioPolicyStatus, status);
529 item->setCString(kAudioPolicyRqstSrc,
531 item->setCString(kAudioPolicyRqstPkg,
533 item->setInt32(kAudioPolicyRqstSession, client->session);
535 item->setCString(
551 item->setCString(kAudioPolicyActiveSrc,
553 item
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceActivity.java83 * panes. Selecting a header item switches to showing the correct PreferenceFragment for that item.
336 * Description of a single Header item that the user can select.
543 public boolean onOptionsItemSelected(MenuItem item) { argument
544 if (item.getItemId() == android.R.id.home) {
549 return super.onOptionsItemSelected(item);
805 * implementing this and adding at least one item to the list, you
1086 Object item = mAdapter.getItem(position);
1087 if (item instanceof Header) onHeaderClick((Header) item, positio
[all...]

Completed in 485 milliseconds

<<11121314151617181920