/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/ |
D | SyncProgramsJobService.java | 110 List<Movie> movies = new ArrayList<>(initialMovies); in syncPrograms() local 124 deletePrograms(channelId, movies); in syncPrograms() 127 if (movies.isEmpty()) { in syncPrograms() 128 movies = createPrograms(channelId, MockMovieService.getList()); in syncPrograms() 130 movies = updatePrograms(channelId, movies); in syncPrograms() 132 MockDatabase.saveMovies(getApplicationContext(), channelId, movies); in syncPrograms() local 138 private List<Movie> createPrograms(long channelId, List<Movie> movies) { in createPrograms() argument 140 List<Movie> moviesAdded = new ArrayList<>(movies.size()); in createPrograms() 141 for (Movie movie : movies) { in createPrograms() 158 private List<Movie> updatePrograms(long channelId, List<Movie> movies) { in updatePrograms() argument [all …]
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/model/ |
D | MockDatabase.java | 201 public static void saveMovies(Context context, long channelId, List<Movie> movies) { in saveMovies() argument 202 SharedPreferencesHelper.storeMovies(context, channelId, movies); in saveMovies() 225 List<Movie> movies = getMovies(context, channelId); in saveMovie() local 226 int index = findMovie(movies, movie); in saveMovie() 228 movies.add(movie); in saveMovie() 230 movies.set(index, movie); in saveMovie() 232 saveMovies(context, channelId, movies); in saveMovie() 235 private static int findMovie(List<Movie> movies, Movie movie) { in findMovie() argument 236 for (int index = 0; index < movies.size(); ++index) { in findMovie() 237 Movie current = movies.get(index); in findMovie()
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
D | VerticalGridFragment.java | 57 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in setupFragment() local 59 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) in setupFragment()
|
D | LeanbackDetailsFragment.java | 92 protected DetailsOverviewRow doInBackground(Movie... movies) { in doInBackground() argument 93 selectedMovie = movies[0]; in doInBackground() 152 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in onPostExecute() local 155 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) in onPostExecute()
|
D | SearchFragment.java | 88 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in loadRows() local 90 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) in loadRows()
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/util/ |
D | SharedPreferencesHelper.java | 92 public static void storeMovies(Context context, long channelId, List<Movie> movies) { in storeMovies() argument 93 setList(context, movies, PREFS_SUBSCRIBED_MOVIES_PREFIX + channelId); in storeMovies()
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/ |
D | MovieDetailsFragment.java | 134 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in checkGlobalSearchIntent() local 136 if (movies == null) { in checkGlobalSearchIntent() 139 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in checkGlobalSearchIntent() 241 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in setupMovieListRow() local 244 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in setupMovieListRow()
|
D | VerticalGridFragment.java | 71 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in setupFragment() local 73 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in setupFragment()
|
D | SearchFragment.java | 98 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in loadRows() local 100 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in loadRows()
|
D | PlaybackOverlayFragment.java | 123 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in onCreate() local 125 if(movies != null) { in onCreate() 126 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in onCreate()
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
D | VideoDatabase.java | 246 HashMap<String, List<Movie>> movies = null; in loadMovies() local 249 movies = VideoProvider.buildMedia(mHelperContext, in loadMovies() 255 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in loadMovies()
|