/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/ |
D | Cheeses.java | 161 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/SwipeRefreshListFragment/src/com.example.android.common/dummydata/ |
D | Cheeses.java | 161 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/ |
D | Cheeses.java | 161 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/ActionBarCompat-ShareActionProvider/src/com.example.android.actionbarcompat.shareactionprovider/ |
D | MainActivity.java | 198 ArrayList<ContentItem> items = new ArrayList<ContentItem>(); in getSampleContent() local 200 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_1.jpg")); in getSampleContent() 201 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_1)); in getSampleContent() 202 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_2)); in getSampleContent() 203 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_2.jpg")); in getSampleContent() 204 items.add(new ContentItem(ContentItem.CONTENT_TYPE_TEXT, R.string.quote_3)); in getSampleContent() 205 items.add(new ContentItem(ContentItem.CONTENT_TYPE_IMAGE, "photo_3.jpg")); in getSampleContent() 207 return items; in getSampleContent()
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
D | WiFiDirectServicesList.java | 56 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()
|
D | WiFiChatFragment.java | 29 private List<String> items = new ArrayList<String>(); field in WiFiChatFragment 38 items); in onCreateView() 78 List<String> items) { in ChatMessageAdapter() argument 79 super(context, textViewResourceId, items); in ChatMessageAdapter() 90 String message = items.get(position); in getView()
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
D | AppRestrictionEnforcerFragment.java | 142 mLayoutItems = (LinearLayout) view.findViewById(R.id.items); in onViewCreated() 251 Map<String, String> items = new HashMap<>(); in onItemAdded() local 255 items.put(bundle.getString(RESTRICTION_KEY_ITEM_KEY), in onItemAdded() 259 items.put(key, value); in onItemAdded() 261 saveItems(getActivity(), items); in onItemAdded() local 311 HashMap<String, String> items = new HashMap<>(); in loadRestrictions() local 314 items.put(strings[0], strings[1]); in loadRestrictions() 316 updateItems(activity, items); in loadRestrictions() 381 private void updateItems(Context context, Map<String, String> items) { in updateItems() argument 385 mCurrentRestrictions.putParcelableArray(RESTRICTION_KEY_ITEMS, convertToBundles(items)); in updateItems() [all …]
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
D | RecipeListAdapter.java | 59 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.jd | 9 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/ |
D | PopupListFragment.java | 42 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/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | ComplicationSimpleConfigActivity.java | 97 List<ComplicationItem> items = new ArrayList<>(); in getComplicationItems() local 99 items.add(new ComplicationItem(watchFace, in getComplicationItems() 105 return items; in getComplicationItems() 142 public ConfigurationAdapter (Context context, List<ComplicationItem> items) { in ConfigurationAdapter() argument 145 mItems = items; in ConfigurationAdapter()
|
/development/tools/axl/ |
D | chewperf.py | 79 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/ |
D | PrintCustomContent.java | 202 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/ |
D | RssReader.java | 128 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/samples/NotePad/src/com/example/android/notepad/ |
D | NotesList.java | 211 MenuItem[] items = new MenuItem[1]; in onPrepareOptionsMenu() local 233 items // The menu items generated from the specifics-to- in onPrepareOptionsMenu() 237 if (items[0] != null) { in onPrepareOptionsMenu() 240 items[0].setShortcut('1', 'e'); in onPrepareOptionsMenu()
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | DeviceListFragment.java | 103 private List<WifiP2pDevice> items; field in DeviceListFragment.WiFiPeerListAdapter 113 items = objects; in WiFiPeerListAdapter() 125 WifiP2pDevice device = items.get(position); in getView()
|
/development/tools/mkstubs/ |
D | README.txt | 22 +foo => accepts all items which signature is exactly "foo" 23 +foo* => accepts all items which signature starts by "foo" 24 -bar => rejects all items which signature is exactly "bar" 25 -bar* => rejects all items which signature starts by "bar"
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | TitlesFragment.java | 149 String[] items = new String[cat.getEntryCount()]; in populateTitles() local 151 items[i] = cat.getEntry(i).getName(); in populateTitles() 154 R.layout.title_list_item, items)); in populateTitles()
|
/development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/ |
D | AppNavHomeActivity.java | 89 public SampleAdapter(List<SampleInfo> items) { in SampleAdapter() argument 90 mItems = items; in SampleAdapter()
|
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/ |
D | AppNavHomeActivity.java | 89 public SampleAdapter(List<SampleInfo> items) { in SampleAdapter() argument 90 mItems = items; in SampleAdapter()
|
/development/ndk/platforms/android-14/samples/native-media/jni/ |
D | native-media-jni.c | 306 XAAndroidBufferItem items[1]; in enqueueInitialBuffers() local 307 items[0].itemKey = XA_ANDROID_ITEMKEY_DISCONTINUITY; in enqueueInitialBuffers() 308 items[0].itemSize = 0; in enqueueInitialBuffers() 313 dataCache + i*BUFFER_SIZE, bufferSize, items /*pMsg*/, in enqueueInitialBuffers()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ShadowCardStack.java | 38 public AnimatorSet createSet(ArrayList<Animator> items, long startDelay) { in createSet() argument 40 set.playTogether(items); in createSet()
|
/development/samples/Support7Demos/src/com/example/android/supportv7/util/ |
D | SortedListActivity.java | 76 public SortedListAdapter(LayoutInflater layoutInflater, Item... items) { in SortedListAdapter() argument 107 for (Item item : items) { in SortedListAdapter()
|
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/ |
D | AppRestrictionSchemaFragment.java | 230 Bundle[] items = new Bundle[parcelables.length]; in updateItems() local 232 items[i] = (Bundle) parcelables[i]; in updateItems() 235 for (Bundle item : items) { in updateItems()
|
/development/samples/UiAutomator/ |
D | README | 15 items. Here we do the following:
|