Home
last modified time | relevance | path

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

123456

/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/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/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/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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherAdapterTest.kt180 assertTrue("Expected current user to be first in list", adapter.getItem(0).isCurrent) in testCurrentUserIsAlwaysFirst()
181 assertFalse("Did not expect current user in position 1", adapter.getItem(1).isCurrent) in testCurrentUserIsAlwaysFirst()
182 assertFalse("Did not expect current user in position 2", adapter.getItem(2).isCurrent) in testCurrentUserIsAlwaysFirst()
183 assertTrue("Expected guest user to remain in position 2", adapter.getItem(2).isGuest) in testCurrentUserIsAlwaysFirst()
184 assertFalse("Did not expect current user in position 3", adapter.getItem(3).isCurrent) in testCurrentUserIsAlwaysFirst()
/frameworks/base/core/java/com/android/internal/app/
DResolverMultiProfilePagerAdapter.java76 return getItem(index).listView; in getListViewForIndex()
80 ResolverProfileDescriptor getItem(int pageIndex) { in getItem() method in ResolverMultiProfilePagerAdapter
91 final ListView listView = getItem(pageIndex).listView; in setupListAdapter()
92 listView.setAdapter(getItem(pageIndex).resolverListAdapter); in setupListAdapter()
DChooserMultiProfilePagerAdapter.java91 return getItem(index).recyclerView; in getListViewForIndex()
95 ChooserProfileDescriptor getItem(int pageIndex) { in getItem() method in ChooserMultiProfilePagerAdapter
124 final RecyclerView recyclerView = getItem(pageIndex).recyclerView; in setupListAdapter()
126 getItem(pageIndex).chooserGridAdapter; in setupListAdapter()
DSuggestedLocaleAdapter.java108 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in getItemViewType()
124 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in getItemViewType()
158 public Object getItem(int position) { in getItem() method in SuggestedLocaleAdapter
227 if (((LocaleStore.LocaleInfo)getItem(position)).isAppCurrentLocale()) { in getView()
261 if (((LocaleStore.LocaleInfo) getItem(position)).isAppCurrentLocale()) { in getNewViewIfNeeded()
407 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in updateTextView()
DAbstractMultiProfilePagerAdapter.java129 final ProfileDescriptor profileDescriptor = getItem(position); in instantiateItem()
173 abstract ProfileDescriptor getItem(int pageIndex); in getItem() method in AbstractMultiProfilePagerAdapter
311 ProfileDescriptor descriptor = getItem( in showEmptyResolverListEmptyState()
360 ProfileDescriptor descriptor = getItem( in showEmptyState()
420 ProfileDescriptor descriptor = getItem( in showListView()
DMediaRouteChooserDialog.java233 return getItem(position).isEnabled(); in isEnabled()
242 MediaRouter.RouteInfo route = getItem(position); in getView()
260 MediaRouter.RouteInfo route = getItem(position); in onItemClick()
/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 …]
/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/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/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()
/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/SettingsLib/tests/integ/src/com/android/settingslib/widget/
DSettingsSpinnerPreferenceTest.java71 .isEqualTo(mSpinner.getAdapter().getItem(0)); in onBindViewHolder_noSetSelection_getDefaultItem()
88 .isEqualTo(mSpinner.getAdapter().getItem(1)); in onBindViewHolder_setSelection_getSelectedItem()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServicesDialog.java69 String pkg = mAdapter.getItem(which).packageName;
202 icon.setImageDrawable(mIconDrawableFactory.getBadgedIcon(getItem(position))); in getView()
205 label.setText(getItem(position).loadLabel(mPm)); in getView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordingAdapter.java93 switch (getItem(position)) { in getDropDownView()
107 switch (getItem(position)) { in getView()
/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

123456