/aosp_15_r20/packages/apps/TV/ratings/res/xml/ |
D | tv_content_rating_systems.xml | 17 <rating-system-definitions xmlns:android="http://schemas.android.com/apk/res/android" 20 <!-- TV content rating system for AR --> 21 <rating-system-definition android:name="AR_TV" 23 <sub-rating-definition android:name="AR_TV_D" 26 <sub-rating-definition android:name="AR_TV_S" 29 <sub-rating-definition android:name="AR_TV_V" 32 <rating-definition android:name="AR_TV_ATP" 36 <sub-rating android:name="AR_TV_D" /> 37 <sub-rating android:name="AR_TV_V" /> 38 <sub-rating android:name="AR_TV_S" /> [all …]
|
/aosp_15_r20/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 35 public final class Rating implements Parcelable { class 36 private static final String TAG = "Rating"; 54 * Indicates a rating style is not supported. A Rating will never have this 56 * Rating. 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". [all …]
|
/aosp_15_r20/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
H A D | RatingTest.java | 19 import static android.media.Rating.RATING_3_STARS; 20 import static android.media.Rating.RATING_4_STARS; 21 import static android.media.Rating.RATING_5_STARS; 22 import static android.media.Rating.RATING_HEART; 23 import static android.media.Rating.RATING_NONE; 24 import static android.media.Rating.RATING_PERCENTAGE; 25 import static android.media.Rating.RATING_THUMB_UP_DOWN; 33 import android.media.Rating; 45 * Tests {@link android.media.Rating}. 60 Rating rating = Rating.newUnratedRating(ratingStyle); in testNewUnratedRating() local [all …]
|
/aosp_15_r20/packages/apps/TV/src/com/android/tv/parental/ |
D | ParentalControlSettings.java | 22 import com.android.tv.parental.ContentRatingSystem.Rating; 32 /** The rating and all of its sub-ratings are blocked. */ 35 /** The rating is blocked but not all of its sub-ratings are blocked. */ 38 /** The rating is not blocked. */ 73 // Ensure no ratings are blocked for the selected rating system in setContentRatingSystemEnabled() 111 // UNRATED contents should be blocked unless the rating level is none or custom in updateRatingsForCurrentLevel() 136 // UNRATED contents should be blocked unless the rating level is none or custom in setContentRatingLevel() 166 * Checks whether any of given ratings is blocked and returns the first blocked rating. 177 for (TvContentRating rating : ratings) { in getBlockedRating() 178 if (mTvInputManager.isRatingBlocked(rating)) { in getBlockedRating() [all …]
|
D | ContentRatingSystem.java | 31 * A comparator that implements the display order of a group of content rating systems. 42 // Name of this content rating system. It should be unique in an XML file. 45 // Domain of this content rating system. It's package name now. 48 // Title of this content rating system. (e.g. TV-PG) 51 // Description of this content rating system. 54 // Country code of this content rating system. 57 // Display name of this content rating system consisting of the associated country 62 private final List<Rating> mRatings; 70 // <rating android:name="US_TVPG_Y" /> 71 // <rating android:name="US_TVPG_Y7" /> [all …]
|
D | ContentRatingsManager.java | 26 import com.android.tv.parental.ContentRatingSystem.Rating; 58 /** Returns the content rating system with the give ID. */ 69 /** Returns a new list of all content rating systems defined. */ 75 * Returns the long name of a given content rating including descriptors (sub-ratings) that is 82 Rating rating = getRating(canonicalRating); in getDisplayNameForRating() local 83 if (rating == null) { in getDisplayNameForRating() 86 List<SubRating> subRatings = getSubRatings(rating, canonicalRating); in getDisplayNameForRating() 93 return rating.getTitle() + " (" + builder.substring(0, builder.length() - 2) + ")"; in getDisplayNameForRating() 95 return rating.getTitle(); in getDisplayNameForRating() 98 private Rating getRating(TvContentRating canonicalRating) { in getRating() [all …]
|
D | ContentRatingLevelPolicy.java | 20 import com.android.tv.parental.ContentRatingSystem.Rating; 30 private static final int AGE_THRESHOLD_FOR_LEVEL_LOW = -1; // Highest age for each rating system 47 throw new IllegalArgumentException("Unexpected rating level"); in getRatingsForLevel() 62 for (Rating rating : contentRatingSystem.getRatings()) { in getRatingsForAge() 63 if (rating.getAgeHint() < ageLimit) { in getRatingsForAge() 70 rating.getName()); in getRatingsForAge() 72 for (SubRating subRating : rating.getSubRatings()) { in getRatingsForAge() 76 rating.getName(), subRating.getName()); in getRatingsForAge() 87 for (Rating rating : contentRatingSystem.getRatings()) { in getMaxAge() 88 if (maxAge < rating.getAgeHint()) { in getMaxAge() [all …]
|
/aosp_15_r20/external/google-cloud-java/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ |
H A D | Rating.java | 25 * The rating of a [Product][google.cloud.retail.v2beta.Product]. 28 * Protobuf type {@code google.cloud.retail.v2beta.Rating} 30 public final class Rating extends com.google.protobuf.GeneratedMessageV3 class 32 // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.Rating) 35 // Use Rating.newBuilder() to construct. 36 private Rating(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Rating() method in Rating 40 private Rating() { in Rating() method in Rating 47 return new Rating(); in newInstance() 66 com.google.cloud.retail.v2beta.Rating.class, in internalGetFieldAccessorTable() 67 com.google.cloud.retail.v2beta.Rating.Builder.class); in internalGetFieldAccessorTable() [all …]
|
H A D | RatingOrBuilder.java | 23 // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.Rating) 31 * [rating_histogram][google.cloud.retail.v2beta.Rating.rating_histogram]. 46 * The average rating of the [Product][google.cloud.retail.v2beta.Product]. 47 * The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is 61 * List of rating counts per rating value (index = rating - 1). The list is 62 * empty if there is no rating. If the list is non-empty, its size is 78 * List of rating counts per rating value (index = rating - 1). The list is 79 * empty if there is no rating. If the list is non-empty, its size is 95 * List of rating counts per rating value (index = rating - 1). The list is 96 * empty if there is no rating. If the list is non-empty, its size is
|
/aosp_15_r20/external/google-cloud-java/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ |
H A D | Rating.java | 25 * The rating of a [Product][google.cloud.retail.v2alpha.Product]. 28 * Protobuf type {@code google.cloud.retail.v2alpha.Rating} 30 public final class Rating extends com.google.protobuf.GeneratedMessageV3 class 32 // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Rating) 35 // Use Rating.newBuilder() to construct. 36 private Rating(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Rating() method in Rating 40 private Rating() { in Rating() method in Rating 47 return new Rating(); in newInstance() 66 com.google.cloud.retail.v2alpha.Rating.class, in internalGetFieldAccessorTable() 67 com.google.cloud.retail.v2alpha.Rating.Builder.class); in internalGetFieldAccessorTable() [all …]
|
H A D | RatingOrBuilder.java | 23 // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Rating) 31 * [rating_histogram][google.cloud.retail.v2alpha.Rating.rating_histogram]. 46 * The average rating of the [Product][google.cloud.retail.v2alpha.Product]. 47 * The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is 61 * List of rating counts per rating value (index = rating - 1). The list is 62 * empty if there is no rating. If the list is non-empty, its size is 78 * List of rating counts per rating value (index = rating - 1). The list is 79 * empty if there is no rating. If the list is non-empty, its size is 95 * List of rating counts per rating value (index = rating - 1). The list is 96 * empty if there is no rating. If the list is non-empty, its size is
|
/aosp_15_r20/external/google-cloud-java/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ |
H A D | Rating.java | 25 * The rating of a [Product][google.cloud.retail.v2.Product]. 28 * Protobuf type {@code google.cloud.retail.v2.Rating} 30 public final class Rating extends com.google.protobuf.GeneratedMessageV3 class 32 // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.Rating) 35 // Use Rating.newBuilder() to construct. 36 private Rating(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Rating() method in Rating 40 private Rating() { in Rating() method in Rating 47 return new Rating(); in newInstance() 66 com.google.cloud.retail.v2.Rating.class, in internalGetFieldAccessorTable() 67 com.google.cloud.retail.v2.Rating.Builder.class); in internalGetFieldAccessorTable() [all …]
|
H A D | RatingOrBuilder.java | 23 // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Rating) 31 * [rating_histogram][google.cloud.retail.v2.Rating.rating_histogram]. 46 * The average rating of the [Product][google.cloud.retail.v2.Product]. 47 * The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is 61 * List of rating counts per rating value (index = rating - 1). The list is 62 * empty if there is no rating. If the list is non-empty, its size is 78 * List of rating counts per rating value (index = rating - 1). The list is 79 * empty if there is no rating. If the list is non-empty, its size is 95 * List of rating counts per rating value (index = rating - 1). The list is 96 * empty if there is no rating. If the list is non-empty, its size is
|
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/ |
H A D | RatingTest.java | 24 /** Tests for {@link Rating} and its subclasses. */ 30 HeartRating rating = new HeartRating(); in unratedHeartRating() local 31 assertThat(rating.isRated()).isFalse(); in unratedHeartRating() 32 assertThat(roundTripViaBundle(rating)).isEqualTo(rating); in unratedHeartRating() 38 HeartRating rating = new HeartRating(hasHeart); in ratedHeartRating() local 39 assertThat(rating.isRated()).isTrue(); in ratedHeartRating() 40 assertThat(rating.isHeart()).isEqualTo(hasHeart); in ratedHeartRating() 41 assertThat(roundTripViaBundle(rating)).isEqualTo(rating); in ratedHeartRating() 46 PercentageRating rating = new PercentageRating(); in unratedPercentageRating() local 47 assertThat(rating.isRated()).isFalse(); in unratedPercentageRating() [all …]
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/ |
H A D | RatingTest.java | 24 /** Tests for {@link Rating} and its subclasses. */ 30 HeartRating rating = new HeartRating(); in unratedHeartRating() local 31 assertThat(rating.isRated()).isFalse(); in unratedHeartRating() 32 assertThat(roundTripViaBundle(rating)).isEqualTo(rating); in unratedHeartRating() 38 HeartRating rating = new HeartRating(hasHeart); in ratedHeartRating() local 39 assertThat(rating.isRated()).isTrue(); in ratedHeartRating() 40 assertThat(rating.isHeart()).isEqualTo(hasHeart); in ratedHeartRating() 41 assertThat(roundTripViaBundle(rating)).isEqualTo(rating); in ratedHeartRating() 46 PercentageRating rating = new PercentageRating(); in unratedPercentageRating() local 47 assertThat(rating.isRated()).isFalse(); in unratedPercentageRating() [all …]
|
/aosp_15_r20/frameworks/base/media/java/android/media/tv/ |
H A D | TvContentRating.java | 30 * A class representing a TV content rating. When a TV input service inserts the content rating 35 * {@link #createRating TvContentRating.createRating} method with valid rating system string 38 * <p>It is possible for an application to define its own content rating system by supplying a 39 * content rating system definition XML resource (see example below) and declaring a broadcast 42 * <h3> Example: Rating system definition for the TV Parental Guidelines</h3> 47 * <rating-system-definitions xmlns:android="http://schemas.android.com/apk/res/android" 49 * <rating-system-definition android:name="US_TV" 52 * <sub-rating-definition android:name="US_TV_D" 55 * <sub-rating-definition android:name="US_TV_L" 58 * <sub-rating-definition android:name="US_TV_S" [all …]
|
/aosp_15_r20/external/python/google-api-python-client/docs/dyn/ |
D | youtube_v3.videos.html | 96 <code><a href="#rate">rate(id, rating, x__xgafv=None)</a></code></p> 97 <p class="firstline">Adds a like or dislike rating to a video or removes a rating from a video.</p> 143 { # Basic details about rating of a video. 144 "rating": "A String", # Rating of a video. 166 "videoGameRating": "A String", # Video game rating, if any. 170 … shows. LINT.IfChange # Specifies the ratings that the video received under various rating schemes. 171 …tion Board (ACB) or Australian Communications and Media Authority (ACMA) rating. ACMA ratings are … 172 …"agcomRating": "A String", # The video's rating from Italy's Autorit… 173 …ing", # The video's Anatel (Asociación Nacional de Televisión) rating for Chilean televi… 174 …quot;: "A String", # The video's British Board of Film Classification (BBFC) rating. [all …]
|
/aosp_15_r20/external/pdfium/testing/tools/ |
H A D | safetynet_conclusions.py | 38 case, determining the rating for that case, which can be: 91 rating = RATING_FAILURE 95 rating = RATING_REGRESSION 97 rating = RATING_IMPROVEMENT 99 rating = RATING_NO_CHANGE 101 rating = RATING_SMALL_CHANGE 103 case_result = CaseResult(case_name, before, after, ratio, rating) 139 "rating": "failure" 145 "rating": "regression" 151 "rating": "regression" [all …]
|
/aosp_15_r20/frameworks/base/core/java/android/widget/ |
H A D | RatingBar.java | 36 * A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in 37 * stars. The user can touch/drag or use arrow keys to set the rating when using 61 * Key used for generating Text-to-Speech output regarding the current star rating. 65 public static final String PLURALS_RATING = "rating"; 75 * A callback that notifies clients when the rating has been changed. This 83 * Notification that the rating has changed. Clients can use the 86 * while the user is dragging, only when the user finalizes a rating by 89 * @param ratingBar The RatingBar whose rating has changed. 90 * @param rating The current rating. This will be in the range 92 * @param fromUser True if the rating change was initiated by a user's [all …]
|
/aosp_15_r20/cts/tests/tests/tv/input/src/android/media/tv/cts/ |
H A D | TvContentRatingTest.java | 41 TvContentRating rating = TvContentRating.createRating(DOMAIN, RATING_SYSTEM, MAIN_RATING_1, in testCreateRating() local 43 assertEquals(DOMAIN, rating.getDomain()); in testCreateRating() 44 assertEquals(RATING_SYSTEM, rating.getRatingSystem()); in testCreateRating() 45 assertEquals(MAIN_RATING_1, rating.getMainRating()); in testCreateRating() 46 List<String> subRatings = rating.getSubRatings(); in testCreateRating() 57 TvContentRating rating = TvContentRating.unflattenFromString(flattened); in testFlattenAndUnflatten() local 59 assertEquals(DOMAIN, rating.getDomain()); in testFlattenAndUnflatten() 60 assertEquals(RATING_SYSTEM, rating.getRatingSystem()); in testFlattenAndUnflatten() 61 assertEquals(MAIN_RATING_1, rating.getMainRating()); in testFlattenAndUnflatten() 62 List<String> subRatings = rating.getSubRatings(); in testFlattenAndUnflatten() [all …]
|
/aosp_15_r20/cts/tests/tests/tv/src/android/media/tv/cts/ |
H A D | TvContentRatingTest.java | 41 TvContentRating rating = TvContentRating.createRating(DOMAIN, RATING_SYSTEM, MAIN_RATING_1, in testCreateRating() local 43 assertEquals(DOMAIN, rating.getDomain()); in testCreateRating() 44 assertEquals(RATING_SYSTEM, rating.getRatingSystem()); in testCreateRating() 45 assertEquals(MAIN_RATING_1, rating.getMainRating()); in testCreateRating() 46 List<String> subRatings = rating.getSubRatings(); in testCreateRating() 57 TvContentRating rating = TvContentRating.unflattenFromString(flattened); in testFlattenAndUnflatten() local 59 assertEquals(DOMAIN, rating.getDomain()); in testFlattenAndUnflatten() 60 assertEquals(RATING_SYSTEM, rating.getRatingSystem()); in testFlattenAndUnflatten() 61 assertEquals(MAIN_RATING_1, rating.getMainRating()); in testFlattenAndUnflatten() 62 List<String> subRatings = rating.getSubRatings(); in testFlattenAndUnflatten() [all …]
|
/aosp_15_r20/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | RatingsFragment.java | 34 import com.android.tv.parental.ContentRatingSystem.Rating; 87 // A map from the rating system ID string to RatingItem objects. 138 for (Rating rating : s.getRatings()) { in getItemList() 140 rating.getSubRatings().isEmpty() in getItemList() 141 ? new RatingItem(s, rating) in getItemList() 142 : new RatingWithSubItem(s, rating); in getItemList() 144 if (rating.getSubRatings().isEmpty()) { in getItemList() 150 // Only include rating systems that don't contain any sub ratings in the map for in getItemList() 158 // Display the attribution if our content rating system is selected. in getItemList() 268 protected final Rating mRating; [all …]
|
/aosp_15_r20/packages/apps/TV/ratings/res/values/ |
D | rating_system_strings.xml | 19 <!-- Age based TV content rating strings used in DVB, ISDB and DTMB. 41 <!-- TV content rating system strings for AR TV. These strings are from Wikipedia. 51 <!-- TV content rating system strings for AU TV. These strings are from ABC classification. 62 <!-- TV content rating system strings for BR TV. These strings are from 80 <!-- TV content rating system strings for CA TV. These strings are from 90 <!-- TV content rating system strings for CA TV (French). --> 91 <!-- A short title of the rating system that appears in the parentheses right next to the 97 … is appropriate for viewing by persons of all ages. A program with a "G" rating might offend the s… 100 …iate for viewing by persons 16 years of age or older. Programs with this rating present troubling … 103 <!-- TV content rating system strings for DVB --> [all …]
|
/aosp_15_r20/packages/apps/TV/assets/ |
D | rating_sources.html | 18 <h3>Sources for content rating systems</h3> 20 <li>TV content rating system strings for Argentina</li> 26 <li>TV content rating system for Australia</li> 38 <li>TV content rating system for Brazil</li> 44 <li>TV content rating system for Canada</li> 50 <li>TV content rating system for Canada (French) </li> 56 <li>TV content rating system for DVB</li> 62 <li>TV content rating system for ISDB</li> 68 <li>TV content rating system for South Korea</li> 74 <li>TV content rating system for Singapore</li> [all …]
|
/aosp_15_r20/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
H A D | ShadowTransportControls.java | 21 import android.media.Rating; 49 /** The rating value set by last call of {@link TransportControls#setRating(Rating)}. */ 50 @Nullable private Rating rating; field in ShadowTransportControls 117 protected void setRating(Rating rating) { in setRating() argument 119 this.rating = rating; in setRating() 120 reflector(TransportControlsReflector.class, realTransportControls).setRating(rating); in setRating() 172 public Rating getRating() { in getRating() 173 return rating; in getRating() 207 void setRating(Rating rating); in setRating() argument
|