HomeSort by relevance Sort by last modified time
    Searched refs:Rating (Results 1 - 25 of 46) sorted by null

1 2

  /frameworks/base/media/java/android/media/
Rating.aidl 19 parcelable Rating;
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
35 public final class Rating implements Parcelable {
36 private final static String TAG = "Rating";
54 * Indicates a rating style is not supported. A Rating will never have this
56 * Rating
    [all...]
MediaMetadata.java 198 * The user's rating for the media.
200 * @see Rating
205 * The overall rating for the media.
207 * @see Rating
209 public static final String METADATA_KEY_RATING = "android.media.metadata.RATING";
422 * Returns a {@link Rating} for the given key or null if no rating exists
426 * @return A {@link Rating} or null
428 public Rating getRating(@RatingKey String key) {
429 Rating rating = null local
    [all...]
RemoteController.java 440 Rating rating = (Rating) getObject( local
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)
660 && mCurrentSession.getRatingType() != Rating.RATING_NONE;
IAudioService.aidl 30 import android.media.Rating;
RemoteControlClient.java 534 mMetadataBuilder.putRating(metadataKey, (Rating) object);
    [all...]
  /frameworks/support/media-compat/kitkat/android/support/v4/media/
RatingCompatKitkat.java 19 import android.media.Rating;
23 return Rating.newUnratedRating(ratingStyle);
27 return Rating.newHeartRating(hasHeart);
31 return Rating.newThumbRating(thumbIsUp);
35 return Rating.newStarRating(starRatingStyle, starRating);
39 return Rating.newPercentageRating(percent);
43 return ((Rating)ratingObj).isRated();
47 return ((Rating)ratingObj).getRatingStyle();
51 return ((Rating)ratingObj).hasHeart();
55 return ((Rating)ratingObj).isThumbUp()
    [all...]
  /packages/apps/TV/src/com/android/tv/parental/
ContentRatingsManager.java 24 import com.android.tv.parental.ContentRatingSystem.Rating;
56 * Returns a new list of all content rating systems defined.
63 * Returns the long name of a given content rating including descriptors (sub-ratings) that is
67 Rating rating = getRating(canonicalRating); local
68 if (rating == null) {
71 List<SubRating> subRatings = getSubRatings(rating, canonicalRating);
78 return rating.getTitle() + " (" + builder.substring(0, builder.length() - 2) + ")";
80 return rating.getTitle();
83 private Rating getRating(TvContentRating canonicalRating)
    [all...]
ContentRatingSystem.java 33 * A comparator that implements the display order of a group of content rating systems.
47 // Name of this content rating system. It should be unique in an XML file.
50 // Domain of this content rating system. It's package name now.
53 // Title of this content rating system. (e.g. TV-PG)
56 // Description of this content rating system.
59 // Country code of this content rating system.
62 // Display name of this content rating system consisting of the associated country
67 private final List<Rating> mRatings;
75 // <rating android:name="US_TVPG_Y" />
76 // <rating android:name="US_TVPG_Y7" /
    [all...]
ContentRatingLevelPolicy.java 21 import com.android.tv.parental.ContentRatingSystem.Rating;
32 private static final int AGE_THRESHOLD_FOR_LEVEL_LOW = -1; // Highest age for each rating system
48 throw new IllegalArgumentException("Unexpected rating level");
63 for (Rating rating : contentRatingSystem.getRatings()) {
64 if (rating.getAgeHint() < ageLimit) {
69 rating.getName());
71 for (SubRating subRating : rating.getSubRatings()) {
74 rating.getName(), subRating.getName());
85 for (Rating rating : contentRatingSystem.getRatings())
    [all...]
ParentalControlSettings.java 23 import com.android.tv.parental.ContentRatingSystem.Rating;
33 * The rating and all of its sub-ratings are blocked.
38 * The rating is blocked but not all of its sub-ratings are blocked.
43 * The rating is not blocked.
75 // Ensure no ratings are blocked for the selected rating system
142 * Sets the blocked status of a given content rating.
144 * Note that a call to this method automatically changes the current rating level to
148 * @param contentRatingSystem The content rating system where the given rating belongs.
149 * @param rating The content rating to set
    [all...]
ContentRatingsParser.java 29 import com.android.tv.parental.ContentRatingSystem.Rating;
45 private static final String TAG_RATING_SYSTEM_DEFINITIONS = "rating-system-definitions";
46 private static final String TAG_RATING_SYSTEM_DEFINITION = "rating-system-definition";
47 private static final String TAG_SUB_RATING_DEFINITION = "sub-rating-definition";
48 private static final String TAG_RATING_DEFINITION = "rating-definition";
49 private static final String TAG_SUB_RATING = "sub-rating";
50 private static final String TAG_RATING = "rating";
51 private static final String TAG_RATING_ORDER = "rating-order";
73 if (DEBUG) Log.d(TAG, "Parsing rating system for " + uri);
102 // TODO: find another way to replace the domain the content rating systems defined in TV
    [all...]
  /frameworks/base/media/java/android/media/session/
ISessionCallback.aidl 19 import android.media.Rating;
48 void onRate(in Rating rating);
ISessionController.aidl 22 import android.media.Rating;
69 void rate(in Rating rating);
MediaSession.java 30 import android.media.Rating;
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:
463 * <li>{@link Rating#RATING_NONE}</li>
464 * <li>{@link Rating#RATING_3_STARS}</li>
465 * <li>{@link Rating#RATING_4_STARS}</li>
466 * <li>{@link Rating#RATING_5_STARS}</li>
467 * <li>{@link Rating#RATING_HEART}</li>
468 * <li>{@link Rating#RATING_PERCENTAGE}</li>
469 * <li>{@link Rating#RATING_THUMB_UP_DOWN}</li
    [all...]
MediaController.java 27 import android.media.Rating;
214 * Get the rating type supported by the session. One of:
216 * <li>{@link Rating#RATING_NONE}</li>
217 * <li>{@link Rating#RATING_HEART}</li>
218 * <li>{@link Rating#RATING_THUMB_UP_DOWN}</li>
219 * <li>{@link Rating#RATING_3_STARS}</li>
220 * <li>{@link Rating#RATING_4_STARS}</li>
221 * <li>{@link Rating#RATING_5_STARS}</li>
222 * <li>{@link Rating#RATING_PERCENTAGE}</li>
225 * @return The supported rating typ
    [all...]
  /frameworks/support/media-compat/api21/android/support/v4/media/
MediaMetadataCompatApi21.java 21 import android.media.Rating;
69 ((MediaMetadata.Builder)builderObj).putRating(key, (Rating)ratingObj);
  /frameworks/support/media-compat/kitkat/android/support/v4/media/session/
MediaSessionCompatApi19.java 20 import android.media.Rating;
30 private static final String METADATA_KEY_RATING = "android.media.metadata.RATING";
95 if (key == MediaMetadataEditor.RATING_KEY_BY_USER && newValue instanceof Rating) {
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
qnetwork.idl 32 [propget] HRESULT Rating(BSTR *pbstrRating);
  /packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
RatingsFragment.java 32 import com.android.tv.parental.ContentRatingSystem.Rating;
78 // A map from the rating system ID string to RatingItem objects.
123 for (Rating rating : s.getRatings()) {
124 RatingItem item = rating.getSubRatings().isEmpty() ?
125 new RatingItem(s, rating) :
126 new RatingWithSubItem(s, rating);
128 if (rating.getSubRatings().isEmpty()) {
134 // Only include rating systems that don't contain any sub ratings in the map for
142 // Display the attribution if our content rating system is selected
    [all...]
SubRatingsFragment.java 26 import com.android.tv.parental.ContentRatingSystem.Rating;
40 private final Rating mRating;
43 public SubRatingsFragment(ContentRatingSystem contentRatingSystem, Rating rating) {
45 mRating = rating;
106 // If the rating is checked, check and disable all the sub rating items.
115 // If the rating is unchecked, just enable all the sub rating items and do not
  /cts/tests/tests/media/src/android/media/cts/
MediaControllerTest.java 19 import android.media.Rating;
160 final Rating rating = Rating.newStarRating(Rating.RATING_5_STARS, 3f); local
161 controls.setRating(rating);
164 assertEquals(rating.getRatingStyle(), mCallback.mRating.getRatingStyle());
165 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating());
249 private Rating mRating;
377 public void onSetRating(Rating rating)
    [all...]
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/
VideoDatabase.java 26 import android.media.Rating;
301 initialValues.put(KEY_RATING_STYLE, Rating.RATING_5_STARS);
326 initialValues.put(KEY_RATING_STYLE, Rating.RATING_5_STARS);
  /frameworks/support/media-compat/api21/android/support/v4/media/session/
MediaSessionCompatApi21.java 25 import android.media.Rating;
225 public void onSetRating(Rating rating) {
226 mCallback.onSetRating(rating);
MediaControllerCompatApi21.java 24 import android.media.Rating;
156 ((MediaController.TransportControls)controlsObj).setRating((Rating)ratingObj);

Completed in 280 milliseconds

1 2