Home
last modified time | relevance | path

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

1234567891011

/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java142 assertEquals("A", adapter.getItem(0)); in testGetItem()
143 assertEquals("B", adapter.getItem(1)); in testGetItem()
144 assertEquals("C", adapter.getItem(2)); in testGetItem()
145 assertEquals("D", adapter.getItem(3)); in testGetItem()
146 assertEquals("E", adapter.getItem(4)); in testGetItem()
224 assertEquals("A", adapter.getItem(0)); in testNotifyDataSetChangedPropagated()
225 assertEquals("B", adapter.getItem(1)); in testNotifyDataSetChangedPropagated()
226 assertEquals("X", adapter.getItem(2)); in testNotifyDataSetChangedPropagated()
232 assertEquals("A", adapter.getItem(0)); in testNotifyDataSetChangedPropagated()
233 assertEquals("B", adapter.getItem(1)); in testNotifyDataSetChangedPropagated()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSectionedAlbumDataAdapter.java72 PhotoSource.AlbumData item = mAlbumData.getItem(i); in onChanged()
86 PhotoSource.AlbumData item = mAlbumData.getItem(i); in onChanged()
129 public Object getItem(int position) { in getItem() method in SectionedAlbumDataAdapter
131 return mAlbumData.getItem(internalPosition(position+1)).account; in getItem()
133 return mAlbumData.getItem(internalPosition(position)); in getItem()
187 textView.setText((String) getItem(position)); in getView()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java99 final Item item = mAdapter.getItem(position);
109 final Item item = mAdapter.getItem(position);
183 final Item item = mAdapter.getItem(pos); in onRightClick()
212 this::getItem, in onActivityCreated()
217 final Item item = getItem(v); in onActivityCreated()
441 final Object item = mAdapter.getItem(i); in onCurrentRootChanged()
470 final Item item = mAdapter.getItem(adapterMenuInfo.position); in onCreateContextMenu()
486 final RootItem rootItem = (RootItem) mAdapter.getItem(adapterMenuInfo.position); in onContextItemSelected()
520 private Item getItem(View v) { in getItem() method in RootsFragment
522 return mAdapter.getItem(pos); in getItem()
DRootsAdapter.java68 String stringId = getItem(position).stringId; in getItemId()
83 final Item item = getItem(position); in getView()
108 final Item item = getItem(position); in getItemViewType()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DFolderListFragment.java603 final Object item = getListView().getAdapter().getItem(position); in viewFolderOrChangeAccount()
906 final DrawerItem item = (DrawerItem) getItem(position); in getView()
936 return ((DrawerItem) getItem(position)).getType(); in getItemViewType()
946 final DrawerItem drawerItem = ((DrawerItem) getItem(position)); in isEnabled()
1185 public Object getItem(int position) { in getItem() method in FolderListFragment.FolderAdapter
1196 return getItem(position).hashCode(); in getItemId()
1228 final Folder f = getItem(position); in getItemViewType()
1235 final Folder folder = getItem(position); in getView()
1323 public Object getItem(int position) { in getItem() method in FolderListFragment.AccountsAdapter
1334 return getItem(position).hashCode(); in getItemId()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DRequestRoleFragment.java394 Pair<ApplicationInfo, Boolean> qualifyingApplication = mAdapter.getItem(i); in getQualifyingApplicationUid()
412 if (count > 0 && mAdapter.getItem(0) == null) { in getQualifyingApplicationCount()
426 Pair<ApplicationInfo, Boolean> qualifyingApplication = mAdapter.getItem(i); in getHolderPackageName()
575 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(i); in restoreItemChecked()
600 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(i); in updateItemChecked()
617 return position != AdapterView.INVALID_POSITION ? getItem(position) : null; in getCheckedItem()
649 public Pair<ApplicationInfo, Boolean> getItem(int position) { in getItem() method in RequestRoleFragment.Adapter
655 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position); in getItemId()
665 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position); in isEnabled()
694 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position); in getView()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DCategoryAdapter.java55 Action action = getItem(i); in clear()
97 Action action = getItem(position); in getView()
156 Action action = getItem(i); in getTinyPlanet()
168 Action action = getItem(i); in removeTinyPlanet()
216 FilterRepresentation itemRep = getItem(i).getRepresentation(); in reflectImagePreset()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
DHistoryManager.java44 public HistoryItem getItem(int position) { in getItem() method in HistoryManager
122 return getItem(0); in getLast()
126 return getItem(mCurrentPresetPosition); in getCurrent()
139 oldItems.add(getItem(i)); in insert()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationContainer.java298 final ConversationOverlayItem item = mOverlayAdapter.getItem(i); in onOverlayModelUpdate()
322 if (mOverlayAdapter.getItem(i) == item) { in getViewForItem()
520 ConversationOverlayItem adapterItem = mOverlayAdapter.getItem(adapterIndex); in positionOverlays()
533 adapterItem = mOverlayAdapter.getItem(adapterIndex); in positionOverlays()
737 mOverlayAdapter.getItem(i).invalidateMeasurement(); in onLayout()
781 final ConversationOverlayItem item = mOverlayAdapter.getItem(adapterIndex); in positionOverlay()
917 final ConversationOverlayItem item = mOverlayAdapter.getItem(snapIndex); in positionSnapHeader()
953 final ConversationOverlayItem next = mOverlayAdapter.getItem(i); in findNextPushingOverlay()
1012 final ConversationOverlayItem item = mOverlayAdapter.getItem(i); in removeViewAtAdapterIndex()
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java167 Assert.assertEquals("a", result.getItem(0)); in testAliasLoader_loadsAllAliases()
168 Assert.assertEquals("b", result.getItem(1)); in testAliasLoader_loadsAllAliases()
169 Assert.assertEquals("c", result.getItem(2)); in testAliasLoader_loadsAllAliases()
214 Assert.assertEquals("b", result.getItem(0)); in testAliasLoader_filtersNonUserSelectableAliases()
251 Assert.assertEquals("a", result.getItem(0)); in testAliasLoader_filtersAliasesWithNonConformingParameters()
/packages/apps/Gallery2/src/com/android/photos/adapters/
DPhotoThumbnailAdapter.java65 Cursor cursor = getItem(position); in getIntrinsicAspectRatio()
72 public Cursor getItem(int position) { in getItem() method in PhotoThumbnailAdapter
73 return (Cursor) super.getItem(position); in getItem()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateAdapter.java52 State state = getItem(position); in getView()
69 if (state == getItem(i)) { in contains()
90 State state = getItem(i); in same()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java179 public @Nullable Cursor getItem(String modelId) { in getItem() method in Model
208 final Cursor cursor = getItem(modelId); in getDocument()
241 final Cursor cursor = getItem(modelId); in loadDocument()
257 final Cursor cursor = getItem(modelId); in getItemUri()
DDropdownBreadcrumb.java118 public DocumentInfo getItem(int position) { in getItem() method in DropdownBreadcrumb.DropdownAdapter
135 final DocumentInfo doc = getItem(position); in getView()
155 final DocumentInfo doc = getItem(position); in getDropDownView()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSimpleMenuPreference.java107 final CharSequence item = getItem(0); in restoreOriginalOrder()
113 final CharSequence item = getItem(position); in swapSelectedToFront()
125 final CharSequence item = getItem(position); in setSelectedPosition()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java190 notifyItemChanged(mAdapter.getItem(position)); in notifyItemChanged()
273 holder.onBind(this, getItem(position)); in onBindViewHolder()
283 return getItem(position).getResourceId(); in getItemViewType()
291 private T getItem(int position) { in getItem() method in SideFragment.ItemAdapter
/packages/apps/Email/provider_src/com/android/email/provider/
DFolderPickerDialog.java79 final Object item = mAdapter.getItem(position); in show()
110 Object item = mAdapter.getItem(i); in update()
146 final FolderRow row = (FolderRow) mAdapter.getItem(which); in onClick()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
DMtpAdapter.java93 public Object getItem(int position) { in getItem() method in MtpAdapter
148 (IngestObjectInfo) getItem(position), mGeneration); in getView()
158 dateTile.setDate((SimpleDate) getItem(position)); in getView()
/packages/services/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/
DEmbmsTestStreamingApp.java81 StreamingServiceInfo info = getItem(position); in getView()
89 StreamingServiceInfo info = getItem(position); in getDropDownView()
114 String serviceId = getItem(position); in getView()
123 String serviceId = getItem(position); in getDropDownView()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java312 public City getItem(int position) { in getItem() method in CitySelectionActivity.CityAdapter
343 final City city = getItem(position); in getView()
440 final City city = getItem(position); in getSections()
592 final City priorCity = getItem(position - 1); in getShowIndex()
593 final City city = getItem(position); in getShowIndex()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupMembersAdapter.java86 final Cursor cursor = (Cursor) getItem(position); in getContactUri()
94 final Cursor cursor = (Cursor) getItem(position); in getContactId()
134 return ((Cursor) getItem(position)).getString(GroupMembersQuery.CONTACT_DISPLAY_NAME); in getContactDisplayName()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMergeAlbum.java132 slot[i] = mFetcher[i].getItem(subPos[i]); in getMediaItem()
155 slot[k] = mFetcher[k].getItem(subPos[k]); in getMediaItem()
226 public MediaItem getItem(int index) { in getItem() method in LocalMergeAlbum.FetchCache
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DCycleAdapter.java56 final CycleItem item = getItem(i); in findNearestPosition()
143 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
174 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java56 final CycleItem item = getItem(i); in findNearestPosition()
143 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
174 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListAdapter.java156 return ((Cursor) getItem(position)).getString(ContactQuery.CONTACT_DISPLAY_NAME); in getContactDisplayName()
165 Cursor item = (Cursor)getItem(position); in getContactUri()
185 final Cursor cursor = (Cursor) getItem(position); in getContactId()
190 final Cursor cursor = (Cursor) getItem(position); in isEnterpriseContact()

1234567891011