Home
last modified time | relevance | path

Searched refs:getAdapter (Results 1 – 25 of 109) sorted by relevance

12345

/packages/apps/Contacts/src/com/android/contacts/list/
DMultiSelectContactsListFragment.java102 getAdapter().setSelectedContactIds(selectedContactIds); in onActivityCreated()
115 return getAdapter().getSelectedContactIds(); in getSelectedContactIds()
119 return getAdapter().getSelectedContactIdsArray(); in getSelectedContactIdsArray()
125 getAdapter().setSelectedContactsListener(this); in configureAdapter()
135 if (getAdapter() != null) { in displayCheckBoxes()
136 getAdapter().setDisplayCheckBoxes(displayCheckBoxes); in displayCheckBoxes()
144 getAdapter().setSelectedContactIds(new TreeSet<Long>()); in clearCheckBoxes()
149 final int previouslySelectedCount = getAdapter().getSelectedContactIds().size(); in onItemLongClick()
151 final int partition = getAdapter().getPartitionForPosition(position); in onItemLongClick()
156 getAdapter().toggleSelectionOfContactId(contactId); in onItemLongClick()
[all …]
DPhoneNumberPickerFragment.java176 final PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in getPhoneNumber()
181 final PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in getPhoneUri()
186 final PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in getLookupKey()
224 final ContactEntryListAdapter adapter = getAdapter(); in configureAdapter()
285 final PhoneNumberListAdapter adapter = (PhoneNumberListAdapter) getAdapter(); in setPhotoPosition()
DMultiSelectEmailAddressesListFragment.java64 item.setVisible(getAdapter().hasSelectedItems()); in onPrepareOptionsMenu()
86 getActivity(), getAdapter().getSelectedContactIdsArray(), scheme); in onOptionsItemSelected()
104 getAdapter().setSelectedContactIds(selectedIdsTree); in onCreateView()
126 getAdapter().setSelectedContactIds(selectedIds); in onStart()
DJoinContactListFragment.java63 JoinContactListAdapter adapter = getAdapter();
125 JoinContactListAdapter adapter = getAdapter(); in onContactListLoaded()
154 JoinContactListAdapter adapter = getAdapter(); in configureAdapter()
165 final Uri contactUri = getAdapter().getContactUri(position); in onItemClick()
DPostalAddressPickerFragment.java46 if (getAdapter().getItem(position) == null) { in onItemClick()
50 PostalAddressListAdapter adapter = (PostalAddressListAdapter)getAdapter(); in onItemClick()
53 LegacyPostalAddressListAdapter adapter = (LegacyPostalAddressListAdapter)getAdapter(); in onItemClick()
DContactBrowseListFragment.java337 ContactListAdapter adapter = getAdapter(); in setSelectedContactUri()
380 public ContactListAdapter getAdapter() { in getAdapter() method in ContactBrowseListFragment
381 return (ContactListAdapter) super.getAdapter(); in getAdapter()
388 ContactListAdapter adapter = getAdapter(); in configureAdapter()
432 ContactListAdapter adapter = getAdapter(); in checkSelection()
545 ContactListAdapter adapter = getAdapter(); in selectDefaultContact()
DDefaultContactBrowseListFragment.java386 final Uri uri = getAdapter().getContactUri(position); in onItemClick()
390 if (getAdapter().isDisplayingCheckBoxes()) { in onItemClick()
399 viewContact(position, uri, getAdapter().isEnterpriseContact(position)); in onItemClick()
810 ContactListAdapter adapter = getAdapter(); in setListHeader()
930 if (position < getAdapter().getNumberOfFavorites()) { in onViewContactAction()
942 /* count */ getAdapter().getCount(), in onViewContactAction()
1076 /* count */ getAdapter().getCount(), /* clickedIndex */ -1, in onOptionsItemSelected()
1077 /* numSelected */ getAdapter().getSelectedContactIds().size()); in onOptionsItemSelected()
1156 /* count */ getAdapter().getCount(), /* clickedIndex */ -1, in onDeletionFinished()
1184 /* count */ getAdapter().getCount(), /* clickedIndex */ -1, in onActivityResult()
[all …]
DMultiSelectPhoneNumbersListFragment.java64 item.setVisible(getAdapter().hasSelectedItems()); in onPrepareOptionsMenu()
86 getActivity(), getAdapter().getSelectedContactIdsArray(), scheme); in onOptionsItemSelected()
104 getAdapter().setSelectedContactIds(selectedIdsTree); in onCreateView()
DEmailAddressPickerFragment.java44 EmailAddressListAdapter adapter = (EmailAddressListAdapter)getAdapter(); in onItemClick()
45 if (getAdapter().getItem(position) == null) { in onItemClick()
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java63 public BaseAdapter getAdapter() { in getAdapter() method in CompositeAdapter.Partition
113 partition.getAdapter().registerDataSetObserver(mObserver); in addPartition()
124 partition.getAdapter().unregisterDataSetObserver(mObserver); in removePartition()
133 partition.getAdapter().unregisterDataSetObserver(mObserver); in clearPartitions()
207 return mPartitions[i].getAdapter().getItem(offset); in getItem()
229 return mPartitions[i].getAdapter().getItemId(offset); in getItemId()
275 view = partition.getAdapter().getView(offset, convertView, parentView); in getView()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupMembersFragment.java286 return getAdapter() != null && getAdapter().isEmpty(); in isGroupEmpty()
463 ? getAdapter().getSelectedContactIdsArray() in onOptionsItemSelected()
469 ? getAdapter().getSelectedContactIdsArray() in onOptionsItemSelected()
496 final long[] contactIds = getAdapter().getSelectedContactIdsArray(); in removeSelectedContacts()
589 getAdapter().getCount(), in logListEvent()
591 getAdapter().getSelectedContactIdsArray().length); in logListEvent()
631 getAdapter().setDisplayDeleteButtons(displayDeleteButtons); in displayDeleteButtons()
752 getAdapter().setGroupId(mGroupMetaData.groupId); in configureAdapter()
787 final Uri uri = getAdapter().getContactUri(position); in onItemClick()
791 if (getAdapter().isDisplayingCheckBoxes()) { in onItemClick()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogFragment.java116 if (recyclerView.getAdapter() != null) { in onStop()
117 ((NewCallLogAdapter) recyclerView.getAdapter()).logMetrics(getContext()); in onStop()
177 if (recyclerView.getAdapter() != null) { in onFragmentShown()
178 ((NewCallLogAdapter) recyclerView.getAdapter()).clearCache(); in onFragmentShown()
179 recyclerView.getAdapter().notifyDataSetChanged(); in onFragmentShown()
319 if (recyclerView.getAdapter() == null) { in onLoadFinished()
335 ((NewCallLogAdapter) recyclerView.getAdapter()).updateRows(coalescedRows); in onLoadFinished()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailFragment.java181 if (recyclerView.getAdapter() == null) { in onLoadFinished()
195 recyclerView.getAdapter()); in onLoadFinished()
196 ((NewVoicemailAdapter) recyclerView.getAdapter()).updateCursor(data); in onLoadFinished()
197 ((NewVoicemailAdapter) recyclerView.getAdapter()).checkAndPlayVoicemail(); in onLoadFinished()
299 ((NewVoicemailAdapter) recyclerView.getAdapter()) in updateVoicemailStatusAlert()
/packages/apps/TV/src/com/android/tv/menu/
DItemListRowView.java86 ItemListAdapter<?> adapter = ((ItemListRow) row).getAdapter(); in onBind()
97 mListView.setSelectedPosition(getAdapter().getInitialPosition()); in initialize()
100 private ItemListAdapter<?> getAdapter() { in getAdapter() method in ItemListRowView
101 return (ItemListAdapter<?>) mListView.getAdapter(); in getAdapter()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java111 addTabs(mPager.getAdapter()); in setViewPager()
228 if (index < mPager.getAdapter().getCount()) { in updateTab()
229 addTab(mPager.getAdapter().getPageTitle(index), index); in updateTab()
294 Toast.makeText(context, mPager.getAdapter().getPageTitle(mPosition), Toast.LENGTH_SHORT); in onLongClick()
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
DAttachmentGridView.java89 final int count = getAdapter().getCount() - mUnselectedSet.size(); in updateSelectionCount()
95 if (getAdapter() instanceof AttachmentGridAdapter) { in refreshViews()
96 ((AttachmentGridAdapter) getAdapter()).notifyDataSetChanged(); in refreshViews()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DListWithEntrySummaryPreferenceTest.java67 ListAdapter adapter = dialog.getListView().getAdapter(); in initialize_defaultEntries_shouldDisplayDefaultEntries()
86 ListAdapter adapter = dialog.getListView().getAdapter(); in setEntries_customEntries_shouldUpdateEntries()
111 ListAdapter adapter = dialog.getListView().getAdapter(); in onSaveAndRestoreInstanceState_resumePreference_shouldNotChangeEntries()
DWifiCallingSettingsTest.java115 (WifiCallingSettings.WifiCallingViewPagerAdapter) pager.getAdapter(); in setupFragment_oneSubscription_noCrash()
143 (WifiCallingSettings.WifiCallingViewPagerAdapter) pager.getAdapter(); in setupFragment_twoSubscriptions_correctSelection()
168 (WifiCallingSettings.WifiCallingViewPagerAdapter) pager.getAdapter(); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerGridView.java34 if (getAdapter() == null || getAdapter().getCount() == 0 || getChildCount() == 0) { in canSwipeDown()
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoViewController.java98 final PhotoPagerAdapter adapter = getAdapter(); in updateShareActionProvider()
126 final Uri photoUri = Uri.parse(getAdapter().getPhotoUri(cursor)); in isTempFile()
152 final PhotoPagerAdapter adapter = getAdapter(); in onOptionsItemSelected()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DOneRowGridView.java41 int n = (getAdapter() == null) ? 0 : getAdapter().getCount(); in onMeasure()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationHistoryActivity.java216 ((NotificationHistoryAdapter) rv.getAdapter()).onRebuildComplete(
405 ((NotificationSbnAdapter) mSnoozedRv.getAdapter()).onRebuildComplete(
422 ((NotificationSbnAdapter) mDismissedRv.getAdapter()).onRebuildComplete(
438 ((NotificationSbnAdapter) mSnoozedRv.getAdapter()).addSbn(sbn);
441 ((NotificationSbnAdapter) mDismissedRv.getAdapter()).addSbn(sbn);
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionsFrameFragment.java151 if (prefs.getAdapter() != null && prefs.getAdapter().getItemCount() != 0) { in updateEmptyState()
165 RecyclerView.Adapter adapter = getListView().getAdapter(); in onBindPreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DMagnificationModePreferenceControllerTest.java166 (MagnificationModeInfo) listView.getAdapter().getItem(checkedPosition); in getCheckedModeFromDialog()
176 for (int i = 1; i < listView.getAdapter().getCount(); i++) { in performItemClickWith()
178 (MagnificationModeInfo) listView.getAdapter().getItem(i); in performItemClickWith()
/packages/apps/Gallery2/src/com/android/photos/
DMultiSelectGridFragment.java268 public ListAdapter getAdapter() { in getAdapter() method in MultiSelectGridFragment
269 return mGrid.getAdapter(); in getAdapter()
324 return getAdapter().getItem(position); in getItemAtPosition()

12345