/frameworks/base/media/java/android/media/tv/ |
D | TvContentRating.java | 706 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 …]
|
D | TvInputManager.java | 279 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 …]
|
D | ITvInputManager.aidl | 49 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
|
D | ITvInputSessionCallback.aidl | 38 void onContentBlocked(in String rating); in onContentBlocked() argument
|
D | ITvInputClient.aidl | 41 void onContentBlocked(in String rating, int seq); in onContentBlocked() argument
|
D | TvView.java | 786 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/ |
D | RatingCompat.java | 80 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()
|
D | MediaMetadataCompat.java | 291 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/ |
D | PersistentDataStore.java | 110 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()
|
D | TvInputManagerService.java | 876 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/ |
D | RatingBar.java | 75 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/ |
D | Rating.java | 78 private Rating(int ratingStyle, float rating) { in Rating() argument 80 mRatingValue = rating; in Rating()
|
D | MediaMetadata.java | 373 Rating rating = null; in getRating() local 375 rating = mBundle.getParcelable(key); in getRating() 380 return rating; in getRating()
|
D | RemoteControlClient.java | 998 public void onSetRating(Rating rating) { 1000 onUpdateMetadata(mCurrentClientGenId, MetadataEditor.RATING_KEY_BY_USER, rating);
|
D | RemoteController.java | 528 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/ |
D | MediaControllerCompat.java | 357 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/ |
D | MediaSessionCompatApi21.java | 167 public void onSetRating(Rating rating) { in onSetRating() argument 168 mCallback.onSetRating(rating); in onSetRating()
|
/frameworks/base/media/java/android/media/session/ |
D | ISessionCallback.aidl | 43 void onRate(in Rating rating); in onRate() argument
|
D | MediaSession.java | 528 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()
|
D | ISessionController.aidl | 64 void rate(in Rating rating); in rate() argument
|
D | MediaController.java | 746 public void setRating(Rating rating) { in setRating() argument 748 mSessionBinder.rate(rating); in setRating()
|
D | MediaSessionLegacyHelper.java | 546 public void onSetRating(Rating rating) { in onSetRating() argument 548 mRccListener.onSetRating(rating); in onSetRating()
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
D | SafeSaxTest.java | 323 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/ |
D | MediaSessionRecord.java | 944 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/ |
D | launch-checklist.jd | 16 <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
|