Home
last modified time | relevance | path

Searched refs:genreId (Results 1 – 10 of 10) sorted by relevance

/packages/apps/TV/src/com/android/tv/guide/
DGenreListAdapter.java73 int genreId = filteredGenreIds.get(position); in onBindViewHolder() local
74 holder.onBind(genreId, mGenreLabels[genreId]); in onBindViewHolder()
107 public void onBind(int genreId, String genreLabel) { in onBind() argument
108 mGenreId = genreId; in onBind()
DProgramManager.java282 void resetChannelListWithGenre(int genreId) { in resetChannelListWithGenre() argument
283 if (genreId == mSelectedGenreId) { in resetChannelListWithGenre()
286 mFilteredChannels = mGenreChannelList.get(genreId); in resetChannelListWithGenre()
287 mSelectedGenreId = genreId; in resetChannelListWithGenre()
292 + GenreItems.getCanonicalGenre(genreId) in resetChannelListWithGenre()
774 boolean hasGenre(int genreId) { in hasGenre() argument
775 return !isGap() && program.hasGenre(genreId); in hasGenre()
DProgramGuide.java687 void requestGenreChange(int genreId) { in requestGenreChange() argument
688 if (mLastRequestedGenreId == genreId) { in requestGenreChange()
695 mLastRequestedGenreId = genreId; in requestGenreChange()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java591 int genreId = GenreItems.getId(genre); in getGenreAdapters() local
592 if (genreId >= mGenreAdapters.length) { in getGenreAdapters()
593 Log.d(TAG, "Wrong Genre ID: " + genreId); in getGenreAdapters()
595 result.add(mGenreAdapters[genreId]); in getGenreAdapters()
607 for (int genreId : genreIds) { in getGenreAdapters()
608 if (genreId >= mGenreAdapters.length) { in getGenreAdapters()
609 Log.d(TAG, "Wrong Genre ID: " + genreId); in getGenreAdapters()
611 result.add(mGenreAdapters[genreId]); in getGenreAdapters()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramTest.java271 private static void assertHasGenre(Program program, int genreId, boolean expected) { in assertHasGenre() argument
272 assertWithMessage("hasGenre(" + genreId + ")") in assertHasGenre()
273 .that(program.hasGenre(genreId)) in assertHasGenre()
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/
DProgramTableAdapterTest.java118 private Program buildProgramForTesting(long id, long channelId, int genreId) { in buildProgramForTesting() argument
122 .setCanonicalGenres(GenreItems.getCanonicalGenre(genreId)) in buildProgramForTesting()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java771 int genreId = GenreItems.getId(canonicalGenre); in getCanonicalGenreIds() local
772 if (genreId == GenreItems.ID_ALL_CHANNELS) { in getCanonicalGenreIds()
776 results[i++] = genreId; in getCanonicalGenreIds()
/packages/apps/TV/src/com/android/tv/data/
DProgramImpl.java406 public boolean hasGenre(int genreId) { in hasGenre() argument
407 if (genreId == GenreItems.ID_ALL_CHANNELS) { in hasGenre()
412 if (id == genreId) { in hasGenre()
/packages/apps/TV/src/com/android/tv/data/api/
DProgram.java69 boolean hasGenre(int genreId); in hasGenre() argument
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java3127 public static final Uri getContentUri(String volumeName, long genreId) { in getContentUri() argument
3129 .withAppendedId(Audio.Genres.getContentUri(volumeName), genreId) in getContentUri()