Home
last modified time | relevance | path

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

12345678910

/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java143 assertEquals("A", adapter.getItem(0)); in testGetItem()
144 assertEquals("B", adapter.getItem(1)); in testGetItem()
145 assertEquals("C", adapter.getItem(2)); in testGetItem()
146 assertEquals("D", adapter.getItem(3)); in testGetItem()
147 assertEquals("E", adapter.getItem(4)); in testGetItem()
225 assertEquals("A", adapter.getItem(0)); in testNotifyDataSetChangedPropagated()
226 assertEquals("B", adapter.getItem(1)); in testNotifyDataSetChangedPropagated()
227 assertEquals("X", adapter.getItem(2)); in testNotifyDataSetChangedPropagated()
233 assertEquals("A", adapter.getItem(0)); in testNotifyDataSetChangedPropagated()
234 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/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/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/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/DocumentsUI/src/com/android/documentsui/sidebar/
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()
DRootsFragment.java107 final Item item = mAdapter.getItem(position);
117 final Item item = mAdapter.getItem(position);
201 final Item item = mAdapter.getItem(pos); in onRightClick()
230 this::getItem, in onActivityCreated()
235 final Item item = getItem(v); in onActivityCreated()
667 final Object item = mAdapter.getItem(i); in onCurrentRootChanged()
703 final Item item = mAdapter.getItem(adapterMenuInfo.position); in onCreateContextMenu()
719 final RootItem rootItem = (RootItem) mAdapter.getItem(adapterMenuInfo.position); in onContextItemSelected()
752 private Item getItem(View v) { in getItem() method in RootsFragment
754 return mAdapter.getItem(pos); in getItem()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java161 public @Nullable Cursor getItem(String modelId) { in getItem() method in Model
190 final Cursor cursor = getItem(modelId); in getDocument()
223 final Cursor cursor = getItem(modelId); in loadDocument()
239 final Cursor cursor = getItem(modelId); in getItemUri()
244 final Cursor cursor = getItem(modelId); in getItemUserId()
/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/modules/IntentResolver/java/src/com/android/intentresolver/profiles/
DMultiProfilePagerAdapter.java216 return getItem(getPageNumberForUserHandle(userHandle)); in getDescriptorForUserHandle()
339 final ProfileDescriptor<PageViewT, SinglePageAdapterT> descriptor = getItem(position); in instantiateItem()
399 private ProfileDescriptor<PageViewT, SinglePageAdapterT> getItem(int pageIndex) { in getItem() method in MultiProfilePagerAdapter
407 return getItem(pageIndex).getEmptyStateView(); in getEmptyStateView()
424 return getItem(index).getView(); in getListViewForIndex()
438 return getItem(index).getAdapter(); in getPageAdapterForIndex()
674 getItem(getCurrentPage()).setupContainerPadding(); in setupContainerPadding()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSimpleMenuPreference.kt77 val item: CharSequence? = getItem(0) in restoreOriginalOrder()
83 val item: CharSequence? = getItem(position) in swapSelectedToFront()
91 val item: CharSequence? = getItem(position) in setSelectedPosition()
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java196 Assert.assertEquals("a", result.getItem(0)); in testAliasLoader_loadsAllAliases()
197 Assert.assertEquals("b", result.getItem(1)); in testAliasLoader_loadsAllAliases()
198 Assert.assertEquals("c", result.getItem(2)); in testAliasLoader_loadsAllAliases()
239 Assert.assertEquals("b", result.getItem(0)); in testAliasLoader_filtersNonUserSelectableAliases()
272 Assert.assertEquals("a", result.getItem(0)); in testAliasLoader_filtersAliasesWithNonConformingParameters()
/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/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/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java196 notifyItemChanged(mAdapter.getItem(position)); in notifyItemChanged()
279 holder.onBind(this, getItem(position)); in onBindViewHolder()
289 return getItem(position).getResourceId(); in getItemViewType()
297 private T getItem(int position) { in getItem() method in SideFragment.ItemAdapter
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRequestRoleFragment.java412 Pair<ApplicationInfo, Boolean> qualifyingApplication = mAdapter.getItem(i); in getQualifyingApplicationUid()
430 if (count > 0 && mAdapter.getItem(0) == null) { in getQualifyingApplicationCount()
528 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position); in onItemClicked()
559 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(i); in replace()
630 public Pair<ApplicationInfo, Boolean> getItem(int position) { in getItem() method in RequestRoleFragment.Adapter
640 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position); in getItemId()
650 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position); in isEnabled()
677 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position); in getView()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionAdapter.java48 public Object getItem(int index) { in getItem() method in UserRestrictionAdapter
60 ? createCheckBox((UserRestrictionListItem) getItem(index)) in getView()
/packages/apps/Contacts/src/com/android/contacts/list/
DHeaderEntryContactListAdapter.java76 public Object getItem(int position) { in getItem() method in HeaderEntryContactListAdapter
77 return super.getItem(position - getHeaderEntryCount()); in getItem()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DSwapButton.java97 mListener.swapRight(mMenu.getItem(mCurrentMenuIndex)); in onFling()
106 mListener.swapLeft(mMenu.getItem(mCurrentMenuIndex)); in onFling()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/ui/panel/items/
DPanelItemsAdapter.kt60 viewHolder.bindTo(getItem(position), handleAction) in onBindViewHolder()
64 return when (getItem(position)) { in getItemViewType()
/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/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/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt273 override fun getItem(position: Int): City? { in getItem() method in com.android.deskclock.worldclock.CitySelectionActivity.CityAdapter
299 val city = getItem(position) in getView()
392 val city = getItem(position) in getSections()
533 val priorCity = getItem(position - 1) in getShowIndex()
534 val city = getItem(position) in getShowIndex()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/mockable/
DMediaBrowser.java83 public void getItem(String mediaId, ItemCallback callback) { in getItem() method in MediaBrowser
84 mDelegate.getItem(mediaId, callback); in getItem()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/ui/panel/header/
DPanelHeaderAdapter.kt68 viewHolder.bindTo(getItem(position), handleAction) in onBindViewHolder()
72 return when (getItem(position)) { in getItemViewType()

12345678910