/frameworks/support/tv-provider/src/android/support/media/tv/ |
TvContractUtils.java | 42 * Parses a string of comma-separated ratings into an array of {@link TvContentRating}. 45 * @param commaSeparatedRatings String containing various ratings, separated by commas. 52 String[] ratings = commaSeparatedRatings.split("\\s*,\\s*"); local 53 List<TvContentRating> contentRatings = new ArrayList<>(ratings.length); 54 for (String rating : ratings) { 69 * @return A comma-separated String of ratings. 75 StringBuilder ratings = new StringBuilder(contentRatings[0].flattenToString()); local 77 ratings.append(DELIMITER); 78 ratings.append(contentRatings[i].flattenToString()); 80 return ratings.toString() 106 StringBuilder ratings = new StringBuilder(audioLanguages[0]); local [all...] |
/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. 143 * Returns true if the ratings is owned by this content rating system. 165 String displayName, List<Rating> ratings, List<SubRating> subRatings, 173 mRatings = ratings; 233 // To provide easy access to the Ratings in it, 237 // at this moment. Keep builders here and build it with Ratings later. 285 List<Rating> ratings = new ArrayList<>(); local 288 ratings.add(builder.build(subRatings)) [all...] |
/frameworks/support/tv-provider/tests/src/android/support/media/tv/ |
TvContractUtilsTest.java | 46 TvContentRating[] ratings = new TvContentRating[1]; local 47 ratings[0] = TvContentRating.createRating( 55 assertArrayEquals(ratings, TvContractUtils.stringToContentRatings( 61 TvContentRating[] ratings = new TvContentRating[3]; local 62 ratings[0] = TvContentRating.createRating( 66 ratings[1] = TvContentRating.createRating( 70 ratings[2] = TvContentRating.createRating( 78 assertArrayEquals(ratings, TvContractUtils.stringToContentRatings( 93 TvContentRating[] ratings = new TvContentRating[1]; local 94 ratings[0] = TvContentRating.createRating 120 TvContentRating[] ratings = new TvContentRating[1]; local 135 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/tests/unit/src/com/android/tv/data/ |
ProgramTest.java | 107 TvContentRating[] ratings = new TvContentRating[2]; local 108 ratings[0] = TvContentRating.unflattenFromString("1/2/3"); 109 ratings[1] = TvContentRating.unflattenFromString("4/5/6"); 130 .setContentRatings(ratings)
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
DvrDetailsFragment.java | 226 TvContentRating[] ratings = recordedProgram.getContentRatings(); local 227 TvContentRating blockRatings = parental.getBlockedRating(ratings);
|
/packages/apps/TV/src/com/android/tv/tuner/ts/ |
SectionParser.java | 1623 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 1337 List<TvContentRating> ratings = new ArrayList<>(); local [all...] |
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
TunerSessionWorker.java | 1686 TvContentRating[] ratings = mTvContentRatingCache local [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
TvInputManagerService.java | 1087 List<String> ratings = new ArrayList<>(); local [all...] |
/prebuilts/sdk/current/support/tv-provider/ |
android-support-tv-provider.jar | |