Home
last modified time | relevance | path

Searched refs:scheduledRecording (Results 1 – 14 of 14) sorted by relevance

/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDetailsContent.java76 ScheduledRecording scheduledRecording) { in createFromScheduledRecording() argument
78 .getChannel(scheduledRecording.getChannelId()); in createFromScheduledRecording()
79 String description = !TextUtils.isEmpty(scheduledRecording.getProgramDescription()) ? in createFromScheduledRecording()
80 scheduledRecording.getProgramDescription() in createFromScheduledRecording()
81 : scheduledRecording.getProgramLongDescription(); in createFromScheduledRecording()
86 .setChannelId(scheduledRecording.getChannelId()) in createFromScheduledRecording()
87 .setProgramTitle(scheduledRecording.getProgramTitle()) in createFromScheduledRecording()
88 .setSeasonNumber(scheduledRecording.getSeasonNumber()) in createFromScheduledRecording()
89 .setEpisodeNumber(scheduledRecording.getEpisodeNumber()) in createFromScheduledRecording()
90 .setStartTimeUtcMillis(scheduledRecording.getStartTimeMs()) in createFromScheduledRecording()
[all …]
DSeriesRecordingPresenter.java73 for (ScheduledRecording scheduledRecording : scheduledRecordings) { in onScheduledRecordingAdded()
74 if (scheduledRecording.getSeriesRecordingId() == mSeriesRecording.getId()) { in onScheduledRecordingAdded()
83 for (ScheduledRecording scheduledRecording : scheduledRecordings) { in onScheduledRecordingRemoved()
84 if (scheduledRecording.getSeriesRecordingId() == mSeriesRecording.getId()) { in onScheduledRecordingRemoved()
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
DDvrDataManagerInMemoryImpl.java172 public void removeRecordedProgram(RecordedProgram scheduledRecording) { in removeRecordedProgram() argument
173 mRecordedPrograms.remove(scheduledRecording.getId()); in removeRecordedProgram()
174 notifyRecordedProgramsRemoved(scheduledRecording); in removeRecordedProgram()
178 public ScheduledRecording addScheduledRecordingInternal(ScheduledRecording scheduledRecording) { in addScheduledRecordingInternal() argument
180 .checkState(scheduledRecording.getId() == ScheduledRecording.ID_NOT_SET, TAG, in addScheduledRecordingInternal()
182 + scheduledRecording); in addScheduledRecordingInternal() local
183 scheduledRecording = ScheduledRecording.buildFrom(scheduledRecording) in addScheduledRecordingInternal()
186 mScheduledRecordings.put(scheduledRecording.getId(), scheduledRecording); in addScheduledRecordingInternal() local
187 notifyScheduledRecordingAdded(scheduledRecording); in addScheduledRecordingInternal()
188 return scheduledRecording; in addScheduledRecordingInternal()
/packages/apps/TV/src/com/android/tv/dvr/
DBaseDvrDataManager.java213 protected final void notifyScheduledRecordingAdded(ScheduledRecording... scheduledRecording) { in notifyScheduledRecordingAdded() argument
215 if (DEBUG) Log.d(TAG, "notify " + l + " added " + Arrays.asList(scheduledRecording)); in notifyScheduledRecordingAdded()
216 l.onScheduledRecordingAdded(scheduledRecording); in notifyScheduledRecordingAdded()
224 protected final void notifyScheduledRecordingRemoved(ScheduledRecording... scheduledRecording) { in notifyScheduledRecordingRemoved() argument
226 if (DEBUG) Log.d(TAG, "notify " + l + " removed " + Arrays.asList(scheduledRecording)); in notifyScheduledRecordingRemoved()
227 l.onScheduledRecordingRemoved(scheduledRecording); in notifyScheduledRecordingRemoved()
237 ScheduledRecording... scheduledRecording) { in notifyScheduledRecordingStatusChanged() argument
239 if (DEBUG) Log.d(TAG, "notify " + l + " changed " + Arrays.asList(scheduledRecording)); in notifyScheduledRecordingStatusChanged()
240 l.onScheduledRecordingStatusChanged(scheduledRecording); in notifyScheduledRecordingStatusChanged()
278 public void changeState(ScheduledRecording scheduledRecording, @RecordingState int newState) { in changeState() argument
[all …]
DDvrScheduleManager.java577 for (ScheduledRecording scheduledRecording : scheduledRecordingForSeries) { in getConflictingSchedules()
578 if (scheduledRecording.isNotStarted() || scheduledRecording.isInProgress()) { in getConflictingSchedules()
579 availableScheduledRecordingForSeries.add(scheduledRecording); in getConflictingSchedules()
DWritableDvrDataManager.java72 void changeState(ScheduledRecording scheduledRecording, @RecordingState int newState); in changeState() argument
DDvrManager.java859 void onStopRecordingRequested(ScheduledRecording scheduledRecording); in onStopRecordingRequested() argument
/packages/apps/TV/src/com/android/tv/guide/
DProgramManager.java504 lastEntry.scheduledRecording, in updateTableEntriesWithoutNotification()
549 private TableEntry getTableEntry(ScheduledRecording scheduledRecording) { in getTableEntry() argument
550 return getTableEntry(scheduledRecording.getChannelId(), scheduledRecording.getProgramId()); in getTableEntry()
610 ScheduledRecording scheduledRecording = mDvrDataManager == null ? null in createProgramEntries() local
612 entries.add(new TableEntry(channelId, program, scheduledRecording, in createProgramEntries()
626 secondEntry.scheduledRecording, mStartUtcMillis, in createProgramEntries()
675 final ScheduledRecording scheduledRecording; field in ProgramManager.TableEntry
699 private TableEntry(long channelId, Program program, ScheduledRecording scheduledRecording, in TableEntry() argument
703 this.scheduledRecording = scheduledRecording; in TableEntry()
DProgramItemView.java114 if (entry.scheduledRecording == null) {
124 dvrManager.removeScheduledRecording(entry.scheduledRecording);
311 if (mTableEntry.scheduledRecording != null) { in setValues()
312 if (mDvrManager.isConflicting(mTableEntry.scheduledRecording)) { in setValues()
315 switch (mTableEntry.scheduledRecording.getState()) { in setValues()
DProgramTableAdapter.java573 ScheduledRecording scheduledRecording =
577 if (scheduledRecording != null) {
578 if (mDvrManager.isConflicting(scheduledRecording)) {
582 switch (scheduledRecording.getState()) {
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DRecordingTask.java145 RecordingTask(Context context, ScheduledRecording scheduledRecording, Channel channel, in RecordingTask() argument
149 mScheduledRecording = scheduledRecording; in RecordingTask()
261 ScheduledRecording scheduledRecording = mDataManager in onError()
263 if (scheduledRecording != null) { in onError()
267 scheduledRecording.getProgramDisplayTitle(mContext)), in onError()
DInputTaskScheduler.java84 HandlerWrapper(Looper looper, ScheduledRecording scheduledRecording, in HandlerWrapper() argument
87 mId = scheduledRecording.getId(); in HandlerWrapper()
399 RecordingTask createRecordingTask(ScheduledRecording scheduledRecording, Channel channel, in createRecordingTask() argument
DRecordingScheduler.java308 boolean startsWithin(ScheduledRecording scheduledRecording, long durationInMs) { in startsWithin() argument
309 return mClock.currentTimeMillis() >= scheduledRecording.getStartTimeMs() - durationInMs; in startsWithin()
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/
DInputTaskSchedulerTest.java95 public RecordingTask createRecordingTask(ScheduledRecording scheduledRecording, in setUp()
100 when(task.getPriority()).thenReturn(scheduledRecording.getPriority()); in setUp()
101 when(task.getEndTimeMs()).thenReturn(scheduledRecording.getEndTimeMs()); in setUp()