Home
last modified time | relevance | path

Searched refs:isFavorite (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Radio/src/com/android/car/radio/
DBrowseAdapter.java85 public boolean isFavorite; field in BrowseAdapter.Entry
88 Entry(Program program, boolean isFavorite) { in Entry() argument
90 this.isFavorite = isFavorite; in Entry()
91 this.wasFavorite = isFavorite; in Entry()
158 .filter(e -> e.isFavorite || !e.wasFavorite) in removeFormerFavorites()
174 entry.isFavorite = favMap.containsKey(id); in onFavoritesChanged()
175 if (entry.isFavorite) favMap.remove(id); // don't add twice in onFavoritesChanged()
212 holder.bindPreset(entry.program, isCurrent, getItemCount(), entry.isFavorite); in onBindViewHolder()
DDisplayController.java306 public void setCurrentIsFavorite(boolean isFavorite) { in setCurrentIsFavorite() argument
307 mIsFavorite = isFavorite; in setCurrentIsFavorite()
310 isFavorite ? R.drawable.ic_star_filled : R.drawable.ic_star_empty); in setCurrentIsFavorite()
DProgramViewHolder.java108 boolean isFavorite) { in bindPreset() argument
136 setFavoriteButtonFilled(isFavorite); in bindPreset()
DRadioController.java151 boolean isFav = RadioStorage.isFavorite(favorites, mCurrentProgram.getSelector()); in onFavoritesChanged()
176 mDisplayController.setCurrentIsFavorite(mRadioStorage.isFavorite(sel)); in onCurrentProgramChanged()
/packages/apps/Car/Radio/src/com/android/car/radio/storage/
DRadioStorage.java86 public static boolean isFavorite(@NonNull List<Program> favorites, in isFavorite() method in RadioStorage
96 public boolean isFavorite(@NonNull ProgramSelector selector) { in isFavorite() method in RadioStorage
102 return isFavorite(favorites, selector); in isFavorite()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
DProgramInfoExt.java131 boolean isFavorite, @Nullable ImageResolver imageResolver) { in toMediaMetadata() argument
169 bld.putRating(MediaMetadata.METADATA_KEY_USER_RATING, Rating.newHeartRating(isFavorite)); in toMediaMetadata()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java348 public static int setAsFavoriteContact(Context context, Contact contact, boolean isFavorite) { in setAsFavoriteContact() argument
349 if (contact.isStarred() == isFavorite) { in setAsFavoriteContact()
354 values.put(ContactsContract.Contacts.STARRED, isFavorite ? 1 : 0); in setAsFavoriteContact()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DPhoneFavoriteTileView.java97 isStarred = entry.isFavorite; in loadFromContact()
109 starIcon.setVisibility(entry.isFavorite ? View.VISIBLE : View.GONE); in loadFromContact()
DPhoneFavoritesTileAdapter.java256 contact.isFavorite = isStarred; in saveCursorToCache()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactEntry.java40 public boolean isFavorite = false; field in ContactEntry
/packages/apps/Car/Radio/src/com/android/car/radio/media/
DTunerSession.java109 boolean fav = mRadioStorage.isFavorite(info.getSelector()); in updateMetadata()