/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | RingtonePickerActivity.java | 198 public void onPrepareListView(ListView listView) { in onPrepareListView() argument 201 mDefaultRingtonePos = addDefaultRingtoneItem(listView); in onPrepareListView() 209 mSilentPos = addSilentItem(listView); in onPrepareListView() 233 private int addStaticItem(ListView listView, int textResId) { in addStaticItem() argument 235 com.android.internal.R.layout.select_dialog_singlechoice_material, listView, false); in addStaticItem() 237 listView.addHeaderView(textView); in addStaticItem() 239 return listView.getHeaderViewsCount() - 1; in addStaticItem() 242 private int addDefaultRingtoneItem(ListView listView) { in addDefaultRingtoneItem() argument 244 return addStaticItem(listView, R.string.notification_sound_default); in addDefaultRingtoneItem() 246 return addStaticItem(listView, R.string.alarm_sound_default); in addDefaultRingtoneItem() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | PinnedHeaderListAdapter.java | 94 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 …]
|
D | IndexerListAdapter.java | 150 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 = listView.getChildAt(listPosition); in configurePinnedHeaders() 192 listView.setFadingHeader(index, listPosition, isLastInSection); in configurePinnedHeaders()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | ContactListViewUtils.java | 18 private static void addPaddingToView(ListView listView, int parentWidth, in addPaddingToView() argument 24 listView.setPadding( in addPaddingToView() 26 listView.getPaddingTop(), in addPaddingToView() 28 listView.getPaddingBottom()); in addPaddingToView() 30 listView.setClipToPadding(false); in addPaddingToView() 31 listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); in addPaddingToView() 46 final ListView listView, final View rootLayout) { in applyCardPaddingToView() argument 65 SchedulingUtils.doOnPreDraw(listView, /* drawNextFrame = */ false, new Runnable() { in applyCardPaddingToView() 72 listView, rootLayout.getWidth(), listSpaceWeight, listViewWeight); in applyCardPaddingToView()
|
D | ViewUtil.java | 101 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { in addBottomPaddingToListViewForFab() argument 104 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), in addBottomPaddingToListViewForFab() 105 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding); in addBottomPaddingToListViewForFab() 106 listView.setClipToPadding(false); in addBottomPaddingToListViewForFab()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDisplayUtils.java | 355 public static int getFirstListItemOffset(ListView listView) { in getFirstListItemOffset() argument 356 if (listView == null || listView.getChildCount() == 0 || in getFirstListItemOffset() 357 listView.getFirstVisiblePosition() != 0) { in getFirstListItemOffset() 360 return listView.getChildAt(0).getTop(); in getFirstListItemOffset() 369 public static void requestToMoveToOffset(ListView listView, int offset) { in requestToMoveToOffset() argument 376 if (listView == null || listView.getChildCount() == 0 || in requestToMoveToOffset() 377 listView.getFirstVisiblePosition() != 0 || offset > 0) { in requestToMoveToOffset() 382 if (listView.getChildAt(0).getTop() == offset) { in requestToMoveToOffset() 386 listView.setSelectionFromTop(0, offset); in requestToMoveToOffset()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | GroupMembershipView.java | 195 ListView listView = mPopup.getListView(); in setGroupMetaData() local 196 if (listView != null && !listView.isItemChecked(position)) { in setGroupMetaData() 198 listView.setItemChecked(position, true); in setGroupMetaData() 199 onItemClick(listView, null, position, listView.getItemIdAtPosition(position)); in setGroupMetaData() 324 ListView listView = mPopup.getListView(); in onClick() local 325 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in onClick() 326 listView.setOverScrollMode(OVER_SCROLL_ALWAYS); in onClick() 329 listView.setItemChecked(i, mAdapter.getItem(i).isChecked()); in onClick() 332 listView.setOnItemClickListener(this); in onClick()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | SearchFragment.java | 131 final ListView listView = getListView(); in onStart() local 140 listView.setBackgroundColor(res.getColor(R.color.background_dialer_results)); in onStart() 141 listView.setClipToPadding(false); in onStart() 143 listView.setOnScrollListener(new OnScrollListener() { in onStart() 155 listView.setOnTouchListener(mActivityOnTouchListener); in onStart() 333 final ListView listView = getListView(); in updatePosition() local 334 listView.setPaddingRelative( in updatePosition() 335 listView.getPaddingStart(), in updatePosition() 337 listView.getPaddingEnd(), in updatePosition() 338 listView.getPaddingBottom()); in updatePosition()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsPreferenceFragment.java | 218 ListView listView = getListView(); in canUseListViewForHighLighting() local 219 ListAdapter adapter = listView.getAdapter(); in canUseListViewForHighLighting() 235 final ListView listView = getListView(); in highlightPreference() local 236 final ListAdapter adapter = listView.getAdapter(); in highlightPreference() 241 listView.post(new Runnable() { in highlightPreference() 244 listView.setSelection(position); in highlightPreference() 245 listView.postDelayed(new Runnable() { in highlightPreference() 248 final int index = position - listView.getFirstVisiblePosition(); in highlightPreference() 249 if (index >= 0 && index < listView.getChildCount()) { in highlightPreference() 250 final View v = listView.getChildAt(index); in highlightPreference()
|
D | UserDictionarySettings.java | 113 final ListView listView = getListView(); in onActivityCreated() local 114 listView.setAdapter(createAdapter()); in onActivityCreated() 115 listView.setFastScrollEnabled(true); in onActivityCreated() 116 listView.setEmptyView(emptyView); in onActivityCreated()
|
D | DreamSettings.java | 123 ListView listView = getListView(); in onActivityCreated() local 124 listView.setItemsCanFocus(true); in onActivityCreated() 128 listView.setEmptyView(emptyView); in onActivityCreated() 131 listView.setAdapter(mAdapter); in onActivityCreated()
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
D | ViewUtil.java | 87 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/Messaging/tests/src/com/android/messaging/ui/contact/ |
D | ContactPickerFragmentTest.java | 159 final ListView listView = (ListView) getFragment().getView() in testLoadAllContactsList() local 161 assertEquals(cursor.getCount(), listView.getCount()); in testLoadAllContactsList() 171 final ListView listView = (ListView) getFragment().getView() in testLoadFrequentContactsList() local 173 assertEquals(cursor.getCount(), listView.getCount()); in testLoadFrequentContactsList() 180 final ListView listView = (ListView) getFragment().getView() in testPickInitialContact() local 183 final ContactListItemView cliv = (ContactListItemView) listView.getChildAt(0); in testPickInitialContact() 213 final ListView listView = (ListView) getFragment().getView() in testPickMoreContacts() local 216 final ContactListItemView cliv = (ContactListItemView) listView.getChildAt(0); in testPickMoreContacts()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsEditQuickResponsesFragment.java | 83 final ListView listView = UiUtilities.getView(getView(), in onActivityCreated() local 85 listView.setAdapter(adapter); in onActivityCreated() 122 final ListView listView = UiUtilities.getView(view, in onCreateView() local 125 UiUtilities.getView((ViewGroup) listView.getParent(), R.id.empty_view); in onCreateView() 126 listView.setEmptyView(emptyView); in onCreateView() 127 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { in onCreateView() 130 final Cursor c = (Cursor) listView.getItemAtPosition(position); in onCreateView()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CustomHeaderPagerListViewHolder.java | 54 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/UnifiedEmail/src/com/android/mail/ui/ |
D | LimitedMultiSelectDialogFragment.java | 90 final ListView listView = new ListView(getActivity()); in onCreateDialog() local 91 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in onCreateDialog() 92 listView.setAdapter(adapter); in onCreateDialog() 93 listView.setOnItemClickListener(new OnItemClickListener() { in onCreateDialog() 121 listView.setItemChecked(j, true); in onCreateDialog() 127 .setView(listView) in onCreateDialog()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | LockdownConfigFragment.java | 104 final ListView listView = (ListView) view.findViewById(android.R.id.list); in onCreateDialog() local 105 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); in onCreateDialog() 106 listView.setAdapter(new TitleAdapter(context, mTitles)); in onCreateDialog() 107 listView.setItemChecked(mCurrentIndex, true); in onCreateDialog() 113 final int newIndex = listView.getCheckedItemPosition(); in onCreateDialog()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | InsertQuickResponseDialog.java | 112 final ListView listView = (ListView) quickResponsesView.findViewById(R.id.quick_responses); in onCreateDialog() local 113 listView.setEmptyView(quickResponsesView.findViewById(R.id.quick_responses_empty_view)); in onCreateDialog() 114 listView.setAdapter(adapter); in onCreateDialog() 115 listView.setOnItemClickListener(new OnItemClickListener() { in onCreateDialog() 118 final Cursor c = (Cursor) listView.getItemAtPosition(position); in onCreateDialog()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationItemView.java | 1276 final SwipeableListView listView = getListView(); in onDraw() local 1277 if (listView != null && listView.isConversationSelected(getConversation())) { in onDraw() 1297 final SwipeableListView listView = getListView(); in setSelected() local 1298 if (listView != null) { in setSelected() 1299 listView.setSelectedConversation(getConversation()); in setSelected() 1388 final SwipeableListView listView = getListView(); in toggleCheckedState() local 1391 conv.position = mChecked && listView != null ? listView.getPositionForView(this) in toggleCheckedState() 1404 listView.commitDestructiveActions(true); in toggleCheckedState() 1521 SwipeableListView listView = getListView(); in dismiss() local 1522 if (listView != null) { in dismiss() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | MusicPicker.java | 188 TrackListAdapter(Context context, ListView listView, int layout, in TrackListAdapter() argument 191 mListView = listView; in TrackListAdapter() 439 final ListView listView = getListView(); in onCreate() local 441 listView.setItemsCanFocus(false); in onCreate() 443 mAdapter = new TrackListAdapter(this, listView, in onCreate() 449 listView.setTextFilterEnabled(true); in onCreate() 452 listView.setSaveEnabled(false); in onCreate()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | WordListPreference.java | 266 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/Messaging/tests/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListFragmentTest.java | 99 final RecyclerView listView = in testLoadListView() local 102 assertEquals(cursor.getCount(), listView.getChildCount()); in testLoadListView() 110 final RecyclerView listView = in testEmptyView() local 115 assertEquals(0, listView.getChildCount()); in testEmptyView()
|
/packages/apps/Settings/src/com/android/settings/print/ |
D | PrintServiceSettingsFragment.java | 246 ListView listView = getListView(); in updateEmptyView() local 247 ViewGroup contentRoot = (ViewGroup) listView.getParent(); in updateEmptyView() 248 View emptyView = listView.getEmptyView(); in updateEmptyView() 262 listView.setEmptyView(emptyView); in updateEmptyView() 274 listView.setEmptyView(emptyView); in updateEmptyView() 289 listView.setEmptyView(emptyView); in updateEmptyView()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapSettings.java | 49 ExpandableListView listView = in onCreate() local 53 listView, mGroups, mLoader.getAccountsEnabledCount()); in onCreate() 54 listView.setAdapter(adapter); in onCreate()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
D | UserDictionarySettings.java | 152 final ListView listView = getListView(); in onActivityCreated() local 153 listView.setAdapter(createAdapter()); in onActivityCreated() 154 listView.setFastScrollEnabled(true); in onActivityCreated() 155 listView.setEmptyView(emptyView); in onActivityCreated()
|