/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | RatingBarBindingAdapter.java | 26 @InverseBindingMethod(type = RatingBar.class, attribute = "android:rating"), 29 @BindingAdapter("android:rating") 30 public static void setRating(RatingBar view, float rating) { argument 31 if (view.getRating() != rating) { 32 view.setRating(rating); 45 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) { 47 listener.onRatingChanged(ratingBar, rating, fromUser);
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvContentRating.java | 31 * A class representing a TV content rating. When a TV input service inserts the content rating 36 * {@link #createRating TvContentRating.createRating} method with valid rating system string 39 * <p>It is possible for an application to define its own content rating system by supplying a 40 * content rating system definition XML resource (see example below) and declaring a broadcast 48 * <rating-system-definitions xmlns:android="http://schemas.android.com/apk/res/android" 50 * <rating-system-definition android:name="US_TV" 53 * <sub-rating-definition android:name="US_TV_D" 56 * <sub-rating-definition android:name="US_TV_L" 59 * <sub-rating 807 createRating(String domain, String ratingSystem, String rating, String... subRatings) argument 854 TvContentRating( String domain, String ratingSystem, String rating, String[] subRatings) argument 935 contains(@onNull TvContentRating rating) argument [all...] |
H A D | ITvInputSessionCallback.aidl | 38 void onContentBlocked(in String rating);
|
H A D | ITvInputManager.aidl | 54 boolean isRatingBlocked(in String rating, int userId); 56 void addBlockedRating(in String rating, int userId); 57 void removeBlockedRating(in String rating, int userId);
|
H A D | ITvInputClient.aidl | 41 void onContentBlocked(in String rating, int seq);
|
H A D | TvInputManager.java | 268 * Broadcast intent action used to query available content rating systems. 270 * <p>The TV input manager service locates available content rating systems by querying 272 * content rating systems to the user by declaring a suitable broadcast receiver in its 276 * AndroidManifest.xml to advertise custom content rating systems. The meta-data specifies a 277 * resource that contains a description of each content rating system that is provided by the 293 * XML resource whose root element is <code><rating-system-definitions></code> that 294 * contains zero or more <code><rating-system-definition></code> elements. Each <code> 295 * <rating-system-definition></code> element specifies the ratings, sub-ratings and rating 296 * orders of a particular content rating syste 450 onContentBlocked(Session session, TvContentRating rating) argument 633 postContentBlocked(final TvContentRating rating) argument 1310 isRatingBlocked(@onNull TvContentRating rating) argument 1348 addBlockedRating(@onNull TvContentRating rating) argument 1367 removeBlockedRating(@onNull TvContentRating rating) argument [all...] |
H A D | TvView.java | 371 * Requests to unblock TV content according to the given rating. 384 * Requests to unblock TV content according to the given rating. 978 * its content rating is not blocked by parental controls. 987 * since its content rating is blocked by parental controls. 990 * @param rating The content rating of the blocked program. 992 public void onContentBlocked(String inputId, TvContentRating rating) { argument 1230 public void onContentBlocked(Session session, TvContentRating rating) { argument 1232 Log.d(TAG, "onContentBlocked(rating=" + rating [all...] |
/frameworks/support/v4/java/android/support/v4/media/ |
H A D | RatingCompat.java | 29 * A class to encapsulate rating information used as content metadata. 30 * A rating is defined by its rating style (see {@link #RATING_HEART}, 32 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may 33 * be defined as "unrated"), both of which are defined when the rating instance is constructed 55 * Indicates a rating style is not supported. A Rating will never have this 62 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to 68 * A rating style for "thumb up" vs "thumb down". 73 * A rating styl 99 RatingCompat(@tyle int ratingStyle, float rating) argument [all...] |
H A D | MediaMetadataCompat.java | 139 * The user's rating for the media. 146 * The overall rating for the media. 355 * Return a {@link RatingCompat} for the given key or null if no rating exists for 362 RatingCompat rating = null; 367 rating = RatingCompat.fromRating(mBundle.getParcelable(key)); 369 rating = mBundle.getParcelable(key); 375 return rating;
|
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | PersistentDataStore.java | 58 * <rating string="XXXX" /> 111 public boolean isRatingBlocked(TvContentRating rating) { argument 115 if (rating.contains(blockedRating)) { 128 public void addBlockedRating(TvContentRating rating) { argument 130 if (rating != null && !mBlockedRatings.contains(rating)) { 131 mBlockedRatings.add(rating); 137 public void removeBlockedRating(TvContentRating rating) { argument 139 if (rating != null && mBlockedRatings.contains(rating)) { [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RatingBar.java | 28 * A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in 29 * stars. The user can touch/drag or use arrow keys to set the rating when using 53 * A callback that notifies clients when the rating has been changed. This 61 * Notification that the rating has changed. Clients can use the 64 * while the user is dragging, only when the user finalizes a rating by 67 * @param ratingBar The RatingBar whose rating has changed. 68 * @param rating The current rating. This will be in the range 70 * @param fromUser True if the rating change was initiated by a user's 73 void onRatingChanged(RatingBar ratingBar, float rating, boolea argument 195 setRating(float rating) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | Rating.java | 28 * A class to encapsulate rating information used as content metadata. 29 * A rating is defined by its rating style (see {@link #RATING_HEART}, 31 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may 32 * be defined as "unrated"), both of which are defined when the rating instance is constructed 54 * Indicates a rating style is not supported. A Rating will never have this 61 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to 67 * A rating style for "thumb up" vs "thumb down". 72 * A rating styl 97 Rating(@tyle int ratingStyle, float rating) argument [all...] |
H A D | MediaMetadata.java | 198 * The user's rating for the media. 205 * The overall rating for the media. 422 * Returns a {@link Rating} for the given key or null if no rating exists 429 Rating rating = null; 431 rating = mBundle.getParcelable(key); 436 return rating;
|
H A D | RemoteController.java | 440 Rating rating = (Rating) getObject( 442 if (rating != null) { 443 mCurrentSession.getTransportControls().setRating(rating); 450 // metadata (e.g. user changes the rating of a song more than once during playback)
|
H A D | RemoteControlClient.java | 944 public void onSetRating(Rating rating) { 946 onUpdateMetadata(mCurrentClientGenId, MetadataEditor.RATING_KEY_BY_USER, rating);
|
/frameworks/base/media/java/android/media/session/ |
H A D | ISessionCallback.aidl | 48 void onRate(in Rating rating);
|
H A D | ISessionController.aidl | 69 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: 595 private void dispatchRate(Rating rating) { argument 596 postToCallback(CallbackMessageHandler.MSG_RATE, rating); 959 * @param rating 961 public void onSetRating(@NonNull Rating rating) { argument 1138 public void onRate(Rating rating) { argument 1141 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 850 * Rate the current content. This will cause the rating to be set for 854 * @param rating The rating to set for the current content 856 public void setRating(Rating rating) { argument 858 mSessionBinder.rate(rating);
|
/frameworks/support/v4/api21/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi21.java | 225 public void onSetRating(Rating rating) { argument 226 mCallback.onSetRating(rating);
|
/frameworks/support/v4/java/android/support/v4/media/session/ |
H A D | IMediaSession.aidl | 62 void rate(in RatingCompat rating);
|
H A D | MediaControllerCompat.java | 174 * Get the rating type supported by the session. One of: 185 * @return The supported rating type 717 * Rate the current content. This will cause the rating to be set for 721 * @param rating The rating to set for the current content 723 public abstract void setRating(RatingCompat rating); argument 1214 public void setRating(RatingCompat rating) { argument 1216 mBinder.rate(rating); 1438 public void setRating(RatingCompat rating) { argument 1440 rating ! [all...] |
/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 | 444 pw.println(indent + "rating type=" + mRatingType); 1038 public void rate(Rating rating) { argument 1040 mCb.onRate(rating); 1275 public void rate(Rating rating) throws RemoteException { argument 1277 mSessionCb.rate(rating);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
H A D | ListenerBindingObject.java | 120 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) { } argument
|