Lines Matching refs:Item
74 AppWidgetLoader.ItemConstructor<KeyguardAppWidgetPickActivity.Item> {
79 private AppWidgetLoader<Item> mAppWidgetLoader;
80 private List<Item> mItems;
121 mAppWidgetLoader = new AppWidgetLoader<Item>(this, mAppWidgetManager, this);
143 * Item that appears in the AppWidget picker grid.
145 public static class Item implements AppWidgetLoader.LabelledItem {
159 * Create a list item from given label and icon.
161 Item(Context context, CharSequence label) {
179 * Build the {@link Intent} described by this item. If this item
181 * {@link Intent#ACTION_CREATE_SHORTCUT} filled with the item label.
434 public Item createItem(Context context, AppWidgetProviderInfo info, Bundle extras) {
437 Item item = new Item(context, label);
438 item.appWidgetPreviewId = info.previewImage;
439 item.iconId = info.icon;
440 item.packageName = info.provider.getPackageName();
441 item.className = info.provider.getClassName();
442 item.extras = extras;
443 return item;
448 private final List<Item> mItems;
453 public AppWidgetAdapter(Context context, List<Item> items) {
487 Item item = (Item) getItem(position);
489 textView.setText(item.label);
492 item.loadWidgetPreview(iconView);
508 Item item = mItems.get(position);
509 Intent intent = item.getIntent();
512 if (item.extras != null) {