Lines Matching defs:programs
115 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId());
116 Collections.sort(programs, RecordedProgram.EPISODE_COMPARATOR);
117 mRecommendRecordedProgram = getRecommendProgram(programs);
211 * The programs are sorted by season number and episode number.
213 private RecordedProgram getRecommendProgram(List<RecordedProgram> programs) {
214 for (int i = programs.size() - 1 ; i >= 0 ; i--) {
215 RecordedProgram program = programs.get(i);
223 if (i == programs.size() - 1) {
226 return programs.get(i + 1);
229 return programs.isEmpty() ? null : programs.get(0);