Home
last modified time | relevance | path

Searched refs:canonicalGenres (Results 1 – 6 of 6) sorted by relevance

/packages/apps/TV/src/com/android/tv/dvr/data/
DRecordedProgram.java262 public Builder setCanonicalGenres(String canonicalGenres) { in setCanonicalGenres() argument
264 TextUtils.isEmpty(canonicalGenres) in setCanonicalGenres()
266 : ImmutableList.copyOf(Genres.decode(canonicalGenres))); in setCanonicalGenres()
269 public abstract Builder setCanonicalGenres(ImmutableList<String> canonicalGenres); in setCanonicalGenres() argument
378 ImmutableList<String> canonicalGenres = getCanonicalGenres(); in getCanonicalGenreIds() local
380 for (int i = 0; i < canonicalGenres.size(); i++) { in getCanonicalGenreIds()
381 genreIds[i] = GenreItems.getId(canonicalGenres.get(i)); in getCanonicalGenreIds()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java766 public static int[] getCanonicalGenreIds(String[] canonicalGenres) { in getCanonicalGenreIds() argument
767 if (canonicalGenres != null && canonicalGenres.length > 0) { in getCanonicalGenreIds()
768 int[] results = new int[canonicalGenres.length]; in getCanonicalGenreIds()
770 for (String canonicalGenre : canonicalGenres) { in getCanonicalGenreIds()
778 if (i < canonicalGenres.length) { in getCanonicalGenreIds()
/packages/apps/TV/src/com/android/tv/data/
DProgramImpl.java561 String[] canonicalGenres = program.getCanonicalGenres(); in toContentValues() local
562 if (canonicalGenres != null && canonicalGenres.length > 0) { in toContentValues()
566 TvContract.Programs.Genres.encode(canonicalGenres)); in toContentValues()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java342 public GenreDescriptor(String[] broadcastGenres, String[] canonicalGenres) { in GenreDescriptor() argument
344 mCanonicalGenres = canonicalGenres; in GenreDescriptor()
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeTvProvider.java2092 String canonicalGenres = values.getAsString(Programs.COLUMN_CANONICAL_GENRE); in checkAndConvertGenre() local
2094 if (!TextUtils.isEmpty(canonicalGenres)) { in checkAndConvertGenre()
2096 String[] genres = Genres.decode(canonicalGenres); in checkAndConvertGenre()
2100 canonicalGenres = null; in checkAndConvertGenre()
2106 if (TextUtils.isEmpty(canonicalGenres)) { in checkAndConvertGenre()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1920 String canonicalGenres = values.getAsString(Programs.COLUMN_CANONICAL_GENRE); in checkAndConvertGenre() local
1922 if (!TextUtils.isEmpty(canonicalGenres)) { in checkAndConvertGenre()
1924 String[] genres = Genres.decode(canonicalGenres); in checkAndConvertGenre()
1928 canonicalGenres = null; in checkAndConvertGenre()
1934 if (TextUtils.isEmpty(canonicalGenres)) { in checkAndConvertGenre()