/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ChannelDataManagerTest.java | 80 private ChannelDataManager mChannelDataManager; field in ChannelDataManagerTest 112 mChannelDataManager = in setUp() 115 mChannelDataManager.addListener(mListener); in setUp() 127 mChannelDataManager.stop(); in tearDown() 138 mChannelDataManager.start(); in startAndWaitForComplete() 151 mChannelDataManager.stop(); in restart() 161 assertThat(mChannelDataManager.isDbLoadFinished()).isTrue(); in testIsDbLoadFinished() 173 assertThat(mChannelDataManager.getChannelCount()) in testGetChannels() 181 List<Channel> channelList = mChannelDataManager.getChannelList(); in testGetChannels() 196 assertThat(mChannelDataManager.getChannel(channel.getId())).isEqualTo(channel); in testGetChannels() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/ |
D | ScanFragment.java | 89 private ChannelDataManager mChannelDataManager; field in ScanFragment 151 mChannelDataManager = new ChannelDataManager(getContext().getApplicationContext(), inputId); in onStart() 152 mChannelDataManager.checkDataVersion(getActivity()); in onStart() 157 if (mChannelDataManager != null) { in onStop() 158 mChannelDataManager.release(); in onStop() 312 mChannelDataManager.setChannelScanListener(this, new Handler()); in ChannelScanTask() 353 mChannelDataManager.notifyScanStarted(); in doInBackground() 358 mChannelDataManager.notifyScanCompleted(); in doInBackground() 401 mChannelDataManager.notifyScanStarted(); in scanChannels() 439 mChannelDataManager.notifyScanCompleted(); in scanChannels() [all …]
|
/packages/apps/TV/src/com/android/tv/ |
D | SetupPassthroughActivity.java | 70 @Inject ChannelDataManager mChannelDataManager; field in SetupPassthroughActivity 139 sScanTimeoutMonitor = new ScanTimeoutMonitor(mEpgFetcher, mChannelDataManager); in onCreate() 213 private final ChannelDataManager mChannelDataManager; field in SetupPassthroughActivity.ScanTimeoutMonitor 240 private ScanTimeoutMonitor(EpgFetcher epgFetcher, ChannelDataManager mChannelDataManager) { in ScanTimeoutMonitor() argument 242 this.mChannelDataManager = mChannelDataManager; in ScanTimeoutMonitor() 248 mChannelDataManager.addListener(mChannelDataManagerListener); in startMonitoring() 250 if (mChannelDataManager.isDbLoadFinished()) { in startMonitoring() 259 mChannelDataManager.removeListener(mChannelDataManagerListener); in stopMonitoring()
|
D | ChannelTuner.java | 56 private final ChannelDataManager mChannelDataManager; field in ChannelTuner 67 updateChannelData(mChannelDataManager.getChannelList()); 75 updateChannelData(mChannelDataManager.getChannelList()); 88 mChannelDataManager = channelDataManager; in ChannelTuner() 98 mChannelDataManager.addListener(mChannelDataManagerListener); in start() 99 if (mChannelDataManager.isDbLoadFinished()) { in start() 111 mChannelDataManager.removeListener(mChannelDataManagerListener); in stop()
|
/packages/apps/TV/src/com/android/tv/onboarding/ |
D | OnboardingActivity.java | 60 @Inject ChannelDataManager mChannelDataManager; field in OnboardingActivity 68 mChannelDataManager.removeListener(this); 101 if (mChannelDataManager.isDbLoadFinished()) { in onCreate() 104 mChannelDataManager.addListener(mChannelListener); in onCreate() 115 if (mChannelDataManager != null) { in onDestroy() 116 mChannelDataManager.removeListener(mChannelListener); in onDestroy()
|
D | SetupSourcesFragment.java | 124 @Inject ChannelDataManager mChannelDataManager; field in SetupSourcesFragment.ContentFragment 216 mChannelDataManager.addListener(mChannelDataManagerListener); in onAttach() 228 mChannelDataManager.removeListener(mChannelDataManagerListener); in onDetach() 316 int channelCount = mChannelDataManager.getChannelCountForInput(inputId); in createActionsInternal()
|
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/tvinput/datamanager/ |
D | ChannelDataManagerTest.java | 47 private ChannelDataManager mChannelDataManager; field in ChannelDataManagerTest 71 mChannelDataManager = new ChannelDataManager(RuntimeEnvironment.application, "testInput"); in setup() 76 mChannelDataManager.releaseSafely(); in tearDown() 81 TunerChannel tunerChannel = mChannelDataManager.getChannel(2L); in getChannel_locked() 87 TunerChannel tunerChannel = mChannelDataManager.getChannel(1L); in getChannel_unlocked()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | RecordingScheduler.java | 79 private final ChannelDataManager mChannelDataManager; field in RecordingScheduler 103 mChannelDataManager.removeListener(this); 153 mChannelDataManager = channelDataManager; in RecordingScheduler() 166 if (!mChannelDataManager.isDbLoadFinished()) { in RecordingScheduler() 167 mChannelDataManager.addListener(mChannelDataLoadListener); in RecordingScheduler() 216 return mDataManager.isDvrScheduleLoadFinished() && mChannelDataManager.isDbLoadFinished(); in isDbLoaded() 304 mChannelDataManager, in scheduleRecordingSoon()
|
D | ConflictChecker.java | 77 private final ChannelDataManager mChannelDataManager; field in ConflictChecker 137 mChannelDataManager = tvSingletons.getChannelDataManager(); in ConflictChecker() 196 if (!mScheduleManager.isInitialized() || !mChannelDataManager.isDbLoadFinished()) { in onCheckConflict() 212 Channel channel = mChannelDataManager.getChannel(channelId); in onCheckConflict()
|
/packages/apps/TV/src/com/android/tv/data/epg/ |
D | EpgFetchService.java | 32 @Inject ChannelDataManager mChannelDataManager; field in EpgFetchService 43 if (!mChannelDataManager.isDbLoadFinished()) { in onStartJob() 44 mChannelDataManager.addListener( in onStartJob() 48 mChannelDataManager.removeListener(this); in onStartJob()
|
D | EpgFetcherImpl.java | 124 private final ChannelDataManager mChannelDataManager; field in EpgFetcherImpl 152 mChannelDataManager = channelDataManager; in EpgFetcherImpl() 258 if (!mChannelDataManager.isDbLoadFinished()) { in fetchImmediately() 259 mChannelDataManager.addListener( in fetchImmediately() 263 mChannelDataManager.removeListener(this); in fetchImmediately() 322 SoftPreconditions.checkState(mChannelDataManager.isDbLoadFinished()); in executeFetchTaskIfPossible() 378 return mChannelDataManager.getChannelCountForInput(inputId); in getTunerChannelCount() 545 mCurrentChannels = new HashSet<>(mChannelDataManager.getChannelList()); in onPreExecute() 820 mChannelDataManager.addListener(mDuringScanChannelListener); in onPrepareFetchDuringScan() 854 mChannelDataManager.removeListener(mDuringScanChannelListener); in onFinishFetchDuringScan()
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDbSync.java | 79 private final ChannelDataManager mChannelDataManager; field in DvrDbSync 191 mChannelDataManager = channelDataManager; in DvrDbSync() 198 if (!mChannelDataManager.isDbLoadFinished()) { in start() 199 mChannelDataManager.addListener(mChannelDataManagerListener); in start() 215 mChannelDataManager.removeListener(mChannelDataManagerListener); in stop() 224 && !mChannelDataManager.doesChannelExistInDb(r.getChannelId())) { in onChannelsUpdated() 237 if (!mChannelDataManager.doesChannelExistInDb(r.getChannelId())) { in onChannelsUpdated()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | ChannelCheckItem.java | 32 private final ChannelDataManager mChannelDataManager; field in ChannelCheckItem 62 mChannelDataManager = channelDataManager; in ChannelCheckItem() 95 mChannelDataManager.addChannelListener(mChannel.getId(), mChannelListener); in onBind() 109 mChannelDataManager.removeChannelListener(mChannel.getId(), mChannelListener); in onUnbind()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | TestSingletonApp.java | 80 private ChannelDataManager mChannelDataManager; field in TestSingletonApp 88 mChannelDataManager = in onCreate() 91 mChannelDataManager.start(); in onCreate() 114 return mChannelDataManager; in getChannelDataManager()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | DvrSeriesSchedulesFragment.java | 65 private ChannelDataManager mChannelDataManager; field in DvrSeriesSchedulesFragment 148 mChannelDataManager = singletons.getChannelDataManager(); in onCreate() 149 mChannelDataManager.addListener(mChannelListener); in onCreate() 189 mChannelDataManager.removeListener(mChannelListener); in onDestroy()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 61 private final ChannelDataManager mChannelDataManager; field in ProgramManager 213 mChannelDataManager = channelDataManager; in ProgramManager() 222 mChannelDataManager.addListener(mChannelDataManagerListener); in programGuideVisibilityChanged() 235 mChannelDataManager.removeListener(mChannelDataManagerListener); in programGuideVisibilityChanged() 407 return getChannelIndex(mChannelDataManager.getChannel(channelId)); in getChannelIndex() 442 mChannels = mChannelDataManager.getBrowsableChannelList(); in updateChannels() 609 parentalControlsEnabled && mChannelDataManager.getChannel(channelId).isLocked(); in createProgramEntries()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecommendationDataManager.java | 92 private final ChannelDataManager mChannelDataManager; field in RecommendationDataManager 194 mChannelDataManager = TvSingletons.getSingletons(mContext).getChannelDataManager(); in RecommendationDataManager() 230 mChannelDataManager.addListener(mChannelDataListener); in start() 231 if (mChannelDataManager.isDbLoadFinished()) { in start() 244 mChannelDataManager.removeListener(mChannelDataListener); in stop() 254 mHandler.obtainMessage(MSG_UPDATE_CHANNELS, mChannelDataManager.getBrowsableChannelList()) in updateChannelData()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/data/epg/ |
D | EpgFetcherImplTest.java | 128 private ChannelDataManager mChannelDataManager; field in EpgFetcherImplTest 155 mChannelDataManager = in setup() 162 mChannelDataManager.start(); in setup() 170 mChannelDataManager, in setup() 184 mChannelDataManager.stop(); in after()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerSessionWorkerExoV2.java | 190 private final ChannelDataManager mChannelDataManager; field in TunerSessionWorkerExoV2 306 mChannelDataManager = channelDataManager; in TunerSessionWorkerExoV2() 309 mChannelDataManager.setListener(this); in TunerSessionWorkerExoV2() 310 mChannelDataManager.checkDataVersion(mContext); in TunerSessionWorkerExoV2() 491 mChannelDataManager.setListener(null); in release() 657 mChannelDataManager.notifyChannelDetected(channel, channelArrivedAtFirstTime); in onChannelDetected() 662 mChannelDataManager.notifyEventDetected(channel, items); in onEventDetected() 859 TunerChannel channel = (channelId == -1) ? null : mChannelDataManager.getChannel(channelId); in handleMessageTune() 878 mChannelDataManager.removeAllCallbacksAndMessages(); in handleMessageTune() 880 mChannelDataManager.requestProgramsData(channel); in handleMessageTune() [all …]
|
D | TunerSessionWorker.java | 190 private final ChannelDataManager mChannelDataManager; field in TunerSessionWorker 304 mChannelDataManager = channelDataManager; in TunerSessionWorker() 307 mChannelDataManager.setListener(this); in TunerSessionWorker() 308 mChannelDataManager.checkDataVersion(mContext); in TunerSessionWorker() 486 mChannelDataManager.setListener(null); in release() 662 mChannelDataManager.notifyChannelDetected(channel, channelArrivedAtFirstTime); in onChannelDetected() 667 mChannelDataManager.notifyEventDetected(channel, items); in onEventDetected() 872 TunerChannel channel = (channelId == -1) ? null : mChannelDataManager.getChannel(channelId); in handleMessageTune() 892 mChannelDataManager.removeAllCallbacksAndMessages(); in handleMessageTune() 894 mChannelDataManager.requestProgramsData(channel); in handleMessageTune() [all …]
|
D | TunerRecordingSessionWorker.java | 152 private final ChannelDataManager mChannelDataManager; field in TunerRecordingSessionWorker 207 mChannelDataManager = dataManager; in TunerRecordingSessionWorker() 208 mChannelDataManager.checkDataVersion(context); in TunerRecordingSessionWorker() 232 mChannelDataManager.notifyChannelDetected(channel, channelArrivedAtFirstTime); in onChannelDetected() 241 mChannelDataManager.notifyEventDetected(channel, items); in onEventDetected() 403 return (channelId == CHANNEL_ID_NONE) ? null : mChannelDataManager.getChannel(channelId); in getChannel()
|
D | TunerRecordingSessionWorkerExoV2.java | 153 private final ChannelDataManager mChannelDataManager; field in TunerRecordingSessionWorkerExoV2 208 mChannelDataManager = dataManager; in TunerRecordingSessionWorkerExoV2() 209 mChannelDataManager.checkDataVersion(context); in TunerRecordingSessionWorkerExoV2() 233 mChannelDataManager.notifyChannelDetected(channel, channelArrivedAtFirstTime); in onChannelDetected() 242 mChannelDataManager.notifyEventDetected(channel, items); in onEventDetected() 406 return (channelId == CHANNEL_ID_NONE) ? null : mChannelDataManager.getChannel(channelId); in getChannel()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | SchedulerTest.java | 66 @Mock ChannelDataManager mChannelDataManager; field in SchedulerTest 76 Mockito.when(mChannelDataManager.isDbLoadFinished()).thenReturn(true); in setUp() 83 mChannelDataManager, in setUp()
|
/packages/apps/TV/src/com/android/tv/search/ |
D | DataManagerSearch.java | 59 private final ChannelDataManager mChannelDataManager; field in DataManagerSearch 66 mChannelDataManager = tvSingletons.getChannelDataManager(); in DataManagerSearch() 91 if (!mChannelDataManager.isDbLoadFinished()) { in searchFromDataManagers() 101 List<Channel> channelList = mChannelDataManager.getBrowsableChannelList(); in searchFromDataManagers()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrScheduleManager.java | 82 private final ChannelDataManager mChannelDataManager; field in DvrScheduleManager 101 mChannelDataManager = tvSingletons.getChannelDataManager(); in DvrScheduleManager() 102 if (mDataManager.isDvrScheduleLoadFinished() && mChannelDataManager.isDbLoadFinished()) { in DvrScheduleManager() 110 if (mChannelDataManager.isDbLoadFinished() && !mInitialized) { in DvrScheduleManager() 257 mChannelDataManager.addListener(channelDataManagerListener); in DvrScheduleManager() 283 Channel channel = mChannelDataManager.getChannel(schedule.getChannelId()); in buildData()
|