HomeSort by relevance Sort by last modified time
    Searched refs:ratings (Results 1 - 10 of 10) sorted by null

  /packages/apps/TV/src/com/android/tv/parental/
ContentRatingLevelPolicy.java 53 Set<TvContentRating> ratings = new HashSet<>(); local
70 ratings.add(tvContentRating);
75 ratings.add(tvContentRating);
80 return ratings;
ContentRatingSystem.java 66 // Ordered list of main content ratings. UX should respect the order.
69 // Ordered list of sub content ratings. UX should respect the order.
72 // List of orders. This describes the automatic lock/unlock relationship between ratings.
134 * Returns true if the ratings is owned by this content rating system.
156 String displayName, List<Rating> ratings, List<SubRating> subRatings,
164 mRatings = ratings;
224 // To provide easy access to the Ratings in it,
228 // at this moment. Keep builders here and build it with Ratings later.
276 List<Rating> ratings = new ArrayList<>(); local
279 ratings.add(builder.build(subRatings))
    [all...]
ParentalControlSettings.java 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.
72 // Ensure newly added system has ratings for current level set
75 // Ensure no ratings are blocked for the selected rating system
159 * Checks whether any of given ratings is blocked.
161 * @param ratings The array of ratings to check
164 public boolean isRatingBlocked(TvContentRating[] ratings) {
165 return getBlockedRating(ratings) != null;
169 * Checks whether any of given ratings is blocked and returns the first blocked rating
    [all...]
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/
TvContractUtils.java 223 TvContentRating[] ratings = stringToContentRatings(cursor.getString(2)); local
228 ratings));
307 String[] ratings = commaSeparatedRatings.split("\\s*,\\s*"); local
308 TvContentRating[] contentRatings = new TvContentRating[ratings.length];
310 contentRatings[i] = TvContentRating.unflattenFromString(ratings[i]);
320 StringBuilder ratings = new StringBuilder(contentRatings[0].flattenToString()); local
322 ratings.append(DELIMITER);
323 ratings.append(contentRatings[i].flattenToString());
325 return ratings.toString();
  /packages/apps/TV/tests/unit/src/com/android/tv/common/
TvContentRatingCacheTest.java 85 assertEquals("ratings string", null, result);
90 assertEquals("ratings string", null, result);
96 assertEquals("ratings string", TvContentRatingConstants.STRING_US_TV_MA, result);
103 assertEquals("ratings string", MA_AND_Y7, result);
110 assertEquals("ratings string", MA_AND_Y7, result);
117 assertEquals("ratings string", TvContentRatingConstants.STRING_US_TV_MA, result);
135 MoreAsserts.assertEquals("ratings",
142 MoreAsserts.assertEquals("ratings",
148 MoreAsserts.assertEquals("ratings",
155 MoreAsserts.assertEquals("ratings",
    [all...]
  /packages/apps/TV/src/com/android/tv/search/
DataManagerSearch.java 239 private boolean isRatingBlocked(TvContentRating[] ratings) {
240 if (ratings == null || ratings.length == 0
244 for (TvContentRating rating : ratings) {
TvProviderSearch.java 407 private boolean isRatingBlocked(String ratings) {
408 if (TextUtils.isEmpty(ratings) || !mTvInputManager.isParentalControlsEnabled()) {
411 TvContentRating[] ratingArray = mTvContentRatingCache.getRatings(ratings);
  /frameworks/base/media/java/android/media/tv/
TvInputManager.java 254 * Broadcast intent action when the user blocked content ratings change. For use with the
295 * &lt;rating-system-definition&gt;</code> element specifies the ratings, sub-ratings and rating
1328 List<TvContentRating> ratings = new ArrayList<>(); local
    [all...]
  /packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
TunerSessionWorker.java 1412 TvContentRating[] ratings = mTvContentRatingCache local
    [all...]
  /frameworks/base/services/core/java/com/android/server/tv/
TvInputManagerService.java 1075 List<String> ratings = new ArrayList<>(); local
    [all...]

Completed in 234 milliseconds