Home
last modified time | relevance | path

Searched refs:mRatingStyle (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/packages/MediaComponents/src/com/android/media/
DRating2Impl.java39 private final int mRatingStyle; field in Rating2Impl
43 mRatingStyle = ratingStyle; in Rating2Impl()
50 return "Rating2:style=" + mRatingStyle + " rating=" in toString_impl()
60 return mRatingStyle == other.mRatingStyle in equals_impl()
66 return Objects.hash(mRatingStyle, mRatingValue); in hashCode_impl()
82 bundle.putInt(KEY_STYLE, mRatingStyle); in toBundle_impl()
148 return mRatingStyle; in getRatingStyle_impl()
153 if (mRatingStyle != RATING_HEART) { in hasHeart_impl()
162 if (mRatingStyle != RATING_THUMB_UP_DOWN) { in isThumbUp_impl()
171 switch (mRatingStyle) { in getStarRating_impl()
[all …]
/frameworks/support/media/src/main/java/androidx/media/
DRating2.java104 private final int mRatingStyle; field in Rating2
108 mRatingStyle = ratingStyle; in Rating2()
114 return "Rating2:style=" + mRatingStyle + " rating=" in toString()
124 return mRatingStyle == other.mRatingStyle && mRatingValue == other.mRatingValue; in equals()
129 return ObjectsCompat.hash(mRatingStyle, mRatingValue); in hashCode()
151 bundle.putInt(KEY_STYLE, mRatingStyle); in toBundle()
273 return mRatingStyle; in getRatingStyle()
282 return mRatingStyle == RATING_HEART && mRatingValue == 1.0f; in hasHeart()
291 return mRatingStyle == RATING_THUMB_UP_DOWN && mRatingValue == 1.0f; in isThumbUp()
300 switch (mRatingStyle) { in getStarRating()
[all …]
/frameworks/support/media/src/main/java/android/support/v4/media/
DRatingCompat.java101 private final int mRatingStyle; field in RatingCompat
107 mRatingStyle = ratingStyle; in RatingCompat()
113 return "Rating:style=" + mRatingStyle + " rating=" in toString()
119 return mRatingStyle; in describeContents()
124 dest.writeInt(mRatingStyle); in writeToParcel()
259 return mRatingStyle; in getRatingStyle()
268 if (mRatingStyle != RATING_HEART) { in hasHeart()
281 if (mRatingStyle != RATING_THUMB_UP_DOWN) { in isThumbUp()
294 switch (mRatingStyle) { in getStarRating()
313 if ((mRatingStyle != RATING_PERCENTAGE) || !isRated()) { in getPercentRating()
[all …]
/frameworks/base/media/java/android/media/
DRating.java93 private final int mRatingStyle; field in Rating
98 mRatingStyle = ratingStyle; in Rating()
104 return "Rating:style=" + mRatingStyle + " rating=" in toString()
110 return mRatingStyle; in describeContents()
115 dest.writeInt(mRatingStyle); in writeToParcel()
249 return mRatingStyle; in getRatingStyle()
258 if (mRatingStyle != RATING_HEART) { in hasHeart()
271 if (mRatingStyle != RATING_THUMB_UP_DOWN) { in isThumbUp()
284 switch (mRatingStyle) { in getStarRating()
302 if ((mRatingStyle != RATING_PERCENTAGE) || !isRated()) { in getPercentRating()