Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DAutoInstallsLayoutTest.kt102 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/
DPickerResultTest.java69 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/
DFolderIconLoadTest.kt74 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/
DIllustrationsRepositoryTest.kt50 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/
DBaseTimeZoneAdapterTest.java43 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/
DChannelsRowAdapter.java163 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/
DDockViewModelTest.kt64 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/
DAppDataUsagePreferenceController.java96 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/
DGroupedSelectableItemsUseCaseImplTest.kt26 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/
DCustomizeChannelListFragment.java172 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 …]
DDeveloperOptionFragment.java63 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()
DSettingsFragment.java55 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/
DItemAdapter.kt44 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/
DAppWidgetLoader.java56 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/
DAppDataUsageRepository.kt52 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/
DCalendarDebug.java82 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/
DWidgetsListHeaderEntry.java70 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/
DColorTypeTabAdapter.kt31 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/
DClockSettingsTabAdapter.kt30 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/
DTsParser.java83 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/
DBaseFragment.java129 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/
DSlotTabAdapter.kt31 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/
DRandomGraphGeneratorUtils.h122 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/
DSelectionImpl.kt116 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/
DJSScriptArgument.java101 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()

12345678910>>...14