Home
last modified time | relevance | path

Searched refs:listView (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/Dialer/java/com/android/dialer/app/list/
DOldSpeedDialFragment.java91 private PhoneFavoriteListView listView; field in OldSpeedDialFragment
139 listView = (PhoneFavoriteListView) parentView.findViewById(R.id.contact_tile_list); in onCreateView()
140 listView.setOnItemClickListener(this); in onCreateView()
141 listView.setVerticalScrollBarEnabled(false); in onCreateView()
142 listView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT); in onCreateView()
143 listView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY); in onCreateView()
144 listView.getDragDropController().addOnDragDropListener(contactTileAdapter); in onCreateView()
145 listView.setDragShadowOverlay( in onCreateView()
158 listView.setLayoutAnimation(controller); in onCreateView()
159 listView.setAdapter(contactTileAdapter); in onCreateView()
[all …]
/packages/services/Car/packages/CarActivityResolver/src/com/android/car/activityresolver/
DCarResolverActivity.java85 ListView listView = findViewById(R.id.resolver_list); in onGlobalLayout() local
86 if (listView != null) { in onGlobalLayout()
88 listView.setItemsCanFocus(true); in onGlobalLayout()
91 for (int i = 0; i < listView.getChildCount(); i++) { in onGlobalLayout()
92 View element = listView.getChildAt(i); in onGlobalLayout()
94 int position = listView.getPositionForView(view); in onGlobalLayout()
95 long id = listView.getItemIdAtPosition(position); in onGlobalLayout()
96 listView.performItemClick(view, position, id); in onGlobalLayout()
102 if (listView.getHeight() > resolverListMaxHeight) { in onGlobalLayout()
103 listView.getLayoutParams().height = resolverListMaxHeight; in onGlobalLayout()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/util/
DContactListViewUtils.java32 ListView listView, int parentWidth, int listSpaceWeight, int listViewWeight) { in addPaddingToView() argument
36 listView.setPadding( in addPaddingToView()
38 listView.getPaddingTop(), in addPaddingToView()
40 listView.getPaddingBottom()); in addPaddingToView()
42 listView.setClipToPadding(false); in addPaddingToView()
43 listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); in addPaddingToView()
56 Resources resources, final ListView listView, final View rootLayout) { in applyCardPaddingToView() argument
75 listView, in applyCardPaddingToView()
84 listView, rootLayout.getWidth(), listSpaceWeight, listViewWeight); in applyCardPaddingToView()
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListAdapter.java94 public void configurePinnedHeaders(PinnedHeaderListView listView) { in configurePinnedHeaders() argument
109 listView.setHeaderInvisible(i, true); in configurePinnedHeaders()
113 int headerViewsCount = listView.getHeaderViewsCount(); in configurePinnedHeaders()
120 int position = listView.getPositionAt(topHeaderHeight) - headerViewsCount; in configurePinnedHeaders()
126 listView.setHeaderPinnedAtTop(i, topHeaderHeight, false); in configurePinnedHeaders()
127 topHeaderHeight += listView.getPinnedHeaderHeight(i); in configurePinnedHeaders()
135 int listHeight = listView.getHeight(); in configurePinnedHeaders()
138 int position = listView.getPositionAt(listHeight - bottomHeaderHeight) in configurePinnedHeaders()
149 int height = listView.getPinnedHeaderHeight(i); in configurePinnedHeaders()
152 listView.setHeaderPinnedAtBottom(i, listHeight - bottomHeaderHeight, false); in configurePinnedHeaders()
[all …]
DIndexerListAdapter.java150 public void configurePinnedHeaders(PinnedHeaderListView listView) { in configurePinnedHeaders() argument
151 super.configurePinnedHeaders(listView); in configurePinnedHeaders()
159 listView.setHeaderInvisible(index, false); in configurePinnedHeaders()
161 int listPosition = listView.getPositionAt(listView.getTotalTopPinnedHeaderHeight()); in configurePinnedHeaders()
162 int position = listPosition - listView.getHeaderViewsCount(); in configurePinnedHeaders()
174 listView.setHeaderInvisible(index, false); in configurePinnedHeaders()
176 View topChild = getViewAtVisiblePosition(listView, listPosition); in configurePinnedHeaders()
192 listView.setFadingHeader(index, listPosition, isLastInSection); in configurePinnedHeaders()
DMultiSelectContactsListFragment.java320 protected void bindListHeaderCustom(View listView, View accountFilterContainer) { in bindListHeaderCustom() argument
321 bindListHeaderCommon(listView, accountFilterContainer); in bindListHeaderCustom()
336 protected void bindListHeader(Context context, View listView, View accountFilterContainer, in bindListHeader() argument
339 hideHeaderAndAddPadding(context, listView, accountFilterContainer); in bindListHeader()
343 bindListHeaderCommon(listView, accountFilterContainer); in bindListHeader()
422 private void bindListHeaderCommon(View listView, View accountFilterContainer) { in bindListHeaderCommon() argument
425 setListViewPaddingTop(listView, /* paddingTop */ 0); in bindListHeaderCommon()
431 protected void hideHeaderAndAddPadding(Context context, View listView, in hideHeaderAndAddPadding() argument
434 setListViewPaddingTop(listView, in hideHeaderAndAddPadding()
439 private void setListViewPaddingTop(View listView, int paddingTop) { in setListViewPaddingTop() argument
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/profiles/
DMultiProfilePagerAdapterTest.kt55 { listView: ListView, bindAdapter: ResolverListAdapter -> in <lambda>() method
56 listView.setAdapter(bindAdapter) in <lambda>()
96 { listView: ListView, bindAdapter: ResolverListAdapter -> in <lambda>() method
97 listView.setAdapter(bindAdapter) in <lambda>()
143 { listView: ListView, bindAdapter: ResolverListAdapter -> in <lambda>() method
144 listView.setAdapter(bindAdapter) in <lambda>()
186 { listView: ListView, bindAdapter: ResolverListAdapter -> in <lambda>() method
187 listView.setAdapter(bindAdapter) in <lambda>()
225 { listView: ListView, bindAdapter: ResolverListAdapter -> in <lambda>() method
226 listView.setAdapter(bindAdapter) in <lambda>()
[all …]
/packages/apps/Nfc/tests/instrumentation/src/com/android/nfc/cardemulation/
DAppChooserActivityTest.java113 ListView listView = (ListView) activity.findViewById(R.id.resolver_list); in testNonPayment()
114 assertThat(listView.getDividerHeight()).isEqualTo(-1); in testNonPayment()
115 assertThat(listView.getPaddingEnd()).isEqualTo(0); in testNonPayment()
116 assertThat(listView.getPaddingLeft()).isEqualTo(0); in testNonPayment()
117 assertThat(listView.getPaddingRight()).isEqualTo(0); in testNonPayment()
118 assertThat(listView.getPaddingStart()).isEqualTo(0); in testNonPayment()
138 ListView listView = (ListView) activity.findViewById(R.id.resolver_list); in testExistingFailedComponentAndExistingAlternatives()
139 assertThat(listView.getDivider()).isNotNull(); in testExistingFailedComponentAndExistingAlternatives()
140 assertThat((int) listView.getDividerHeight()) in testExistingFailedComponentAndExistingAlternatives()
142 assertThat(listView.getAdapter()).isNotNull(); in testExistingFailedComponentAndExistingAlternatives()
[all …]
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DViewUtil.java87 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { in addBottomPaddingToListViewForFab() argument
90 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), in addBottomPaddingToListViewForFab()
91 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding); in addBottomPaddingToListViewForFab()
92 listView.setClipToPadding(false); in addBottomPaddingToListViewForFab()
/packages/apps/Contacts/src/com/android/contacts/util/
DViewUtil.java120 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { in addBottomPaddingToListViewForFab() argument
123 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), in addBottomPaddingToListViewForFab()
124 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding); in addBottomPaddingToListViewForFab()
125 listView.setClipToPadding(false); in addBottomPaddingToListViewForFab()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java363 public static int getFirstListItemOffset(ListView listView) { in getFirstListItemOffset() argument
364 if (listView == null || listView.getChildCount() == 0 || in getFirstListItemOffset()
365 listView.getFirstVisiblePosition() != 0) { in getFirstListItemOffset()
368 return listView.getChildAt(0).getTop(); in getFirstListItemOffset()
377 public static void requestToMoveToOffset(ListView listView, int offset) { in requestToMoveToOffset() argument
384 if (listView == null || listView.getChildCount() == 0 || in requestToMoveToOffset()
385 listView.getFirstVisiblePosition() != 0 || offset > 0) { in requestToMoveToOffset()
390 if (listView.getChildAt(0).getTop() == offset) { in requestToMoveToOffset()
394 listView.setSelectionFromTop(0, offset); in requestToMoveToOffset()
/packages/apps/Messaging/src/com/android/messaging/ui/
DCustomHeaderPagerListViewHolder.java54 final ListView listView = (ListView) view.findViewById(getListViewResId()); in createView() local
55 listView.setAdapter(mListAdapter); in createView()
56 listView.setOnScrollListener(new OnScrollListener() { in createView()
69 mListView = listView; in createView()
97 final ListView listView = (ListView) mView.findViewById(getListViewResId()); in maybeSetEmptyView() local
98 listView.setEmptyView(emptyView); in maybeSetEmptyView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DMagnificationModePreferenceControllerTest.java217 final ListView listView = mController.mMagnificationModesListView; in getCheckedModeFromDialog() local
218 assertThat(listView).isNotNull(); in getCheckedModeFromDialog()
220 final int checkedPosition = listView.getCheckedItemPosition(); in getCheckedModeFromDialog()
222 (MagnificationModeInfo) listView.getAdapter().getItem(checkedPosition); in getCheckedModeFromDialog()
227 final ListView listView = mController.mMagnificationModesListView; in performItemClickWith() local
228 assertThat(listView).isNotNull(); in performItemClickWith()
232 for (int i = 1; i < listView.getAdapter().getCount(); i++) { in performItemClickWith()
234 (MagnificationModeInfo) listView.getAdapter().getItem(i); in performItemClickWith()
244 listView.performItemClick(listView.getChildAt(modeIndex), modeIndex, modeIndex); in performItemClickWith()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplayPanoManager/src/com/android/car/pano/manager/reorder/
DReorderFragment.kt39 private lateinit var listView: RecyclerView variable in com.android.car.pano.manager.reorder.ReorderFragment
55 listView = view.requireViewById(R.id.selected_app_cards) in onViewCreated()
68 snapHelper.attachToRecyclerView(listView) in onViewCreated()
77 touchHelper.attachToRecyclerView(listView) in onViewCreated()
79 listView.adapter = adapter in onViewCreated()
81 listView.layoutManager = LinearLayoutManager( in onViewCreated()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactPickerFragmentTest.java157 final ListView listView = (ListView) getFragment().getView() in testLoadAllContactsList() local
159 assertEquals(cursor.getCount(), listView.getCount()); in testLoadAllContactsList()
169 final ListView listView = (ListView) getFragment().getView() in testLoadFrequentContactsList() local
171 assertEquals(cursor.getCount(), listView.getCount()); in testLoadFrequentContactsList()
178 final ListView listView = (ListView) getFragment().getView() in testPickInitialContact() local
181 final ContactListItemView cliv = (ContactListItemView) listView.getChildAt(0); in testPickInitialContact()
211 final ListView listView = (ListView) getFragment().getView() in testPickMoreContacts() local
214 final ContactListItemView cliv = (ContactListItemView) listView.getChildAt(0); in testPickMoreContacts()
/packages/apps/Contacts/src/com/android/contacts/editor/
DGroupMembershipView.java235 ListView listView = mPopup.getListView(); in setGroupMetaData() local
236 if (listView != null && !listView.isItemChecked(position)) { in setGroupMetaData()
238 listView.setItemChecked(position, true); in setGroupMetaData()
239 onItemClick(listView, null, position, listView.getItemIdAtPosition(position)); in setGroupMetaData()
385 ListView listView = mPopup.getListView(); in onClick() local
386 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in onClick()
387 listView.setOverScrollMode(OVER_SCROLL_ALWAYS); in onClick()
390 listView.setItemChecked(i, mAdapter.getItem(i).isChecked()); in onClick()
393 listView.setOnItemClickListener(this); in onClick()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplayPanoManager/src/com/android/car/pano/manager/picker/
DPickerFragment.kt35 private lateinit var listView: RecyclerView in <lambda>() variable in com.android.car.pano.manager.picker.PickerFragment
51 listView = view.requireViewById(R.id.all_app_cards) in <lambda>()
68 listView.adapter = adapter in <lambda>()
70 listView.layoutManager = LinearLayoutManager( in <lambda>()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapSettings.java45 ExpandableListView listView = in onCreate() local
50 this, listView, mGroups, mLoader.getAccountsEnabledCount()); in onCreate()
51 listView.setAdapter(adapter); in onCreate()
/packages/apps/Dialer/java/com/android/incallui/
DConferenceParticipantListAdapter.java57 private final ListView listView; field in ConferenceParticipantListAdapter
99 ListView listView, ContactPhotoManager contactPhotoManager) { in ConferenceParticipantListAdapter() argument
101 this.listView = listView; in ConferenceParticipantListAdapter()
166 return listView.getContext(); in getContext()
176 int first = listView.getFirstVisiblePosition(); in refreshView()
177 int last = listView.getLastVisiblePosition(); in refreshView()
180 View view = listView.getChildAt(position); in refreshView()
183 getView(position + first, view, listView); in refreshView()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
DConversationListFragmentTest.java97 final RecyclerView listView = in testLoadListView() local
100 assertEquals(cursor.getCount(), listView.getChildCount()); in testLoadListView()
108 final RecyclerView listView = in testEmptyView() local
113 assertEquals(0, listView.getChildCount()); in testEmptyView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
DSensorFragment.java205 VerticalGridView listView = (VerticalGridView) getListView(); in selectPreference() local
206 PreferenceGroupAdapter adapter = (PreferenceGroupAdapter) (listView.getAdapter()); in selectPreference()
211 listView.post(() -> { in selectPreference()
213 listView.setSelectedPositionSmooth(position); in selectPreference()
215 listView.getViewTreeObserver().removeOnPreDrawListener(this); in selectPreference()
219 listView.getViewTreeObserver().addOnPreDrawListener(listener); in selectPreference()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DWordListPreference.java266 final ListView listView = (ListView)parent; in onWordListClicked()
279 indexToOpen = listView.indexOfChild(v); in onWordListClicked()
282 listView.getLastVisiblePosition() - listView.getFirstVisiblePosition(); in onWordListClicked()
285 final ButtonSwitcher buttonSwitcher = (ButtonSwitcher)listView.getChildAt(i) in onWordListClicked()
/packages/apps/CellBroadcastReceiver/tests/compliancetests/src/com/android/cellbroadcastreceiver/compliancetests/
DCellBroadcastUiTest.java311 UiScrollable listView = new UiScrollable(new UiSelector().resourceId("android:id" in testEmergencyAlertSettingsUi() local
313 listView.waitForExists(2000); in testEmergencyAlertSettingsUi()
326 item = listView.getChildByText(new UiSelector() in testEmergencyAlertSettingsUi()
330 listView.scrollForward(); in testEmergencyAlertSettingsUi()
332 item = listView.getChildByText(new UiSelector() in testEmergencyAlertSettingsUi()
352 listView.scrollForward(); in testEmergencyAlertSettingsUi()
354 item = listView.getChildByText(new UiSelector() in testEmergencyAlertSettingsUi()
/packages/apps/Dialer/java/com/android/dialer/about/
DLicenseMenuActivity.java54 ListView listView = (ListView) findViewById(R.id.license_list); in onCreate() local
55 listView.setAdapter(listAdapter); in onCreate()
56 listView.setOnItemClickListener( in onCreate()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/
DTwoPanelSettingsFragment.java394 VerticalGridView listView = (VerticalGridView) leanbackPreferenceFragment.getListView(); in addOrRemovePreferenceFocusedListener() local
395 if (listView != null) { in addOrRemovePreferenceFocusedListener()
396 listView.setOnChildViewHolderSelectedListener( in addOrRemovePreferenceFocusedListener()
517 VerticalGridView listView = (VerticalGridView) in onPreferenceFocusedImpl() local
520 listView, pref, forceRefresh, panelIndex), mPreviewPanelCreationDelay); in onPreferenceFocusedImpl()
532 PostShowPreviewRunnable(VerticalGridView listView, Preference pref, boolean forceFresh, in PostShowPreviewRunnable() argument
534 this.mListView = listView; in PostShowPreviewRunnable()
1119 VerticalGridView listView = (VerticalGridView) leanbackPreferenceFragment.getListView(); in getInitialPreviewFragment() local
1120 int position = listView.getSelectedPosition(); in getInitialPreviewFragment()
1128 if (chosenPreference == null || (listView.findViewHolderForPosition(position) != null in getInitialPreviewFragment()
[all …]

123