Searched defs:item (Results 351 - 375 of 479) sorted by relevance

<<11121314151617181920

/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
H A DLargeSliceAdapter.java97 * Sets the actions to display for this slice, this adjusts what's displayed in the header item.
203 public SliceWrapper(SliceItem item, IdGenerator idGen, int mode) { argument
204 mItem = item;
205 mType = getFormat(item);
206 mId = idGen.getId(item, mode);
209 public static int getFormat(SliceItem item) { argument
210 if (SUBTYPE_MESSAGE.equals(item.getSubType())) {
212 if (SliceQuery.findSubtype(item, null, SUBTYPE_SOURCE) != null) {
218 if (item.hasHint(HINT_HORIZONTAL)) {
221 if (!item
240 bind(SliceItem item, int position) argument
289 getId(SliceItem item, int mode) argument
305 genString(SliceItem item) argument
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
H A DActionBarDrawerToggle.java270 * @param item the MenuItem instance representing the selected menu item
273 public boolean onOptionsItemSelected(MenuItem item) { argument
274 if (item != null && item.getItemId() == android.R.id.home && mDrawerIndicatorEnabled) {
H A DAppCompatActivity.java195 public final boolean onMenuItemSelected(int featureId, android.view.MenuItem item) { argument
196 if (super.onMenuItemSelected(featureId, item)) {
201 if (item.getItemId() == android.R.id.home && ab != null &&
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DBaseWrapContentWithAspectRatioTest.java258 public boolean matches(Object item) { argument
259 if (item == null) {
262 Integer intValue = (Integer) item;
275 public void describeMismatch(Object item, Description description) { argument
276 Integer intValue = (Integer) item;
/frameworks/av/packages/MediaComponents/tests/src/com/android/media/
H A DSessionPlaylistAgentTest.java118 public DataSourceDesc onDataSourceMissing(MediaSession2 session, MediaItem2 item) { argument
119 if (item.getMediaId().contains("WITHOUT_DSD")) {
124 .setMediaId(item.getMediaId())
403 // Test add item: [0 (cur), 1, 2, 3, 4] -> [0 (cur), 1, 5, 2, 3, 4]
417 // Remove current item: [0, 1, 5 (cur), 2, 3, 4] -> [0, 1, 2 (cur), 3, 4]
427 // Remove previous item: [0, 1, 2 (cur), 3, 4] -> [0, 2 (cur), 3, 4]
439 // Remove next item: [0, 2 (cur), 3, 4] -> [0, 2 (cur), 4]
451 // Replace item: [0, 2 (cur), 4] -> [0, 2 (cur), 5]
462 // Move last and remove the last item: [0, 2 (cur), 5] -> [0, 2, 5 (cur)] -> [0, 2 (cur)]
477 MediaItem2 item
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DZslProcessor.cpp397 BufferItem &item = mInputBuffer->getBufferItem(); local
398 sp<GraphicBuffer> inputBuffer = item.mGraphicBuffer;
621 BufferItem &item = mInputBuffer->getBufferItem(); local
623 item.mGraphicBuffer);
631 IGraphicBufferProducer::QueueBufferInput input(item.mTimestamp,
632 item.mIsAutoTimestamp, item.mDataSpace, item.mCrop,
633 item.mScalingMode, item
[all...]
/frameworks/base/core/java/android/view/
H A DMenuInflater.java60 private static final String XML_ITEM = "item";
166 // A menu start tag denotes a submenu for an item
186 // Add the item if it hasn't been added (if the item was
214 private void registerMenu(@SuppressWarnings("unused") MenuItem item, argument
246 "Couldn't resolve menu item onClick handler " + methodName +
253 public boolean onMenuItemClick(MenuItem item) { argument
256 return (Boolean) mMethod.invoke(mRealOwner, item);
258 mMethod.invoke(mRealOwner, item);
294 * Group state is set on items as they are added, allowing an item t
476 setItem(MenuItem item) argument
[all...]
H A DMenuItem.java32 * Interface for direct access to a previously created menu item.
49 /** Never show this item as a button in an Action Bar. */
51 /** Show this item as a button in an Action Bar if the system decides there is room for it. */
54 * Always show this item as a button in an Action Bar.
62 * When this item is in the action bar, always show it with a text label even if
68 * This item's action view collapses to a normal menu item.
75 * Interface definition for a callback to be invoked when a menu item is
83 * Called when a menu item has been invoked. This is the first code
87 * @param item Th
92 onMenuItemClick(MenuItem item) argument
111 onMenuItemActionExpand(MenuItem item) argument
119 onMenuItemActionCollapse(MenuItem item) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DActionMenuView.java217 // Reset padding for generated menu item views; it may change below
246 // When we have overflow and a single expanded (text) item, we want to try centering it
288 // If this item is already at our small item count, mark it for later.
294 // Add padding to this item such that it centers.
338 // First item gets part of its new padding pushed out of sight.
339 // The last item will get this implicitly from layout.
616 public boolean invokeItem(MenuItemImpl item) { argument
617 return mMenu.performItemAction(item, 0);
744 * Interface responsible for receiving menu item clic
755 onMenuItemClick(MenuItem item) argument
760 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.cpp98 jint item = 0; local
99 _env->GetIntArrayRegion(attrib_list, len-1, 1, &item);
100 return item == EGL_NONE;
/frameworks/base/media/java/android/media/
H A DMediaController2.java165 * @param item the media item for which buffering is happening.
169 @NonNull MediaItem2 item, @MediaPlayerBase.BuffState int state) { }
190 * Called when the player's currently playing item is changed
196 * @param item new item
201 @NonNull MediaItem2 item) { }
465 * @param extras Optional extras that can include extra information about the media item
486 * @param extras Optional extras that can include extra information about the media item
502 * @param extras Optional extras that can include extra information about the media item
168 onBufferingStateChanged(@onNull MediaController2 controller, @NonNull MediaItem2 item, @MediaPlayerBase.BuffState int state) argument
200 onCurrentMediaItemChanged(@onNull MediaController2 controller, @NonNull MediaItem2 item) argument
754 addPlaylistItem(int index, @NonNull MediaItem2 item) argument
766 removePlaylistItem(@onNull MediaItem2 item) argument
777 replacePlaylistItem(int index, @NonNull MediaItem2 item) argument
816 skipToPlaylistItem(@onNull MediaItem2 item) argument
[all...]
/frameworks/base/media/java/android/media/browse/
H A DMediaBrowser.java356 * @param parentId The id of the parent media item whose list of children
379 * @param parentId The id of the parent media item whose list of children
401 * @param parentId The id of the parent media item whose list of children
415 * @param parentId The id of the parent media item whose list of children
431 * @param mediaId The id of the item to retrieve.
462 Parcelable item = resultData.getParcelable(MediaBrowserService.KEY_MEDIA_ITEM);
463 if (item != null && !(item instanceof MediaItem)) {
467 cb.onItemLoaded((MediaItem)item);
473 Log.i(TAG, "Remote error getting media item
956 onItemLoaded(MediaItem item) argument
[all...]
/frameworks/base/media/java/android/media/update/
H A DMediaSession2Provider.java62 void addPlaylistItem_impl(int index, MediaItem2 item); argument
63 void removePlaylistItem_impl(MediaItem2 item); argument
64 void replacePlaylistItem_impl(int index, MediaItem2 item); argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp667 MediaAnalyticsItem *item = new MediaAnalyticsItem; local
668 item->readFromParcel(reply);
669 jobject mybundle = MediaMetricsJNI::writeMetricsToBundle(env, item, NULL);
672 delete item;
673 item = NULL;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DSelectPrinterActivity.java273 public boolean onOptionsItemSelected(MenuItem item) { argument
274 if (item.getItemId() == android.R.id.home) {
278 return super.onOptionsItemSelected(item);
295 // Add the select menu item if applicable.
304 // Add the forget menu item if applicable.
316 public boolean onContextItemSelected(MenuItem item) { argument
317 switch (item.getItemId()) {
319 PrinterInfo printer = item.getIntent().getParcelableExtra(EXTRA_PRINTER);
324 PrinterId printerId = item.getIntent().getParcelableExtra(EXTRA_PRINTER_ID);
608 // Add "add printer" item t
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationMenuRow.java59 // Notification must be swiped at least this fraction of a single menu item to show menu
64 // menu item to snap back to menu (else it will cover the menu or it'll be dismissed)
435 MenuItem item = mMenuItems.get(i);
438 appName, item.getContentDescription());
439 View menuView = item.getMenuView();
642 private void addMenuView(MenuItem item, ViewGroup parent) { argument
643 View menuView = item.getMenuView();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarWindowView.java509 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { argument
510 return mWrapped.onActionItemClicked(mode, item);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserSwitcherController.java571 UserRecord item = mUsers.get(0);
572 if (item == null || item.info == null) return null;
573 if (item.isGuest) return context.getString(R.string.guest_nickname);
574 return item.info.name;
658 public String getName(Context context, UserRecord item) { argument
659 if (item.isGuest) {
660 if (item.isCurrent) {
664 item.info == null ? R.string.guest_new_guest : R.string.guest_nickname);
666 } else if (item
673 getDrawable(Context context, UserRecord item) argument
[all...]
/frameworks/base/services/core/java/com/android/server/clipboard/
H A DClipboardService.java511 private final void checkItemOwnerLocked(ClipData.Item item, int uid) { argument
512 if (item.getUri() != null) {
513 checkUriOwnerLocked(item.getUri(), uid);
515 Intent intent = item.getIntent();
546 private final void grantItemLocked(ClipData.Item item, int sourceUid, String targetPkg, argument
548 if (item.getUri() != null) {
549 grantUriLocked(item.getUri(), sourceUid, targetPkg, targetUserId);
551 Intent intent = item.getIntent();
602 private final void revokeItemLocked(ClipData.Item item, int sourceUid) { argument
603 if (item
[all...]
/frameworks/base/services/core/java/com/android/server/om/
H A DOverlayManagerSettings.java71 final SettingsItem item =
76 item.setEnabled(true);
87 mItems.add(item);
89 mItems.add(pos, item);
92 mItems.add(item);
210 final SettingsItem item = mItems.get(i);
211 if (item.getUserId() == userId) {
213 Slog.d(TAG, "Removing overlay " + item.mPackageName + " for user " + userId
262 // If the item doesn't exist or is already the lowest, don't change anything.
266 final SettingsItem item
418 persistRow(@onNull final FastXmlSerializer xml, @NonNull final SettingsItem item) argument
[all...]
/frameworks/base/tools/aapt2/format/proto/
H A DProtoDeserialize.cpp630 value = DeserializeItemFromPb(pb_value.item(), src_pool, config, value_pool, files, out_error);
677 entry.value = DeserializeItemFromPb(pb_entry.item(), src_pool, config, value_pool, files,
706 std::unique_ptr<Item> item = DeserializeItemFromPb(pb_entry.item(), src_pool, config, local
708 if (item == nullptr) {
712 DeserializeItemMetaDataFromPb(pb_entry, src_pool, item.get());
713 array->elements.push_back(std::move(item));
723 plural->values[plural_idx] = DeserializeItemFromPb(pb_entry.item(), src_pool, config,
873 LOG(FATAL) << "unknown item: " << (int)pb_item.value_case();
/frameworks/native/services/surfaceflinger/
H A DBufferLayerConsumer.cpp169 BufferItem item; local
174 status_t err = acquireBufferLocked(&item, computeExpectedPresent(dispSync), maxFrameNumber);
187 *autoRefresh = item.mAutoRefresh;
191 *queuedBuffer = item.mQueuedBuffer;
197 int slot = item.mSlot;
198 if (rejecter && rejecter->reject(mSlots[slot].mGraphicBuffer, item)) {
204 err = updateAndReleaseLocked(item, &mPendingRelease);
266 status_t BufferLayerConsumer::acquireBufferLocked(BufferItem* item, nsecs_t presentWhen, argument
268 status_t err = ConsumerBase::acquireBufferLocked(item, presentWhen, maxFrameNumber);
273 // If item
291 updateAndReleaseLocked(const BufferItem& item, PendingRelease* pendingRelease) argument
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DVirtualDisplaySurface.cpp471 BufferItem item; local
472 result = acquireBufferLocked(&item, 0);
475 VDS_LOGW_IF(item.mSlot != sslot,
477 item.mSlot, sslot);
478 mFbProducerSlot = mapSource2ProducerSlot(SOURCE_SCRATCH, item.mSlot);
479 mFbFence = mSlots[item.mSlot].mFence;
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestBuffer.cpp59 void onFrameAvailable(const BufferItem& /*item*/)
61 BufferItem item; local
63 if (mConsumer->acquireBuffer(&item, 0))
65 if (mConsumer->detachBuffer(item.mSlot))
68 mCallback(item.mFence->dup(), mCallbackArgs);

Completed in 2996 milliseconds

<<11121314151617181920