Home
last modified time | relevance | path

Searched refs:GenreItems (Results 1 – 11 of 11) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DGenreItemTest.java41 GenreItems.getLabels(RuntimeEnvironment.application); in testGetLabels()
46 int count = GenreItems.getGenreCount(); in testGetCanonicalGenre()
47 assertThat(GenreItems.getCanonicalGenre(GenreItems.ID_ALL_CHANNELS)).isNull(); in testGetCanonicalGenre()
49 assertThat(GenreItems.getCanonicalGenre(i)).isNotNull(); in testGetCanonicalGenre()
55 int count = GenreItems.getGenreCount(); in testGetId_base()
56 assertThat(GenreItems.getId(null)).isEqualTo(GenreItems.ID_ALL_CHANNELS); in testGetId_base()
57 assertThat(GenreItems.getId(INVALID_GENRE)).isEqualTo(GenreItems.ID_ALL_CHANNELS); in testGetId_base()
58 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1); in testGetId_base()
59 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1); in testGetId_base()
60 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1); in testGetId_base()
[all …]
DProgramTest.java50 private static final int FAMILY_GENRE_ID = GenreItems.getId(FAMILY_KIDS);
52 private static final int COMEDY_GENRE_ID = GenreItems.getId(COMEDY);
67 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testNoGenres()
77 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testFamilyGenre()
88 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testFamilyComedyGenre()
98 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testOtherGenre()
/packages/apps/TV/src/com/android/tv/guide/
DProgramManager.java26 import com.android.tv.data.GenreItems;
77 private int mSelectedGenreId = GenreItems.ID_ALL_CHANNELS;
292 + GenreItems.getCanonicalGenre(genreId) in resetChannelListWithGenre()
442 mSelectedGenreId = GenreItems.ID_ALL_CHANNELS; in updateChannels()
455 mSelectedGenreId = GenreItems.ID_ALL_CHANNELS; in setChannels()
536 for (int i = 0; i < GenreItems.getGenreCount(); i++) { in buildGenreFilters()
543 mGenreChannelList.get(GenreItems.getId(genre)).add(channel); in buildGenreFilters()
547 mGenreChannelList.set(GenreItems.ID_ALL_CHANNELS, mChannels); in buildGenreFilters()
550 for (int i = 1; i < GenreItems.getGenreCount(); i++) { in buildGenreFilters()
555 mSelectedGenreId = GenreItems.ID_ALL_CHANNELS; in buildGenreFilters()
DGenreListAdapter.java28 import com.android.tv.data.GenreItems;
48 mGenreLabels = GenreItems.getLabels(mContext); in GenreListAdapter()
DProgramGuide.java57 import com.android.tv.data.GenreItems;
152 private int mLastRequestedGenreId = GenreItems.ID_ALL_CHANNELS;
546 mLastRequestedGenreId = GenreItems.ID_ALL_CHANNELS; in show()
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/
DProgramTableAdapterTest.java25 import com.android.tv.data.GenreItems;
87 id, id, (int) id % GenreItems.getGenreCount()); in testOnTableEntryChanged()
122 .setCanonicalGenres(GenreItems.getCanonicalGenre(genreId)) in buildProgramForTesting()
/packages/apps/TV/src/com/android/tv/data/
DGenreItems.java23 public class GenreItems { class
48 private GenreItems() {} in GenreItems() method in GenreItems
DProgramImpl.java394 genres[i] = GenreItems.getCanonicalGenre(mCanonicalGenreIds[i]); in getCanonicalGenres()
407 if (genreId == GenreItems.ID_ALL_CHANNELS) { in hasGenre()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java37 import com.android.tv.data.GenreItems;
78 new RecordedProgramAdapter[GenreItems.getGenreCount() + 1];
82 private ListRow[] mGenreRows = new ListRow[GenreItems.getGenreCount() + 1];
224 mGenreLabels = new ArrayList<>(Arrays.asList(GenreItems.getLabels(context))); in onCreate()
591 int genreId = GenreItems.getId(genre); in getGenreAdapters()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java48 import com.android.tv.data.GenreItems;
771 int genreId = GenreItems.getId(canonicalGenre); in getCanonicalGenreIds()
772 if (genreId == GenreItems.ID_ALL_CHANNELS) { in getCanonicalGenreIds()
793 genres[i] = GenreItems.getCanonicalGenre(canonicalGenreIds[i]); in getCanonicalGenre()
/packages/apps/TV/src/com/android/tv/dvr/data/
DRecordedProgram.java40 import com.android.tv.data.GenreItems;
381 genreIds[i] = GenreItems.getId(canonicalGenres.get(i)); in getCanonicalGenreIds()