Searched refs:item (Results 126 - 150 of 549) sorted by relevance

1234567891011>>

/packages/services/Telephony/src/com/android/phone/
H A DCdmaCallOptions.java69 public boolean onOptionsItemSelected(MenuItem item) { argument
70 final int itemId = item.getItemId();
75 return super.onOptionsItemSelected(item);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestMenu.java87 TestMenuItem item = TestMenuItem.create(id);
88 menu.addMenuItem(id, item);
93 public void addMenuItem(int id, TestMenuItem item) { argument
94 items.put(id, item);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DVCardDetailAdapter.java62 final VCardResourceEntryDestinationItem item = (VCardResourceEntryDestinationItem)
65 v.bind(item.getDisplayItem());
99 final VCardResourceEntry item = (VCardResourceEntry) getGroup(groupPosition);
100 v.bind(item.getDisplayItem());
H A DPlainTextEditText.java65 ClipData.Item item = clip.getItemAt(0);
67 final String url = item.getText().toString();
/packages/apps/Settings/src/com/android/settings/search/
H A DSavedQueryController.java90 public boolean onMenuItemClick(MenuItem item) { argument
91 if (item.getItemId() != MENU_SEARCH_HISTORY) {
99 final MenuItem item =
101 item.setOnMenuItemClickListener(this);
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
H A DSettingsActivity.java51 * settings" for single-SIM, and the actual SIM name for multi-SIM). Clicking on either item
74 public boolean onOptionsItemSelected(final MenuItem item) { argument
75 switch (item.getItemId()) {
80 return super.onOptionsItemSelected(item);
143 final SettingsItem item = getItem(position);
146 final String summaryText = item.getDisplayDetail();
147 titleTextView.setText(item.getDisplayName());
157 switch (item.getType()) {
165 item.getSubId(), item
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DRootsFragment.java88 final Item item = mAdapter.getItem(position);
89 item.open();
98 final Item item = mAdapter.getItem(position);
99 return item.showAppDetails();
169 final Item item = mAdapter.getItem(pos);
172 if (!(item instanceof RootItem) || !((RootItem) item).root.supportsCreate()) {
176 final RootItem rootItem = (RootItem) item;
203 final Item item = getItem(v);
205 assert (item
388 onContextItemSelected(MenuItem item) argument
[all...]
/packages/services/Car/tools/io_analysis/
H A Dcheck_io_trace_all.py101 key = lambda item: item[1], reverse = True))
108 key = lambda item: item[1], reverse = True))
190 key = lambda item: item[1].total_reads + item[1].total_writes, reverse = True))
199 key = lambda item: item[1].total_writes, reverse = True))
208 key = lambda item
[all...]
/packages/apps/Contacts/src/com/android/contacts/drawer/
H A DDrawerAdapter.java69 // [Status bar spacer item]
70 // [Navigation spacer item]
78 // [Navigation spacer item]
100 // Spacer item for dividing sections in drawer
212 throw new IllegalStateException("Unknown drawer item " + drawerItem);
222 private View getPrimaryItemView(PrimaryItem item, View result, ViewGroup parent) { argument
227 titleView.setText(item.text);
229 iconView.setImageResource(item.icon);
232 newBadge.setVisibility(item.contactsView == ContactsView.ASSISTANT && showWelcomeBadge
234 result.setActivated(item
240 getHeaderItemView(HeaderItem item, View result, ViewGroup parent) argument
250 getGroupEntryView(GroupEntryItem item, View result, ViewGroup parent) argument
272 getAccountItemView(AccountEntryItem item, View result, ViewGroup parent) argument
298 getDrawerItemView(BaseDrawerItem item, View result, ViewGroup parent) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DFolderIcon.java75 // The degree to which the item in the back of the stack is scaled [0...1]
292 private boolean willAcceptItem(ItemInfo item) { argument
293 final int itemType = item.itemType;
296 !mFolder.isFull() && item != mInfo && !mInfo.opened);
300 final ItemInfo item = (ItemInfo) dragInfo;
301 return !mFolder.isDestroyed() && willAcceptItem(item);
304 public void addItem(ShortcutInfo item) { argument
305 mInfo.add(item);
330 // This will animate the first item from it's position as an icon into its
331 // position as the first item i
358 onDrop(final ShortcutInfo item, DragView animateView, Rect finalRect, float scaleRelativeToDragLayer, int index, Runnable postAnimationRunnable, DragObject d) argument
627 onAdd(ShortcutInfo item) argument
632 onRemove(ShortcutInfo item) argument
[all...]
/packages/apps/Settings/src/com/android/settings/datausage/
H A DDataUsageList.java339 // Add to a managed user item.
344 // Add to app item.
354 // Add to other user item.
377 AppItem item = knownItems.get(uid);
378 if (item == null) {
379 item = new AppItem(uid);
380 item.total = -1;
381 items.add(item);
382 knownItems.put(item.key, item);
406 startAppDataUsage(AppItem item) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DUserCredentialsSettings.java81 final Credential item = (Credential) view.getTag();
82 if (item != null) {
83 CredentialDialogFragment.show(this, item);
104 public static void show(Fragment target, Credential item) { argument
106 args.putParcelable(ARG_CREDENTIAL, item);
118 final Credential item = (Credential) getArguments().getParcelable(ARG_CREDENTIAL);
123 View contentView = getCredentialView(item, R.layout.user_credential, null,
144 .execute(item);
149 if (item.isSystem()) {
331 public ViewHolder(View item) { argument
346 getCredentialView(Credential item, @LayoutRes int layoutResource, @Nullable View view, ViewGroup parent, boolean expanded) argument
[all...]
H A DSmsDefaultDialog.java143 * SMS app item in the list
167 Item item = mItems.remove(selected);
168 mItems.add(0, item);
191 Item item = ((Item) getItem(position));
195 textView.setText(item.label);
202 imageView.setImageDrawable(item.icon);
209 * @param position the index of the item in the list
210 * @return the package name of selected item
213 Item item = (Item) getItem(position);
214 if (item !
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
H A DCursorToSearchResultConverterTest.java381 ArrayList<Object> item = new ArrayList<>(DatabaseResultLoader.SELECT_COLUMNS.length);
382 item.add(keys[i].hashCode()); // Doc ID
383 item.add(TITLES.get(i)); // Title
384 item.add(SUMMARY); // Summary on
385 item.add(BLANK); // summary off
386 item.add(className); // classname
387 item.add(BLANK); // screen title
388 item.add(null); // Icon
389 item.add(INTENT.getAction()); // Intent action
390 item
[all...]
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
H A DChannelDataManager.java394 for (EitItem item : oldItems) {
395 if (item.getEventId() == 0) {
419 // Start time larger than that of any old item. Insert if no overlap.
455 for (EitItem item : items) {
456 newEitItemMap.put(item.getEventId(), item);
459 EitItem item = newEitItemMap.get(oldItem.getEventId());
460 if (item == null) {
467 if (oldItem.getDescription() != null && item.getDescription() == null
468 && oldItem.getEventId() == item
523 buildContentProviderOperation( ContentProviderOperation.Builder builder, EitItem item, TunerChannel channel) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
H A DNightModeMenuItemController.java54 public void onPrepareOptionsItem(MenuItem item) { argument
58 public boolean onOptionsItemSelected(MenuItem item) { argument
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DSnailSource.java35 mMatcher.add("/snail/item/*", SNAIL_ITEM);
38 // The only path we accept is "/snail/set/id" and "/snail/item/id"
44 String itemPath = "/snail/item/" + mMatcher.getVar(0);
45 SnailItem item =
47 return new SnailAlbum(path, item);
68 return Path.fromString("/snail/item").getChild(id);
H A DLocalAlbum.java134 MediaItem item = loadOrUpdateItem(childPath, cursor,
136 list.add(item);
147 LocalMediaItem item = (LocalMediaItem) dataManager.peekMediaObject(path);
148 if (item == null) {
150 item = new LocalImage(path, app, cursor);
152 item = new LocalVideo(path, app, cursor);
155 item.updateContent(cursor);
157 return item;
212 MediaItem item = loadOrUpdateItem(childPath, cursor, dataManager,
214 result[i] = item;
[all...]
/packages/apps/Stk/src/com/android/stk/
H A DStkMenuActivity.java143 Item item = getSelectedItem(position);
144 if (item == null) {
149 CatLog.d(LOG_TAG, "onListItemClick Id: " + item.id + ", mState: " + mState);
155 sendResponse(StkAppService.RES_ID_MENU_SELECTION, item.id, false);
337 public boolean onOptionsItemSelected(MenuItem item) { argument
341 switch (item.getItemId()) {
353 return super.onOptionsItemSelected(item);
371 public boolean onContextItemSelected(MenuItem item) { argument
374 info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
378 switch (item
[all...]
/packages/apps/Car/Media/src/com/android/car/media/drawer/
H A DMediaBrowserItemsFetcher.java37 * It optionally supports surfacing the Media app's queue as the last item.
133 MediaBrowser.MediaItem item = mItems.get(position);
134 MediaItemsFetcher.populateViewHolderFrom(holder, item.getDescription());
140 if (item.isBrowsable()) {
156 MediaBrowser.MediaItem item = mQueueAvailable && position == mItems.size()
160 mItemClickListener.onMediaItemClicked(item);
165 * entry for the play queue. A play queue media item will have a media id of
H A DMediaQueueItemsFetcher.java76 MediaSession.QueueItem item = mItems.get(position);
77 MediaItemsFetcher.populateViewHolderFrom(holder, item.getDescription());
83 if (item.getQueueId() == getActiveQueueItemId()) {
113 MediaSession.QueueItem item = mItems.get(position);
114 if (item.getQueueId() == activeId) {
146 // Since active playing item may have changed, force re-draw of queue items.
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAnimatedAdapter.java125 // item and start fading in text immediately.
126 LeaveBehindItem item = getLastLeaveBehindItem();
127 if (item != null) {
128 boolean cancelled = item.cancelFadeInTextAnimationIfNotStarted();
130 item.startFadeInTextAnimation(0 /* delay start */);
168 // If true, the last list item will be mFooter, otherwise it's mDefaultFooter.
333 * handle it here, and should instead rely on the cursor refresh to restore the item.
334 * @param item id for the conversation that is being undeleted.
337 private boolean addUndoingItem(final long item) { argument
338 if (getConversationCursor().getUnderlyingPosition(item) >
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DSlideshowPage.java48 public static final String KEY_ITEM_PATH = "media-item-path";
69 public MediaItem item; field in class:SlideshowPage.Slide
72 public Slide(MediaItem item, int index, Bitmap bitmap) { argument
74 this.item = item;
164 mSlideshowView.next(slide.bitmap, slide.item.getRotation());
167 .putExtra(KEY_ITEM_PATH, slide.item.getPath().toString())
263 MediaItem item = findMediaItem(mMediaSet, mLastIndex);
264 for (int i = 0; i < RETRY_COUNT && item == null; ++i) {
267 item
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorDraw.java172 MenuItem item = menu.getItem(i);
173 if (item.getItemId() != R.id.draw_menu_clear) {
174 item.setVisible(false);
180 public boolean onMenuItemClick(MenuItem item) {
189 public boolean onMenuItemClick(MenuItem item) {
190 selectMenuItem(item);
199 protected void selectMenuItem(MenuItem item) { argument
206 switch (item.getItemId()) {
220 if (item.getItemId() != R.id.draw_menu_clear) {
221 mParameterString = item
[all...]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DSideFragment.java185 * directly updates each item. This works around a bug in the base libraries where calling
186 * Adapter.notifyItemsChanged() causes the VerticalGridView to lose track of displayed item
194 protected void notifyItemChanged(Item item) { argument
195 item.notifyUpdated();
237 * Preloads the item views.
300 private void clearRadioGroup(T item) { argument
301 int position = mItems.indexOf(item);
303 if ((item = mItems.get(i)) instanceof RadioButtonItem) {
304 ((RadioButtonItem) item).setChecked(false);
310 if ((item
330 onBind(ItemAdapter adapter, Item item) argument
[all...]

Completed in 560 milliseconds

1234567891011>>