Home
last modified time | relevance | path

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

/packages/apps/TV/tests/unit/src/com/android/tv/data/
DGenreItemTest.java34 GenreItems.getLabels(getContext()); in testGetLabels()
38 int count = GenreItems.getGenreCount(); in testGetCanonicalGenre()
39 assertNull(GenreItems.getCanonicalGenre(GenreItems.ID_ALL_CHANNELS)); in testGetCanonicalGenre()
41 assertNotNull(GenreItems.getCanonicalGenre(i)); in testGetCanonicalGenre()
46 int count = GenreItems.getGenreCount(); in testGetId_base()
47 assertEquals(GenreItems.ID_ALL_CHANNELS, GenreItems.getId(null)); in testGetId_base()
48 assertEquals(GenreItems.ID_ALL_CHANNELS, GenreItems.getId(INVALID_GENRE)); in testGetId_base()
49 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1); in testGetId_base()
50 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1); in testGetId_base()
51 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1); in testGetId_base()
[all …]
DProgramTest.java35 private static final int FAMILY_GENRE_ID = GenreItems.getId(FAMILY_KIDS);
37 private static final int COMEDY_GENRE_ID = GenreItems.getId(COMEDY);
52 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testNoGenres()
63 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testFamilyGenre()
74 assertHasGenre(program, GenreItems.ID_ALL_CHANNELS, true); in testFamilyComedyGenre()
85 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;
176 private int mSelectedGenreId = GenreItems.ID_ALL_CHANNELS;
327 for (int i = 0; i < GenreItems.getGenreCount(); i++) { in buildGenreFilters()
335 mGenreChannelList.get(GenreItems.getId(genre)).add(channel); in buildGenreFilters()
339 mGenreChannelList.set(GenreItems.ID_ALL_CHANNELS, mChannels); in buildGenreFilters()
342 for (int i = 1; i < GenreItems.getGenreCount(); i++) { in buildGenreFilters()
347 mSelectedGenreId = GenreItems.ID_ALL_CHANNELS; in buildGenreFilters()
364 Log.d(TAG, "resetChannelListWithGenre: " + GenreItems.getCanonicalGenre(genreId) in resetChannelListWithGenre()
389 mSelectedGenreId = GenreItems.ID_ALL_CHANNELS; in updateChannels()
DGenreListAdapter.java28 import com.android.tv.data.GenreItems;
50 mGenreLabels = GenreItems.getLabels(mContext); in GenreListAdapter()
DProgramGuide.java54 import com.android.tv.data.GenreItems;
139 private int mLastRequestedGenreId = GenreItems.ID_ALL_CHANNELS;
485 mLastRequestedGenreId = GenreItems.ID_ALL_CHANNELS; in show()
/packages/apps/TV/src/com/android/tv/data/
DGenreItems.java26 public class GenreItems { class
79 private GenreItems() { } in GenreItems() method in GenreItems
DProgram.java241 genres[i] = GenreItems.getCanonicalGenre(mCanonicalGenreIds[i]); in getCanonicalGenres()
250 if (genreId == GenreItems.ID_ALL_CHANNELS) { in hasGenre()
453 int genreId = GenreItems.getId(canonicalGenre); in setCanonicalGenres()
454 if (genreId == GenreItems.ID_ALL_CHANNELS) { in setCanonicalGenres()