Home
last modified time | relevance | path

Searched refs:rating (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/media/java/android/media/tv/
DTvContentRating.java706 String rating, String... subRatings) { in createRating()
713 if (TextUtils.isEmpty(rating)) { in createRating()
716 return new TvContentRating(domain, ratingSystem, rating, subRatings); in createRating()
753 String domain, String ratingSystem, String rating, String[] subRatings) { in TvContentRating() argument
756 mRating = rating; in TvContentRating()
836 public final boolean contains(TvContentRating rating) { in contains() argument
837 if (rating == null) { in contains()
840 if (!rating.getMainRating().equals(mRating)) { in contains()
843 if (!rating.getDomain().equals(mDomain) || in contains()
844 !rating.getRatingSystem().equals(mRatingSystem) || in contains()
[all …]
DTvInputManager.java279 public void onContentBlocked(Session session, TvContentRating rating) { in onContentBlocked() argument
418 public void postContentBlocked(final TvContentRating rating) { in postContentBlocked() argument
422 mSessionCallback.onContentBlocked(mSession, rating); in postContentBlocked()
666 public void onContentBlocked(String rating, int seq) { in TvInputManager()
673 record.postContentBlocked(TvContentRating.unflattenFromString(rating)); in TvInputManager()
882 public boolean isRatingBlocked(TvContentRating rating) { in isRatingBlocked() argument
883 if (rating == null) { in isRatingBlocked()
887 return mService.isRatingBlocked(rating.flattenToString(), mUserId); in isRatingBlocked()
903 for (String rating : mService.getBlockedRatings(mUserId)) { in getBlockedRatings()
904 ratings.add(TvContentRating.unflattenFromString(rating)); in getBlockedRatings()
[all …]
DITvInputManager.aidl49 boolean isRatingBlocked(in String rating, int userId); in isRatingBlocked() argument
51 void addBlockedRating(in String rating, int userId); in addBlockedRating() argument
52 void removeBlockedRating(in String rating, int userId); in removeBlockedRating() argument
DITvInputSessionCallback.aidl38 void onContentBlocked(in String rating); in onContentBlocked() argument
DITvInputClient.aidl41 void onContentBlocked(in String rating, int seq); in onContentBlocked() argument
DTvView.java786 public void onContentBlocked(String inputId, TvContentRating rating) { in onContentBlocked() argument
967 public void onContentBlocked(Session session, TvContentRating rating) { in onContentBlocked() argument
975 mCallback.onContentBlocked(mInputId, rating); in onContentBlocked()
/frameworks/support/v4/java/android/support/v4/media/
DRatingCompat.java80 private RatingCompat(int ratingStyle, float rating) { in RatingCompat() argument
82 mRatingValue = rating; in RatingCompat()
306 final RatingCompat rating; in fromRating() local
310 rating = newHeartRating(RatingCompatApi21.hasHeart(ratingObj)); in fromRating()
313 rating = newThumbRating(RatingCompatApi21.isThumbUp(ratingObj)); in fromRating()
318 rating = newStarRating(ratingStyle, in fromRating()
322 rating = newPercentageRating(RatingCompatApi21.getPercentRating(ratingObj)); in fromRating()
328 rating = newUnratedRating(ratingStyle); in fromRating()
330 rating.mRatingObj = ratingObj; in fromRating()
331 return rating; in fromRating()
DMediaMetadataCompat.java291 RatingCompat rating = null; in getRating() local
293 rating = mBundle.getParcelable(key); in getRating()
298 return rating; in getRating()
/frameworks/base/services/core/java/com/android/server/tv/
DPersistentDataStore.java110 public boolean isRatingBlocked(TvContentRating rating) { in isRatingBlocked() argument
114 if (rating.contains(blcokedRating)) { in isRatingBlocked()
127 public void addBlockedRating(TvContentRating rating) { in addBlockedRating() argument
129 if (rating != null && !mBlockedRatings.contains(rating)) { in addBlockedRating()
130 mBlockedRatings.add(rating); in addBlockedRating()
136 public void removeBlockedRating(TvContentRating rating) { in removeBlockedRating() argument
138 if (rating != null && mBlockedRatings.contains(rating)) { in removeBlockedRating()
139 mBlockedRatings.remove(rating); in removeBlockedRating()
279 for (TvContentRating rating : mBlockedRatings) { in saveToXml()
281 serializer.attribute(null, ATTR_STRING, rating.flattenToString()); in saveToXml()
DTvInputManagerService.java876 public boolean isRatingBlocked(String rating, int userId) { in isRatingBlocked() argument
884 TvContentRating.unflattenFromString(rating)); in isRatingBlocked()
900 for (TvContentRating rating in getBlockedRatings()
902 ratings.add(rating.flattenToString()); in getBlockedRatings()
912 public void addBlockedRating(String rating, int userId) { in addBlockedRating() argument
921 TvContentRating.unflattenFromString(rating)); in addBlockedRating()
929 public void removeBlockedRating(String rating, int userId) { in removeBlockedRating() argument
938 TvContentRating.unflattenFromString(rating)); in removeBlockedRating()
2079 public void onContentBlocked(String rating) { in onContentBlocked() argument
2088 mSessionState.client.onContentBlocked(rating, mSessionState.seq); in onContentBlocked()
/frameworks/base/core/java/android/widget/
DRatingBar.java75 void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser); in onRatingChanged() argument
96 final float rating = a.getFloat(R.styleable.RatingBar_rating, -1); in RatingBar() local
110 if (rating >= 0) { in RatingBar()
111 setRating(rating); in RatingBar()
197 public void setRating(float rating) { in setRating() argument
198 setProgress(Math.round(rating * getProgressPerStar())); in setRating()
/frameworks/base/media/java/android/media/
DRating.java78 private Rating(int ratingStyle, float rating) { in Rating() argument
80 mRatingValue = rating; in Rating()
DMediaMetadata.java373 Rating rating = null; in getRating() local
375 rating = mBundle.getParcelable(key); in getRating()
380 return rating; in getRating()
DRemoteControlClient.java998 public void onSetRating(Rating rating) {
1000 onUpdateMetadata(mCurrentClientGenId, MetadataEditor.RATING_KEY_BY_USER, rating);
DRemoteController.java528 Rating rating = (Rating) getObject( in apply() local
530 if (rating != null) { in apply()
531 mCurrentSession.getTransportControls().setRating(rating); in apply()
/frameworks/support/v4/java/android/support/v4/media/session/
DMediaControllerCompat.java357 public abstract void setRating(RatingCompat rating); in setRating() argument
634 public void setRating(RatingCompat rating) { in setRating() argument
636 rating != null ? rating.getRating() : null); in setRating()
/frameworks/support/v4/api21/android/support/v4/media/session/
DMediaSessionCompatApi21.java167 public void onSetRating(Rating rating) { in onSetRating() argument
168 mCallback.onSetRating(rating); in onSetRating()
/frameworks/base/media/java/android/media/session/
DISessionCallback.aidl43 void onRate(in Rating rating); in onRate() argument
DMediaSession.java528 private void dispatchRate(Rating rating) { in dispatchRate() argument
529 postToCallback(CallbackMessageHandler.MSG_RATE, rating); in dispatchRate()
835 public void onSetRating(@NonNull Rating rating) { in onSetRating() argument
972 public void onRate(Rating rating) { in onRate() argument
975 session.dispatchRate(rating); in onRate()
DISessionController.aidl64 void rate(in Rating rating); in rate() argument
DMediaController.java746 public void setRating(Rating rating) { in setRating() argument
748 mSessionBinder.rate(rating); in setRating()
DMediaSessionLegacyHelper.java546 public void onSetRating(Rating rating) { in onSetRating() argument
548 mRccListener.onSetRating(rating); in onSetRating()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java323 video.rating = average == null in newContentHandler()
443 video.rating = average == null in startElement()
532 public float rating; // ranges from 0.0 to 5.0 field in SafeSaxTest.YouTubeVideo
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java944 public void rate(Rating rating) { in rate() argument
946 mCb.onRate(rating); in rate()
1137 public void rate(Rating rating) throws RemoteException { in rate() argument
1138 mSessionCb.rate(rating); in rate()
/frameworks/base/docs/html/distribute/tools/
Dlaunch-checklist.jd16 <li><a href="#determine-rating">4. Determine Content Rating</a></li>
161 <h2 id="determine-rating">
169 Google Play requires you to set a content rating for your app, which informs
171 confirm what rating level you want to use. The available content rating
204 content rating you select can affect the app's distribution to users. You can
205 assign (or change) the content rating for your apps in the Developer Console,
212 "collection:distribute/toolsreference/launchchecklist/rating" data-sortorder=
725 ratings</strong>, so there is <strong>no risk to your rating</strong> on

12