Home
last modified time | relevance | path

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

12345

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemAdapter.java47 public IItem getItem(int position) { in getItem() method in ItemAdapter
58 IItem item = getItem(position); in getItemViewType()
70 IItem item = getItem(i); in refreshViewTypes()
77 IItem item = getItem(position); in getView()
115 return getItem(position).isEnabled(); in isEnabled()
/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java90 Assert.assertEquals(firstOrder, mMenu.getItem(0).getOrder()); in testOrder()
91 Assert.assertEquals(a, mMenu.getItem(0).getTitle()); in testOrder()
92 Assert.assertEquals(midOrder, mMenu.getItem(1).getOrder()); in testOrder()
93 Assert.assertEquals(b, mMenu.getItem(1).getTitle()); in testOrder()
94 Assert.assertEquals(lastOrder, mMenu.getItem(2).getOrder()); in testOrder()
95 Assert.assertEquals(c, mMenu.getItem(2).getTitle()); in testOrder()
156 final MenuItem subMenuItem = subMenu.getItem(); in testSubMenu()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuAdapter.java65 public MenuItemImpl getItem(int position) { in getItem() method in MenuAdapter
85 final int currGroupId = getItem(position).getGroupId(); in getView()
87 position - 1 >= 0 ? getItem(position - 1).getGroupId() : currGroupId; in getView()
97 itemView.initialize(getItem(position), 0); in getView()
DListMenuPresenter.java167 mMenu.performItemAction(mAdapter.getItem(position), this, 0); in onItemClick()
239 public MenuItemImpl getItem(int position) { in getItem() method in ListMenuPresenter.MenuAdapter
260 itemView.initialize(getItem(position), 0); in getView()
DMenuPopup.java128 wrappedAdapter.mAdapterMenu.performItemAction((MenuItem) outerAdapter.getItem(position), 0); in onItemClick()
203 MenuItem childItem = menu.getItem(i); in shouldPreserveIconSpacing()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java72 public IItem getItem(int position) { in getItem() method in RecyclerItemAdapter
78 IItem mItem = getItem(position); in getItemId()
136 final IItem item = viewHolder.getItem(); in onCreateViewHolder()
148 final IItem item = getItem(position); in onBindViewHolder()
158 IItem item = getItem(position); in getItemViewType()
DItemViewHolder.java54 public IItem getItem() { in getItem() method in ItemViewHolder
/frameworks/base/core/java/com/android/internal/globalactions/
DActionsAdapter.java67 return getItem(position).isEnabled(); in isEnabled()
76 public Action getItem(int position) { in getItem() method in ActionsAdapter
109 Action action = getItem(position); in getView()
/frameworks/base/core/java/android/preference/
DPreferenceGroupAdapter.java220 public Preference getItem(int position) { in getItem() method in PreferenceGroupAdapter
227 return this.getItem(position).getId(); in getItemId()
245 final Preference preference = this.getItem(position); in getView()
269 return this.getItem(position).isSelectable(); in isEnabled()
307 final Preference preference = this.getItem(position); in getItemViewType()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DAddPrinterActivity.java388 public Object getItem(int position) { in getItem() method in AddPrinterActivity.CombinedAdapter
391 return realPosition.first.getItem(realPosition.second); in getItem()
471 public Object getItem(int position) { in getItem() method in AddPrinterActivity.PrintServiceInfoAdapter
496 Intent intent = getAddPrinterIntent((PrintServiceInfo) getItem(position)); in performAction()
553 PrintServiceInfo service = (PrintServiceInfo) getItem(position); in getView()
579 ((PrintServiceInfo) getItem(position)).getComponentName(), true); in performAction()
601 PrintServiceInfo service = (PrintServiceInfo) getItem(position); in getView()
670 public Object getItem(int position) { in getItem() method in AddPrinterActivity.RecommendedServicesAdapter
701 RecommendationInfo recommendation = (RecommendationInfo) getItem(position); in getView()
740 RecommendationInfo recommendation = (RecommendationInfo) getItem(position); in performAction()
[all …]
DPrintActivity.java880 MediaSize supportedSizePortrait = mMediaSizeSpinnerAdapter.getItem(i) in onAdvancedPrintOptionsActivityResult()
923 final int supportedColorMode = mColorModeSpinnerAdapter.getItem(i).value; in onAdvancedPrintOptionsActivityResult()
938 final int supportedDuplexMode = mDuplexModeSpinnerAdapter.getItem(i).value; in onAdvancedPrintOptionsActivityResult()
1700 if (!mediaSizes.get(i).equals(mMediaSizeSpinnerAdapter.getItem(i).value)) { in updateOptionsUi()
1740 .getItem(mediaSizeIndex).value.asPortrait()); in updateOptionsUi()
1743 .getItem(mediaSizeIndex).value.asLandscape()); in updateOptionsUi()
1764 if (colorMode != mColorModeSpinnerAdapter.getItem(adapterIndex).value) { in updateOptionsUi()
1801 SpinnerItem<Integer> item = mColorModeSpinnerAdapter.getItem(i); in updateOptionsUi()
1829 if (duplexMode != mDuplexModeSpinnerAdapter.getItem(adapterIndex).value) { in updateOptionsUi()
1868 SpinnerItem<Integer> item = mDuplexModeSpinnerAdapter.getItem(i); in updateOptionsUi()
[all …]
DSelectPrinterActivity.java163 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreate()
286 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreateContextMenu()
623 if (getItem(position) == null) {
631 public Object getItem(int position) {
654 final PrinterInfo printer = (PrinterInfo) getItem(position);
748 PrinterInfo printer = (PrinterInfo) getItem(position);
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java101 public UsageEvents.Event getItem(int position) { in getItem() method in UsageLogActivity.Adapter
112 final int eventType = getItem(position).getEventType(); in getItemViewType()
121 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/core/java/com/android/internal/widget/
DAccountViewAdapter.java50 public Object getItem(int position) { in getItem() method in AccountViewAdapter
72 AccountElements elements = (AccountElements) getItem(position); in getView()
DScrollingTabContainerView.java511 public Object getItem(int position) { in getItem() method in ScrollingTabContainerView.TabAdapter
523 convertView = createTabView(mContext, (ActionBar.Tab) getItem(position), true); in getView()
525 ((TabView) convertView).bindTab((ActionBar.Tab) getItem(position)); in getView()
534 (ActionBar.Tab) getItem(position), true); in getDropDownView()
536 ((TabView) convertView).bindTab((ActionBar.Tab) getItem(position)); in getDropDownView()
DWatchHeaderListView.java157 public Object getItem(int position) { in getItem() method in WatchHeaderListView.WatchHeaderListAdapter
159 return position < topPanelCount ? null : super.getItem(position - topPanelCount); in getItem()
/frameworks/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/SystemUI/src/com/android/systemui/
DForegroundServicesDialog.java67 String pkg = mAdapter.getItem(which).packageName;
197 icon.setImageDrawable(mIconDrawableFactory.getBadgedIcon(getItem(position))); in getView()
200 label.setText(getItem(position).loadLabel(mPm)); in getView()
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java216 return getItem(position).isEnabled(); in isEnabled()
225 MediaRouter.RouteInfo route = getItem(position); in getView()
243 MediaRouter.RouteInfo route = getItem(position); in onItemClick()
/frameworks/base/core/java/android/view/
DSubMenu.java110 public MenuItem getItem(); in getItem() method
/frameworks/base/core/java/android/widget/
DAdapter.java64 Object getItem(int position); in getItem() method
DHeaderViewListAdapter.java171 public Object getItem(int position) { in getItem() method in HeaderViewListAdapter
184 return mAdapter.getItem(adjPosition); in getItem()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java195 && mAdapter.getItem(0) instanceof SinglePressAction in handleShow()
196 && !(mAdapter.getItem(0) instanceof LongPressAction)) { in handleShow()
197 ((SinglePressAction) mAdapter.getItem(0)).onPress(); in handleShow()
332 final Action action = mAdapter.getItem(position); in createDialog()
618 if (!(mAdapter.getItem(which) instanceof SilentModeTriStateAction)) {
621 mAdapter.getItem(which).onPress();

12345