Home
last modified time | relevance | path

Searched refs:speedDialUiItem (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/speeddial/
DFavoritesViewHolder.java51 private SpeedDialUiItem speedDialUiItem; field in FavoritesViewHolder
69 public void bind(Context context, SpeedDialUiItem speedDialUiItem) { in bind() argument
70 this.speedDialUiItem = Assert.isNotNull(speedDialUiItem); in bind()
71 Assert.checkArgument(speedDialUiItem.isStarred()); in bind()
73 nameView.setText(speedDialUiItem.name()); in bind()
75 Channel channel = speedDialUiItem.defaultChannel(); in bind()
77 channel = speedDialUiItem.getDefaultVoiceChannel(); in bind()
93 .setPhotoId(speedDialUiItem.photoId()) in bind()
94 .setPhotoUri(speedDialUiItem.photoUri()) in bind()
95 .setName(speedDialUiItem.name()) in bind()
[all …]
DSuggestionViewHolder.java42 private SpeedDialUiItem speedDialUiItem; field in SuggestionViewHolder
54 public void bind(Context context, SpeedDialUiItem speedDialUiItem) { in bind() argument
55 Assert.isNotNull(speedDialUiItem.defaultChannel()); in bind()
56 this.speedDialUiItem = speedDialUiItem; in bind()
60 speedDialUiItem.defaultChannel().number(), in bind()
63 String label = speedDialUiItem.defaultChannel().label(); in bind()
69 nameOrNumberView.setText(speedDialUiItem.name()); in bind()
72 photoView.setPhoto(speedDialUiItem.getPhotoInfo()); in bind()
78 listener.onOverFlowMenuClicked(speedDialUiItem, getHeaderInfo()); in onClick()
80 listener.onRowClicked(speedDialUiItem.defaultChannel()); in onClick()
[all …]
DContextMenu.java37 private final SpeedDialUiItem speedDialUiItem; field in ContextMenu
52 SpeedDialUiItem speedDialUiItem) { in show() argument
53 ContextMenu menu = new ContextMenu(context, anchor, contextMenuListener, speedDialUiItem); in show()
73 SpeedDialUiItem speedDialUiItem) { in ContextMenu() argument
76 this.speedDialUiItem = speedDialUiItem; in ContextMenu()
77 voiceChannel = speedDialUiItem.getDefaultVoiceChannel(); in ContextMenu()
78 videoChannel = speedDialUiItem.getDefaultVideoChannel(); in ContextMenu()
109 listener.removeFavoriteContact(speedDialUiItem); in onMenuItemClick()
111 listener.openContactInfo(speedDialUiItem); in onMenuItemClick()
134 void removeFavoriteContact(SpeedDialUiItem speedDialUiItem); in removeFavoriteContact() argument
[all …]
DSpeedDialFragment.java373 public void onAmbiguousContactClicked(SpeedDialUiItem speedDialUiItem) { in onAmbiguousContactClicked() argument
375 if (speedDialUiItem.channels().size() == 1) { in onAmbiguousContactClicked()
376 onClick(speedDialUiItem.channels().get(0)); in onAmbiguousContactClicked()
381 DisambigDialog.show(speedDialUiItem, childFragmentManager); in onAmbiguousContactClicked()
400 public void showContextMenu(View view, SpeedDialUiItem speedDialUiItem) { in showContextMenu() argument
404 ContextMenu.show(activity, view, speedDialContextMenuItemListener, speedDialUiItem); in showContextMenu()
418 public void onRequestRemove(SpeedDialUiItem speedDialUiItem) { in onRequestRemove() argument
421 speedDialContextMenuItemListener.removeFavoriteContact(speedDialUiItem); in onRequestRemove()
459 public void removeFavoriteContact(SpeedDialUiItem speedDialUiItem) { in removeFavoriteContact() argument
465 .removeSpeedDialUiItem(speedDialUiItem), in removeFavoriteContact()
[all …]
DDisambigDialog.java61 private SpeedDialUiItem speedDialUiItem; field in DisambigDialog
67 public static DisambigDialog show(SpeedDialUiItem speedDialUiItem, FragmentManager manager) { in show() argument
69 dialog.speedDialUiItem = speedDialUiItem; in show()
70 dialog.channels = speedDialUiItem.channels(); in show()
178 setDefaultChannel(getContext().getApplicationContext(), speedDialUiItem, channel); in onVideoOptionClicked() local
199 setDefaultChannel(getContext().getApplicationContext(), speedDialUiItem, channel); in onVoiceOptionClicked() local
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItemMutator.java127 SpeedDialUiItem speedDialUiItem) { in removeSpeedDialUiItem() argument
129 () -> removeSpeedDialUiItemInternal(speedDialUiItem), backgroundExecutor); in removeSpeedDialUiItem()
134 SpeedDialUiItem speedDialUiItem) { in removeSpeedDialUiItemInternal() argument
136 Assert.checkArgument(speedDialUiItem.isStarred()); in removeSpeedDialUiItemInternal()
137 removeStarredSpeedDialUiItem(speedDialUiItem); in removeSpeedDialUiItemInternal()
146 private void removeStarredSpeedDialUiItem(SpeedDialUiItem speedDialUiItem) { in removeStarredSpeedDialUiItem() argument
148 Assert.checkArgument(speedDialUiItem.isStarred()); in removeStarredSpeedDialUiItem()
155 if (entry.contactId() == speedDialUiItem.contactId()) { in removeStarredSpeedDialUiItem()
159 if (Objects.equals(entry.id(), speedDialUiItem.speedDialEntryId())) { in removeStarredSpeedDialUiItem()
166 unstarContact(speedDialUiItem); in removeStarredSpeedDialUiItem()
[all …]