Home
last modified time | relevance | path

Searched refs:getItem (Results 1 – 25 of 131) sorted by relevance

123456

/frameworks/base/core/java/android/preference/
DPreferenceGroupAdapter.java211 public Preference getItem(int position) { in getItem() method in PreferenceGroupAdapter
218 return this.getItem(position).getId(); in getItemId()
236 final Preference preference = this.getItem(position); in getView()
260 return this.getItem(position).isSelectable(); in isEnabled()
298 final Preference preference = this.getItem(position); in getItemViewType()
/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java170 Assert.assertEquals(firstOrder, mMenu.getItem(0).getOrder()); in testOrder()
171 Assert.assertEquals(a, mMenu.getItem(0).getTitle()); in testOrder()
172 Assert.assertEquals(midOrder, mMenu.getItem(1).getOrder()); in testOrder()
173 Assert.assertEquals(b, mMenu.getItem(1).getTitle()); in testOrder()
174 Assert.assertEquals(lastOrder, mMenu.getItem(2).getOrder()); in testOrder()
175 Assert.assertEquals(c, mMenu.getItem(2).getTitle()); in testOrder()
236 final MenuItem subMenuItem = subMenu.getItem(); in testSubMenu()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DSubMenuWrapperICS.java83 public MenuItem getItem() { in getItem() method in SubMenuWrapperICS
84 return getMenuItemWrapper(((android.view.SubMenu) mWrappedObject).getItem()); in getItem()
DMenuPopupHelper.java180 adapter.mAdapterMenu.performItemAction(adapter.getItem(position), 0); in onItemClick()
272 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected()
346 public MenuItemImpl getItem(int position) { in getItem() method in MenuPopupHelper.MenuAdapter
370 itemView.initialize(getItem(position), 0); in getView()
DListMenuPresenter.java169 mMenu.performItemAction(mAdapter.getItem(position), this, 0); in onItemClick()
241 public MenuItemImpl getItem(int position) { in getItem() method in ListMenuPresenter.MenuAdapter
262 itemView.initialize(getItem(position), 0); in getView()
DMenuWrapperICS.java143 public MenuItem getItem(int index) { in getItem() method in MenuWrapperICS
144 return getMenuItemWrapper(mWrappedObject.getItem(index)); in getItem()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java102 public UsageEvents.Event getItem(int position) { in getItem() method in UsageLogActivity.Adapter
113 final int eventType = getItem(position).getEventType(); in getItemViewType()
122 final UsageEvents.Event event = getItem(position); in getView()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseCursorPagerAdapter.java67 public abstract Fragment getItem(Context context, Cursor cursor, int position); in getItem() method in BaseCursorPagerAdapter
72 public Fragment getItem(int position) { in getItem() method in BaseCursorPagerAdapter
74 return getItem(mContext, mCursor, position); in getItem()
DBaseFragmentPagerAdapter.java64 public abstract Fragment getItem(int position); in getItem() method in BaseFragmentPagerAdapter
87 fragment = getItem(position); in instantiateItem()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DOverflowMenuAdapter.java57 public MenuItemImpl getItem(int position) { in getItem() method in OverflowMenuAdapter
81 itemView.initialize(getItem(position), 0); in getView()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsCreateFragment.java141 final DocumentStack stack = mAdapter.getItem(position);
221 final DocumentStack stack = getItem(position); in getView()
247 public DocumentStack getItem(int position) { in getItem() method in RecentsCreateFragment.DocumentStackAdapter
253 return getItem(position).hashCode(); in getItemId()
DSectionedListAdapter.java66 public Object getItem(int position) { in getItem() method in SectionedListAdapter
76 return section.getItem(position - 1); in getItem()
DRootsFragment.java158 final Object item = mAdapter.getItem(i); in onCurrentRootChanged()
180 final Item item = mAdapter.getItem(position);
194 final Item item = mAdapter.getItem(position);
362 final Item item = getItem(position); in getView()
378 final Item item = getItem(position); in getItemViewType()
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuPresenter.java165 mMenu.performItemAction(mAdapter.getItem(position), this, 0); in onItemClick()
237 public MenuItemImpl getItem(int position) { in getItem() method in ListMenuPresenter.MenuAdapter
258 itemView.initialize(getItem(position), 0); in getView()
DMenuPopupHelper.java179 adapter.mAdapterMenu.performItemAction(adapter.getItem(position), 0); in onItemClick()
284 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected()
358 public MenuItemImpl getItem(int position) { in getItem() method in MenuPopupHelper.MenuAdapter
382 itemView.initialize(getItem(position), 0); in getView()
/frameworks/support/v4/java/android/support/v4/app/
DFragmentPagerAdapter.java76 public abstract Fragment getItem(int position); in getItem() method in FragmentPagerAdapter
97 fragment = getItem(position); in instantiateItem()
/frameworks/support/v13/java/android/support/v13/app/
DFragmentPagerAdapter.java80 public abstract Fragment getItem(int position); in getItem() method in FragmentPagerAdapter
101 fragment = getItem(position); in instantiateItem()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteChooserDialog.java205 return getItem(position).isEnabled(); in isEnabled()
214 MediaRouter.RouteInfo route = getItem(position); in getView()
232 MediaRouter.RouteInfo route = getItem(position); in onItemClick()
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java208 return getItem(position).isEnabled(); in isEnabled()
217 MediaRouter.RouteInfo route = getItem(position); in getView()
235 MediaRouter.RouteInfo route = getItem(position); in onItemClick()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DGlobalActions.java196 && mAdapter.getItem(0) instanceof SinglePressAction in handleShow()
197 && !(mAdapter.getItem(0) instanceof LongPressAction)) { in handleShow()
198 ((SinglePressAction) mAdapter.getItem(0)).onPress(); in handleShow()
318 final Action action = mAdapter.getItem(position); in createDialog()
549 if (!(mAdapter.getItem(which) instanceof SilentModeTriStateAction)) {
552 mAdapter.getItem(which).onPress();
582 return getItem(position).isEnabled();
590 public Action getItem(int position) {
620 Action action = getItem(position);
1189 mAdapter.getItem(i).getLabelForAccessibility(getContext());
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DSelectPrinterActivity.java132 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreate()
189 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreateContextMenu()
386 String item = adapter.getItem(which); in onCreateDialog()
513 public Object getItem(int position) {
538 PrinterInfo printer = (PrinterInfo) getItem(position);
579 PrinterInfo printer = (PrinterInfo) getItem(position);
/frameworks/base/core/java/android/view/
DSubMenu.java108 public MenuItem getItem(); in getItem() method
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewRowPresenter.java129 getOnItemSelectedListener().onItemSelected(ibvh.getItem(), getRow()); in dispatchItemSelection()
132 … getOnItemViewSelectedListener().onItemSelected(ibvh.getViewHolder(), ibvh.getItem(), in dispatchItemSelection()
151 ibvh.getItem(), ViewHolder.this, getRow());
154 … mActionClickedListener.onActionClicked((Action) ibvh.getItem());
498 mDetailsPresenter.onBindViewHolder(vh.mDetailsDescriptionViewHolder, row.getItem()); in onBindRowViewHolder()
/frameworks/base/core/java/android/widget/
DAdapter.java63 Object getItem(int position); in getItem() method
DYearPickerView.java114 mController.onYearSelected(mAdapter.getItem(position)); in onItemClick()
134 int year = getItem(position); in getView()

123456