/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AutoInstallsLayoutTest.kt | 102 assertThat(callback.items.size).isEqualTo(1) in pending_icon_added_on_home() 103 assertThat(callback.items[0][ITEM_TYPE]).isEqualTo(ITEM_TYPE_APPLICATION) in pending_icon_added_on_home() 104 assertThat(callback.items[0][INTENT]) in pending_icon_added_on_home() 106 assertThat(callback.items[0][CONTAINER]).isEqualTo(CONTAINER_DESKTOP) in pending_icon_added_on_home() 107 assertThat(callback.items[0].containsKey(PROFILE_ID)).isFalse() in pending_icon_added_on_home() 118 assertThat(callback.items.size).isEqualTo(1) in pending_icon_added_on_hotseat() 119 assertThat(callback.items[0][ITEM_TYPE]).isEqualTo(ITEM_TYPE_APPLICATION) in pending_icon_added_on_hotseat() 120 assertThat(callback.items[0][CONTAINER]).isEqualTo(CONTAINER_HOTSEAT) in pending_icon_added_on_hotseat() 131 assertThat(callback.items.size).isEqualTo(1) in widget_added_to_home() 132 assertThat(callback.items[0][ITEM_TYPE]).isEqualTo(ITEM_TYPE_APPWIDGET) in widget_added_to_home() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/ |
D | PickerResultTest.java | 69 List<Item> items = null; in testGetResultSingle() local 71 items = createItemSelection(1); in testGetResultSingle() 73 items.get(0).getContentUri()); in testGetResultSingle() 75 ACTION_PICK_IMAGES, /* canSelectMultiple */ false, items); in testGetResultSingle() 87 deleteFiles(items); in testGetResultSingle() 93 List<Item> items = null; in testGetResultSingleForActionGetContent() local 95 items = createItemSelection(1); in testGetResultSingleForActionGetContent() 97 items.get(0).getContentUri()); in testGetResultSingleForActionGetContent() 99 ACTION_GET_CONTENT, /* canSelectMultiple */ false, items); in testGetResultSingleForActionGetContent() 111 deleteFiles(items); in testGetResultSingleForActionGetContent() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | FolderIconLoadTest.kt | 74 val items = setupAndLoadFolder(4) in folderLoadedWithHighRes_2x2() constant 75 assertThat(items.size).isEqualTo(4) in folderLoadedWithHighRes_2x2() 76 verifyHighRes(items, 0, 1, 2, 3) in folderLoadedWithHighRes_2x2() 82 val items = setupAndLoadFolder(6) in folderLoadedWithHighRes_3x2() constant 83 assertThat(items.size).isEqualTo(6) in folderLoadedWithHighRes_3x2() 84 verifyHighRes(items, 0, 1, 3, 4) in folderLoadedWithHighRes_3x2() 85 verifyLowRes(items, 2, 5) in folderLoadedWithHighRes_3x2() 96 val items = setupAndLoadFolder(14) in folderLoadedWithHighRes_max_3x3() constant 97 verifyHighRes(items, 0, 1, 3, 4) in folderLoadedWithHighRes_max_3x3() 98 verifyLowRes(items, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13) in folderLoadedWithHighRes_max_3x3() [all …]
|
/packages/apps/AvatarPicker/src/tests/unit/java/com/android/avatarpicker/tests/unit/data/ |
D | IllustrationsRepositoryTest.kt | 50 var items = listOf<ResourceEntity>() in <lambda>() variable 51 launch { items = illustrationsRepository.getItems() } in <lambda>() 53 Truth.assertThat(items.size).isEqualTo(0) in <lambda>() 62 var items = listOf<ResourceEntity>() in <lambda>() variable 63 launch { items = illustrationsRepository.getItems() } in <lambda>() 66 Truth.assertThat(items.size).isEqualTo(3) in <lambda>() 67 Truth.assertThat(items[0].drawableId).isEqualTo(R.drawable.light_blue) in <lambda>() 68 Truth.assertThat(items[0].descriptionId).isEqualTo(R.string.light_blue) in <lambda>() 69 Truth.assertThat(items[0].colorInt).isNull() in <lambda>() 70 Truth.assertThat(items[1].drawableId).isEqualTo(R.drawable.light_yellow) in <lambda>() [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/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/Car/Launcher/docklib/tests/src/com/android/car/docklib/ |
D | DockViewModelTest.kt | 64 private lateinit var items: List<DockAppItem> in <lambda>() variable 98 assertThat(items.size).isEqualTo(MAX_ITEMS) in <lambda>() 99 assertThat(items[0].component).isEqualTo(defaultPinnedItems[0]) in <lambda>() 100 assertThat(items[1].component).isEqualTo(defaultPinnedItems[1]) in <lambda>() 101 assertThat(items[2].component).isEqualTo(defaultPinnedItems[2]) in <lambda>() 102 assertThat(items[3].component).isEqualTo(defaultPinnedItems[3]) in <lambda>() 114 assertThat(items.size).isEqualTo(MAX_ITEMS) in <lambda>() 115 assertThat(items[0].type).isEqualTo(DockAppItem.Type.DYNAMIC) in <lambda>() 116 assertThat(items[1].type).isEqualTo(DockAppItem.Type.DYNAMIC) in <lambda>() 117 assertThat(items[2].type).isEqualTo(DockAppItem.Type.DYNAMIC) in <lambda>() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceController.java | 96 List<AppItem> items = new ArrayList<>(); in onDataLoaded() local 105 long size = aggregateDataUsage(knownItems, items, entry, profiles); in onDataLoaded() 110 updateRestrictedState(restrictedUids, knownItems, items, profiles); in onDataLoaded() 111 sortAndAddPreferences(items, largest); in onDataLoaded() 119 private long aggregateDataUsage(SparseArray<AppItem> knownItems, List<AppItem> items, in aggregateDataUsage() argument 133 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() 139 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() 146 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() 153 items); in aggregateDataUsage() 156 long appLargest = accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage() [all …]
|
/packages/apps/AvatarPicker/src/tests/unit/java/com/android/avatarpicker/tests/unit/domain/ |
D | GroupedSelectableItemsUseCaseImplTest.kt | 26 import com.android.avatarpicker.ui.details.items.SelectableType 58 var items = mutableListOf<List<SelectableType>>() in <lambda>() variable 64 launch { items.addAll(useCase()) } in <lambda>() 66 Truth.assertThat(items.size).isEqualTo(1) in <lambda>() 67 Truth.assertThat(items[0].size).isEqualTo(10) in <lambda>() 75 var items = mutableListOf<List<SelectableType>>() in <lambda>() variable 81 launch { items.addAll(useCase()) } in <lambda>() 83 Truth.assertThat(items.size).isEqualTo(2) in <lambda>() 84 Truth.assertThat(items[0].size).isEqualTo(2) in <lambda>() 85 Truth.assertThat(items[1].size).isEqualTo(3) in <lambda>()
|
/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 | DeveloperOptionFragment.java | 63 ImmutableList.Builder<Item> items = ImmutableList.builder(); in getItemList() local 65 items.addAll( in getItemList() 69 items.add(new DividerItem()); in getItemList() 72 items.add( in getItemList() 81 items.add( in getItemList() 89 items.add( in getItemList() 107 items.add( in getItemList() 116 return items.build(); in getItemList()
|
D | SettingsFragment.java | 55 List<Item> items = new ArrayList<>(); in getItemList() local 81 items.add(customizeChannelListItem); in getItemList() 86 items.add( in getItemList() 99 items.add( in getItemList() 143 items.add( in getItemList() 170 items.add( in getItemList() 184 items.add( in getItemList() 198 items.add( in getItemList() 216 items.add(version); in getItemList() 217 return items; in getItemList()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAdapter.kt | 44 val position = items!!.indexOf(itemHolder) in onItemChanged() 52 val position = items!!.indexOf(itemHolder) in onItemChanged() 88 @JvmField var items: MutableList<T>? = null variable in com.android.deskclock.ItemAdapter 132 val oldItemHolders = items in setItems() 170 items = itemHolders?.toMutableList() in setItems() 188 variablePosition = min(variablePosition, items!!.size) in addItem() 189 items!!.add(variablePosition, itemHolder) in addItem() 204 val index = items!!.indexOf(variableItemHolder) in removeItem() 206 variableItemHolder = items!!.removeAt(index) in removeItem() 220 override fun getItemCount(): Int = items?.size ?: 0 in getItemCount() [all …]
|
/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 …]
|
/packages/apps/Settings/src/com/android/settings/datausage/lib/ |
D | AppDataUsageRepository.kt | 52 val items = ArrayList<AppItem>() in <lambda>() constant 59 bindStats(buckets, userIdToIsHiddenMap, knownItems, items) in <lambda>() 72 items.add(item) in <lambda>() 78 val filteredItems = filterItems(carrierId, items).sorted() in <lambda>() 86 private fun filterItems(carrierId: Int?, items: List<AppItem>): List<AppItem> { in <lambda>() 93 return items in <lambda>() 98 return items.filter { item -> in <lambda>() 109 items: ArrayList<AppItem>, in <lambda>() 129 items = items, in <lambda>() 160 items = items, in <lambda>() [all …]
|
/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/Launcher3/src/com/android/launcher3/widget/model/ |
D | WidgetsListHeaderEntry.java | 70 List<WidgetItem> items, int visibleWidgetsCount, in WidgetsListHeaderEntry() argument 72 super(pkgItem, titleSectionName, items); in WidgetsListHeaderEntry() 79 List<WidgetItem> items, boolean isSearchEntry, boolean isWidgetListShown) { in WidgetsListHeaderEntry() argument 80 super(pkgItem, titleSectionName, items); in WidgetsListHeaderEntry() 81 mVisibleWidgetsCount = (int) items.stream().filter(w -> w.widgetInfo != null).count(); in WidgetsListHeaderEntry() 135 List<WidgetItem> items) { in create() argument 139 items, in create() 155 List<WidgetItem> items, int visibleWidgetsCount) { in create() argument 159 items, in create() 166 String titleSectionName, List<WidgetItem> items) { in createForSearch() argument [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/picker/color/ui/adapter/ |
D | ColorTypeTabAdapter.kt | 31 private val items = mutableListOf<ColorTypeTabViewModel>() constant 33 fun setItems(items: List<ColorTypeTabViewModel>) { in setItems() 34 this.items.clear() in setItems() 35 this.items.addAll(items) in setItems() 40 return items.size in getItemCount() 55 val item = items[position] in onBindViewHolder()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/adapter/ |
D | ClockSettingsTabAdapter.kt | 30 private val items = mutableListOf<ClockSettingsTabViewModel>() constant in com.android.customization.picker.clock.ui.adapter.ClockSettingsTabAdapter 32 fun setItems(items: List<ClockSettingsTabViewModel>) { in setItems() 33 this.items.clear() in setItems() 34 this.items.addAll(items) in setItems() 39 return items.size in getItemCount() 54 val item = items[position] in onBindViewHolder()
|
/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 …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | BaseFragment.java | 129 List<MenuItem> items = getToolbarMenuItems(); in onActivityCreated() local 130 if (items != null) { in onActivityCreated() 131 if (items.size() == 1) { in onActivityCreated() 132 items.get(0).setId(R.id.toolbar_menu_item_0); in onActivityCreated() 133 } else if (items.size() == 2) { in onActivityCreated() 134 items.get(0).setId(R.id.toolbar_menu_item_0); in onActivityCreated() 135 items.get(1).setId(R.id.toolbar_menu_item_1); in onActivityCreated() 139 toolbar.setMenuItems(items); in onActivityCreated()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/adapter/ |
D | SlotTabAdapter.kt | 31 private val items = mutableListOf<KeyguardQuickAffordanceSlotViewModel>() constant 33 fun setItems(items: List<KeyguardQuickAffordanceSlotViewModel>) { in setItems() 34 this.items.clear() in setItems() 35 this.items.addAll(items) in setItems() 40 return items.size in getItemCount() 55 val item = items[position] in onBindViewHolder()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.h | 122 inline std::string joinStr(const std::string& joint, const std::vector<T>& items) { in joinStr() argument 124 for (uint32_t i = 0; i < items.size(); i++) { in joinStr() 126 ss << items[i]; in joinStr() 128 ss << joint << items[i]; in joinStr() 135 inline std::string joinStr(const std::string& joint, const std::vector<T>& items, Function str) { in joinStr() argument 137 for (uint32_t i = 0; i < items.size(); i++) { in joinStr() 139 ss << str(items[i]); in joinStr() 145 inline std::string joinStr(const std::string& joint, int limit, const std::vector<T>& items) { in joinStr() argument 146 if (items.size() > static_cast<size_t>(limit)) { in joinStr() 147 std::vector<T> topMax(items.begin(), items.begin() + limit); in joinStr() [all …]
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/selection/ |
D | SelectionImpl.kt | 116 override suspend fun addAll(items: Collection<T>): SelectionModifiedResult { in addAll() 118 val itemsCanFit = ensureSelectionLimitLocked(items.size) in addAll() 120 _selection.addAll(items) in addAll() 146 override suspend fun containsAll(items: Collection<T>): Boolean { in containsAll() 147 return mutex.withLock { _selection.containsAll(items) } in containsAll() 183 override suspend fun removeAll(items: Collection<T>): SelectionModifiedResult { in removeAll() 185 _selection.removeAll(items) in removeAll() 245 override suspend fun toggleAll(items: Collection<T>): SelectionModifiedResult { in toggleAll() 247 for (item in items) { in toggleAll()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/js/ |
D | JSScriptArgument.java | 101 String name, T... items) { in arrayArg() argument 102 return new JSScriptArrayArgument<>(name, asList(items)); in arrayArg() 110 String name, List<T> items) { in arrayArg() argument 111 return new JSScriptArrayArgument<>(name, items); in arrayArg() 119 String name, List<String> items) { in stringArrayArg() argument 122 items.stream().map(str -> stringArg("ignored", str)).collect(Collectors.toList())); in stringArrayArg() 131 String name, List<T> items) { in numericArrayArg() argument 134 items.stream() in numericArrayArg()
|