/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | ScheduledProgramReaperTest.java | 57 private DvrDataManagerInMemoryImpl mDvrDataManager; field in ScheduledProgramReaperTest 66 mDvrDataManager = in setUp() 68 mReaper = new ScheduledProgramReaper(mDvrDataManager, mFakeClock); in setUp() 78 assertTrue(mDvrDataManager.getAllScheduledRecordings().isEmpty()); in testRun_noRecordings() 80 assertTrue(mDvrDataManager.getAllScheduledRecordings().isEmpty()); in testRun_noRecordings() 86 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsTomorrow() 88 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsTomorrow() 94 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsStarted() 97 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsStarted() 103 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsFinished() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 84 private DvrDataManager mDvrDataManager; field in DvrBrowseFragment 208 mDvrDataManager = singletons.getDvrDataManager(); in onCreate() 228 if (!mDvrDataManager.isDvrScheduleLoadFinished()) { in onCreate() 229 mDvrDataManager.addDvrScheduleLoadFinishedListener(this); in onCreate() 231 if (!mDvrDataManager.isRecordedProgramLoadFinished()) { in onCreate() 232 mDvrDataManager.addRecordedProgramLoadFinishedListener(this); in onCreate() 256 mDvrDataManager.removeRecordedProgramListener(this); in onDestroy() 257 mDvrDataManager.removeScheduledRecordingListener(this); in onDestroy() 258 mDvrDataManager.removeSeriesRecordingListener(this); in onDestroy() 259 mDvrDataManager.removeDvrScheduleLoadFinishedListener(this); in onDestroy() [all …]
|
D | SeriesRecordingPresenter.java | 37 private final DvrDataManager mDvrDataManager; field in SeriesRecordingPresenter 47 private DvrDataManager mDvrDataManager; field in SeriesRecordingPresenter.SeriesRecordingViewHolder 58 mDvrDataManager = dvrDataManager; in SeriesRecordingViewHolder() 97 mDvrDataManager.removeScheduledRecordingListener(this); in onRecordedProgramsAdded() 138 mDvrDataManager.addScheduledRecordingListener(this); in onBound() 139 mDvrDataManager.addRecordedProgramListener(this); in onBound() 141 mDvrDataManager.getRecordedPrograms(mSeriesRecording.getId())) { in onBound() 152 mDvrDataManager.removeScheduledRecordingListener(this); in onUnbound() 153 mDvrDataManager.removeRecordedProgramListener(this); in onUnbound() 162 mDvrDataManager.getRecordedPrograms(mSeriesRecording.getId()); in updateCardViewContent() [all …]
|
D | SeriesRecordingDetailsFragment.java | 58 private DvrDataManager mDvrDataManager; field in SeriesRecordingDetailsFragment 78 mDvrDataManager = TvSingletons.getSingletons(getActivity()).getDvrDataManager(); in onCreate() 92 mDvrDataManager.addSeriesRecordingListener(this); in onCreateInternal() 93 mDvrDataManager.addRecordedProgramListener(this); in onCreateInternal() 113 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in updateWatchAction() 148 mRecordedPrograms = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in onLoadRecordingDetails() 195 mDvrDataManager.removeSeriesRecordingListener(this); in onDestroy() 196 mDvrDataManager.removeRecordedProgramListener(this); in onDestroy() 198 mDvrDataManager.checkAndRemoveEmptySeriesRecording(mSeries.getId()); in onDestroy()
|
D | RecordedProgramDetailsFragment.java | 46 private DvrDataManager mDvrDataManager; field in RecordedProgramDetailsFragment 50 mDvrDataManager = TvSingletons.getSingletons(getContext()).getDvrDataManager(); in onCreate() 51 mDvrDataManager.addRecordedProgramListener(this); in onCreate() 80 mDvrDataManager.removeRecordedProgramListener(this); in onDestroy() 87 mRecordedProgram = mDvrDataManager.getRecordedProgram(recordedProgramId); in onLoadRecordingDetails()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecordedProgramPreviewUpdater.java | 56 private final DvrDataManager mDvrDataManager; field in RecordedProgramPreviewUpdater 62 mDvrDataManager = tvSingletons.getDvrDataManager(); in RecordedProgramPreviewUpdater() 63 mDvrDataManager.addRecordedProgramListener( in RecordedProgramPreviewUpdater() 101 if (!mDvrDataManager.isRecordedProgramLoadFinished()) { in updatePreviewDataForRecordedPrograms() 102 mDvrDataManager.addRecordedProgramLoadFinishedListener( in updatePreviewDataForRecordedPrograms() 106 mDvrDataManager.removeRecordedProgramLoadFinishedListener(this); in updatePreviewDataForRecordedPrograms() 149 new ArrayList<>(mDvrDataManager.getRecordedPrograms()); in generateRecommendationRecordedPrograms()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | DvrHistoryFragment.java | 41 private DvrDataManager mDvrDataManager; field in DvrHistoryFragment 53 mDvrDataManager = singletons.getDvrDataManager(); in onCreate() 59 mDvrDataManager, in onCreate() 63 mDvrDataManager.addScheduledRecordingListener(this); in onCreate() 64 mDvrDataManager.addRecordedProgramListener(this); in onCreate() 70 mDvrDataManager.removeScheduledRecordingListener(this); in onDestroy() 71 mDvrDataManager.removeRecordedProgramListener(this); in onDestroy()
|
D | DvrSeriesSchedulesFragment.java | 66 private DvrDataManager mDvrDataManager; field in DvrSeriesSchedulesFragment 150 mDvrDataManager = singletons.getDvrDataManager(); in onCreate() 151 mDvrDataManager.addSeriesRecordingListener(mSeriesRecordingListener); in onCreate() 190 mDvrDataManager.removeSeriesRecordingListener(mSeriesRecordingListener); in onDestroy()
|
D | DvrHistoryRowAdapter.java | 54 private final DvrDataManager mDvrDataManager; field in DvrHistoryRowAdapter 67 mDvrDataManager = dvrDataManager; in DvrHistoryRowAdapter() 81 List<ScheduledRecording> recordingList = mDvrDataManager.getFailedScheduledRecordings(); in start() 82 List<RecordedProgram> recordedProgramList = mDvrDataManager.getRecordedPrograms(); in start()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ |
D | BaseDvrDataManagerTest.java | 51 private DvrDataManagerInMemoryImpl mDvrDataManager; field in BaseDvrDataManagerTest 58 mDvrDataManager = in setUp() 70 mDvrDataManager.addScheduledRecordingInternal( in testGetNonStartedScheduledRecordings() 72 List<ScheduledRecording> result = mDvrDataManager.getNonStartedScheduledRecordings(); in testGetNonStartedScheduledRecordings() 78 mDvrDataManager.addScheduledRecordingInternal(createNewScheduledRecordingStartingNow()); in testGetNonStartedScheduledRecordings_past() 80 List<ScheduledRecording> result = mDvrDataManager.getNonStartedScheduledRecordings(); in testGetNonStartedScheduledRecordings_past()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 63 private final DvrDataManager mDvrDataManager; // Only set if DVR is enabled field in ProgramManager 93 for (ScheduledRecording r : mDvrDataManager.getAllScheduledRecordings()) { 97 mDvrDataManager.removeDvrScheduleLoadFinishedListener(this); 215 mDvrDataManager = dvrDataManager; in ProgramManager() 224 if (mDvrDataManager != null) { in programGuideVisibilityChanged() 225 if (!mDvrDataManager.isDvrScheduleLoadFinished()) { in programGuideVisibilityChanged() 226 mDvrDataManager.addDvrScheduleLoadFinishedListener(mDvrLoadedListener); in programGuideVisibilityChanged() 228 mDvrDataManager.addScheduledRecordingListener(mScheduledRecordingListener); in programGuideVisibilityChanged() 237 if (mDvrDataManager != null) { in programGuideVisibilityChanged() 238 mDvrDataManager.removeDvrScheduleLoadFinishedListener(mDvrLoadedListener); in programGuideVisibilityChanged() [all …]
|
D | ProgramTableAdapter.java | 85 private final DvrDataManager mDvrDataManager; field in ProgramTableAdapter 126 mDvrDataManager = TvSingletons.getSingletons(context).getDvrDataManager(); in ProgramTableAdapter() 129 mDvrDataManager = null; in ProgramTableAdapter() 619 mDvrDataManager.getScheduledRecordingForProgramId(program.getId());
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | ScheduledProgramReaper.java | 32 private final WritableDvrDataManager mDvrDataManager; field in ScheduledProgramReaper 36 mDvrDataManager = dvrDataManager; in ScheduledProgramReaper() 45 for (ScheduledRecording r : mDvrDataManager.getAllScheduledRecordings()) { in run() 55 for (ScheduledRecording r : mDvrDataManager.getDeletedSchedules()) { in run() 61 mDvrDataManager.removeScheduledRecording(ScheduledRecording.toArray(toRemove)); in run()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrSeriesSettingsFragment.java | 65 private DvrDataManager mDvrDataManager; field in DvrSeriesSettingsFragment 92 mDvrDataManager = TvSingletons.getSingletons(context).getDvrDataManager(); in onAttach() 94 mSeriesRecording = mDvrDataManager.getSeriesRecording(mSeriesRecordingId); in onAttach() 104 mDvrDataManager.addSeriesRecordingListener(this); in onAttach() 154 mDvrDataManager.removeSeriesRecordingListener(this); in onDetach() 162 mDvrDataManager.checkAndRemoveEmptySeriesRecording(mSeriesRecordingId); in onDestroy() 282 for (SeriesRecording seriesRecording : mDvrDataManager.getSeriesRecordings()) { in updatePriorityGuidedAction() 307 for (ScheduledRecording r : mDvrDataManager.getScheduledRecordings(mSeriesRecordingId)) { in updateSchedulesToSeries() 334 mDvrDataManager, in updateSchedulesToSeries()
|
D | DvrStopRecordingFragment.java | 66 private DvrDataManager mDvrDataManager; field in DvrStopRecordingFragment 107 mDvrDataManager = TvSingletons.getSingletons(context).getDvrDataManager(); in onAttach() 108 mDvrDataManager.addScheduledRecordingListener(mScheduledRecordingListener); in onAttach() 114 if (mDvrDataManager != null) { in onDetach() 115 mDvrDataManager.removeScheduledRecordingListener(mScheduledRecordingListener); in onDetach()
|
D | DvrSeriesDeletionFragment.java | 58 private DvrDataManager mDvrDataManager; field in DvrSeriesDeletionFragment 75 mDvrDataManager = singletons.getDvrDataManager(); in onAttach() 77 mRecordings = mDvrDataManager.getRecordedPrograms(mSeriesRecordingId); in onAttach() 97 SeriesRecording series = mDvrDataManager.getSeriesRecording(mSeriesRecordingId); in onCreateGuidance()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/list/ |
D | DvrHistoryRowAdapterTest.java | 76 private DvrDataManagerInMemoryImpl mDvrDataManager; field in DvrHistoryRowAdapterTest 89 mDvrDataManager = new DvrDataManagerInMemoryImpl(app, clock); in setUp() 90 app.mDvrDataManager = mDvrDataManager; in setUp() 92 mDvrDataManager.addScheduledRecording( in setUp() 101 mDvrDataManager, in setUp() 215 mDvrDataManager.addRecordedProgramInternal(sRecordedProgram, true); in testOnScheduledRecordingRemoved_removeRecordedProgram()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | PlayControlsRowView.java | 69 private final DvrDataManager mDvrDataManager; field in PlayControlsRowView 131 mDvrDataManager = TvSingletons.getSingletons(context).getDvrDataManager(); in PlayControlsRowView() 134 mDvrDataManager = null; in PlayControlsRowView() 144 if (mDvrDataManager != null) { in onAttachedToWindow() 145 mDvrDataManager.addScheduledRecordingListener(mScheduledRecordingListener); in onAttachedToWindow() 146 if (!mDvrDataManager.isDvrScheduleLoadFinished()) { in onAttachedToWindow() 147 mDvrDataManager.addDvrScheduleLoadFinishedListener( in onAttachedToWindow() 151 mDvrDataManager.removeDvrScheduleLoadFinishedListener(this); in onAttachedToWindow() 703 if (mDvrDataManager != null) { in onDetachedFromWindow() 704 mDvrDataManager.removeScheduledRecordingListener(mScheduledRecordingListener); in onDetachedFromWindow()
|
D | ChannelsRowAdapter.java | 46 private final DvrDataManager mDvrDataManager; field in ChannelsRowAdapter 61 mDvrDataManager = tvSingletons.getDvrDataManager(); in ChannelsRowAdapter() 63 mDvrDataManager = null; in ChannelsRowAdapter() 253 if (mDvrDataManager != null) {
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackOverlayFragment.java | 104 @Inject DvrDataManager mDvrDataManager; field in DvrPlaybackOverlayFragment 137 if (!mDvrDataManager.isRecordedProgramLoadFinished()) { in onCreate() 138 mDvrDataManager.addRecordedProgramLoadFinishedListener( in onCreate() 142 mDvrDataManager.removeRecordedProgramLoadFinishedListener(this); in onCreate() 311 if (mDvrDataManager.isRecordedProgramLoadFinished() && handleIntent(intent, false)) { in onNewIntent() 457 SeriesRecording seriesRecording = mDvrDataManager.getSeriesRecording(seriesId); in updateRelatedRecordingsRow() 461 mDvrDataManager.getRecordedPrograms(seriesRecording.getId()); in updateRelatedRecordingsRow() 503 return mDvrDataManager.getRecordedProgram(programId); in getProgramFromIntent()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | ProgramDetailsFragment.java | 77 private DvrDataManager mDvrDataManager; field in ProgramDetailsFragment 97 mDvrDataManager.removeScheduledRecordingListener(this); in onDestroy() 160 mDvrDataManager = singletons.getDvrDataManager(); in onLoadDetails() 164 mDvrDataManager.getScheduledRecordingForProgramId(program.getId()); in onLoadDetails() 168 mDvrDataManager.addScheduledRecordingListener(this); in onLoadDetails()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | TestSingletonApp.java | 73 public DvrDataManager mDvrDataManager; field in TestSingletonApp 92 mDvrDataManager = new DvrDataManagerInMemoryImpl(this, fakeClock); in onCreate() 129 return mDvrDataManager; in getDvrDataManager()
|
/packages/apps/TV/src/com/android/tv/ |
D | TvApplication.java | 113 @Inject Lazy<DvrDataManager> mDvrDataManager; field in TvApplication 329 return mDvrDataManager.get(); in getDvrDataManager()
|