/frameworks/base/media/java/android/media/tv/ |
H A D | TvContentRating.java | 28 * A class representing a TV content rating. When a TV input service inserts the content rating 33 * {@link #createRating TvContentRating.createRating} method with valid rating system string 36 * It is possible for an application to define its own content rating system by supplying a content 37 * rating system definition XML resource (see example below) and declaring a broadcast receiver that 45 * <rating-system-definitions xmlns:android="http://schemas.android.com/apk/res/android" 47 * <rating-system-definition android:name="US_TV" 50 * <sub-rating-definition android:name="US_TV_D" 53 * <sub-rating-definition android:name="US_TV_L" 56 * <sub-rating 705 createRating(String domain, String ratingSystem, String rating, String... subRatings) argument 752 TvContentRating( String domain, String ratingSystem, String rating, String[] subRatings) argument 836 contains(TvContentRating rating) argument [all...] |
H A D | ITvInputSessionCallback.aidl | 38 void onContentBlocked(in String rating);
|
H A D | ITvInputClient.aidl | 41 void onContentBlocked(in String rating, int seq);
|
H A D | ITvInputManager.aidl | 50 boolean isRatingBlocked(in String rating, int userId); 52 void addBlockedRating(in String rating, int userId); 53 void removeBlockedRating(in String rating, int userId);
|
H A D | TvInputManager.java | 126 * Broadcast intent action used to query available content rating systems. 128 * The TV input manager service locates available content rating systems by querying broadcast 130 * rating systems to the user by declaring a suitable broadcast receiver in its manifest. 133 * AndroidManifest.xml to advertise custom content rating systems. The meta-data specifies a 134 * resource that contains a description of each content rating system that is provided by the 148 * XML resource whose root element is <code><rating-system-definitions></code> that 149 * contains zero or more <code><rating-system-definition></code> elements. Each <code> 150 * <rating-system-definition></code> element specifies the ratings, sub-ratings and rating 151 * orders of a particular content rating syste 302 onContentBlocked(Session session, TvContentRating rating) argument 426 postContentBlocked(final TvContentRating rating) argument 913 isRatingBlocked(TvContentRating rating) argument 952 addBlockedRating(TvContentRating rating) argument 972 removeBlockedRating(TvContentRating rating) argument [all...] |
H A D | TvView.java | 345 * Requests to unblock TV content according to the given rating. 821 * its content rating is not blocked by parental controls. 830 * since its content rating is blocked by parental controls. 833 * @param rating The content rating of the blocked program. 835 public void onContentBlocked(String inputId, TvContentRating rating) { argument 1046 public void onContentBlocked(Session session, TvContentRating rating) { argument 1048 Log.d(TAG, "onContentBlocked(rating=" + rating + ")"); 1055 mCallback.onContentBlocked(mInputId, rating); [all...] |
/frameworks/support/v4/java/android/support/v4/media/ |
H A D | RatingCompat.java | 25 * A class to encapsulate rating information used as content metadata. 26 * A rating is defined by its rating style (see {@link #RATING_HEART}, 28 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may 29 * be defined as "unrated"), both of which are defined when the rating instance is constructed 36 * Indicates a rating style is not supported. A Rating will never have this 43 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to 49 * A rating style for "thumb up" vs "thumb down". 54 * A rating styl 80 RatingCompat(int ratingStyle, float rating) argument [all...] |
H A D | MediaMetadataCompat.java | 135 * The user's rating for the media. 142 * The overall rating for the media. 317 * Return a {@link RatingCompat} for the given key or null if no rating exists for 324 RatingCompat rating = null; 326 rating = mBundle.getParcelable(key); 331 return rating;
|
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | PersistentDataStore.java | 57 * <rating string="XXXX" /> 110 public boolean isRatingBlocked(TvContentRating rating) { argument 114 if (rating.contains(blcokedRating)) { 127 public void addBlockedRating(TvContentRating rating) { argument 129 if (rating != null && !mBlockedRatings.contains(rating)) { 130 mBlockedRatings.add(rating); 136 public void removeBlockedRating(TvContentRating rating) { argument 138 if (rating != null && mBlockedRatings.contains(rating)) { [all...] |
H A D | TvInputManagerService.java | 893 public boolean isRatingBlocked(String rating, int userId) { argument 901 TvContentRating.unflattenFromString(rating)); 917 for (TvContentRating rating 919 ratings.add(rating.flattenToString()); 929 public void addBlockedRating(String rating, int userId) { argument 938 TvContentRating.unflattenFromString(rating)); 946 public void removeBlockedRating(String rating, int userId) { argument 955 TvContentRating.unflattenFromString(rating)); 1617 // A list of all TV content rating systems defined. 2096 public void onContentBlocked(String rating) { argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RatingBar.java | 30 * A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in 31 * stars. The user can touch/drag or use arrow keys to set the rating when using 55 * A callback that notifies clients when the rating has been changed. This 63 * Notification that the rating has changed. Clients can use the 66 * while the user is dragging, only when the user finalizes a rating by 69 * @param ratingBar The RatingBar whose rating has changed. 70 * @param rating The current rating. This will be in the range 72 * @param fromUser True if the rating change was initiated by a user's 75 void onRatingChanged(RatingBar ratingBar, float rating, boolea argument 197 setRating(float rating) argument [all...] |
/frameworks/base/media/java/android/media/session/ |
H A D | ISessionCallback.aidl | 43 void onRate(in Rating rating);
|
H A D | ISessionController.aidl | 64 void rate(in Rating rating);
|
H A D | MediaSession.java | 460 * Set the style of rating used by this session. Apps trying to set the 461 * rating should use this style. Must be one of the following: 559 private void dispatchRate(Rating rating) { argument 560 postToCallback(CallbackMessageHandler.MSG_RATE, rating); 872 * @param rating 874 public void onSetRating(@NonNull Rating rating) { argument 1011 public void onRate(Rating rating) { argument 1014 session.dispatchRate(rating);
|
H A D | MediaController.java | 214 * Get the rating type supported by the session. One of: 225 * @return The supported rating type 742 * Rate the current content. This will cause the rating to be set for 746 * @param rating The rating to set for the current content 748 public void setRating(Rating rating) { argument 750 mSessionBinder.rate(rating);
|
H A D | MediaSessionLegacyHelper.java | 554 public void onSetRating(Rating rating) { argument 556 mRccListener.onSetRating(rating);
|
/frameworks/base/media/java/android/media/ |
H A D | Rating.java | 24 * A class to encapsulate rating information used as content metadata. 25 * A rating is defined by its rating style (see {@link #RATING_HEART}, 27 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may 28 * be defined as "unrated"), both of which are defined when the rating instance is constructed 35 * Indicates a rating style is not supported. A Rating will never have this 42 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to 48 * A rating style for "thumb up" vs "thumb down". 53 * A rating styl 78 Rating(int ratingStyle, float rating) argument [all...] |
H A D | MediaMetadata.java | 162 * The user's rating for the media. 169 * The overall rating for the media. 386 * Returns a {@link Rating} for the given key or null if no rating exists 393 Rating rating = null; 395 rating = mBundle.getParcelable(key); 400 return rating;
|
H A D | RemoteController.java | 528 Rating rating = (Rating) getObject( 530 if (rating != null) { 531 mCurrentSession.getTransportControls().setRating(rating); 538 // metadata (e.g. user changes the rating of a song more than once during playback)
|
H A D | RemoteControlClient.java | 998 public void onSetRating(Rating rating) { 1000 onUpdateMetadata(mCurrentClientGenId, MetadataEditor.RATING_KEY_BY_USER, rating);
|
/frameworks/support/v4/java/android/support/v4/media/session/ |
H A D | IMediaSession.aidl | 61 void rate(in RatingCompat rating);
|
H A D | MediaControllerCompat.java | 166 * Get the rating type supported by the session. One of: 177 * @return The supported rating type 642 * Rate the current content. This will cause the rating to be set for 646 * @param rating The rating to set for the current content 648 public abstract void setRating(RatingCompat rating); argument 1094 public void setRating(RatingCompat rating) { argument 1096 mBinder.rate(rating); 1289 public void setRating(RatingCompat rating) { argument 1291 rating ! [all...] |
/frameworks/support/v4/api21/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi21.java | 211 public void onSetRating(Rating rating) { argument 212 mCallback.onSetRating(rating);
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
H A D | SafeSaxTest.java | 319 entry.getChild(GDATA_NAMESPACE, "rating") 323 video.rating = average == null 441 if (localName.equals("rating")) { 443 video.rating = average == null 532 public float rating; // ranges from 0.0 to 5.0 field in class:SafeSaxTest.YouTubeVideo
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionRecord.java | 501 pw.println(indent + "rating type=" + mRatingType); 998 public void rate(Rating rating) { argument 1000 mCb.onRate(rating); 1191 public void rate(Rating rating) throws RemoteException { argument 1192 mSessionCb.rate(rating);
|