Home
last modified time | relevance | path

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

123

/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
DCheeses.java161 ArrayList<String> items = new ArrayList<String>(); in asList() local
163 items.add(CHEESES[i]); in asList()
165 return items; in asList()
175 HashSet<String> items = new HashSet<String>(); in randomList() local
180 while (items.size() < count) { in randomList()
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
184 return new ArrayList<String>(items); in randomList()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
DCheeses.java161 ArrayList<String> items = new ArrayList<String>(); in asList() local
163 items.add(CHEESES[i]); in asList()
165 return items; in asList()
175 HashSet<String> items = new HashSet<String>(); in randomList() local
180 while (items.size() < count) { in randomList()
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
184 return new ArrayList<String>(items); in randomList()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/
DCheeses.java161 ArrayList<String> items = new ArrayList<String>(); in asList() local
163 items.add(CHEESES[i]); in asList()
165 return items; in asList()
175 HashSet<String> items = new HashSet<String>(); in randomList() local
180 while (items.size() < count) { in randomList()
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
184 return new ArrayList<String>(items); in randomList()
/development/tools/winscope/src/viewers/common/
Dvariable_height_scroll_directive.ts24 set scrollItems(items: T[]) {
25 if (this.scrollItems !== items) {
26 this.scrollStrategy.updateItems(items);
Dvariable_height_scroll_strategy.ts71 updateItems(items: object[]) {
72 this.scrollItems = items;
155 private getItemsHeight(items: object[]): number {
156 return items
Dscroll_component_test_utils.ts42 const items = htmlElement.querySelectorAll(`.${itemClassName}`)!; constant
43 expect(items.length).toBe(20);
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/
DMainActivity.java196 ArrayList<ContentItem> items = new ArrayList<ContentItem>(); in getSampleContent() local
198 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_1.jpg")); in getSampleContent()
199 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_1)); in getSampleContent()
200 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_2)); in getSampleContent()
201 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_2.jpg")); in getSampleContent()
202 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_3)); in getSampleContent()
203 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_3.jpg")); in getSampleContent()
205 return items; in getSampleContent()
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DAppRestrictionEnforcerFragment.java131 mLayoutItems = (LinearLayout) view.findViewById(R.id.items); in onViewCreated()
222 Map<String, String> items = new HashMap<>(); in onItemAdded() local
226 items.put(bundle.getString(RESTRICTION_KEY_ITEM_KEY), in onItemAdded()
230 items.put(key, value); in onItemAdded()
232 saveItems(getActivity(), items); in onItemAdded() local
268 HashMap<String, String> items = new HashMap<>(); in loadRestrictions() local
271 items.put(strings[0], strings[1]); in loadRestrictions()
273 updateItems(activity, items); in loadRestrictions()
322 private void updateItems(Context context, Map<String, String> items) { in updateItems() argument
326 mCurrentRestrictions.putParcelableArray(RESTRICTION_KEY_ITEMS, convertToBundles(items)); in updateItems()
[all …]
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DWiFiDirectServicesList.java56 private List<WiFiP2pService> items; field in WiFiDirectServicesList.WiFiDevicesAdapter
59 int textViewResourceId, List<WiFiP2pService> items) { in WiFiDevicesAdapter() argument
60 super(context, resource, textViewResourceId, items); in WiFiDevicesAdapter()
61 this.items = items; in WiFiDevicesAdapter()
72 WiFiP2pService service = items.get(position); in getView()
DWiFiChatFragment.java29 private List<String> items = new ArrayList<String>(); field in WiFiChatFragment
38 items); in onCreateView()
77 List<String> items) { in ChatMessageAdapter() argument
78 super(context, textViewResourceId, items); in ChatMessageAdapter()
89 String message = items.get(position); in getView()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java59 List<Item> items = parseJson(jsonObject); in loadRecipeList() local
60 appendItemsToList(items); in loadRecipeList()
67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST); in parseJson() local
68 for (int i = 0; i < items.length(); i++) { in parseJson()
69 JSONObject item = items.getJSONObject(i); in parseJson()
86 private void appendItemsToList(List<Item> items) { in appendItemsToList() argument
87 mItems.addAll(items); in appendItemsToList()
/development/samples/browseable/ActionBarCompat-Basic/
D_index.jd9 displays action items. It covers inflating items from a menu resource, as well as adding
10 an item in code. Items that are not shown as action items on the Action Bar are
/development/samples/browseable/ActionBarCompat-ListPopupMenu/src/com.example.android.actionbarcompat.listpopupmenu/
DPopupListFragment.java42 ArrayList<String> items = new ArrayList<String>(); in onActivityCreated() local
44 items.add(Cheeses.CHEESES[i]); in onActivityCreated()
48 setListAdapter(new PopupAdapter(items)); in onActivityCreated()
109 PopupAdapter(ArrayList<String> items) { in PopupAdapter() argument
110 super(getActivity(), R.layout.list_item, android.R.id.text1, items); in PopupAdapter() local
/development/tools/compare_cts_reports/
Dcompare_cts_reports.py122 for module_name, abis in diff.items():
123 for abi, test_classes in abis.items():
124 for class_name, tests in test_classes.items():
125 for test_name, results in tests.items():
199 for module_name, abis in report.module_summaries.items():
200 for abi, summary in abis.items():
215 items = parse_cts_report.CtsReport.STATUS_ORDER + [
225 for item in items:
Dparse_cts_report.py71 for module_name, abis in modules.items():
72 for abi, test_classes in abis.items():
73 for class_name, tests in test_classes.items():
194 for module_name, abis in modules.items():
195 for abi, test_classes in abis.items():
203 for class_name, tests in test_classes.items():
204 for test_name, result in tests.items():
245 items = 0
247 items += self.counter[status]
248 return items
/development/samples/ReceiveContentDemo/src/com/example/android/receivecontent/
DUtils.java68 List<ClipData.Item> items) { in buildClipData() argument
69 ClipData clip = new ClipData(new ClipDescription(description), items.get(0)); in buildClipData()
70 for (int i = 1; i < items.size(); i++) { in buildClipData()
71 clip.addItem(items.get(i)); in buildClipData()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DComplicationSimpleConfigActivity.java112 List<ComplicationItem> items = new ArrayList<>(); in getComplicationItems() local
114 items.add(new ComplicationItem(watchFace, in getComplicationItems()
120 return items; in getComplicationItems()
157 public ConfigurationAdapter (Context context, List<ComplicationItem> items) { in ConfigurationAdapter() argument
160 mItems = items; in ConfigurationAdapter()
/development/tools/axl/
Dchewperf.py79 for x in range(len(buckets.items())):
80 window[x % len(window)] = buckets.items()[x][1]
81 print "%s\t%s" % (buckets.items()[x][0], sum(window) / len(window))
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPrintCustomContent.java202 final List<MotoGpStatItem> items = ((MotoGpStatAdapter) in print()
224 MotoGpStatAdapter adapter = new MotoGpStatAdapter(items, in print()
312 final List<MotoGpStatItem> items = ((MotoGpStatAdapter) in print()
336 MotoGpStatAdapter adapter = new MotoGpStatAdapter(items, in print()
494 List<MotoGpStatItem> items = new ArrayList<MotoGpStatItem>(); in loadMotoGpStats() local
502 items.add(item); in loadMotoGpStats()
505 return items; in loadMotoGpStats()
518 public MotoGpStatAdapter(List<MotoGpStatItem> items, LayoutInflater inflater) { in MotoGpStatAdapter() argument
519 mItems = items; in MotoGpStatAdapter()
/development/samples/RSSReader/src/com/example/android/rssreader/
DRssReader.java128 List<RssItem> items = new ArrayList<RssItem>(); in onCreate() local
129 mAdapter = new RSSListAdapter(this, items); in onCreate()
228 List<RssItem> items = new ArrayList<RssItem>(); in resetUI() local
229 mAdapter = new RSSListAdapter(this, items); in resetUI()
448 List<RssItem> items = new ArrayList<RssItem>(); in onRestoreInstanceState() local
450 items.add(new RssItem(strings.get(i), strings.get(i + 1), strings.get(i + 2))); in onRestoreInstanceState()
454 mAdapter = new RSSListAdapter(this, items); in onRestoreInstanceState()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DHistory.java55 String[] items = mItems.toArray(new String[mItems.size()]); in save() local
56 mPrefs.edit().putString(mSharedPrefKey, TextUtils.join(SEPARATOR, items)).apply(); in save()
/development/tools/otagui/
Dtest_ota_interface.py38 for key, value in self.__dict__.items():
100 for key, value in test_dict.items():
125 for key, value in test_dict.items():
160 for key, value in test_dict.items():
176 for key, value in test_dict.items():
317 for key, value in test_args.items():
/development/vndk/tools/image-diff-tool/
Ddiff.py161 for _, targets in sha1_target_map.items():
168 for filename, sha1_target_map in artifact_sha1_target_map.items():
170 for sha1, targets in sha1_target_map.items():
174 for sha1, targets in sha1_target_map.items():
178 for sha1, targets in sha1_target_map.items():
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DDeviceListFragment.java103 private List<WifiP2pDevice> items; field in DeviceListFragment.WiFiPeerListAdapter
113 items = objects; in WiFiPeerListAdapter()
125 WifiP2pDevice device = items.get(position); in getView()
/development/samples/NotePad/src/com/example/android/notepad/
DNotesList.java202 MenuItem[] items = new MenuItem[1]; in onPrepareOptionsMenu() local
224 items // The menu items generated from the specifics-to- in onPrepareOptionsMenu()
228 if (items[0] != null) { in onPrepareOptionsMenu()
231 items[0].setShortcut('1', 'e'); in onPrepareOptionsMenu()

123