/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 | TvView.java | 374 * Requests to unblock TV content according to the given rating. 387 * Requests to unblock TV content according to the given rating. 990 * its content rating is not blocked by parental controls. 999 * since its content rating is blocked by parental controls. 1002 * @param rating The content rating of the blocked program. 1004 public void onContentBlocked(String inputId, TvContentRating rating) { argument 1243 public void onContentBlocked(Session session, TvContentRating rating) { argument 1245 Log.d(TAG, "onContentBlocked(rating=" + rating [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/media/ |
H A D | Rating2Impl.java | 42 private Rating2Impl(@Style int ratingStyle, float rating) { argument 44 mRatingValue = rating; 50 return "Rating2:style=" + mRatingStyle + " rating=" 122 Log.e(TAG, "Invalid rating style (" + starRatingStyle + ") for a star rating"); 126 Log.e(TAG, "Trying to set out of range star-based rating"); 134 Log.e(TAG, "Invalid percentage-based rating value");
|
H A D | MediaController2Impl.java | 544 public void setRating_impl(String mediaId, Rating2 rating) { argument 548 if (rating == null) { 549 throw new IllegalArgumentException("rating shouldn't be null"); 555 binder.setRating(mControllerStub, mediaId, rating.toBundle());
|
/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 | MediaController2.java | 664 * Rate the media. This will cause the rating to be set for the current user. 665 * The rating style must follow the user rating style from the session. 666 * You can get the rating style from the session through the 670 * If the user rating was {@code null}, the media item does not accept setting user rating. 673 * @param rating The rating to set 675 public void setRating(@NonNull String mediaId, @NonNull Rating2 rating) { argument 676 mProvider.setRating_impl(mediaId, rating); [all...] |
H A D | MediaSession2.java | 251 * Called when a controller set rating of a media item through 254 * To allow setting user rating for a {@link MediaItem2}, the media item's metadata 256 * in order to provide possible rating style for controller. Controller will follow the 257 * rating style. 262 * @param rating new rating from the controller 265 @NonNull String mediaId, @NonNull Rating2 rating) { } 264 onSetRating(@onNull MediaSession2 session, @NonNull ControllerInfo controller, @NonNull String mediaId, @NonNull Rating2 rating) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | RatingBar.java | 29 * A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in 30 * stars. The user can touch/drag or use arrow keys to set the rating when using 54 * A callback that notifies clients when the rating has been changed. This 62 * Notification that the rating has changed. Clients can use the 65 * while the user is dragging, only when the user finalizes a rating by 68 * @param ratingBar The RatingBar whose rating has changed. 69 * @param rating The current rating. This will be in the range 71 * @param fromUser True if the rating change was initiated by a user's 74 void onRatingChanged(RatingBar ratingBar, float rating, boolea argument 200 setRating(float rating) argument [all...] |
/frameworks/base/media/java/android/media/update/ |
H A D | MediaController2Provider.java | 58 void setRating_impl(String mediaId, Rating2 rating); argument
|
/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/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/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
H A D | TwoWayBindingObject.java | 44 public final ObservableFloat rating = new ObservableFloat(1); field in class:TwoWayBindingObject
|
H A D | ListenerBindingObject.java | 120 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) { } argument
|
/frameworks/support/media/src/main/java/android/support/v4/media/ |
H A D | RatingCompat.java | 34 * A class to encapsulate rating information used as content metadata. 35 * A rating is defined by its rating style (see {@link #RATING_HEART}, 37 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may 38 * be defined as "unrated"), both of which are defined when the rating instance is constructed 62 * Indicates a rating style is not supported. A Rating will never have this 69 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to 75 * A rating style for "thumb up" vs "thumb down". 80 * A rating styl 106 RatingCompat(@tyle int ratingStyle, float rating) argument [all...] |
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | Rating2.java | 33 * A class to encapsulate rating information used as content metadata. 34 * A rating is defined by its rating style (see {@link #RATING_HEART}, 36 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may 37 * be defined as "unrated"), both of which are defined when the rating instance is constructed 61 * Indicates a rating style is not supported. A Rating2 will never have this 68 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to 74 * A rating style for "thumb up" vs "thumb down". 79 * A rating styl 107 Rating2(@tyle int ratingStyle, float rating) argument [all...] |
H A D | MediaController2.java | 423 * Rate the media. This will cause the rating to be set for the current user. 424 * The rating style must follow the user rating style from the session. 425 * You can get the rating style from the session through the 429 * If the user rating was {@code null}, the media item does not accept setting user rating. 432 * @param rating The rating to set 434 public void setRating(@NonNull String mediaId, @NonNull Rating2 rating) { argument 435 mImpl.setRating(mediaId, rating); 712 setRating(@onNull String mediaId, @NonNull Rating2 rating) argument [all...] |
H A D | MediaController2ImplBase.java | 606 public void setRating(@NonNull String mediaId, @NonNull Rating2 rating) { argument 614 args.putBundle(ARGUMENT_RATING, rating.toBundle());
|
/frameworks/base/media/java/android/media/session/ |
H A D | MediaSessionLegacyHelper.java | 505 public void onSetRating(Rating rating) { argument 507 mRccListener.onSetRating(rating);
|
H A D | MediaController.java | 282 * Get the rating type supported by the session. One of: 293 * @return The supported rating type 920 * Rate the current content. This will cause the rating to be set for 924 * @param rating The rating to set for the current content 926 public void setRating(Rating rating) { argument 928 mSessionBinder.rate(mContext.getPackageName(), mCbStub, rating);
|
H A D | MediaSession.java | 480 * Set the style of rating used by this session. Apps trying to set the 481 * rating should use this style. Must be one of the following: 629 private void dispatchRate(RemoteUserInfo caller, Rating rating) { argument 630 postToCallback(caller, CallbackMessageHandler.MSG_RATE, rating, null); 1033 * @param rating 1035 public void onSetRating(@NonNull Rating rating) { argument 1258 Rating rating) { 1261 session.dispatchRate(createRemoteUserInfo(packageName, pid, uid, caller), rating); 1257 onRate(String packageName, int pid, int uid, ISessionControllerCallback caller, Rating rating) argument
|
/frameworks/support/media/api21/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi21.java | 249 public void onSetRating(Rating rating) { argument 250 mCallback.onSetRating(rating);
|
/frameworks/support/media/src/androidTest/java/androidx/media/ |
H A D | MediaSession2_PermissionTest.java | 470 final Rating2 rating = Rating2.newStarRating(Rating2.RATING_5_STARS, 3.5f); 473 createController(mSession.getToken()).setRating(mediaId, rating); 478 assertEquals(rating, mCallback.mRating); 482 createController(mSession.getToken()).setRating(mediaId, rating); 665 String mediaId, Rating2 rating) { 669 mRating = rating; 664 onSetRating(MediaSession2 session, ControllerInfo controller, String mediaId, Rating2 rating) argument
|
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/ |
H A D | MediaSessionCompatCallbackTest.java | 438 final RatingCompat rating = 441 SET_RATING, rating, getContext(), mSession.getSessionToken()); 444 assertEquals(rating.getRatingStyle(), mCallback.mRating.getRatingStyle()); 445 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating(), DELTA); 1035 public void onSetRating(RatingCompat rating) { argument 1037 mRating = rating;
|
/frameworks/support/media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/ |
H A D | MediaSessionCompatCallbackTest.java | 436 final RatingCompat rating = 439 SET_RATING, rating, getContext(), mSession.getSessionToken()); 442 assertEquals(rating.getRatingStyle(), mCallback.mRating.getRatingStyle()); 443 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating(), DELTA); 960 public void onSetRating(RatingCompat rating) { argument 962 mRating = rating;
|