/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
TvContractUtils.java | 43 * Parses a string of comma-separated ratings into an array of {@link TvContentRating}. 46 * @param commaSeparatedRatings String containing various ratings, separated by commas. 53 String[] ratings = commaSeparatedRatings.split("\\s*,\\s*", -1); local 54 List<TvContentRating> contentRatings = new ArrayList<>(ratings.length); 55 for (String rating : ratings) { 70 * @return A comma-separated String of ratings. 76 StringBuilder ratings = new StringBuilder(contentRatings[0].flattenToString()); local 78 ratings.append(DELIMITER); 79 ratings.append(contentRatings[i].flattenToString()); 81 return ratings.toString() 107 StringBuilder ratings = new StringBuilder(audioLanguages[0]); local [all...] |
/packages/apps/TV/src/com/android/tv/parental/ |
ContentRatingLevelPolicy.java | 52 Set<TvContentRating> ratings = new HashSet<>(); local 71 ratings.add(tvContentRating); 77 ratings.add(tvContentRating); 82 return ratings;
|
ContentRatingSystem.java | 64 // Ordered list of main content ratings. UX should respect the order. 67 // Ordered list of sub content ratings. UX should respect the order. 70 // List of orders. This describes the automatic lock/unlock relationship between ratings. 140 /** Returns true if the ratings is owned by this content rating system. */ 166 List<Rating> ratings, 176 mRatings = ratings; 236 // To provide easy access to the Ratings in it, 240 // at this moment. Keep builders here and build it with Ratings later. 288 List<Rating> ratings = new ArrayList<>(); local 291 ratings.add(builder.build(subRatings)) [all...] |
/frameworks/support/tv-provider/src/androidTest/java/androidx/tvprovider/media/tv/ |
TvContractUtilsTest.java | 48 TvContentRating[] ratings = new TvContentRating[1]; local 49 ratings[0] = TvContentRating.createRating( 57 assertArrayEquals(ratings, TvContractUtils.stringToContentRatings( 63 TvContentRating[] ratings = new TvContentRating[3]; local 64 ratings[0] = TvContentRating.createRating( 68 ratings[1] = TvContentRating.createRating( 72 ratings[2] = TvContentRating.createRating( 80 assertArrayEquals(ratings, TvContractUtils.stringToContentRatings( 95 TvContentRating[] ratings = new TvContentRating[1]; local 96 ratings[0] = TvContentRating.createRating 122 TvContentRating[] ratings = new TvContentRating[1]; local 137 TvContentRating[] ratings = new TvContentRating[3]; local [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/src/com/android/tv/dvr/ui/browse/ |
DvrDetailsFragment.java | 224 TvContentRating[] ratings = recordedProgram.getContentRatings(); local 225 TvContentRating blockRatings = parental.getBlockedRating(ratings);
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/ts/ |
SectionParser.java | 1955 HashMap<String, Integer> ratings = new HashMap<>(); local [all...] |
/frameworks/base/media/java/android/media/tv/ |
TvInputManager.java | 256 * Broadcast intent action when the user blocked content ratings change. For use with the 297 * <rating-system-definition></code> element specifies the ratings, sub-ratings and rating 1336 List<TvContentRating> ratings = new ArrayList<>(); local [all...] |
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
TunerSessionWorker.java | 1796 TvContentRating[] ratings = local [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
TvInputManagerService.java | 1093 List<String> ratings = new ArrayList<>(); local [all...] |
/prebuilts/misc/common/robolectric/android-all/ |
android-all-8.0.0_r4-robolectric-0.jar | |
android-all-o-preview-4-robolectric-0.jar | |