Home
last modified time | relevance | path

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

/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/
DSyncProgramsJobService.java110 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/
DMockDatabase.java201 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/
DVerticalGridFragment.java57 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in setupFragment() local
59 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) in setupFragment()
DLeanbackDetailsFragment.java92 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()
DSearchFragment.java88 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/
DSharedPreferencesHelper.java92 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/
DMovieDetailsFragment.java134 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()
DVerticalGridFragment.java71 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in setupFragment() local
73 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in setupFragment()
DSearchFragment.java98 HashMap<String, List<Movie>> movies = VideoProvider.getMovieList(); in loadRows() local
100 for (Map.Entry<String, List<Movie>> entry : movies.entrySet()) { in loadRows()
DPlaybackOverlayFragment.java123 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/
DVideoDatabase.java246 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()