Home
last modified time | relevance | path

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

12345678910

/aosp12/packages/apps/Contacts/src/com/android/contacts/list/
H A 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()
156 getAdapter().toggleSelectionOfContactId(contactId); in onItemLongClick()
184 if (getAdapter().isDisplayingCheckBoxes()) { in onItemClick()
185 getAdapter().toggleSelectionOfContactId(contactId); in onItemClick()
[all …]
H A DPostalAddressPickerFragment.java46 if (getAdapter().getItem(position) == null) { in onItemClick()
50 PostalAddressListAdapter adapter = (PostalAddressListAdapter)getAdapter(); in onItemClick()
53 LegacyPostalAddressListAdapter adapter = (LegacyPostalAddressListAdapter)getAdapter(); in onItemClick()
H A 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()
H A 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()
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DNfcTile.java118 if (getAdapter() == null) { in handleClick()
121 if (!getAdapter().isEnabled()) { in handleClick()
122 getAdapter().enable(); in handleClick()
124 getAdapter().disable(); in handleClick()
135 state.value = getAdapter() != null && getAdapter().isEnabled(); in handleUpdateState()
136 state.state = getAdapter() == null in handleUpdateState()
159 private NfcAdapter getAdapter() { in getAdapter() method in NfcTile
/aosp12/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/
H A DGralloc1On0Adapter.h52 delete getAdapter(reinterpret_cast<gralloc1_device_t*>(device)); in closeHook()
63 getAdapter(device)->doGetCapabilities(outCount, outCapabilities); in getCapabilitiesHook()
73 return getAdapter(device)->doGetFunction(descriptor); in getFunctionHook()
81 return getAdapter(device)->dump(outSize, outBuffer); in dumpHook()
93 auto error = getAdapter(device)->createDescriptor(outDescriptor); in createDescriptorHook()
100 auto error = getAdapter(device)->destroyDescriptor(descriptor); in destroyDescriptorHook()
277 auto buffer = getAdapter(device)->getBuffer(bufferHandle); in callBufferFunction()
330 auto adapter = getAdapter(device); in retainHook()
337 auto adapter = getAdapter(device); in releaseHook()
372 auto adapter = getAdapter(device); in lockHook()
[all …]
/aosp12/frameworks/base/core/java/android/widget/
H A DAdapterView.java470 public abstract T getAdapter(); in getAdapter() method in AdapterView
603 T adapter = getAdapter(); in getSelectedItem()
705 final T adapter = getAdapter(); in setEmptyView()
733 final T adapter = getAdapter(); in setFocusable()
746 final T adapter = getAdapter(); in setFocusableInTouchMode()
758 final T adapter = getAdapter(); in checkFocus()
809 T adapter = getAdapter(); in getItemAtPosition()
814 T adapter = getAdapter(); in getItemIdAtPosition()
1033 T adapter = getAdapter(); in isScrollableForAccessibility()
1178 T adapter = getAdapter(); in findSyncPosition()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
H A DGridTouchStackFromBottomTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp()
80 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDown()
97 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUpFast()
114 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDownFast()
H A DGridTouchVerticalSpacingStackFromBottomTest.java57 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
74 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testNoScroll()
96 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testShortScroll()
159 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, in testManyScrolls()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListWithOffScreenNextSelectableTest.java48 assertEquals(5, mListView.getAdapter().getCount()); in testPreconditions()
49 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions()
50 assertFalse(mListView.getAdapter().isEnabled(1)); in testPreconditions()
51 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
52 assertFalse(mListView.getAdapter().isEnabled(3)); in testPreconditions()
H A DListWithSeparatorsTest.java46 assertFalse(mListView.getAdapter().areAllItemsEnabled()); in testPreconditions()
47 assertFalse(mListView.getAdapter().isEnabled(0)); in testPreconditions()
48 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
H A DListOfThinItemsTest.java49 mListView.getChildCount() < mListView.getAdapter().getCount()); in testPreconditions()
58 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom()
68 int bottomThreshold = (lastVisiblePosition < mListView.getAdapter().getCount() - 1) ? in testScrollToBottom()
90 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/
H A 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()
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/
H A DGroupNotificationViewHolderTest.java93 assertThat(mNotificationListView.getAdapter().getItemCount()).isEqualTo(1); in bind_22notifications_collapsed_1NotificationShown()
101 assertThat(mNotificationListView.getAdapter().getItemCount()).isEqualTo(5); in bind_22notifications_expanded1_5NotificationsShown()
111 assertThat(mNotificationListView.getAdapter().getItemCount()).isEqualTo(10); in bind_22notifications_expanded2_10NotificationsShown()
122 assertThat(mNotificationListView.getAdapter().getItemCount()).isEqualTo(15); in bind_22notifications_expanded3_15NotificationsShown()
134 assertThat(mNotificationListView.getAdapter().getItemCount()).isEqualTo(20); in bind_22notifications_expanded4_20NotificationsShown()
147 assertThat(mNotificationListView.getAdapter().getItemCount()).isEqualTo(22); in bind_22notifications_expanded5_22NotificationsShown()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
H A 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
H A DListTouchBottomGravityManyTest.java56 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
91 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
111 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testNoScroll()
133 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testShortScroll()
H A DListTouchBottomGravityTest.java53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
68 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPullDown()
87 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
/aosp12/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupMembersFragment.java286 return getAdapter() != null && getAdapter().isEmpty(); in isGroupEmpty()
463 ? getAdapter().getSelectedContactIdsArray() in onOptionsItemSelected()
469 ? getAdapter().getSelectedContactIdsArray() in onOptionsItemSelected()
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()
795 final int count = getAdapter().getCount(); in onItemClick()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridSetSelectionBaseTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, in testPreconditions()
58 final int target = mGridView.getAdapter().getCount() - 1; in testSetSelectionToTheEnd()
74 final int target = mGridView.getAdapter().getCount() / 2; in testSetSelectionToMiddle()
/aosp12/packages/apps/TV/src/com/android/tv/menu/
H A 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()
/aosp12/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/widget/
H A DSettingsSpinnerPreferenceTest.java71 assertThat(adapter).isEqualTo(mSpinner.getAdapter()); in onBindViewHolder_noSetSelection_getDefaultItem()
73 .isEqualTo(mSpinner.getAdapter().getItem(0)); in onBindViewHolder_noSetSelection_getDefaultItem()
90 .isEqualTo(mSpinner.getAdapter().getItem(1)); in onBindViewHolder_setSelection_getSelectedItem()
/aosp12/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
H A 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()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DMediaPickerGridView.java34 if (getAdapter() == null || getAdapter().getCount() == 0 || getChildCount() == 0) { in canSwipeDown()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DChooserActivityTest.java176 assertThat(activity.getAdapter().getCount(), is(2)); in customTitle()
285 assertThat(activity.getAdapter().getCount(), is(2)); in twoOptionsAndUserSelectsOne()
334 assertThat(activity.getAdapter().getCount(), is(6)); in fourOptionsStackedIntoOneTarget()
444 assertThat(activity.getAdapter().getCount(), is(1)); in hasOtherProfileOneOption()
486 assertThat(activity.getAdapter().getCount(), is(2)); in hasOtherProfileTwoOptionsAndUserSelectsOne()
1175 activity.getAdapter().getCount(), is(3)); in testDirectTargetSelectionLogging()
1246 activity.getAdapter().getCount(), is(3)); in testDirectTargetLoggingWithRankedAppTarget()
1317 activity.getAdapter().getCount(), is(3)); in testShortcutTargetWithApplyAppLimits()
1378 activity.getAdapter().getCount(), is(4)); in testShortcutTargetWithoutApplyAppLimits()
1818 activity.getAdapter().getCount(), is(3)); in testDirectTargetLogging()
[all …]

12345678910