/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | LauncherLayoutBuilder.java | 73 l.items.put(ATTR_CONTAINER, CONTAINER_HOTSEAT); in atHotseat() 74 l.items.put(ATTR_RANK, Integer.toString(rank)); in atHotseat() 80 l.items.put(ATTR_CONTAINER, CONTAINER_DESKTOP); in atWorkspace() 81 l.items.put(ATTR_X, Integer.toString(x)); in atWorkspace() 82 l.items.put(ATTR_Y, Integer.toString(y)); in atWorkspace() 83 l.items.put(ATTR_SCREEN, Integer.toString(screen)); in atWorkspace() 128 final HashMap<String, Object> items = new HashMap<>(); field in LauncherLayoutBuilder.Location 131 items.put(ATTR_PACKAGE_NAME, packageName); in putApp() 132 items.put(ATTR_CLASS_NAME, TextUtils.isEmpty(className) ? packageName : className); in putApp() 133 mNodes.add(Pair.create(TAG_AUTO_INSTALL, items)); in putApp() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceController.java | 73 List<AppItem> items = new ArrayList<>(); in onDataLoaded() local 83 long size = aggregateDataUsage(knownItems, items, entry, profiles); in onDataLoaded() 88 updateRestrictedState(restrictedUids, knownItems, items, profiles); in onDataLoaded() 89 sortAndAddPreferences(items, largest); in onDataLoaded() 92 private long aggregateDataUsage(SparseArray<AppItem> knownItems, List<AppItem> items, in aggregateDataUsage() argument 106 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() 112 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() 119 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() 126 items); in aggregateDataUsage() 129 long appLargest = accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | ChannelsRowAdapter.java | 163 List<ChannelsRowItem> items = new ArrayList<>(); in createItems() local 164 items.add(ChannelsRowItem.GUIDE_ITEM); in createItems() 166 items.add(ChannelsRowItem.UP_ITEM); in createItems() 167 items.add(ChannelsRowItem.DOWN_ITEM); in createItems() 171 items.add(ChannelsRowItem.SETUP_ITEM); in createItems() 174 items.add(ChannelsRowItem.DVR_ITEM); in createItems() 179 items.add(ChannelsRowItem.APP_LINK_ITEM); in createItems() 182 items.add(new ChannelsRowItem(channel, R.layout.menu_card_channel)); in createItems() 184 setItemList(items); in createItems() 188 List<ChannelsRowItem> items = getItemList(); in updateItems() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/ |
D | BaseTimeZoneAdapterTest.java | 43 List<TestItem> items = new ArrayList<>(); in testFilter() local 44 items.add(US); in testFilter() 45 items.add(HK); in testFilter() 46 items.add(UK); in testFilter() 47 items.add(secretCountry); in testFilter() 49 TestTimeZoneAdapter adapter = new TestTimeZoneAdapter(items); in testFilter() 50 assertSearch(adapter, "", items.toArray(new TestItem[0])); in testFilter() 57 private void assertSearch(TestTimeZoneAdapter adapter , String searchText, TestItem... items) in assertSearch() argument 62 assertThat(adapter.getItemCount()).isEqualTo(items.length); in assertSearch() 63 for (int i = 0; i < items.length; i++) { in assertSearch() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | CustomizeChannelListFragment.java | 172 private void cleanUpOneChannelGroupItem(List<Item> items) { in cleanUpOneChannelGroupItem() argument 173 Iterator<Item> iter = items.iterator(); in cleanUpOneChannelGroupItem() 186 private void addItemForGroupBySource(List<Item> items) { in addItemForGroupBySource() argument 187 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_sources))); in addItemForGroupBySource() 198 items.add(new DividerItem(inputLabel)); in addItemForGroupBySource() 200 items.add(selectGroupItem); in addItemForGroupBySource() 203 items.add(channelItem); in addItemForGroupBySource() 206 cleanUpOneChannelGroupItem(items); in addItemForGroupBySource() 209 private void addItemForGroupByHdSd(List<Item> items) { in addItemForGroupByHdSd() argument 210 items.add(new GroupBySubMenu(getString(R.string.edit_channels_group_by_hd_sd))); in addItemForGroupByHdSd() [all …]
|
D | SettingsFragment.java | 54 List<Item> items = new ArrayList<>(); in getItemList() local 80 items.add(customizeChannelListItem); in getItemList() 85 items.add( in getItemList() 98 items.add( in getItemList() 142 items.add( in getItemList() 169 items.add( in getItemList() 183 items.add( in getItemList() 199 items.add(version); in getItemList() 200 return items; in getItemList()
|
D | DeveloperOptionFragment.java | 54 List<Item> items = new ArrayList<>(); in getItemList() local 56 items.add( in getItemList() 65 items.add( in getItemList() 73 items.add( in getItemList() 91 items.add( in getItemList() 101 return items; in getItemList()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | StringConcatenator.java | 36 public String join(List<String> items) { in join() argument 37 if (items == null) { in join() 41 if (items.isEmpty()) { in join() 45 final int count = items.size(); in join() 48 return items.get(0); in join() 52 return mResources.getString(R.string.join_two_items, items.get(0), items.get(1)); in join() 55 String result = items.get(count - 2); in join() 59 items.get(i), result); in join() 61 result = mResources.getString(R.string.join_many_items_last, result, items.get(count - 1)); in join()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/ts/ |
D | TsParser.java | 83 void onPatDetected(List<PatItem> items); in onPatDetected() argument 89 void onEitItemParsed(VctItem channel, List<EitItem> items); in onEitItemParsed() argument 160 public void onPatParsed(List<PatItem> items) { 161 for (PatItem i : items) { 165 mListener.onPatDetected(items); 170 public void onPmtParsed(int programNumber, List<PmtItem> items) { 171 mProgramNumberToPMTMap.put(programNumber, items); 190 handleVctItem(vctItem, items); 202 handleSdtItem(sdtItem, items); 208 public void onMgtParsed(List<MgtItem> items) { [all …]
|
D | EventDetector.java | 61 public void onPatDetected(List<PsiData.PatItem> items) { 62 for (PsiData.PatItem i : items) { 77 PsipData.VctItem channel, List<PsipData.EitItem> items) { 101 for (PsipData.EitItem item : items) { 112 for (PsipData.EitItem item : items) { 118 eventListener.onEventDetected(tunerChannel, items); 236 void onEventDetected(TunerChannel channel, List<EitItem> items); in onEventDetected() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | AppWidgetLoader.java | 56 void putCustomAppWidgets(List<Item> items, Intent intent) { in putCustomAppWidgets() argument 106 putAppWidgetItems(customInfo, customExtras, items, 0, true); in putCustomAppWidgets() 115 List<Bundle> customExtras, List<Item> items, int categoryFilter, in putAppWidgetItems() argument 130 items.add(item); in putAppWidgetItems() 148 List<Item> items = new ArrayList<Item>(); in getItems() local 154 putInstalledAppWidgets(items, categoryFilter); in getItems() 158 putCustomAppWidgets(items, intent); in getItems() 160 Collections.sort(items, new Comparator<Item>() { in getItems() 170 items.addAll(customItems); in getItems() 172 return items; in getItems() [all …]
|
D | ActivityPicker.java | 103 List<PickAdapter.Item> items = getItems(); in onCreate() local 104 mAdapter = new PickAdapter(this, items); in onCreate() 146 List<PickAdapter.Item> items = new ArrayList<PickAdapter.Item>(); in getItems() local 171 items.add(new PickAdapter.Item(this, label, icon)); in getItems() 177 putIntentItems(mBaseIntent, items); in getItems() 180 return items; in getItems() 186 protected void putIntentItems(Intent baseIntent, List<PickAdapter.Item> items) { in putIntentItems() argument 195 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); in putIntentItems() 281 public PickAdapter(Context context, List<Item> items) { in PickAdapter() argument 283 mItems = items; in PickAdapter()
|
/packages/apps/Settings/src/com/android/settings/ |
D | AppWidgetLoader.java | 56 void putCustomAppWidgets(List<Item> items, Intent intent) { in putCustomAppWidgets() argument 106 putAppWidgetItems(customInfo, customExtras, items, 0, true); in putCustomAppWidgets() 115 List<Bundle> customExtras, List<Item> items, int categoryFilter, in putAppWidgetItems() argument 130 items.add(item); in putAppWidgetItems() 148 List<Item> items = new ArrayList<Item>(); in getItems() local 154 putInstalledAppWidgets(items, categoryFilter); in getItems() 158 putCustomAppWidgets(items, intent); in getItems() 160 Collections.sort(items, new Comparator<Item>() { in getItems() 170 items.addAll(customItems); in getItems() 172 return items; in getItems() [all …]
|
D | ActivityPicker.java | 103 List<PickAdapter.Item> items = getItems(); in onCreate() local 104 mAdapter = new PickAdapter(this, items); in onCreate() 146 List<PickAdapter.Item> items = new ArrayList<PickAdapter.Item>(); in getItems() local 171 items.add(new PickAdapter.Item(this, label, icon)); in getItems() 177 putIntentItems(mBaseIntent, items); in getItems() 180 return items; in getItems() 186 protected void putIntentItems(Intent baseIntent, List<PickAdapter.Item> items) { in putIntentItems() argument 195 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); in putIntentItems() 281 public PickAdapter(Context context, List<Item> items) { in PickAdapter() argument 283 mItems = items; in PickAdapter()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDebug.java | 82 List<Map<String, String>> items = new ArrayList<Map<String, String>>(); in doInBackground() local 89 addItem(items, mActivity.getString(R.string.calendar_info_error), ""); in doInBackground() 131 addItem(items, displayName, text); in doInBackground() 137 addItem(items, mActivity.getString(R.string.calendar_info_error), e.toString()); in doInBackground() 144 if (items.size() == 0) { in doInBackground() 145 addItem(items, mActivity.getString(R.string.calendar_info_no_calendars), ""); in doInBackground() 147 return items; in doInBackground() 158 protected void onPostExecute(List<Map<String, String>> items) { in onPostExecute() argument 160 ListAdapter adapter = new SimpleAdapter(mActivity, items, in onPostExecute() 186 protected void addItem(List<Map<String, String>> items, String title, String text) { in addItem() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 77 private List<PieItem> items; field in PieRenderer 153 items = new ArrayList<PieItem>(); in init() 192 items.add(item); in addItem() 196 items.remove(item); in removeItem() 200 items.clear(); in clearItems() 233 for (PieItem item : items) { in show() 281 layoutItems(items, (float) (Math.PI / 2), inner, outer, gap); in layoutPie() 284 private void layoutItems(List<PieItem> items, float centerAngle, int inner, int outer, int gap) { in layoutItems() argument 286 float sweep = (PIE_SWEEP - 2 * emptyangle) / items.size(); in layoutItems() 291 for (PieItem item : items) { in layoutItems() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | RatingsFragment.java | 102 List<Item> items = new ArrayList<>(); in getItemList() local 106 items.add(mBlockUnratedItem); in getItemList() 107 items.add(new DividerItem()); in getItemList() 115 items.addAll(mRatingLevelItems); in getItemList() 127 items.add(new DividerItem(s.getDisplayName())); in getItemList() 133 items.add(item); in getItemList() 149 items.add(new DividerItem()); in getItemList() 150 items.add(new AttributionItem(getMainActivity())); in getItemList() 152 mItemsSize = items.size(); in getItemList() 153 return items; in getItemList()
|
D | RatingSystemsFragment.java | 81 List<Item> items = new ArrayList<>(); in getItemList() local 90 items.add(new RatingSystemItem(s)); in getItemList() 92 items.add(new RatingSystemItem(s)); in getItemList() 115 final List<Item> allItems = new ArrayList<>(items); in getItemList() 120 items.add( in getItemList() 127 return items; in getItemList()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | TimeClustering.java | 119 ArrayList<SmallItem> items = new ArrayList<SmallItem>(total); in run() local 122 items.add(buf[i]); in run() 126 Collections.sort(items, sDateComparator); in run() 128 int n = items.size(); in run() 132 long t = items.get(i).dateInMs; in run() 145 compute(items.get(i)); in run() 164 ArrayList<SmallItem> items = mClusters.get(index).getItems(); in getCluster() local 165 ArrayList<Path> result = new ArrayList<Path>(items.size()); in getCluster() 166 for (int i = 0, n = items.size(); i < n; i++) { in getCluster() 167 result.add(items.get(i).path); in getCluster()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestMenu.java | 38 private SparseArray<TestMenuItem> items = new SparseArray<>(); field in TestMenu 91 menu.items = new SparseArray<>(); in create() 105 items.put(id, item); in addMenuItem() 110 return items.get(id); in findItem() 115 return items.size(); in size() 120 return items.valueAt(index); in getItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsRecyclerView.java | 252 List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); in onUpdateScrollbar() local 255 if (items.isEmpty() || mNumAppsPerRow == 0) { in onUpdateScrollbar() 326 List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); in getCurrentScrollY() local 327 if (items.isEmpty() || mNumAppsPerRow == 0 || getChildCount() == 0) { in getCurrentScrollY() 342 List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); in getCurrentScrollY() local 343 AlphabeticalAppsList.AdapterItem posItem = position < items.size() ? in getCurrentScrollY() 344 items.get(position) : null; in getCurrentScrollY() 349 AlphabeticalAppsList.AdapterItem item = items.get(i); in getCurrentScrollY()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumDataLoader.java | 241 public ArrayList<MediaItem> items; field in AlbumDataLoader.UpdateInfo 293 ArrayList<MediaItem> items = info.items; in call() local 296 if ((items == null) || items.isEmpty()) { in call() 304 int end = Math.min(info.reloadStart + items.size(), mContentEnd); in call() 309 MediaItem updateItem = items.get(i - info.reloadStart); in call() 380 info.items = mSource.getMediaItem(info.reloadStart, info.reloadCount); in run()
|
D | PhotoDataAdapter.java | 934 public ArrayList<MediaItem> items; field in PhotoDataAdapter.UpdateInfo 983 if (info.items != null) { in call() 985 int end = Math.min(info.contentStart + info.items.size(), mContentEnd); in call() 988 mData[dataIndex] = info.items.get(i - info.contentStart); in call() 1041 info.items = mSource.getMediaItem( in run() 1103 ArrayList<MediaItem> items = info.items; in findCurrentMediaItem() local 1105 return index < 0 || index >= items.size() ? null : items.get(index); in findCurrentMediaItem() 1110 ArrayList<MediaItem> items = info.items; in findIndexOfTarget() 1113 if (items != null) { in findIndexOfTarget() 1123 ArrayList<MediaItem> items = info.items; in findIndexOfPathInCache() local [all …]
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageList.java | 332 final ArrayList<AppItem> items = new ArrayList<>(); in bindStats() local 353 AppItem.CATEGORY_USER, items, largest); in bindStats() 378 largest = accumulate(collapseKey, knownItems, bucket, category, items, largest); in bindStats() 394 items.add(item); in bindStats() 400 Collections.sort(items); in bindStats() 401 for (int i = 0; i < items.size(); i++) { in bindStats() 402 final int percentTotal = largest != 0 ? (int) (items.get(i).total * 100 / largest) : 0; in bindStats() 404 items.get(i), percentTotal, mUidDetailProvider); in bindStats() 454 Bucket bucket, int itemCategory, ArrayList<AppItem> items, long largest) { in accumulate() argument 460 items.add(item); in accumulate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | DataUsageList.java | 329 final ArrayList<AppItem> items = new ArrayList<>(); in bindStats() local 350 AppItem.CATEGORY_USER, items, largest); in bindStats() 375 largest = accumulate(collapseKey, knownItems, bucket, category, items, largest); in bindStats() 391 items.add(item); in bindStats() 397 Collections.sort(items); in bindStats() 398 for (int i = 0; i < items.size(); i++) { in bindStats() 399 final int percentTotal = largest != 0 ? (int) (items.get(i).total * 100 / largest) : 0; in bindStats() 401 items.get(i), percentTotal, mUidDetailProvider); in bindStats() 451 Bucket bucket, int itemCategory, ArrayList<AppItem> items, long largest) { in accumulate() argument 457 items.add(item); in accumulate()
|