Home
last modified time | relevance | path

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

/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
DQueueHelper.java137 Iterator<String> genres = musicProvider.getGenres().iterator(); in getRandomQueue() local
138 if (!genres.hasNext()) { in getRandomQueue()
141 String genre = genres.next(); in getRandomQueue()
/frameworks/base/media/java/android/media/tv/
DTvContract.java2659 public static String encode(@NonNull @Genre String... genres) { in encode() argument
2660 if (genres == null) { in encode()
2666 for (String genre : genres) { in encode()
2698 public static @Genre String[] decode(@NonNull String genres) { in decode() argument
2699 if (TextUtils.isEmpty(genres)) { in decode()
2703 if (genres.indexOf(COMMA) == -1 && genres.indexOf(DOUBLE_QUOTE) == -1) { in decode()
2704 return new String[] {genres.trim()}; in decode()
2708 int length = genres.length(); in decode()
2711 char c = genres.charAt(i); in decode()
/frameworks/support/recommendation/src/main/java/androidx/recommendation/app/
DRecommendationExtender.java181 public RecommendationExtender setGenres(String[] genres) { in setGenres() argument
182 mGenres = genres; in setGenres()
DContentRecommendation.java1001 public Builder setGenres(String[] genres) { in setGenres() argument
1002 mBuilderContentGenres = genres; in setGenres()
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
DProgram.java284 public Builder setBroadcastGenres(@Genre String[] genres) { in setBroadcastGenres() argument
285 mValues.put(Programs.COLUMN_BROADCAST_GENRE, Programs.Genres.encode(genres)); in setBroadcastGenres()
DBaseProgram.java754 public T setCanonicalGenres(@Genre String[] genres) { in setCanonicalGenres() argument
755 mValues.put(Programs.COLUMN_CANONICAL_GENRE, Programs.Genres.encode(genres)); in setCanonicalGenres()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DMediaBrowserServiceSupport.java316 List<String> genres = mMusicProvider.getGenres(); in loadChildrenImpl() local
317 toIndex = page == -1 ? genres.size() : Math.min(fromIndex + pageSize, genres.size()); in loadChildrenImpl()
320 String genre = genres.get(i); in loadChildrenImpl()