Lines Matching refs:genre

97      * genre to filter programs.
185 * genre from the given TV input.
189 * @param genre {@link Programs.Genres} to search. If {@code null}, builds a URI for all genres.
196 public static final Uri buildChannelsUriForInput(String inputId, String genre,
198 if (genre == null) {
201 if (!Programs.Genres.isCanonical(genre)) {
202 throw new IllegalArgumentException("Not a canonical genre: '" + genre + "'");
205 .appendQueryParameter(PARAM_CANONICAL_GENRE, genre).build();
873 * The comma-separated genre string of this TV program.
876 * example, one can refer to the genre strings used in Genre Descriptor of ATSC A/65 or
885 * The comma-separated canonical genre string of this TV program.
889 * Genres.decode()} to get the canonical genre strings from the text stored in this column.
1022 /** The genre for Family/Kids. */
1025 /** The genre for Sports. */
1028 /** The genre for Shopping. */
1031 /** The genre for Movies. */
1034 /** The genre for Comedy. */
1037 /** The genre for Travel. */
1040 /** The genre for Drama. */
1043 /** The genre for Education. */
1046 /** The genre for Animal/Wildlife. */
1049 /** The genre for News. */
1052 /** The genre for Gaming. */
1073 * Encodes canonical genre strings to a text that can be put into the database.
1075 * @param genres Canonical genre strings. Use the strings defined in this class.
1076 * @return an encoded genre string that can be inserted into the
1082 for (String genre : genres) {
1083 sb.append(separator).append(genre);
1090 * Decodes the canonical genre strings from the text stored in the database.
1092 * @param genres The encoded genre string retrieved from the
1094 * @return canonical genre strings.
1101 * Check whether a given genre is canonical or not.
1103 * @param genre The name of genre to be checked.
1104 * @return {@code true} if the genre is canonical, otherwise {@code false}.
1108 public static boolean isCanonical(String genre) {
1109 return CANONICAL_GENRES.contains(genre);