/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrManager.java | 76 private final WritableDvrDataManager mDataManager; field in DvrManager 88 mDataManager = (WritableDvrDataManager) tvSingletons.getDvrDataManager(); in DvrManager() 90 if (mDataManager.isInitialized() && mScheduleManager.isInitialized()) { in DvrManager() 91 createSeriesRecordingsForRecordedProgramsIfNeeded(mDataManager.getRecordedPrograms()); in DvrManager() 95 if (!mDataManager.isRecordedProgramLoadFinished()) { in DvrManager() 96 mDataManager.addRecordedProgramLoadFinishedListener( in DvrManager() 100 mDataManager.removeRecordedProgramLoadFinishedListener(this); in DvrManager() 101 if (mDataManager.isInitialized() in DvrManager() 104 mDataManager.getRecordedPrograms()); in DvrManager() 115 if (mDataManager.isInitialized() in DvrManager() [all …]
|
D | DvrScheduleManager.java | 81 private final DvrDataManager mDataManager; field in DvrScheduleManager 100 mDataManager = tvSingletons.getDvrDataManager(); in DvrScheduleManager() 102 if (mDataManager.isDvrScheduleLoadFinished() && mChannelDataManager.isDbLoadFinished()) { in DvrScheduleManager() 105 mDataManager.addDvrScheduleLoadFinishedListener( in DvrScheduleManager() 109 mDataManager.removeDvrScheduleLoadFinishedListener(this); in DvrScheduleManager() 237 mDataManager.addScheduledRecordingListener(scheduledRecordingListener); in DvrScheduleManager() 242 if (mDataManager.isDvrScheduleLoadFinished() && !mInitialized) { in DvrScheduleManager() 249 if (mDataManager.isDvrScheduleLoadFinished()) { in DvrScheduleManager() 279 for (ScheduledRecording schedule : mDataManager.getAllScheduledRecordings()) { in buildData() 426 for (ScheduledRecording schedule : mDataManager.getAllScheduledRecordings()) { in suggestHighestPriority() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDbSync.java | 78 private final WritableDvrDataManager mDataManager; field in DvrDbSync 190 mDataManager = dataManager; in DvrDbSync() 204 mDataManager.addScheduledRecordingListener(mScheduleListener); in start() 216 mDataManager.removeScheduledRecordingListener(mScheduleListener); in stop() 222 for (SeriesRecording r : mDataManager.getSeriesRecordings()) { in onChannelsUpdated() 233 mDataManager.updateSeriesRecording(SeriesRecording.toArray(seriesRecordingsToUpdate)); in onChannelsUpdated() 236 for (ScheduledRecording r : mDataManager.getAvailableScheduledRecordings()) { in onChannelsUpdated() 243 mDataManager.removeScheduledRecording(ScheduledRecording.toArray(schedulesToRemove)); in onChannelsUpdated() 248 for (ScheduledRecording schedule : mDataManager.getAvailableScheduledRecordings()) { in onProgramsUpdated() 255 addProgramIdToCheckIfNeeded(mDataManager.getScheduledRecordingForProgramId(programId)); in onProgramUpdated() [all …]
|
D | EpisodicProgramLoadTask.java | 76 private final DvrDataManager mDataManager; field in EpisodicProgramLoadTask 97 mDataManager = TvSingletons.getSingletons(context).getDvrDataManager(); in EpisodicProgramLoadTask() 271 mDisallowedProgramIds.addAll(mDataManager.getDisallowedProgramIds()); 278 for (ScheduledRecording r : mDataManager.getAllScheduledRecordings()) {
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | RecordingScheduler.java | 77 private final WritableDvrDataManager mDataManager; field in RecordingScheduler 92 mDataManager.removeDvrScheduleLoadFinishedListener(this); 152 mDataManager = dataManager; in RecordingScheduler() 158 mDataManager.addScheduledRecordingListener(this); in RecordingScheduler() 163 if (!mDataManager.isDvrScheduleLoadFinished()) { in RecordingScheduler() 164 mDataManager.addDvrScheduleLoadFinishedListener(mDvrScheduleLoadListener); in RecordingScheduler() 197 mDataManager.getScheduledRecordings( in updatePendingRecordings() 216 return mDataManager.isDvrScheduleLoadFinished() && mChannelDataManager.isDbLoadFinished(); in isDbLoaded() 283 mDataManager.changeState( in scheduleRecordingSoon() 291 mDataManager.changeState( in scheduleRecordingSoon() [all …]
|
D | SeriesRecordingScheduler.java | 90 private final WritableDvrDataManager mDataManager; field in SeriesRecordingScheduler 197 SeriesRecording seriesRecording = mDataManager.getSeriesRecording(id); 213 mDataManager = (WritableDvrDataManager) tvSingletons.getDvrDataManager(); in SeriesRecordingScheduler() 224 SoftPreconditions.checkState(mDataManager.isInitialized()); in start() 230 mDataManager.addSeriesRecordingListener(mSeriesRecordingListener); in start() 231 mDataManager.addScheduledRecordingListener(mScheduledRecordingListener); in start() 233 updateSchedules(mDataManager.getSeriesRecordings()); in start() 252 mDataManager.removeScheduledRecordingListener(mScheduledRecordingListener); in stop() 253 mDataManager.removeSeriesRecordingListener(mSeriesRecordingListener); in stop() 257 for (SeriesRecording seriesRecording : mDataManager.getSeriesRecordings()) { in startFetchingSeriesInfo() [all …]
|
D | RecordingTask.java | 123 private final WritableDvrDataManager mDataManager; field in RecordingTask 147 mDataManager = dataManager; in RecordingTask() 275 mDataManager.getScheduledRecording( in onError() 474 mDataManager.getScheduledRecording(mScheduledRecording.getId()); in updateRecordingState() 488 mDataManager.updateScheduledRecording(builder.build()); in updateRecordingState() 515 mDataManager.getScheduledRecording(mScheduledRecording.getId()); in addRecordedProgramId() 525 mDataManager.updateScheduledRecording(builder.build()); in addRecordedProgramId()
|
D | InputTaskScheduler.java | 105 private final WritableDvrDataManager mDataManager; field in InputTaskScheduler 155 mDataManager = (WritableDvrDataManager) dataManager; in InputTaskScheduler() 177 mDataManager, in InputTaskScheduler() 360 schedule, channel, mDvrManager, mSessionManager, mDataManager, mClock); in createRecordingTask() 400 mDataManager.getScheduledRecording(schedule.getId()); in fail() 404 mDataManager.changeState( in fail()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | Recommender.java | 54 private final RecommendationDataManager mDataManager; field in Recommender 67 mDataManager = RecommendationDataManager.acquireManager(context, this); in Recommender() 77 mDataManager = dataManager; in Recommender() 85 mDataManager.release(this); in release() 108 return recommendChannels(mDataManager.getChannelRecordCount()); in recommendChannels() 122 Collection<ChannelRecord> channelRecordList = mDataManager.getChannelRecords(); in recommendChannels() 161 ChannelRecord record = mDataManager.getChannelRecord(channelId); in getChannel() 172 return mDataManager.getChannelRecord(channelId); in getChannelRecord() 191 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordLoaded() 208 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordChanged()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingSchedulerTest.java | 72 private DvrDataManagerInMemoryImpl mDataManager; field in SeriesRecordingSchedulerTest 78 mDataManager = new DvrDataManagerInMemoryImpl(RuntimeEnvironment.application, fakeClock); in setUp() 90 mDataManager.addSeriesRecording(seriesRecording); in testPickOneProgramPerEpisode_onePerEpisode() 106 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_onePerEpisode() 114 mDataManager.addSeriesRecording(seriesRecording); in testPickOneProgramPerEpisode_manyPerEpisode() 135 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_manyPerEpisode() 143 mDataManager.addSeriesRecording(seriesRecording); in testPickOneProgramPerEpisode_nullEpisode() 151 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_nullEpisode()
|
D | InputTaskSchedulerTest.java | 73 @Mock private WritableDvrDataManager mDataManager; field in InputTaskSchedulerTest 95 mDataManager, in setUp() 122 when(mDataManager.getScheduledRecording(anyLong())).thenReturn(r); in testAddSchedule_past() 125 verify(mDataManager, timeout((int) LISTENER_TIMEOUT_MS).times(1)) in testAddSchedule_past() 173 when(mDataManager.getScheduledRecording(anyLong())) in testAddSchedule_consecutiveNoFail() 190 verify(mDataManager, never()) in testAddSchedule_consecutiveNoFail()
|
D | SchedulerTest.java | 61 private DvrDataManagerInMemoryImpl mDataManager; field in SchedulerTest 75 mDataManager = new DvrDataManagerInMemoryImpl(RuntimeEnvironment.application, mFakeClock); in setUp() 82 mDataManager, in setUp() 108 mDataManager.addScheduledRecording(r); in testUpdate_nextIn12Hours()
|
D | RecordingTaskTest.java | 68 private DvrDataManagerInMemoryImpl mDataManager; field in RecordingTaskTest 83 mDataManager = new DvrDataManagerInMemoryImpl(RuntimeEnvironment.application, mFakeClock); in setUp() 122 mDataManager.addScheduledRecording(r); in testOnConnected() 149 mDataManager, in createRecordingTask()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/provider/ |
D | DvrDbSyncTest.java | 80 @Mock private WritableDvrDataManager mDataManager; field in DvrDbSyncTest 111 mDataManager, in setUp() 123 verify(mDataManager).removeScheduledRecording(baseSchedule); in testHandleUpdateProgram_null() 151 verify(mDataManager, never()).updateScheduledRecording(any()); in testHandleUpdateProgram_changeTimeInProgressNotCalled() 183 verify(mDataManager, never()).updateScheduledRecording(any()); in testHandleUpdateProgram_finished() 297 when(mDataManager.getScheduledRecordingForProgramId(programId)).thenReturn(schedule); in addSchedule() 301 verify(mDataManager) in assertUpdateScheduleCalled() 307 verify(mDataManager).updateScheduledRecording(eq(schedule)); in assertUpdateScheduleCalled() 312 verify(mDataManager).updateScheduledRecording( in assertUpdateScheduleCalledWithinRange() 317 verify(mDataManager).updateScheduledRecording(actualArgument.capture()); in assertUpdateScheduleCalledWithinRange()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | MediaSetSource.java | 37 private DataManager mDataManager; field in MediaSetSource 53 mDataManager = Utils.checkNotNull(manager); in MediaSetSource() 99 String rootPath = mDataManager.getTopSetPath(DataManager.INCLUDE_ALL); in monitorRootPath() 100 mRootSet = (MediaSet) mDataManager.getMediaObject(rootPath); in monitorRootPath() 105 if (mDataManager == null) return; in resolveAlbumPath() 106 MediaSet mediaSet = (MediaSet) mDataManager.getMediaObject(mAlbumPath); in resolveAlbumPath() 118 mDataManager = null; in resolveAlbumPath()
|
D | LocalPhotoSource.java | 64 private DataManager mDataManager; field in LocalPhotoSource 69 mDataManager = ((GalleryApp) context.getApplicationContext()).getDataManager(); in LocalPhotoSource() 101 mDataManager.getMediaObject(LOCAL_IMAGE_ROOT.getChild(id)); in getImage()
|
/packages/apps/Gallery2/src/com/android/photos/shims/ |
D | MediaSetLoader.java | 51 private final DataManager mDataManager; field in MediaSetLoader 64 mDataManager = DataManager.from(context); in MediaSetLoader() 65 String path = mDataManager.getTopSetPath(DataManager.INCLUDE_ALL); in MediaSetLoader() 66 mMediaSet = mDataManager.getMediaSet(path); in MediaSetLoader() 71 mDataManager = DataManager.from(getContext()); in MediaSetLoader() 72 mMediaSet = mDataManager.getMediaSet(path); in MediaSetLoader() 176 MediaObject o = mDataManager.getMediaObject((Path) path); in deleteItemWithPath()
|
D | MediaItemsLoader.java | 54 private final DataManager mDataManager; field in MediaItemsLoader 66 mDataManager = DataManager.from(context); in MediaItemsLoader() 67 String path = mDataManager.getTopSetPath(DataManager.INCLUDE_ALL); in MediaItemsLoader() 68 mMediaSet = mDataManager.getMediaSet(path); in MediaItemsLoader() 73 mDataManager = DataManager.from(getContext()); in MediaItemsLoader() 74 mMediaSet = mDataManager.getMediaSet(parentPath); in MediaItemsLoader() 174 MediaObject o = mDataManager.getMediaObject((Path) path); in deleteItemWithPath()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | GalleryAppImpl.java | 42 private DataManager mDataManager; field in GalleryAppImpl 63 if (mDataManager == null) { in getDataManager() 64 mDataManager = new DataManager(this); in getDataManager() 65 mDataManager.initializeSourceMap(); in getDataManager() 67 return mDataManager; in getDataManager()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | FilterTypeSet.java | 26 private final DataManager mDataManager; field in FilterTypeSet 35 mDataManager = dataManager; in FilterTypeSet() 64 mPaths, start, count, mDataManager); in getMediaItem() 89 MediaSet filteredSet = mDataManager.getMediaSet(filteredPath); in updateData() 135 mDataManager.mapMediaItems(mPaths, consumer, 0); in delete()
|
D | ClusterAlbum.java | 26 private DataManager mDataManager; field in ClusterAlbum 33 mDataManager = dataManager; in ClusterAlbum() 71 return getMediaItemFromPath(mPaths, start, count, mDataManager); in getMediaItem() 99 mDataManager.mapMediaItems(mPaths, consumer, startIndex); in enumerateMediaItems() 136 mDataManager.mapMediaItems(mPaths, consumer, 0); in delete()
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
D | GalleryProvider.java | 66 private DataManager mDataManager; field in GalleryProvider 93 MediaItem item = (MediaItem) mDataManager.getMediaObject(path); in getType() 108 mDataManager = app.getDataManager(); in onCreate() 119 MediaObject object = mDataManager.getMediaObject(path); in query() 181 MediaObject object = mDataManager.getMediaObject(path); in openFile()
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | EvaluatorTestCase.java | 38 private RecommendationDataManager mDataManager; field in EvaluatorTestCase 45 mDataManager = in setUp() 130 mDataManager); in FakeRecommender()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SeriesScheduleRowAdapter.java | 54 private final DvrDataManager mDataManager; field in SeriesScheduleRowAdapter 72 mDataManager = singletons.getDvrDataManager(); in SeriesScheduleRowAdapter() 105 mDataManager.getScheduledRecordingForProgramId(program.getId()); in setPrograms() 124 mDataManager.getScheduledRecordingForProgramId(programId))) { in getDescription()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 40 private DataManager mDataManager; field in SelectionManager 53 mDataManager = activity.getDataManager(); in SelectionManager() 206 if (!expandMediaSet(selected, mDataManager.getMediaSet(id), in getSelected()
|