Home
last modified time | relevance | path

Searched refs:mDataManager (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/TV/src/com/android/tv/dvr/
DDvrManager.java76 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 …]
DDvrScheduleManager.java81 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/Settings/tests/robotests/src/com/android/settings/localepicker/
DLocaleNotificationDataManagerTest.java39 private LocaleNotificationDataManager mDataManager; field in LocaleNotificationDataManagerTest
45 mDataManager = new LocaleNotificationDataManager(mContext); in setUp()
50 mDataManager.clearLocaleNotificationMap(); in tearDown()
59 mDataManager.putNotificationInfo(locale, info); in testPutGetNotificationInfo()
60 NotificationInfo expected = mDataManager.getNotificationInfo(locale); in testPutGetNotificationInfo()
77 mDataManager.putNotificationInfo(locale, info); in testRemoveNotificationInfo()
78 assertThat(mDataManager.getNotificationInfo(locale)).isEqualTo(info); in testRemoveNotificationInfo()
79 mDataManager.removeNotificationInfo(locale); in testRemoveNotificationInfo()
80 assertThat(mDataManager.getNotificationInfo(locale)).isNull(); in testRemoveNotificationInfo()
91 mDataManager.putNotificationInfo(enUS, info1); in testGetNotificationMap()
[all …]
DAppLocalePickerActivityTest.java99 private LocaleNotificationDataManager mDataManager; field in AppLocalePickerActivityTest
294 mDataManager.clearLocaleNotificationMap(); in onLocaleSelected_evaluateNotification_simpleLocaleUpdate_localeCreatedWithUid()
313 NotificationInfo info = mDataManager.getNotificationInfo(EN_US); in onLocaleSelected_evaluateNotification_twoLocaleUpdate_triggerNotification()
321 mDataManager.clearLocaleNotificationMap(); in onLocaleSelected_evaluateNotification_twoLocaleUpdate_triggerNotification()
343 NotificationInfo info = mDataManager.getNotificationInfo(EN_US); in onLocaleSelected_evaluateNotification_oddLocaleUpdate_uidAddedWithoutNotification()
350 mDataManager.clearLocaleNotificationMap(); in onLocaleSelected_evaluateNotification_oddLocaleUpdate_uidAddedWithoutNotification()
372 NotificationInfo info = mDataManager.getNotificationInfo(EN_US); in onLocaleSelected_evaluateNotification_frequentLocaleUpdate_uidAddedNoNotification()
379 mDataManager.clearLocaleNotificationMap(); in onLocaleSelected_evaluateNotification_frequentLocaleUpdate_uidAddedNoNotification()
402 NotificationInfo info = mDataManager.getNotificationInfo(EN_US); in onLocaleSelected_evaluateNotification_2ndOddLocaleUpdate_uidAddedNoNotification()
408 mDataManager.clearLocaleNotificationMap(); in onLocaleSelected_evaluateNotification_2ndOddLocaleUpdate_uidAddedNoNotification()
[all …]
DNotificationControllerTest.java39 private LocaleNotificationDataManager mDataManager; field in NotificationControllerTest
47 mDataManager = mNotificationController.getDataManager(); in setUp()
53 mDataManager.clearLocaleNotificationMap(); in tearDown()
65 NotificationInfo result = mDataManager.getNotificationInfo(enUS); in incrementDismissCount_addOne()
84 assertThat(mDataManager.getNotificationInfo(enUS)).isNull(); in testRemoveNotificationInfo_removed()
189 mDataManager.putNotificationInfo(locale, info); in initSharedPreference()
/packages/apps/Settings/src/com/android/settings/localepicker/
DNotificationController.java46 private final LocaleNotificationDataManager mDataManager; field in NotificationController
62 mDataManager = new LocaleNotificationDataManager(context); in NotificationController()
67 return mDataManager; in getDataManager()
76 NotificationInfo currentInfo = mDataManager.getNotificationInfo(locale); in incrementDismissCount()
82 mDataManager.putNotificationInfo(locale, newInfo); in incrementDismissCount()
109 NotificationInfo info = mDataManager.getNotificationInfo(locale); in getNotificationId()
119 mDataManager.removeNotificationInfo(locale); in removeNotificationInfo()
123 NotificationInfo info = mDataManager.getNotificationInfo(locale); in updateLocaleNotificationInfo()
127 mDataManager.putNotificationInfo(locale, emptyInfo); in updateLocaleNotificationInfo()
137 mDataManager.putNotificationInfo(locale, newInfo); in updateLocaleNotificationInfo()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDbSync.java78 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 …]
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java54 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/src/com/android/tv/dvr/recorder/
DRecordingScheduler.java77 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 …]
DSeriesRecordingScheduler.java90 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 …]
DInputTaskScheduler.java105 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()
DRecordingTask.java123 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()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DSeriesRecordingSchedulerTest.java72 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()
DSchedulerTest.java61 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()
DInputTaskSchedulerTest.java73 @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()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DMediaSetSource.java37 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()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryAppImpl.java42 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/photos/shims/
DMediaSetLoader.java51 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()
DMediaItemsLoader.java54 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/TV/tests/robotests/src/com/android/tv/dvr/provider/
DDvrDbSyncTest.java80 @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/data/
DFilterTypeSet.java26 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()
DClusterAlbum.java26 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/modules/Permission/service/java/com/android/safetycenter/logging/
DSafetyCenterPullAtomCallback.java70 private final SafetyCenterDataManager mDataManager; field in SafetyCenterPullAtomCallback
82 mDataManager = dataManager; in SafetyCenterPullAtomCallback()
137 return mDataManager.countLoggableIssuesFor(userProfileGroup) - openIssuesCount; in getDismissedIssuesCountLocked()
175 mDataManager.logSafetySourceStateCollectedAutomatic(sourceKey, profileType); in writeSafetySourceStateCollectedAtomLocked()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java66 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/
DEvaluatorTestCase.java38 private RecommendationDataManager mDataManager; field in EvaluatorTestCase
45 mDataManager = in setUp()
130 mDataManager); in FakeRecommender()

12