Home
last modified time | relevance | path

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

/frameworks/av/packages/MediaComponents/src/com/android/media/
DRating2Impl.java40 private final float mRatingValue; field in Rating2Impl
44 mRatingValue = rating; in Rating2Impl()
51 + (mRatingValue < 0.0f ? "unrated" : String.valueOf(mRatingValue)); in toString_impl()
61 && mRatingValue == other.mRatingValue; in equals_impl()
66 return Objects.hash(mRatingStyle, mRatingValue); in hashCode_impl()
83 bundle.putFloat(KEY_VALUE, mRatingValue); in toBundle_impl()
143 return mRatingValue >= 0.0f; in isRated_impl()
156 return (mRatingValue == 1.0f); in hasHeart_impl()
165 return (mRatingValue == 1.0f); in isThumbUp_impl()
176 return mRatingValue; in getStarRating_impl()
[all …]
/frameworks/support/media/src/main/java/androidx/media/
DRating2.java105 private final float mRatingValue; field in Rating2
109 mRatingValue = rating; in Rating2()
115 + (mRatingValue < 0.0f ? "unrated" : String.valueOf(mRatingValue)); in toString()
124 return mRatingStyle == other.mRatingStyle && mRatingValue == other.mRatingValue; in equals()
129 return ObjectsCompat.hash(mRatingStyle, mRatingValue); in hashCode()
152 bundle.putFloat(KEY_VALUE, mRatingValue); in toBundle()
263 return mRatingValue >= 0.0f; in isRated()
282 return mRatingStyle == RATING_HEART && mRatingValue == 1.0f; in hasHeart()
291 return mRatingStyle == RATING_THUMB_UP_DOWN && mRatingValue == 1.0f; in isThumbUp()
305 return mRatingValue; in getStarRating()
[all …]
/frameworks/base/media/java/android/media/
DRating.java95 private final float mRatingValue; field in Rating
99 mRatingValue = rating; in Rating()
105 + (mRatingValue < 0.0f ? "unrated" : String.valueOf(mRatingValue)); in toString()
116 dest.writeFloat(mRatingValue); in writeToParcel()
238 return mRatingValue >= 0.0f; in isRated()
261 return (mRatingValue == 1.0f); in hasHeart()
274 return (mRatingValue == 1.0f); in isThumbUp()
289 return mRatingValue; in getStarRating()
305 return mRatingValue; in getPercentRating()
/frameworks/support/media/src/main/java/android/support/v4/media/
DRatingCompat.java102 private final float mRatingValue; field in RatingCompat
108 mRatingValue = rating; in RatingCompat()
114 + (mRatingValue < 0.0f ? "unrated" : String.valueOf(mRatingValue)); in toString()
125 dest.writeFloat(mRatingValue); in writeToParcel()
248 return mRatingValue >= 0.0f; in isRated()
271 return (mRatingValue == 1.0f); in hasHeart()
284 return (mRatingValue == 1.0f); in isThumbUp()
299 return mRatingValue; in getStarRating()
316 return mRatingValue; in getPercentRating()