Home
last modified time | relevance | path

Searched refs:Item (Results 1 – 25 of 64) sorted by relevance

123

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DAppWidgetLoader.java33 public class AppWidgetLoader<Item extends AppWidgetLoader.LabelledItem> {
39 ItemConstructor<Item> mItemConstructor;
46 ItemConstructor<Item> itemConstructor) { in AppWidgetLoader()
56 void putCustomAppWidgets(List<Item> items, Intent intent) { in putCustomAppWidgets()
115 List<Bundle> customExtras, List<Item> items, int categoryFilter, in putAppWidgetItems()
127 Item item = mItemConstructor.createItem(mContext, info, in putAppWidgetItems()
134 public interface ItemConstructor<Item> {
135 Item createItem(Context context, AppWidgetProviderInfo info, Bundle extras); in createItem()
144 protected List<Item> getItems(Intent intent) { in getItems()
148 List<Item> items = new ArrayList<Item>(); in getItems()
[all …]
DActivityPicker.java103 List<PickAdapter.Item> items = getItems(); in onCreate()
133 PickAdapter.Item item = (PickAdapter.Item) mAdapter.getItem(position); in getIntentForPosition()
144 protected List<PickAdapter.Item> getItems() { in getItems()
146 List<PickAdapter.Item> items = new ArrayList<PickAdapter.Item>(); in getItems()
171 items.add(new PickAdapter.Item(this, label, icon)); in getItems()
186 protected void putIntentItems(Intent baseIntent, List<PickAdapter.Item> items) { in putIntentItems()
195 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); in putIntentItems()
208 public static class Item implements AppWidgetLoader.LabelledItem { class in ActivityPicker.PickAdapter
229 Item(Context context, CharSequence label, Drawable icon) { in Item() method in ActivityPicker.PickAdapter.Item
238 Item(Context context, PackageManager pm, ResolveInfo resolveInfo) { in Item() method in ActivityPicker.PickAdapter.Item
[all …]
DAppWidgetPickActivity.java47 implements AppWidgetLoader.ItemConstructor<PickAdapter.Item>{
51 List<PickAdapter.Item> mItems;
58 private AppWidgetLoader<PickAdapter.Item> mAppWidgetLoader;
66 mAppWidgetLoader = new AppWidgetLoader<PickAdapter.Item> in onCreate()
90 protected List<PickAdapter.Item> getItems() { in getItems()
96 public PickAdapter.Item createItem(Context context, AppWidgetProviderInfo info, Bundle extras) { in createItem()
134 PickAdapter.Item item = new PickAdapter.Item(context, label, icon); in createItem()
147 PickAdapter.Item item = mItems.get(which); in onClick()
DSmsDefaultDialog.java165 private class Item { class in SmsDefaultDialog.AppListAdapter
170 public Item(String label, Drawable icon, String packageName) { in Item() method in SmsDefaultDialog.AppListAdapter.Item
178 private final List<Item> mItems;
187 Item item = mItems.remove(selected); in AppListAdapter()
211 Item item = ((Item) getItem(position)); in getView()
233 Item item = (Item) getItem(position); in getPackageName()
251 private List<Item> getItems() { in getItems()
253 List<Item> items = new ArrayList<>(); in getItems()
260 items.add(new Item( in getItems()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetLoader.java33 public class AppWidgetLoader<Item extends AppWidgetLoader.LabelledItem> {
39 ItemConstructor<Item> mItemConstructor;
46 ItemConstructor<Item> itemConstructor) { in AppWidgetLoader()
56 void putCustomAppWidgets(List<Item> items, Intent intent) { in putCustomAppWidgets()
115 List<Bundle> customExtras, List<Item> items, int categoryFilter, in putAppWidgetItems()
127 Item item = mItemConstructor.createItem(mContext, info, in putAppWidgetItems()
134 public interface ItemConstructor<Item> {
135 Item createItem(Context context, AppWidgetProviderInfo info, Bundle extras); in createItem()
144 protected List<Item> getItems(Intent intent) { in getItems()
148 List<Item> items = new ArrayList<Item>(); in getItems()
[all …]
DActivityPicker.java103 List<PickAdapter.Item> items = getItems(); in onCreate()
133 PickAdapter.Item item = (PickAdapter.Item) mAdapter.getItem(position); in getIntentForPosition()
144 protected List<PickAdapter.Item> getItems() { in getItems()
146 List<PickAdapter.Item> items = new ArrayList<PickAdapter.Item>(); in getItems()
171 items.add(new PickAdapter.Item(this, label, icon)); in getItems()
186 protected void putIntentItems(Intent baseIntent, List<PickAdapter.Item> items) { in putIntentItems()
195 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); in putIntentItems()
208 public static class Item implements AppWidgetLoader.LabelledItem { class in ActivityPicker.PickAdapter
229 Item(Context context, CharSequence label, Drawable icon) { in Item() method in ActivityPicker.PickAdapter.Item
238 Item(Context context, PackageManager pm, ResolveInfo resolveInfo) { in Item() method in ActivityPicker.PickAdapter.Item
[all …]
DAppWidgetPickActivity.java47 implements AppWidgetLoader.ItemConstructor<PickAdapter.Item>{
51 List<PickAdapter.Item> mItems;
58 private AppWidgetLoader<PickAdapter.Item> mAppWidgetLoader;
66 mAppWidgetLoader = new AppWidgetLoader<PickAdapter.Item> in onCreate()
90 protected List<PickAdapter.Item> getItems() { in getItems()
96 public PickAdapter.Item createItem(Context context, AppWidgetProviderInfo info, Bundle extras) { in createItem()
134 PickAdapter.Item item = new PickAdapter.Item(context, label, icon); in createItem()
147 PickAdapter.Item item = mItems.get(which); in onClick()
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java233 Item item = mAdapter.mItems.get(position); in onSlideShowClicked()
341 ArrayList<Item> allItems = new ArrayList<Item>(); in workerRun()
376 private void checkImageList(ArrayList<Item> allItems) { in checkImageList()
384 Item item = null; in checkImageList()
396 item = new Item(data.mType, in checkImageList()
403 final Item finalItem = item; in checkImageList()
413 private void updateItem(Item item) { in updateItem()
426 private void checkBucketIds(ArrayList<Item> allItems) { in checkBucketIds()
460 Item item = new Item(Item.TYPE_NORMAL_FOLDERS, key, in checkBucketIds()
465 final Item finalItem = item; in checkBucketIds()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java103 final Item item = mAdapter.getItem(position);
113 final Item item = mAdapter.getItem(position);
129 private List<Item> mApplicationItemList;
196 final Item item = mAdapter.getItem(pos); in onRightClick()
230 final Item item = getItem(v); in onActivityCreated()
275 List<Item> sortedItems = sortLoadResult( in onActivityCreated()
349 List<Item> sortLoadResult( in sortLoadResult()
359 final List<Item> result = new ArrayList<>(); in sortLoadResult()
402 final List<Item> rootList = new ArrayList<>(); in sortLoadResult()
403 final List<Item> rootListOtherUser = new ArrayList<>(); in sortLoadResult()
[all …]
DUserItemsCombiner.java42 private List<Item> mRootList;
43 private List<Item> mRootListOtherUser;
57 UserItemsCombiner setRootListForCurrentUser(List<Item> rootList) { in setRootListForCurrentUser()
62 UserItemsCombiner setRootListForOtherUser(List<Item> rootList) { in setRootListForOtherUser()
71 public List<Item> createPresentableList() { in createPresentableList()
75 final List<Item> result = new ArrayList<>(); in createPresentableList()
79 final List<Item> personalRootList; in createPresentableList()
80 final List<Item> workRootList; in createPresentableList()
DRootsAdapter.java36 class RootsAdapter extends ArrayAdapter<Item> {
50 List<Item> items, in RootsAdapter()
83 final Item item = getItem(position); in getView()
108 final Item item = getItem(position); in getItemViewType()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/
DUserItemsCombinerTest.java53 private static final List<Item> PERSONAL_ITEMS = Lists.newArrayList(
59 private static final List<Item> WORK_ITEMS = Lists.newArrayList(
63 private static final Correspondence<Item, Item> ITEM_CORRESPONDENCE =
64 new Correspondence<Item, Item>() {
66 public boolean compare(Item actual, Item expected) {
148 List<Item> expected = Lists.newArrayList(); in testCreatePresentableList_currentIsPersonal_personalAndWorkItems()
167 List<Item> expected = Lists.newArrayList(); in testCreatePresentableList_currentIsWork_personalAndWorkItems()
211 private static class TestItem extends Item {
DRootsFragmentTest.java73 List<Item> items = mRootsFragment.sortLoadResult( in testSortLoadResult_WithCorrectOrder()
89 final List<Item> rootList = new ArrayList<>(); in testItemComparator_WithCorrectOrder()
107 final List<Item> rootList = new ArrayList<>(); in testItemComparator_differentItemTypes_WithCorrectOrder()
126 private boolean assertSortedResult(List<Item> items) { in assertSortedResult()
128 Item item = items.get(i); in assertSortedResult()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java42 import com.android.documentsui.sidebar.Item;
96 final List<Item> rootList = new ArrayList<>(); in testUpdateList_byRootItem()
121 List<Item> hybridList = new ArrayList<>(); in testUpdateList_byHybridItem()
141 final List<Item> rootList = new ArrayList<>(); in testUpdateView_matchedState_showRow()
155 final List<Item> rootList = new ArrayList<>(); in testUpdateView_showSelectedUserItems()
179 final List<Item> rootList = new ArrayList<>(); in testUpdateView_showSelectedUserItems_otherUser()
198 final List<Item> rootList = new ArrayList<>(); in testUpdateView_notInRecent_hideRow()
214 final List<Item> rootList = new ArrayList<>(); in testUpdateView_notHandledAction_hideRow()
228 final List<Item> rootList = new ArrayList<>(); in testUpdateView_noItems_hideRow()
242 final List<Item> rootList = new ArrayList<>(); in testUpdateView_crossProfileSearch_hideRow()
[all …]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DCustomizeChannelListFragment.java59 private final List<Item> mItems = new ArrayList<>();
112 for (Item item : mItems) { in onCreateView()
159 protected List<Item> getItemList() { in getItemList()
172 private void cleanUpOneChannelGroupItem(List<Item> items) { in cleanUpOneChannelGroupItem()
173 Iterator<Item> iter = items.iterator(); in cleanUpOneChannelGroupItem()
175 Item item = iter.next(); in cleanUpOneChannelGroupItem()
186 private void addItemForGroupBySource(List<Item> items) { in addItemForGroupBySource()
209 private void addItemForGroupByHdSd(List<Item> items) { in addItemForGroupByHdSd()
353 protected List<Item> getItemList() { in getItemList()
354 List<Item> items = new ArrayList<>(); in getItemList()
DSideFragment.java46 public abstract class SideFragment<T extends Item> extends Fragment implements HasTrackerLabel {
199 protected void notifyItemChanged(Item item) { in notifyItemChanged()
257 private static class ItemAdapter<T extends Item> extends RecyclerView.Adapter<ViewHolder> {
323 public Item mItem;
331 public void onBind(ItemAdapter adapter, Item item) { in onBind()
/packages/apps/Stk/src/com/android/stk/
DStkLauncherActivity.java32 import com.android.internal.telephony.cat.Item;
51 private ArrayList<Item> mStkMenuList = null;
91 Item item = getSelectedItem(position); in onListItemClick()
148 private Item getSelectedItem(int position) { in getSelectedItem()
149 Item item = null; in getSelectedItem()
175 mStkMenuList = new ArrayList<Item>(); in addStkMenuListItems()
197 Item item = new Item(i, stkItemName, icon); in addStkMenuListItems()
DStkMenuAdapter.java19 import com.android.internal.telephony.cat.Item;
34 public class StkMenuAdapter extends ArrayAdapter<Item> {
38 public StkMenuAdapter(Context context, List<Item> items, in StkMenuAdapter()
47 final Item item = getItem(position); in getView()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPopupList.java44 public static class Item { class in PopupList
48 public Item(int id, String title) { in Item() method in PopupList.Item
60 private final ArrayList<Item> mItems = new ArrayList<Item>();
79 mItems.add(new Item(id, title)); in addItem()
172 public Item findItem(int id) { in findItem()
173 for (Item item : mItems) { in findItem()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java27 import com.android.tv.ui.sidepanel.Item;
74 protected List<Item> getItemList() { in getItemList()
81 List<Item> items = new ArrayList<>(); in getItemList()
82 List<Item> itemsHidden = new ArrayList<>(); in getItemList()
83 List<Item> itemsHiddenMultipleCountries = new ArrayList<>(); in getItemList()
115 final List<Item> allItems = new ArrayList<>(items); in getItemList()
DProgramRestrictionsFragment.java21 import com.android.tv.ui.sidepanel.Item;
53 protected List<Item> getItemList() { in getItemList()
54 List<Item> items = new ArrayList<>(); in getItemList()
DChannelsBlockedFragment.java40 import com.android.tv.ui.sidepanel.Item;
60 private final Item mLockAllItem = new BlockAllItem();
61 private final List<Item> mItems = new ArrayList<>();
127 protected List<Item> getItemList() { in getItemList()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DRuntimeDocumentClipper.java76 ClipData.Item item = clipData.getItemAt(i); in hasItemsToPaste()
134 final ArrayList<ClipData.Item> clipItems = new ArrayList<>(); in createStandardClipData()
142 clipItems.add(new ClipData.Item(uri)); in createStandardClipData()
162 final ArrayList<ClipData.Item> clipItems = new ArrayList<>(capacity); in createJumboClipData()
171 clipItems.add(new ClipData.Item(uri)); in createJumboClipData()
325 ClipDescription description, ArrayList<ClipData.Item> clipItems) { in createClipData()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java268 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
271 if (fp.contains(FetchProfile.Item.ENVELOPE)) { in fetchInternal()
276 if (fp.contains(FetchProfile.Item.STRUCTURE)) { in fetchInternal()
280 if (fp.contains(FetchProfile.Item.BODY_SANE)) { in fetchInternal()
283 if (fp.contains(FetchProfile.Item.BODY)) { in fetchInternal()
322 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
337 if (fp.contains(FetchProfile.Item.ENVELOPE)) { in fetchInternal()
355 if (fp.contains(FetchProfile.Item.STRUCTURE)) { in fetchInternal()
366 if (fp.contains(FetchProfile.Item.BODY) || fp.contains(FetchProfile.Item.BODY_SANE)) { in fetchInternal()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DAppsRowManager.java36 import com.android.documentsui.sidebar.Item;
62 public List<AppsRowItemData> updateList(List<Item> itemList) { in updateList()
67 for (Item item : itemList) { in updateList()
75 for (Item item : itemList) { in updateList()

123