Home
last modified time | relevance | path

Searched refs:speedDialUiItems (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialAdapter.java84 private List<SpeedDialUiItem> speedDialUiItems; field in SpeedDialAdapter
149 ((FavoritesViewHolder) holder).bind(context, speedDialUiItems.get(position - 2)); in onBindViewHolder()
157 ((SuggestionViewHolder) holder).bind(context, speedDialUiItems.get(position - 3)); in onBindViewHolder()
172 speedDialUiItems = new ArrayList<>(); in setSpeedDialUiItems()
173 speedDialUiItems.addAll(immutableSpeedDialUiItems); in setSpeedDialUiItems()
174 speedDialUiItems.sort( in setSpeedDialUiItems()
186 if (speedDialUiItems.isEmpty()) { in updatePositionToRowTypeMap()
194 for (int i = 0; i < speedDialUiItems.size(); i++) { in updatePositionToRowTypeMap()
195 if (speedDialUiItems.get(i).isStarred()) { in updatePositionToRowTypeMap()
202 if (!speedDialUiItems.get(speedDialUiItems.size() - 1).isStarred()) { in updatePositionToRowTypeMap()
[all …]
DSpeedDialFragment.java273 private void onSpeedDialUiItemListLoaded(ImmutableList<SpeedDialUiItem> speedDialUiItems) { in onSpeedDialUiItemListLoaded() argument
279 .insertDuoChannels(getContext(), speedDialUiItems)); in onSpeedDialUiItemListLoaded() local
652 void updateAdapter(ImmutableList<SpeedDialUiItem> speedDialUiItems) { in updateAdapter() argument
653 onSpeedDialUiItemListLoaded(speedDialUiItems); in updateAdapter()
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItemMutator.java242 List<SpeedDialUiItem> speedDialUiItems = new ArrayList<>(); in loadSpeedDialUiItemsInternal() local
279 speedDialUiItems.add(contact); in loadSpeedDialUiItemsInternal()
288 if (speedDialUiItems.stream().noneMatch(c -> c.contactId() == contact.contactId())) { in loadSpeedDialUiItemsInternal()
292 speedDialUiItems.add(contact); in loadSpeedDialUiItemsInternal()
306 return speedDialUiItemsWithUpdatedIds(speedDialUiItems, insertedEntriesToIdsMap); in loadSpeedDialUiItemsInternal()
330 List<SpeedDialUiItem> speedDialUiItems, in speedDialUiItemsWithUpdatedIds()
334 return ImmutableList.copyOf(speedDialUiItems); in speedDialUiItemsWithUpdatedIds()
338 for (SpeedDialUiItem speedDialUiItem : speedDialUiItems) { in speedDialUiItemsWithUpdatedIds()
565 public void updatePinnedPosition(List<SpeedDialUiItem> speedDialUiItems) { in updatePinnedPosition() argument
567 if (speedDialUiItems == null || speedDialUiItems.isEmpty()) { in updatePinnedPosition()
[all …]