Home
last modified time | relevance | path

Searched refs:contentRatings (Results 1 – 5 of 5) sorted by relevance

/packages/apps/TV/common/src/com/android/tv/common/
DTvContentRatingCache.java87 List<TvContentRating> contentRatings = new ArrayList<>(); in stringToContentRatings() local
90 contentRatings.add(TvContentRating.unflattenFromString(rating)); in stringToContentRatings()
95 return contentRatings.size() == 0 ? in stringToContentRatings()
96 null : contentRatings.toArray(new TvContentRating[contentRatings.size()]); in stringToContentRatings()
123 public static String contentRatingsToString(TvContentRating[] contentRatings) { in contentRatingsToString() argument
124 if (contentRatings == null || contentRatings.length == 0) { in contentRatingsToString()
127 String[] ratingStrings = new String[contentRatings.length]; in contentRatingsToString()
128 for (int i = 0; i < contentRatings.length; i++) { in contentRatingsToString()
129 ratingStrings[i] = contentRatings[i].flattenToString(); in contentRatingsToString()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DProgramInfo.java100 public final TvContentRating[] contentRatings; field in ProgramInfo
123 TvContentRating[] contentRatings, String genre, String resourceUri) { in ProgramInfo() argument
131 this.contentRatings = contentRatings; in ProgramInfo()
204 contentRatings, in build()
233 Objects.equals(contentRatings, that.contentRatings) && in equals()
289 public Builder setContentRatings(TvContentRating[] contentRatings) { in setContentRatings() argument
290 mContentRatings = contentRatings; in setContentRatings()
DProgramUtils.java53 TvContentRatingCache.contentRatingsToString(program.contentRatings)); in populatePrograms()
/packages/apps/TV/src/com/android/tv/data/
DProgram.java429 public Builder setContentRatings(TvContentRating[] contentRatings) { in setContentRatings() argument
430 mProgram.mContentRatings = contentRatings; in setContentRatings()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ts/
DSectionParser.java749 List<String> contentRatings = new ArrayList<>(); in generateContentRating() local
777 contentRatings.add(TvContentRating in generateContentRating()
785 return TextUtils.join(",", contentRatings); in generateContentRating()