Searched refs:rating (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DRatingBarBindingAdapter.java26 @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 DTvContentRating.java31 * 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 DITvInputSessionCallback.aidl38 void onContentBlocked(in String rating);
H A DITvInputClient.aidl41 void onContentBlocked(in String rating, int seq);
H A DITvInputManager.aidl55 boolean isRatingBlocked(in String rating, int userId);
57 void addBlockedRating(in String rating, int userId);
58 void removeBlockedRating(in String rating, int userId);
H A DTvInputManager.java270 * Broadcast intent action used to query available content rating systems.
272 * <p>The TV input manager service locates available content rating systems by querying
274 * content rating systems to the user by declaring a suitable broadcast receiver in its
278 * AndroidManifest.xml to advertise custom content rating systems. The meta-data specifies a
279 * resource that contains a description of each content rating system that is provided by the
295 * XML resource whose root element is <code>&lt;rating-system-definitions&gt;</code> that
296 * contains zero or more <code>&lt;rating-system-definition&gt;</code> elements. Each <code>
297 * &lt;rating-system-definition&gt;</code> element specifies the ratings, sub-ratings and rating
298 * orders of a particular content rating syste
459 onContentBlocked(Session session, TvContentRating rating) argument
642 postContentBlocked(final TvContentRating rating) argument
1319 isRatingBlocked(@onNull TvContentRating rating) argument
1357 addBlockedRating(@onNull TvContentRating rating) argument
1376 removeBlockedRating(@onNull TvContentRating rating) argument
[all...]
H A DTvView.java372 * Requests to unblock TV content according to the given rating.
385 * Requests to unblock TV content according to the given rating.
981 * its content rating is not blocked by parental controls.
990 * since its content rating is blocked by parental controls.
993 * @param rating The content rating of the blocked program.
995 public void onContentBlocked(String inputId, TvContentRating rating) { argument
1233 public void onContentBlocked(Session session, TvContentRating rating) { argument
1235 Log.d(TAG, "onContentBlocked(rating=" + rating
[all...]
/frameworks/base/services/core/java/com/android/server/tv/
H A DPersistentDataStore.java58 * &lt;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/support/media-compat/java/android/support/v4/media/
H A DRatingCompat.java32 * A class to encapsulate rating information used as content metadata.
33 * A rating is defined by its rating style (see {@link #RATING_HEART},
35 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may
36 * be defined as "unrated"), both of which are defined when the rating instance is constructed
60 * Indicates a rating style is not supported. A Rating will never have this
67 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to
73 * A rating style for "thumb up" vs "thumb down".
78 * A rating styl
104 RatingCompat(@tyle int ratingStyle, float rating) argument
[all...]
H A DMediaMetadataCompat.java150 * The user's rating for the media.
157 * The overall rating for the media.
424 * Return a {@link RatingCompat} for the given key or null if no rating exists for
431 RatingCompat rating = null;
436 rating = RatingCompat.fromRating(mBundle.getParcelable(key));
438 rating = mBundle.getParcelable(key);
444 return rating;
/frameworks/base/core/java/android/widget/
H A DRatingBar.java29 * 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/
H A DRating.java28 * 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 DMediaMetadata.java198 * The user's rating for the media.
205 * The overall rating for the media.
450 * Returns a {@link Rating} for the given key or null if no rating exists
457 Rating rating = null;
459 rating = mBundle.getParcelable(key);
464 return rating;
H A DRemoteController.java440 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 DRemoteControlClient.java944 public void onSetRating(Rating rating) {
946 onUpdateMetadata(mCurrentClientGenId, MetadataEditor.RATING_KEY_BY_USER, rating);
/frameworks/base/media/java/android/media/session/
H A DISessionCallback.aidl48 void onRate(in Rating rating);
H A DISessionController.aidl69 void rate(in Rating rating);
H A DMediaSession.java468 * Set the style of rating used by this session. Apps trying to set the
469 * rating should use this style. Must be one of the following:
603 private void dispatchRate(Rating rating) { argument
604 postToCallback(CallbackMessageHandler.MSG_RATE, rating);
967 * @param rating
969 public void onSetRating(@NonNull Rating rating) { argument
1146 public void onRate(Rating rating) { argument
1149 session.dispatchRate(rating);
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DTwoWayBindingObject.java44 public final ObservableFloat rating = new ObservableFloat(1); field in class:TwoWayBindingObject
H A DListenerBindingObject.java120 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) { } argument
/frameworks/support/media-compat/api21/android/support/v4/media/session/
H A DMediaSessionCompatApi21.java247 public void onSetRating(Rating rating) { argument
248 mCallback.onSetRating(rating);
/frameworks/support/media-compat/java/android/support/v4/media/session/
H A DIMediaSession.aidl82 void rate(in RatingCompat rating) = 24;
H A DMediaControllerCompat.java385 * Get the rating type supported by the session. One of:
396 * @return The supported rating type
1081 * Rate the current content. This will cause the rating to be set for
1085 * @param rating The rating to set for the current content
1087 public abstract void setRating(RatingCompat rating); argument
1706 public void setRating(RatingCompat rating) { argument
1708 mBinder.rate(rating);
2257 public void setRating(RatingCompat rating) { argument
2259 rating !
[all...]
/frameworks/base/sax/tests/saxtests/src/android/sax/
H A DSafeSaxTest.java319 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/support/media-compat/tests/src/android/support/v4/media/session/
H A DMediaControllerCompatTest.java101 assertEquals("Default rating type of a session must be RatingCompat.RATING_NONE",
282 final RatingCompat rating =
284 controls.setRating(rating);
287 assertEquals(rating.getRatingStyle(), mCallback.mRating.getRatingStyle());
288 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating(), DELTA);
607 public void onSetRating(RatingCompat rating) { argument
610 mRating = rating;

Completed in 558 milliseconds

12