Home
last modified time | relevance | path

Searched refs:scheduledRecordings (Results 1 – 5 of 5) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
DDvrDataManagerImplTest.java37 List<ScheduledRecording> scheduledRecordings = new ArrayList<>(); in testGetNextScheduledStartTimeAfter() local
38 assertNextStartTime(scheduledRecordings, 0L, DvrDataManager.NEXT_START_TIME_NOT_FOUND); in testGetNextScheduledStartTimeAfter()
39 scheduledRecordings.add(RecordingTestUtils in testGetNextScheduledStartTimeAfter()
41 assertNextStartTime(scheduledRecordings, 9L, 10L); in testGetNextScheduledStartTimeAfter()
42 assertNextStartTime(scheduledRecordings, 10L, DvrDataManager.NEXT_START_TIME_NOT_FOUND); in testGetNextScheduledStartTimeAfter()
43 scheduledRecordings.add(RecordingTestUtils in testGetNextScheduledStartTimeAfter()
45 assertNextStartTime(scheduledRecordings, 9L, 10L); in testGetNextScheduledStartTimeAfter()
46 assertNextStartTime(scheduledRecordings, 10L, 20L); in testGetNextScheduledStartTimeAfter()
47 assertNextStartTime(scheduledRecordings, 20L, DvrDataManager.NEXT_START_TIME_NOT_FOUND); in testGetNextScheduledStartTimeAfter()
48 scheduledRecordings.add(RecordingTestUtils in testGetNextScheduledStartTimeAfter()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java95 public List<ScheduledRecording> insertRecordings(ScheduledRecording... scheduledRecordings) { in insertRecordings() argument
96 updateChannelsFromRecordings(scheduledRecordings); in insertRecordings()
100 for (ScheduledRecording r : scheduledRecordings) { in insertRecordings()
114 public List<Integer> updateRecordings(ScheduledRecording[] scheduledRecordings) { in updateRecordings() argument
115 updateChannelsFromRecordings(scheduledRecordings); in updateRecordings()
118 for (ScheduledRecording r : scheduledRecordings) { in updateRecordings()
127 private void updateChannelsFromRecordings(ScheduledRecording[] scheduledRecordings) { in updateChannelsFromRecordings() argument
138 public List<Integer> deleteRecordings(ScheduledRecording[] scheduledRecordings) { in deleteRecordings() argument
141 for (ScheduledRecording r : scheduledRecordings) { in deleteRecordings()
DAsyncDvrDbTask.java150 List<ScheduledRecording> scheduledRecordings = new ArrayList<>(); in doInDvrBackground() local
153 scheduledRecordings.add(ScheduledRecording.fromCursor(c)); in doInDvrBackground()
156 return scheduledRecordings; in doInDvrBackground()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java123 protected void onCancelled(List<ScheduledRecording> scheduledRecordings) { in start()
206 … static long getNextStartTimeAfter(List<ScheduledRecording> scheduledRecordings, long startTime) { in getNextStartTimeAfter() argument
208 int end = scheduledRecordings.size() - 1; in getNextStartTimeAfter()
211 if (scheduledRecordings.get(mid).getStartTimeMs() <= startTime) { in getNextStartTimeAfter()
217 return start < scheduledRecordings.size() ? scheduledRecordings.get(start).getStartTimeMs() in getNextStartTimeAfter()
260 protected void onPostExecute(List<ScheduledRecording> scheduledRecordings) { in addScheduledRecording() argument
261 super.onPostExecute(scheduledRecordings); in addScheduledRecording()
262 SoftPreconditions.checkArgument(scheduledRecordings.size() == 1); in addScheduledRecording()
263 for (ScheduledRecording r : scheduledRecordings) { in addScheduledRecording()
361 protected void onCancelled(List<RecordedProgram> scheduledRecordings) { in onCancelled() argument
DScheduler.java99 List<ScheduledRecording> scheduledRecordings = mDataManager.getRecordingsThatOverlapWith( in updatePendingRecordings() local
103 for (ScheduledRecording r : scheduledRecordings) { in updatePendingRecordings()