Searched refs:item (Results 26 - 50 of 549) sorted by relevance

1234567891011>>

/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAlphabeticalAppsList.java77 * Info about a particular adapter item (can be either section or app)
81 // The index of this adapter item in the list
83 // The type of this item
90 // The row that this item shows up on
101 AdapterItem item = asApp(pos, sectionName, appInfo, appIndex);
102 item.viewType = AllAppsGridAdapter.VIEW_TYPE_PREDICTION_ICON;
103 return item;
108 AdapterItem item = new AdapterItem();
109 item.viewType = AllAppsGridAdapter.VIEW_TYPE_ICON;
110 item
[all...]
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DLicenseActivity.java52 public boolean onOptionsItemSelected(MenuItem item) { argument
53 if (item.getItemId() == android.R.id.home) {
57 return super.onOptionsItemSelected(item);
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
H A DOptionsMenuManager.java29 * Activity scoped singleton that manages action bar menus. Each menu item is controlled by a
72 * Handles click action for a menu item.
76 public boolean onOptionsItemSelected(MenuItem item) { argument
77 final int itemId = item.getItemId();
80 && controller.onOptionsItemSelected(item)) {
H A DNavUpMenuItemController.java25 * menu item because it's not inflated through menu.xml, and has its own predefined id.
46 public void onPrepareOptionsItem(MenuItem item) { argument
50 public boolean onOptionsItemSelected(MenuItem item) { argument
/packages/apps/Gallery2/src/com/android/photos/
H A DAlbumSetFragment.java96 Cursor item = (Cursor) getItemAtPosition(position);
100 mLoaderCompatShim.getPathForItem(item).toString());
102 item.getString(AlbumSetLoader.INDEX_TITLE));
107 public int getItemMediaType(Object item) { argument
112 public int getItemSupportedOperations(Object item) { argument
113 return ((Cursor) item).getInt(AlbumSetLoader.INDEX_SUPPORTED_OPERATIONS);
117 public ArrayList<Uri> getSubItemUrisForItem(Object item) { argument
118 return mLoaderCompatShim.urisForSubItems((Cursor) item);
127 public Uri getItemUri(Object item) { argument
128 return mLoaderCompatShim.uriForItem((Cursor) item);
132 getPathForItem(Object item) argument
[all...]
H A DPhotoSetFragment.java74 Cursor item = (Cursor) getItemAtPosition(position);
75 Uri uri = mLoaderCompatShim.uriForItem(item);
102 public int getItemMediaType(Object item) { argument
103 return ((Cursor) item).getInt(PhotoSetLoader.INDEX_MEDIA_TYPE);
107 public int getItemSupportedOperations(Object item) { argument
108 return ((Cursor) item).getInt(PhotoSetLoader.INDEX_SUPPORTED_OPERATIONS);
113 public ArrayList<Uri> getSubItemUrisForItem(Object item) { argument
115 mSubItemUriTemp.add(mLoaderCompatShim.uriForItem((Cursor) item));
125 public Uri getItemUri(Object item) { argument
126 return mLoaderCompatShim.uriForItem((Cursor) item);
130 getPathForItem(Object item) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DBlockedParticipantsActivity.java45 public boolean onOptionsItemSelected(final MenuItem item) { argument
46 switch (item.getItemId()) {
54 return super.onOptionsItemSelected(item);
H A DVCardDetailActivity.java48 public boolean onOptionsItemSelected(final MenuItem item) { argument
49 switch (item.getItemId()) {
57 return super.onOptionsItemSelected(item);
H A DPagingAwareViewPager.java37 public void setCurrentItem(int item, boolean smoothScroll) { argument
38 super.setCurrentItem(getRtlPosition(item), smoothScroll);
42 public void setCurrentItem(int item) { argument
43 super.setCurrentItem(getRtlPosition(item));
/packages/services/Telecomm/src/com/android/server/telecom/settings/
H A DEnableAccountPreferenceActivity.java46 public boolean onOptionsItemSelected(MenuItem item) { argument
47 switch (item.getItemId()) {
52 return super.onOptionsItemSelected(item);
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DDataAction.java50 * Description of a specific {@link Data#_ID} item, with style information
78 public DataAction(Context context, DataItem item, DataKind kind) { argument
81 mMimeType = item.getMimeType();
82 mTimesUsed = item.getTimesUsed();
83 mLastTimeUsed = item.getLastTimeUsed();
87 if (item.hasKindTypeColumn(kind)) {
88 final int typeValue = item.getKindTypeColumn(kind);
98 mSubtitle = item.getContentValues().getAsString(type.customColumn);
105 mIsPrimary = item.isPrimary();
106 mIsSuperPrimary = item
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DRootsAdapter.java78 final Item item = getItem(position);
79 final View view = item.getView(convertView, parent);
81 if (item.isRoot()) {
103 final Item item = getItem(position);
104 if (item instanceof RootItem || item instanceof AppItem) {
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DPhotoDataAdapter.java137 // is used to determine the item movement.
159 public void onPhotoChanged(int index, Path item); argument
167 // The path of the current viewing item will be stored in mItemPath.
169 // can find the item. If mItemPath is null, then we use the mCurrentIndex to
230 MediaItem item = getItemInternal(index);
231 if (item == null) return MediaObject.INVALID_DATA_VERSION;
232 return item.getDataVersion();
236 MediaItem item = getItemInternal(index);
237 if (item == null) return null;
238 return item
694 ScreenNailJob(MediaItem item) argument
724 FullImageJob(MediaItem item) argument
763 newPlaceholderScreenNail(MediaItem item) argument
856 FullImageListener(MediaItem item) argument
878 ScreenNailListener(MediaItem item) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/filmstrip/
H A DFilmstripDataAdapter.java62 * Called when a new data item is inserted.
65 * @param item The inserted data.
67 public void onFilmstripItemInserted(int index, FilmstripItem item); argument
70 * Called when a data item is removed.
73 * @param item The data.
75 public void onFilmstripItemRemoved(int index, FilmstripItem item); argument
/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DLoaderCursor.java207 * Make an ShortcutInfo object for a restored application or shortcut item that points
296 * Returns a {@link ContentWriter} which can be used to update the current item.
304 * Marks the current item for removal
313 * @return true is any item was removed.
327 * Marks the current item as restored
352 * Returns true is the item is on workspace or hotseat
376 * Adds the {@param info} to {@param dataModel} if it does not overlap with any other item,
390 protected boolean checkItemPlacement(ItemInfo item, ArrayList<Long> workspaceScreens) { argument
391 long containerIndex = item.screenId;
392 if (item
[all...]
H A DWidgetsModel.java105 for (PackageItemInfo item : mWidgetsList.keySet()) {
106 if (item.packageName.equals(packageUser.mPackageName)) {
107 packageItem = item;
131 for (WidgetItem item : rawWidgetsShortcuts) {
132 if (item.widgetInfo != null) {
134 int minSpanX = Math.min(item.widgetInfo.spanX, item.widgetInfo.minSpanX);
135 int minSpanY = Math.min(item.widgetInfo.spanY, item.widgetInfo.minSpanY);
140 item
[all...]
/packages/apps/Settings/src/com/android/settings/datausage/
H A DAppDataUsagePreference.java35 public AppDataUsagePreference(Context context, AppItem item, int percent, argument
38 mItem = item;
42 if (item.restricted && item.total <= 0) {
45 setSummary(Formatter.formatFileSize(context, item.total));
49 UidDetailTask.bindView(provider, item, this);
73 * {@link DataUsageAdapter} row item when finished.
80 private UidDetailTask(UidDetailProvider provider, AppItem item, argument
83 mItem = checkNotNull(item);
87 public static void bindView(UidDetailProvider provider, AppItem item, argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DDeviceAdminSettings.java227 * The item for the given position in the list.
270 // Disable item if admin is being removed
298 private void bindView(View view, DeviceAdminInfo item) { argument
301 Drawable activityIcon = item.loadIcon(activity.getPackageManager());
303 activityIcon, new UserHandle(getUserId(item)));
305 vh.name.setText(item.loadLabel(activity.getPackageManager()));
306 vh.checkbox.setChecked(isActiveAdmin(item));
307 final boolean enabled = isEnabled(item);
309 vh.description.setText(item.loadDescription(activity.getPackageManager()));
319 private boolean isDeviceOwner(DeviceAdminInfo item) { argument
324 isProfileOwner(DeviceAdminInfo item) argument
329 isActiveAdmin(DeviceAdminInfo item) argument
333 isRemovingAdmin(DeviceAdminInfo item) argument
[all...]
/packages/apps/Calendar/extensions_src/com/android/calendar/extensions/
H A DAllInOneMenuExtensions.java38 public boolean handleItemSelected(MenuItem item, Context context) { argument
/packages/apps/Calendar/src/com/android/calendar/
H A DAllInOneMenuExtensionsInterface.java35 boolean handleItemSelected(MenuItem item, Context context); argument
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
H A DLensPickerRow.java40 public void bind(Context context, LensPickerItem item, argument
42 String label = item.getLabel();
47 mIconView.setImageDrawable(item.getIcon());
50 mCardView.setOnClickListener(v -> selectionHandler.onActivitySelected(item));
/packages/apps/Gallery2/src/com/android/photos/shims/
H A DMediaItemsLoader.java116 public void consume(int index, MediaItem item) {
118 row[PhotoSetLoader.INDEX_DATA] = item.getContentUri().toString();
119 row[PhotoSetLoader.INDEX_DATE_ADDED] = item.getDateInMs();
120 row[PhotoSetLoader.INDEX_HEIGHT] = item.getHeight();
121 row[PhotoSetLoader.INDEX_WIDTH] = item.getWidth();
122 row[PhotoSetLoader.INDEX_WIDTH] = item.getWidth();
123 int rawMediaType = item.getMediaType();
132 item.getSupportedOperations();
134 mediaItems.append(index, item);
144 public Drawable drawableForItem(Cursor item, Drawabl argument
161 uriForItem(Cursor item) argument
168 urisForSubItems(Cursor item) argument
181 getPathForItem(Cursor item) argument
[all...]
/packages/apps/Settings/src/com/android/settings/network/
H A DNetworkResetActionMenuController.java40 MenuItem item = null;
42 item = menu.add(0, MENU_NETWORK_RESET, 0, R.string.reset_network_title);
44 if (item != null) {
45 item.setOnMenuItemClickListener(target -> {
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DAppDeletionPreference.java25 * Preference item for an app with a switch to signify if it should be uninstalled. This shows the
32 public AppDeletionPreference(Context context, PackageInfo item) { argument
34 mApp = item;
36 setIcon(item.icon);
37 setTitle(item.label);
/packages/services/Car/car-lib/src/android/car/app/menu/
H A DSubscriptionCallbacks.java29 * @param items The list of menu items. To retrieve the content of the item, use the keys
42 * @param item The new menu item. To retrieve the content of the item, use the keys
45 public abstract void onChildChanged(String parentId, Bundle item); argument

Completed in 608 milliseconds

1234567891011>>