Home
last modified time | relevance | path

Searched refs:mItems (Results 1 – 10 of 10) sorted by relevance

/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DSimpleMenu.java41 private ArrayList<SimpleMenuItem> mItems; field in SimpleMenu
46 mItems = new ArrayList<SimpleMenuItem>(); in SimpleMenu()
78 mItems.add(findInsertIndex(mItems, order), item); in addInternal()
97 SimpleMenuItem item = mItems.get(i); in findItemIndex()
111 if ((index < 0) || (index >= mItems.size())) { in removeItemAtInt()
114 mItems.remove(index); in removeItemAtInt()
118 mItems.clear(); in clear()
124 SimpleMenuItem item = mItems.get(i); in findItem()
134 return mItems.size(); in size()
138 return mItems.get(index); in getItem()
/development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/
DAppNavHomeActivity.java87 private List<SampleInfo> mItems; field in AppNavHomeActivity.SampleAdapter
90 mItems = items; in SampleAdapter()
95 return mItems.size(); in getCount()
100 return mItems.get(position); in getItem()
116 tv.setText(mItems.get(position).name); in getView()
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/
DAppNavHomeActivity.java87 private List<SampleInfo> mItems; field in AppNavHomeActivity.SampleAdapter
90 mItems = items; in SampleAdapter()
95 return mItems.size(); in getCount()
100 return mItems.get(position); in getItem()
116 tv.setText(mItems.get(position).name); in getView()
/development/samples/wearable/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
DRecipeListAdapter.java47 private List<Item> mItems = new ArrayList<Item>(); field in RecipeListAdapter
87 mItems.addAll(items); in appendItemsToList()
95 return mItems.size(); in getCount()
100 return mItems.get(position); in getItem()
147 return mItems.isEmpty(); in isEmpty()
171 return mItems.get(position).name; in getItemName()
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicRetriever.java42 List<Item> mItems = new ArrayList<Item>(); field in MusicRetriever
91 mItems.add(new Item( in prepare()
108 if (mItems.size() <= 0) return null; in getRandomItem()
109 return mItems.get(mRandom.nextInt(mItems.size())); in getRandomItem()
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/
DExploreByTouchHelperActivity.java93 private final List<CustomItem> mItems = new ArrayList<CustomItem>(); field in ExploreByTouchHelperActivity.CustomView
150 mItems.add(item); in addItem()
162 for (CustomItem item : mItems) { in onDraw()
199 final int n = mItems.size(); in getItemIndexUnder()
202 final CustomItem item = mItems.get(i); in getItemIndexUnder()
212 if ((index < 0) || (index >= mItems.size())) { in getItem()
216 return mItems.get(index); in getItem()
251 final int n = mItems.size(); in getVisibleVirtualViews()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPlaybackOverlayFragment.java71 private ArrayList<MediaItem> mItems = new ArrayList<MediaItem>(); field in PlaybackOverlayFragment
158 mItems = new ArrayList<MediaItem>(); in addPlaybackControlsRow()
159mItems.add(new MediaItem("Awesome Tune", "The More Awesome Band", R.drawable.details_img, 15*1000)… in addPlaybackControlsRow()
160mItems.add(new MediaItem("Pretty nice Tune", "The Nice Guys", R.drawable.details_img, 10*1000)); in addPlaybackControlsRow()
220 item.title = mItems.get(index).title; in updatePlaybackRow()
221 item.subtitle = mItems.get(index).subtitle; in updatePlaybackRow()
225 mItems.get(mCurrentItem).imageResId)); in updatePlaybackRow()
229 mPlaybackControlsRow.setTotalTime(mItems.get(mCurrentItem).durationMs); in updatePlaybackRow()
269 if (++mCurrentItem >= mItems.size()) { in next()
/development/samples/browseable/ActionBarCompat-ShareActionProvider/src/com.example.android.actionbarcompat.shareactionprovider/
DMainActivity.java52 private final ArrayList<ContentItem> mItems = getSampleContent(); field in MainActivity
98 return mItems.size();
120 final ContentItem item = mItems.get(position);
171 ContentItem item = mItems.get(position);
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DAnimatedRecyclerView.java46 ArrayList<String> mItems = new ArrayList<String>(); field in AnimatedRecyclerView
66 mItems.add("Item #" + i); in onCreate()
68 mAdapter = new MyAdapter(mItems); in onCreate()
132 int numItems = mItems.size(); in deleteItem()
135 final String itemText = mItems.get(i); in deleteItem()
155 mItems.remove(position); in removeAtPosition()
160 mItems.add(position, text); in addAtPosition()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPrintCustomContent.java515 private final List<MotoGpStatItem> mItems; field in PrintCustomContent.MotoGpStatAdapter
519 mItems = items; in MotoGpStatAdapter()
524 return new ArrayList<MotoGpStatItem>(mItems); in cloneItems()
529 return mItems.size(); in getCount()
534 return mItems.get(position); in getItem()