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

<<1112131415

/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DSessionManager.java33 * Actual playback of a single media item is abstracted into a Player interface,
88 // If player supports queuing, get status of each item. Player is
92 PlaylistItem item = mPlaylist.get(i);
93 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */);
96 // Otherwise, only need to get status for current item. Player is
114 // append new item with initial status PLAYBACK_STATE_PENDING
115 PlaylistItem item = new PlaylistItem(Integer.toString(mSessionId),
117 mPlaylist.add(item);
120 // if player supports queuing, enqueue the item now
122 mPlayer.enqueue(item);
427 onItemChanged(PlaylistItem item) argument
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DLoaderThrottleSupport.java103 = "vnd.android.cursor.item/vnd.example.api-demos-throttle";
428 @Override public boolean onOptionsItemSelected(MenuItem item) { argument
431 switch (item.getItemId()) {
474 return super.onOptionsItemSelected(item);
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DPlayback.java146 public void play(QueueItem item) { argument
150 String mediaId = item.getDescription().getMediaId();
163 MediaIDHelper.extractMusicIDFromMediaID(item.getDescription().getMediaId()));
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DLocalPlayer.java47 * Handles playback of a single media item using MediaPlayer.
107 public void play(final PlaylistItem item) { argument
109 Log.d(TAG, "play: item=" + item);
112 mSeekToPos = (int)item.getPosition();
114 mMediaPlayer.setDataSource(mContext, item.getUri());
117 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri());
119 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri());
121 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri());
123 Log.e(TAG, "MediaPlayer throws SecurityException, uri=" + item
133 seek(final PlaylistItem item) argument
150 getStatus(final PlaylistItem item, final boolean update) argument
202 enqueue(final PlaylistItem item) argument
[all...]
H A DSessionManager.java33 * Actual playback of a single media item is abstracted into a Player interface,
88 // If player supports queuing, get status of each item. Player is
92 PlaylistItem item = mPlaylist.get(i);
93 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */);
96 // Otherwise, only need to get status for current item. Player is
114 // append new item with initial status PLAYBACK_STATE_PENDING
115 PlaylistItem item = new PlaylistItem(Integer.toString(mSessionId),
117 mPlaylist.add(item);
120 // if player supports queuing, enqueue the item now
122 mPlayer.enqueue(item);
427 onItemChanged(PlaylistItem item) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DAbstractMediaItemPresenter.java37 * Media item data provided for this presenter can implement the interface
40 * item's details provided by the user of this class and a set of optional custom actions.
41 * Each media item's details and actions are separately focusable.
44 * Each media item row provides a view flipper for switching between different views depending on
50 * state of their media item model in case they wish to use different views depending on the
55 * Subclasses must override {@link #onBindMediaDetails} to implement their media item model
71 * Different playback states of a media item
75 * Indicating that the media item is currently neither playing nor paused.
79 * Indicating that the media item is currently paused.
83 * Indicating that the media item i
450 onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) argument
507 onBindMediaDetails(ViewHolder vh, Object item) argument
569 getMediaPlayState(Object item) argument
[all...]
H A DGrid.java24 * To use the Grid, user must implement a Provider to create or remove visible item.
29 * uses size of visible item returned from Provider.createItem() to decide which row
30 * to add a new visible item and may cache the algorithm results. User must call
31 * invalidateItemsAfter() when it detects item size changed to ask Grid to remove cached
44 * the method to create item and remove item.
54 * Create visible item and where the provider should measure it.
56 * @param index 0-based index of the item in provider
57 * @param append True if new item is after last visible item, fals
62 createItem(int index, boolean append, Object[] item) argument
72 addItem(Object item, int index, int length, int rowIndex, int edge) argument
[all...]
H A DPlaybackControlsPresenter.java292 public void onBindViewHolder(Presenter.ViewHolder holder, Object item) { argument
294 BoundData data = (BoundData) item;
303 super.onBindViewHolder(holder, item);
H A DPlaybackControlsRowPresenter.java165 public void onControlSelected(Presenter.ViewHolder itemViewHolder, Object item,
168 if (vh.mSelectedViewHolder != itemViewHolder || vh.mSelectedItem != item) {
170 vh.mSelectedItem = item;
179 public void onControlClicked(Presenter.ViewHolder itemViewHolder, Object item,
183 vh.getOnItemViewClickedListener().onItemClicked(itemViewHolder, item,
186 if (mOnActionClickedListener != null && item instanceof Action) {
187 mOnActionClickedListener.onActionClicked((Action) item);
195 * @param descriptionPresenter Presenter for displaying item details.
360 protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item) { argument
361 super.onBindRowViewHolder(holder, item);
[all...]
H A DVerticalGridPresenter.java117 * @param focusZoomFactor Controls the zoom factor used when an item view is focused. One of
132 * @param focusZoomFactor Controls the zoom factor used when an item view is focused. One of
334 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
335 if (DEBUG) Log.v(TAG, "onBindViewHolder " + item);
337 vh.mItemBridgeAdapter.setAdapter((ObjectAdapter) item);
350 * Sets the item selected listener.
358 * Returns the item selected listener.
365 * Sets the item clicked listener.
367 * item presenter sets during {@link Presenter#onCreateViewHolder(ViewGroup)}.
375 * Returns the item clicke
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarDrawerToggle.java272 * @param item the MenuItem instance representing the selected menu item
275 public boolean onOptionsItemSelected(MenuItem item) { argument
276 if (item != null && item.getItemId() == android.R.id.home && mDrawerIndicatorEnabled) {
H A DAppCompatActivity.java197 public final boolean onMenuItemSelected(int featureId, android.view.MenuItem item) { argument
198 if (super.onMenuItemSelected(featureId, item)) {
203 if (item.getItemId() == android.R.id.home && ab != null &&
/frameworks/support/v7/appcompat/src/android/support/v7/view/
H A DSupportMenuInflater.java72 private static final String XML_ITEM = "item";
174 // A menu start tag denotes a submenu for an item
193 // Add the item if it hasn't been added (if the item was
247 "Couldn't resolve menu item onClick handler " + methodName +
254 public boolean onMenuItemClick(MenuItem item) { argument
257 return (Boolean) mMethod.invoke(mRealOwner, item);
259 mMethod.invoke(mRealOwner, item);
278 * Group state is set on items as they are added, allowing an item to
367 * Called when the parser is pointing to an item ta
428 setItem(MenuItem item) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DSortedList.java40 * Used by {@link #indexOf(Object)} when he item cannot be found in the list.
109 * Adds the given item to the list. If this is a new item, SortedList calls
112 * If the item already exists in the list and its sorting criteria is not changed, it is
114 * {@link Callback#areItemsTheSame(Object, Object)} to check if two items are the same item
117 * reference to the old item and puts the new item into the backing array even if
120 * If the sorting criteria of the item is changed, SortedList won't be able to find
122 * If you need to update sorting criteria of an item that already exists in the list,
123 * use {@link #updateItemAt(int, Object)}. You can find the index of the item usin
133 add(T item) argument
266 findSameItem(T item, T[] items, int from, int to) argument
391 add(T item, boolean notify) argument
423 remove(T item) argument
442 remove(T item, boolean notify) argument
480 updateItemAt(int index, T item) argument
577 indexOf(T item) argument
592 findIndexOf(T item, T[] mData, int left, int right, int reason) argument
617 linearEqualitySearch(T item, int middle, int left, int right) argument
642 addToData(int index, T item) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseWrapContentWithAspectRatioTest.java256 public boolean matches(Object item) { argument
257 if (item == null) {
260 Integer intValue = (Integer) item;
273 public void describeMismatch(Object item, Description description) { argument
274 Integer intValue = (Integer) item;
H A DRecyclerViewFocusRecoveryTest.java44 * represent the same item in the adapter. Keeping a focused view visible is up-to-the
163 Item item = mAdapter.mItems.get(3);
164 item.mType += 2;
206 Item item = mAdapter.mItems.get(4);
208 item.mType += 2;
213 mAdapter.mItems.add(2, item);
501 void onBind(Item item) { argument
502 textView.setText(getText(item));
529 void onBind(Item item) { argument
530 ((TextView) (itemView)).setText(getText(item));
540 getText(Item item) argument
548 onBind(Item item) argument
550 bindTo(Item item) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp89 Item *item = &mItems[i]; local
90 delete[] item->mName;
91 item->mName = NULL;
92 freeItemValue(item);
97 void AMessage::freeItemValue(Item *item) { argument
98 switch (item->mType) {
101 delete item->u.stringValue;
109 if (item->u.refValue != NULL) {
110 item->u.refValue->decStrong(this);
179 // assumes item'
189 Item *item; local
208 const Item *item = &mItems[i]; local
218 const Item *item = &mItems[i]; local
275 Item *item = allocateItem(name); local
287 Item *item = allocateItem(name); local
303 Item *item = allocateItem(name); local
313 Item *item = allocateItem(name); local
323 const Item *item = findItem(name, kTypeString); local
332 const Item *item = findItem(name, kTypeObject); local
341 const Item *item = findItem(name, kTypeBuffer); local
350 const Item *item = findItem(name, kTypeMessage); local
361 const Item *item = findItem(name, kTypeRect); local
539 const Item &item = mItems[i]; local
637 Item *item = &msg->mItems[i]; local
734 const Item &item = mItems[i]; local
805 const Item &item = mItems[i]; local
[all...]
/frameworks/av/media/libstagefright/omx/
H A DGraphicBufferSource.cpp57 const BufferItem& item) {
60 listener->onFrameAvailable(item);
94 const BufferItem& item) {
97 listener->onFrameReplaced(item);
479 BufferItem item; local
480 status_t err = mConsumer->acquireBuffer(&item, 0);
494 releaseBuffer(item.mSlot, item.mFrameNumber,
495 item.mGraphicBuffer, item
56 onFrameAvailable( const BufferItem& item) argument
93 onFrameReplaced( const BufferItem& item) argument
600 BufferItem item; local
694 BufferItem item; local
725 setLatestBuffer_l( const BufferItem &item, bool dropped) argument
784 getTimestamp(const BufferItem &item) argument
852 submitBuffer_l(const BufferItem &item, int cbi) argument
980 BufferItem item; local
[all...]
/frameworks/base/core/java/android/widget/
H A DActionMenuView.java216 // Reset padding for generated menu item views; it may change below
245 // When we have overflow and a single expanded (text) item, we want to try centering it
287 // If this item is already at our small item count, mark it for later.
293 // Add padding to this item such that it centers.
337 // First item gets part of its new padding pushed out of sight.
338 // The last item will get this implicitly from layout.
615 public boolean invokeItem(MenuItemImpl item) { argument
616 return mMenu.performItemAction(item, 0);
743 * Interface responsible for receiving menu item clic
754 onMenuItemClick(MenuItem item) argument
759 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuView.java64 /** Actual number of items (the 'More' view does not count as an item) shown */
84 /** Background of each item (should contain the selected and focused states) */
224 * The bottom rows will each get a leftover item. Rows (indexed at 0)
225 * that are >= this get a leftover item. Note: if there are 0 leftover
235 // Fill the bottom rows with a leftover item each
245 * Checks whether each item's title is fully visible using the current
248 * @return True if the items fit (each item's text is fully visible), false
260 * If there is only one item on this row, increasing the
286 * Creates the item view for the 'More' button which is used to switch to
335 // The item positio
467 invokeItem(MenuItemImpl item) argument
[all...]
/frameworks/base/core/jni/
H A Dcom_google_android_gles_jni_EGLImpl.cpp100 jint item = 0; local
101 _env->GetIntArrayRegion(attrib_list, len-1, 1, &item);
102 return item == EGL_NONE;
/frameworks/base/media/java/android/media/browse/
H A DMediaBrowser.java335 * @param parentId The id of the parent media item whose list of children
358 * @param parentId The id of the parent media item whose list of children
380 * @param parentId The id of the parent media item whose list of children
394 * @param parentId The id of the parent media item whose list of children
410 * @param mediaId The id of the item to retrieve.
438 Parcelable item = resultData.getParcelable(MediaBrowserService.KEY_MEDIA_ITEM);
439 if (!(item instanceof MediaItem)) {
443 cb.onItemLoaded((MediaItem)item);
449 Log.i(TAG, "Remote error getting media item.");
710 * A class with information on a single media item fo
925 onItemLoaded(MediaItem item) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DBaseActivity.java265 public boolean onOptionsItemSelected(MenuItem item) { argument
267 switch (item.getItemId()) {
325 return super.onOptionsItemSelected(item);
719 * If the directory stack only contains one item, this method does nothing.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserSwitcherController.java614 UserRecord item = mUsers.get(0);
615 if (item == null || item.info == null) return null;
616 if (item.isGuest) return context.getString(R.string.guest_nickname);
617 return item.info.name;
668 public String getName(Context context, UserRecord item) { argument
669 if (item.isGuest) {
670 if (item.isCurrent) {
674 item.info == null ? R.string.guest_new_guest : R.string.guest_nickname);
676 } else if (item
683 getDrawable(Context context, UserRecord item) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DNavBarTuner.java185 public boolean onOptionsItemSelected(MenuItem item) { argument
186 if (item.getItemId() == SAVE) {
198 } else if (item.getItemId() == RESET) {
203 return super.onOptionsItemSelected(item);

Completed in 513 milliseconds

<<1112131415