/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
DvrScheduleManagerTest.java | 47 List<ScheduledRecording> schedules = new ArrayList<>(); local 48 MoreAsserts.assertEmpty(DvrScheduleManager.getConflictingSchedules(schedules, 1)); 55 List<ScheduledRecording> schedules = new ArrayList<>(); local 57 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 59 MoreAsserts.assertEmpty(DvrScheduleManager.getConflictingSchedules(schedules, 1)); 61 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 63 MoreAsserts.assertEmpty(DvrScheduleManager.getConflictingSchedules(schedules, 2)); 65 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId, 67 MoreAsserts.assertEmpty(DvrScheduleManager.getConflictingSchedules(schedules, 2)); 69 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId 82 List<ScheduledRecording> schedules = new ArrayList<>(); local 97 List<ScheduledRecording> schedules = new ArrayList<>(); local 177 List<ScheduledRecording> schedules = new ArrayList<>(); local 203 List<ScheduledRecording> schedules = new ArrayList<>(); local 282 List<ScheduledRecording> schedules = new ArrayList<>(); local 300 List<ScheduledRecording> schedules = new ArrayList<>(); local 318 List<ScheduledRecording> schedules = new ArrayList<>(); local 349 List<ScheduledRecording> schedules = new ArrayList<>(); local 373 List<ScheduledRecording> schedules = new ArrayList<>(); local 397 List<ScheduledRecording> schedules = new ArrayList<>(); local 418 List<ScheduledRecording> schedules = new ArrayList<>(); local 430 List<ScheduledRecording> schedules = new ArrayList<>(); local 449 List<ScheduledRecording> schedules = new ArrayList<>(); local 469 List<ScheduledRecording> schedules = new ArrayList<>(); local 481 List<ScheduledRecording> schedules = new ArrayList<>(); local 494 List<ScheduledRecording> schedules = new ArrayList<>(); local 512 List<ScheduledRecording> schedules = new ArrayList<>(); local 530 List<ScheduledRecording> schedules = new ArrayList<>(); local 548 List<ScheduledRecording> schedules = new ArrayList<>(); local 571 List<ScheduledRecording> schedules = new ArrayList<>(); local 593 List<ScheduledRecording> schedules = new ArrayList<>(Arrays.asList( local [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ |
DvrScheduleManager.java | 54 * A class to manage the schedules. 142 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); 143 if (schedules == null) { 144 schedules = new ArrayList<>(); 145 mInputScheduleMap.put(inputId, schedules); 147 schedules.add(schedule); 168 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); 169 if (schedules != null) { 170 schedules.remove(schedule); 171 if (schedules.isEmpty()) 267 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); local 289 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); local 461 List<ScheduledRecording> schedules = mInputScheduleMap.get(schedule.getInputId()); local 482 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); local 626 List<ScheduledRecording> schedules = mInputScheduleMap.get(input.getId()); local 703 List<ScheduledRecording> schedules; local 732 List<ScheduledRecording> schedules = mInputScheduleMap.get(input.getId()); local [all...] |
DvrManager.java | 90 // after the all the schedules are loaded. 157 * Schedules a recording for {@code program}. 170 * Schedules a recording for {@code program} with the highest priority so that the schedule 236 * Adds a new series recording and schedules for the programs with the initial state. 240 Log.i(TAG, "Adding series recording for program " + selectedProgram + ", and schedules: " 255 // The schedules for the recorded programs should be added not to create the schedule the 269 // The schedules for the recorded programs should be added not to create the schedule the 279 // Duplicate schedules can exist, but they will be deleted in a few days. And it's 280 // also guaranteed that the schedules don't belong to any series recordings because 343 // If the channel option of series changed, remove the existing schedules. The ne 348 List<ScheduledRecording> schedules = local 717 List<ScheduledRecording> schedules = new ArrayList<>(); local [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
DvrBrowseFragment.java | 146 public void onConflictStateChange(boolean conflict, ScheduledRecording... schedules) { 148 for (ScheduledRecording schedule : schedules) { 288 private void onScheduledRecordingConflictStatusChanged(ScheduledRecording... schedules) { 289 for (ScheduledRecording schedule : schedules) { 371 List<ScheduledRecording> schedules = mDvrDataManager.getAllScheduledRecordings(); local 372 onScheduledRecordingAdded(ScheduledRecording.toArray(schedules));
|