[go: nahoru, domu]

Searched refs:rating (Results 1 - 25 of 29) 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 DITvInputManager.aidl54 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 DITvInputClient.aidl41 void onContentBlocked(in String rating, int seq);
H A DTvInputManager.java268 * 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>&lt;rating-system-definitions&gt;</code> that
294 * contains zero or more <code>&lt;rating-system-definition&gt;</code> elements. Each <code>
295 * &lt;rating-system-definition&gt;</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 DTvView.java371 * 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 DRatingCompat.java29 * 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 DMediaMetadataCompat.java139 * 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 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/base/core/java/android/widget/
H A DRatingBar.java28 * 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 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.
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 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.java460 * 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 DMediaController.java214 * 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 DMediaSessionCompatApi21.java225 public void onSetRating(Rating rating) { argument
226 mCallback.onSetRating(rating);
/frameworks/support/v4/java/android/support/v4/media/session/
H A DIMediaSession.aidl62 void rate(in RatingCompat rating);
H A DMediaControllerCompat.java174 * 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 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/base/services/core/java/com/android/server/media/
H A DMediaSessionRecord.java444 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 DListenerBindingObject.java120 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) { } argument

Completed in 885 milliseconds

12