/packages/providers/MediaProvider/src/com/android/providers/media/playlist/ |
D | Playlist.java | 50 private final ArrayList<Path> mItems = new ArrayList<>(); field in Playlist 53 return Collections.unmodifiableList(mItems); in asList() 57 mItems.clear(); in clear() 63 PlaylistPersister.resolvePersister(file).read(in, mItems); in read() 74 PlaylistPersister.resolvePersister(file).write(out, mItems); in write() 83 final int size = mItems.size(); in add() 86 mItems.add(index, item); in add() 96 final int size = mItems.size(); in move() 100 final Path item = mItems.remove(from); in move() 101 mItems.add(to, item); in move() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | SpinnerPreference.java | 40 @VisibleForTesting String[] mItems; field in SpinnerPreference 50 mItems = items; in initializeSpinner() 61 mSpinner.setAdapter(new SpinnerAdapter(getContext(), mItems)); in onBindViewHolder() 117 private final String[] mItems; field in SpinnerPreference.SpinnerAdapter 121 mItems = items; in SpinnerAdapter() 126 return mItems.length; in getCount() 131 return mItems[position]; in getItem()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PopupList.java | 60 private final ArrayList<Item> mItems = new ArrayList<Item>(); field in PopupList 79 mItems.add(new Item(id, title)); in addItem() 83 mItems.clear(); in clearItems() 173 for (Item item : mItems) { in findItem() 182 return mItems.size(); in getCount() 187 return mItems.get(position); in getItem() 192 return mItems.get(position).id; in getItemId() 202 text.setText(mItems.get(position).title); in getView()
|
D | DialogDetailsView.java | 120 private final ArrayList<String> mItems; field in DialogDetailsView.DetailsAdapter 129 mItems = new ArrayList<String>(details.size()); in DetailsAdapter() 142 mLocationIndex = mItems.size(); in setDetails() 187 mWidthIndex = mItems.size(); in setDetails() 196 mHeightIndex = mItems.size(); in setDetails() 242 mItems.add(value); in setDetails() 261 return mItems.size(); in getCount() 283 tv.setText(mItems.get(position)); in getView() 289 mItems.set(mLocationIndex, address); in onAddressAvailable() 304 mItems.set(mWidthIndex, String.valueOf(widthString)); in onResolutionAvailable() [all …]
|
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ui/ |
D | TestRecyclerViewAdapter.java | 35 private final List<String> mItems; field in TestRecyclerViewAdapter 40 mItems = new ArrayList<>(); in TestRecyclerViewAdapter() 42 mItems.add("Test Item " + (i + 1)); in TestRecyclerViewAdapter() 60 holder.bind(mItems.get(position)); in onBindViewHolder() 66 return mItems.size(); in getItemCount()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | SideFragment.java | 259 private List<T> mItems; field in SideFragment.ItemAdapter 263 mItems = items; in ItemAdapter() 267 mItems = items; in reset() 294 return mItems == null ? 0 : mItems.size(); in getItemCount() 298 return mItems.get(position); in getItem() 302 int position = mItems.indexOf(item); in clearRadioGroup() 304 if ((item = mItems.get(i)) instanceof RadioButtonItem) { in clearRadioGroup() 310 for (int i = position + 1; i < mItems.size(); ++i) { in clearRadioGroup() 311 if ((item = mItems.get(i)) instanceof RadioButtonItem) { in clearRadioGroup()
|
D | CustomizeChannelListFragment.java | 59 private final List<Item> mItems = new ArrayList<>(); field in CustomizeChannelListFragment 112 for (Item item : mItems) { in onCreateView() 160 mItems.clear(); in getItemList() 164 addItemForGroupBySource(mItems); in getItemList() 167 addItemForGroupByHdSd(mItems); in getItemList() 169 return mItems; in getItemList()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieItem.java | 46 private List<PieItem> mItems; field in PieItem 67 return mItems != null; in hasItems() 71 return mItems; in getItems() 75 if (mItems == null) { in addItem() 76 mItems = new ArrayList<PieItem>(); in addItem() 78 mItems.add(item); in addItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ItemInstallQueue.java | 96 private List<PendingInstallShortcutInfo> mItems; field in ItemInstallQueue 108 if (mItems == null) { in ensureQueueLoaded() 109 mItems = mStorage.read(mContext, this::decode); in ensureQueueLoaded() 116 if (!mItems.contains(info)) { in addToQueue() 117 mItems.add(info); in addToQueue() 118 mStorage.write(mContext, mItems); in addToQueue() 130 if (mItems.isEmpty()) { in flushQueueInBackground() 134 List<Pair<ItemInfo, Object>> installQueue = mItems.stream() in flushQueueInBackground() 143 mItems.clear(); in flushQueueInBackground() 156 if (mItems.removeIf(item -> in removeFromInstallQueue() [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/profiles/ |
D | MultiProfilePagerAdapter.java | 75 private final ImmutableList<ProfileDescriptor<PageViewT, SinglePageAdapterT>> mItems; field in MultiProfilePagerAdapter 122 mItems = items.build(); in MultiProfilePagerAdapter() 155 return mItems.get(position).mProfile; in getProfileForPageNumber() 161 for (int i = 0; i < mItems.size(); ++i) { in getPageNumberForProfile() 162 if (profile == mItems.get(i).mProfile) { in getPageNumberForProfile() 188 for (int i = 0; i < mItems.size(); ++i) { in getProfileForUserHandle() 191 return mItems.get(i).mProfile; in getProfileForUserHandle() 220 for (int i = 0; i < mItems.size(); ++i) { in getPageNumberForTabTag() 221 if (Objects.equals(mItems.get(i).mTabTag, tag)) { in getPageNumberForTabTag() 252 ProfileDescriptor<PageViewT, SinglePageAdapterT> descriptor = mItems.get(pageNumber); in setupProfileTabs() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | DetailsDialog.java | 77 private final ArrayList<String> mItems; 86 mItems = new ArrayList<String>(details.size()); 137 mWidthIndex = mItems.size(); 146 mHeightIndex = mItems.size(); 194 mItems.add(value); 220 return mItems.size(); 242 tv.setText(mItems.get(position)); 256 mItems.set(mWidthIndex, String.valueOf(widthString)); 257 mItems.set(mHeightIndex, String.valueOf(heightString));
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | ChannelsBlockedFragment.java | 61 private final List<Item> mItems = new ArrayList<>(); field in ChannelsBlockedFragment 128 mItems.clear(); in getItemList() 129 mItems.add(mLockAllItem); in getItemList() 145 mItems.add(new DividerItem(getString(R.string.option_channels_subheader_hidden))); in getItemList() 148 mItems.add(new ChannelBlockedItem(channel)); in getItemList() 153 mSelectedPosition = mItems.size() - 1; in getItemList() 156 return mItems; in getItemList()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/ |
D | CarVolumeItemAdapter.java | 35 private final List<CarVolumeItem> mItems; field in CarVolumeItemAdapter 39 mItems = items; in CarVolumeItemAdapter() 52 mItems.get(position).bind(holder); in onBindViewHolder() 61 return mItems.size(); in getItemCount()
|
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/ |
D | PinnedAppsAdapter.java | 67 private final ArrayList<AppInfo> mItems = new ArrayList<>(); field in PinnedAppsAdapter 109 return mItems.size(); in getCount() 117 return mItems.get(position); in getItem() 146 icon.applyFromApplicationInfo(mItems.get(position)); in getView() 151 mItems.clear(); in createFilteredAppsList() 153 .filter(Objects::nonNull).forEach(mItems::add); in createFilteredAppsList() 154 mItems.sort(mAppNameComparator); in createFilteredAppsList()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootItemListBuilder.java | 56 private final Multimap<String, RootItem> mItems = ArrayListMultimap.create(); field in RootItemListBuilder 64 mItems.put(item.stringId, item); in add() 73 return Lists.newArrayList(mItems.values()); in getList() 77 for (Collection<RootItem> items : mItems.asMap().values()) { in getList()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UserRestrictionAdapter.java | 35 private final List<UserRestrictionListItem> mItems; field in UserRestrictionAdapter 39 mItems = items; in UserRestrictionAdapter() 44 return mItems.size(); in getCount() 49 return mItems.get(index); in getItem()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningProcessesView.java | 214 final ArrayList<RunningState.MergedItem> mItems field in RunningProcessesView.ServiceListAdapter 244 mItems.clear(); in refreshItems() 246 mItems.clear(); in refreshItems() 247 mItems.addAll(newItems); in refreshItems() 249 Collections.sort(mItems, mState.mBackgroundComparator); in refreshItems() 260 return mItems.size(); in getCount() 265 return mState.hasData() && mItems.size() == 0; in isEmpty() 269 return mItems.get(position); in getItem() 273 return mItems.get(position).hashCode(); in getItemId() 281 return !mItems.get(position).mIsProcess; in isEnabled() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | SelectFromListWizardFragment.java | 314 private SortedList mItems; field in SelectFromListWizardFragment.VerticalListAdapter 321 mItems = new SortedList<ListItem>( in VerticalListAdapter() 338 mItems.addAll(choices.toArray(new ListItem[0]), false); in VerticalListAdapter() 376 if (position >= mItems.size()) { 381 ListItem item = (ListItem) mItems.get(position); 386 return mItems; 391 return mItems.size(); 400 for (int j = 0; j < mItems.size(); j++) { 401 ListItem oldItem = (ListItem) mItems.get(j); 407 mItems.remove(item); [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GalleryPicker.java | 130 if (prevScanning == scanning && mAdapter.mItems.size() == 0) return; in updateScanningDialog() 135 } else if (scanning && mAdapter.mItems.size() == 0) { in updateScanningDialog() 198 mAdapter.mItems.get(position).launch(this); in launchFolderGallery() 229 if (position < 0 || position >= mAdapter.mItems.size()) { in onSlideShowClicked() 233 Item item = mAdapter.mItems.get(position); in onSlideShowClicked() 488 int numItems = mAdapter.mItems.size(); in checkBucketIdsFinished() 492 mAdapter.mItems.get(0).launch(this); in checkBucketIdsFinished() 873 ArrayList<Item> mItems = new ArrayList<Item>(); 881 mItems.add(item); 889 mItems.clear(); [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | TimeClustering.java | 356 private ArrayList<SmallItem> mItems = new ArrayList<SmallItem>(); field in Cluster 362 mItems.add(item); in addItem() 366 return mItems.size(); in size() 370 int n = mItems.size(); in getLastItem() 371 return (n == 0) ? null : mItems.get(n - 1); in getLastItem() 375 return mItems; in getItems() 379 int n = mItems.size(); in generateCaption() 384 long t = mItems.get(i).dateInMs; in generateCaption()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | ModelMultiCallbacksTest.java | 174 final List<ItemInfo> mItems = new ArrayList<>(); field in ModelMultiCallbacksTest.MyCallbacks 197 mItems.addAll(shortcuts); in bindItems() 212 mItems.clear(); in reset() 223 assertEquals(mItems.size(), 1); in verifySynchronouslyBound() 224 assertEquals(IntSet.wrap(mItems.get(0).screenId), mPageBoundSync); in verifySynchronouslyBound() 229 assertEquals(mItems.size(), totalItems); in verifySynchronouslyBound()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ |
D | SelectedMediaPreloader.java | 72 private final List<Uri> mItems; field in SelectedMediaPreloader 157 for (int index = 0; index < preloader.mItems.size(); index++) { in preload() 168 preloader.mFinishedCountLiveData.setValue(preloader.mItems.size()); in preload() 185 mItems = items; in SelectedMediaPreloader() 206 for (int index = 0; index < mItems.size(); index++) { in start() 214 isOpenedSuccessfully = openFileDescriptor(mItems.get(currIndex)); in start()
|
/packages/apps/Settings/src/com/android/settings/ |
D | AppWidgetPickActivity.java | 51 List<PickAdapter.Item> mItems; field in AppWidgetPickActivity 91 mItems = mAppWidgetLoader.getItems(getIntent()); in getItems() 92 return mItems; in getItems() 147 PickAdapter.Item item = mItems.get(which); in onClick()
|
/packages/apps/Settings/src/com/android/settings/datetime/timezone/ |
D | BaseTimeZoneAdapter.java | 58 private List<T> mItems; field in BaseTimeZoneAdapter 67 mItems = items; in BaseTimeZoneAdapter() 115 return mItems.size() + getHeaderCount(); in getItemCount() 153 return mItems.get(position - getHeaderCount()); in getDataItem() 282 mItems = (List<T>) results.values; in publishResults()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
D | MoreOptionsFragment.java | 59 private Map<String, RecommendationItem> mItems = new HashMap<>(); field in MoreOptionsFragment 128 List<RecommendationItem> itemList = new ArrayList<>(mItems.values()); in onPrintServiceRecommendationsChanged() 146 RecommendationItem item = mItems.get(packageName); in getOrCreateItem() 149 mItems.put(packageName, item); in getOrCreateItem()
|