/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapter.java | 35 private final List<T> mItems = new ArrayList<>(); field in SortedArrayAdapter 46 return mItems.isEmpty() ? 1 : mItems.size(); in size() 59 T item = mItems.get(position); in getId() 77 return mItems.get(position); in getItem() 87 return mItems.isEmpty(); in isEmpty() 97 mItems.clear(); in clear() 108 mItems.addAll(items); in addAll() 109 Collections.sort(mItems, mComparator); in addAll() 120 mItems.add(i, item); in add() 121 if (mItems.size() == 1) { in add() [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/util/ |
D | DialerUtilsTest.java | 40 private ArrayList<CharSequence> mItems = Lists.newArrayList(); field in DialerUtilsTest 53 mItems.clear(); in testJoinEmpty() 54 CharSequence joined = DialerUtils.join(mResources, mItems); in testJoinEmpty() 62 mItems.clear(); in testJoinOne() 63 mItems.add("Hello"); in testJoinOne() 64 CharSequence joined = DialerUtils.join(mResources, mItems); in testJoinOne() 72 mItems.clear(); in testJoinTwo() 73 mItems.add("Hello"); in testJoinTwo() 74 mItems.add("there"); in testJoinTwo() 75 CharSequence joined = DialerUtils.join(mResources, mItems); in testJoinTwo()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationViewAdapter.java | 89 private final List<ConversationOverlayItem> mItems; field in ConversationViewAdapter 570 mItems = Lists.newArrayList(); in ConversationViewAdapter() 579 return mItems.size(); in getCount() 584 return mItems.get(position).getType(); in getItemViewType() 594 return mItems.get(position); in getItem() 630 final int pos = mItems.size(); in addItem() 632 mItems.add(item); in addItem() 637 mItems.clear(); in clear() 674 final int pos = mItems.indexOf(blockToRemove); in replaceSuperCollapsedBlock() 679 mItems.remove(pos); in replaceSuperCollapsedBlock() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/ |
D | PickerColumn.java | 27 private final String[] mItems; field in PickerColumn 33 mItems = items; in PickerColumn() 38 mItems = new String[count]; in PickerColumn() 39 source.readStringArray(mItems); in PickerColumn() 43 return mItems; in getItems() 67 dest.writeInt(mItems.length); in writeToParcel() 68 dest.writeStringArray(mItems); in writeToParcel() 75 for (String s : mItems) { in toString()
|
D | Picker.java | 397 private List<String> mItems; field in Picker.Adapter 402 mItems = items; in Adapter() 415 textView.setText(mItems.get(position)); in onBindViewHolder() 422 return mItems.size(); in getItemCount() 455 final List<String> oldItems = mItems; in setItems() 456 mItems = items; in setItems()
|
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
D | DrawerApiAdapter.java | 73 private List<Bundle> mItems; field in DrawerApiAdapter 92 item = mItems.get(position); in getItemViewType() 172 if (mItems != null) { in getItemCount() 173 return mMaxItems >= 0 ? Math.min(mItems.size(), mMaxItems) : mItems.size(); in getItemCount() 182 if (mItems != null) { in getItemId() 184 return mItems.get(position).getString(KEY_ID).hashCode(); in getItemId() 196 mItems = items; in setItems() 200 if (mItems != null) { in setItems() 254 if (position >= 0 && mItems != null && position < mItems.size()) { in onChildChanged() 257 oldBundle = mItems.get(position); in onChildChanged() [all …]
|
D | DrawerController.java | 592 private volatile List<Bundle> mItems; field in DrawerController.SubscriptionCallbacks 603 mItems = items; in onChildrenLoaded() 604 mItemsNumber = mItems.size(); in onChildrenLoaded() 610 mAdapter.setItems(mItems, mIsCapped); in onChildrenLoaded() 612 mItems = null; in onChildrenLoaded() 632 if (mItems != null) { in onChildChanged() 633 for (Bundle item : mItems) { in onChildChanged()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SmsDefaultDialog.java | 154 private final List<Item> mItems; field in SmsDefaultDialog.AppListAdapter 159 mItems = getItems(); in AppListAdapter() 163 Item item = mItems.remove(selected); in AppListAdapter() 164 mItems.add(0, item); in AppListAdapter() 172 return mItems != null ? mItems.size() : 0; in getCount() 177 return mItems != null && position < mItems.size() ? mItems.get(position) : null; in getItem() 255 for (int i = 0; i < mItems.size(); i++) { in getSelectedIndex() 256 if (TextUtils.equals(mItems.get(i).packgeName, defaultSmsAppPackageName)) { in getSelectedIndex()
|
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/TV/src/com/android/tv/ui/sidepanel/ |
D | ClosedCaptionFragment.java | 41 private List<Item> mItems; field in ClosedCaptionFragment 66 mItems = new ArrayList<>(); in getItemList() 83 mItems.add(item); in getItemList() 92 mItems.add(item); in getItemList() 96 mItems.add(new ActionItem(getString(R.string.closed_caption_system_settings), in getItemList() 113 return mItems; in getItemList() 132 for (Item item : mItems) { in onResume() 146 if (selectedItem == null && mItems.get(0) instanceof ClosedCaptionOptionItem) { in onResume() 147 selectedItem = (ClosedCaptionOptionItem) mItems.get(0); in onResume()
|
D | SideFragment.java | 258 private List<Item> mItems; field in SideFragment.ItemAdapter 262 mItems = items; in ItemAdapter() 266 mItems = items; in reset() 292 return mItems == null ? 0 : mItems.size(); in getItemCount() 296 return mItems.get(position); in getItem() 300 int position = mItems.indexOf(item); in clearRadioGroup() 302 if ((item = mItems.get(i)) instanceof RadioButtonItem) { in clearRadioGroup() 308 for (int i = position + 1; i < mItems.size(); ++i) { in clearRadioGroup() 309 if ((item = mItems.get(i)) instanceof RadioButtonItem) { in clearRadioGroup()
|
D | CustomizeChannelListFragment.java | 57 private final List<Item> mItems = new ArrayList<>(); field in CustomizeChannelListFragment 104 for (Item item : mItems) { in onCreateView() 149 mItems.clear(); in getItemList() 153 addItemForGroupBySource(mItems); in getItemList() 156 addItemForGroupByHdSd(mItems); in getItemList() 158 return mItems; in getItemList()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
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 …]
|
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()
|
/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()
|
D | PieRenderer.java | 79 private List<PieItem> mItems; field in PieRenderer 151 mItems = new ArrayList<PieItem>(); in init() 190 mItems.add(item); in addItem() 194 mItems.remove(item); in removeItem() 198 mItems.clear(); in clearItems() 230 for (PieItem item : mItems) { in show() 279 layoutItems(mItems, (float) (Math.PI / 2), inner, outer, gap); in layoutPie() 377 for (PieItem item : mItems) { in onDraw() 564 List<PieItem> items = (mOpenItem != null) ? mOpenItem.getItems() : mItems; in findItem()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | ChannelsBlockedFragment.java | 59 private final List<Item> mItems = new ArrayList<>(); field in ChannelsBlockedFragment 114 mItems.clear(); in getItemList() 115 mItems.add(mLockAllItem); in getItemList() 132 mItems.add(new DividerItem( in getItemList() 136 mItems.add(new ChannelBlockedItem(channel)); in getItemList() 141 mSelectedPosition = mItems.size() - 1; in getItemList() 144 return mItems; in getItemList()
|
/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/Settings/src/com/android/settings/applications/ |
D | RunningProcessesView.java | 216 final ArrayList<RunningState.MergedItem> mItems field in RunningProcessesView.ServiceListAdapter 246 mItems.clear(); in refreshItems() 248 mItems.clear(); in refreshItems() 249 mItems.addAll(newItems); in refreshItems() 251 Collections.sort(mItems, mState.mBackgroundComparator); in refreshItems() 262 return mItems.size(); in getCount() 267 return mState.hasData() && mItems.size() == 0; in isEmpty() 271 return mItems.get(position); in getItem() 275 return mItems.get(position).hashCode(); in getItemId() 283 return !mItems.get(position).mIsProcess; in isEnabled() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | SelectFromListWizardFragment.java | 282 private SortedList mItems; field in SelectFromListWizardFragment.VerticalListAdapter 289 mItems = new SortedList<ListItem>( in VerticalListAdapter() 306 mItems.addAll(choices.toArray(new ListItem[0]), false); in VerticalListAdapter() 344 if (position >= mItems.size()) { 349 ListItem item = (ListItem) mItems.get(position); 354 return mItems; 359 return mItems.size(); 368 for (int j = 0 ; j < mItems.size(); j++) { 369 ListItem oldItem = (ListItem) mItems.get(j); 375 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() 487 int numItems = mAdapter.mItems.size(); in checkBucketIdsFinished() 491 mAdapter.mItems.get(0).launch(this); in checkBucketIdsFinished() 872 ArrayList<Item> mItems = new ArrayList<Item>(); 880 mItems.add(item); 888 mItems.clear(); [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AddAdapter.java | 39 private final ArrayList<ListItem> mItems = new ArrayList<ListItem>(); field in AddAdapter 73 mItems.add(new ListItem(res, R.string.group_wallpapers, in AddAdapter() 93 return mItems.size(); in getCount() 97 return mItems.get(position); in getItem()
|
/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/Settings/src/com/android/settings/dashboard/ |
D | DashboardAdapter.java | 63 private final List<Object> mItems = new ArrayList<>(); field in DashboardAdapter 195 mItems.clear(); 203 mItems.add(object); 221 onBindCategory(holder, (DashboardCategory) mItems.get(position)); 224 final Tile tile = (Tile) mItems.get(position); 233 final Tile suggestion = (Tile) mItems.get(position); 255 ConditionAdapterUtils.bindViews((Condition) mItems.get(position), holder, 256 mItems.get(position) == mExpandedCondition, this, 396 return mItems.get(i);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerSession.java | 181 final ArrayList<SentenceLevelAdapter.SentenceWordItem> mItems = in splitAndSuggest() local 182 textInfoParams.mItems; in splitAndSuggest() 183 final int itemsSize = mItems.size(); in splitAndSuggest() 186 splitTextInfos[j] = mItems.get(j).mTextInfo; in splitAndSuggest()
|