Home
last modified time | relevance | path

Searched refs:recordedProgram (Results 1 – 12 of 12) sorted by relevance

/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrBrowseFragment.java210 for (RecordedProgram recordedProgram : mDvrDataManager.getRecordedPrograms()) { in onRecordedProgramLoadFinished()
211 handleRecordedProgramAdded(recordedProgram, true); in onRecordedProgramLoadFinished()
222 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsAdded()
223 handleRecordedProgramAdded(recordedProgram, true); in onRecordedProgramsAdded()
230 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsChanged()
231 handleRecordedProgramChanged(recordedProgram); in onRecordedProgramsChanged()
238 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsRemoved()
239 handleRecordedProgramRemoved(recordedProgram); in onRecordedProgramsRemoved()
317 for (RecordedProgram recordedProgram : mDvrDataManager.getRecordedPrograms()) { in setupAdapters()
318 handleRecordedProgramAdded(recordedProgram, false); in setupAdapters()
[all …]
DSeriesRecordingPresenter.java100 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsAdded()
101 if (TextUtils.equals(recordedProgram.getSeriesId(), in onRecordedProgramsAdded()
104 mWatchedPositionManager.addListener(this, recordedProgram.getId()); in onRecordedProgramsAdded()
116 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsRemoved()
117 if (TextUtils.equals(recordedProgram.getSeriesId(), in onRecordedProgramsRemoved()
119 if (mWatchedPositionManager.getWatchedPosition(recordedProgram.getId()) in onRecordedProgramsRemoved()
121 mWatchedPositionManager.removeListener(this, recordedProgram.getId()); in onRecordedProgramsRemoved()
145 for (RecordedProgram recordedProgram : in onBound()
147 if (mWatchedPositionManager.getWatchedPosition(recordedProgram.getId()) in onBound()
149 mWatchedPositionManager.addListener(this, recordedProgram.getId()); in onBound()
[all …]
DDvrDetailsFragment.java226 protected void startPlayback(RecordedProgram recordedProgram, long seekTimeMs) { in startPlayback() argument
227 if (Utils.isInBundledPackageSet(recordedProgram.getPackageName()) && in startPlayback()
228 !isDataUriAccessible(recordedProgram.getDataUri())) { in startPlayback()
239 launchPlaybackActivity(recordedProgram, seekTimeMs, false); in startPlayback()
244 Channel channel = channelDataManager.getChannel(recordedProgram.getChannelId()); in startPlayback()
246 checkPinToPlay(recordedProgram, seekTimeMs); in startPlayback()
249 String ratingString = recordedProgram.getContentRating(); in startPlayback()
251 launchPlaybackActivity(recordedProgram, seekTimeMs, false); in startPlayback()
261 checkPinToPlay(recordedProgram, seekTimeMs); in startPlayback()
263 launchPlaybackActivity(recordedProgram, seekTimeMs, false); in startPlayback()
[all …]
DSeriesRecordingDetailsFragment.java277 for (RecordedProgram recordedProgram : recordedPrograms) {
278 if (TextUtils.equals(recordedProgram.getSeriesId(), mSeries.getSeriesId())) {
279 addProgram(recordedProgram);
294 for (RecordedProgram recordedProgram : recordedPrograms) {
295 if (TextUtils.equals(recordedProgram.getSeriesId(), mSeries.getSeriesId())) {
296 ListRow row = getSeasonRow(recordedProgram.getSeasonNumber(), false);
299 adapter.remove(recordedProgram);
308 if (recordedProgram.getId() == mRecommendRecordedProgram.getId()) {
DRecordedProgramDetailsFragment.java164 for (RecordedProgram recordedProgram : recordedPrograms) {
165 if (recordedProgram.getId() == mRecordedProgram.getId()) {
/packages/apps/TV/src/com/android/tv/dvr/
DRecordedProgram.java127 public static ContentValues toValues(RecordedProgram recordedProgram) { in toValues() argument
129 if (recordedProgram.mId != ID_NOT_SET) { in toValues()
130 values.put(RecordedPrograms._ID, recordedProgram.mId); in toValues()
132 values.put(RecordedPrograms.COLUMN_INPUT_ID, recordedProgram.mInputId); in toValues()
133 values.put(RecordedPrograms.COLUMN_CHANNEL_ID, recordedProgram.mChannelId); in toValues()
134 values.put(RecordedPrograms.COLUMN_TITLE, recordedProgram.mTitle); in toValues()
135 values.put(RecordedPrograms.COLUMN_SEASON_DISPLAY_NUMBER, recordedProgram.mSeasonNumber); in toValues()
136 values.put(RecordedPrograms.COLUMN_SEASON_TITLE, recordedProgram.mSeasonTitle); in toValues()
137 values.put(RecordedPrograms.COLUMN_EPISODE_DISPLAY_NUMBER, recordedProgram.mEpisodeNumber); in toValues()
138 values.put(RecordedPrograms.COLUMN_EPISODE_TITLE, recordedProgram.mTitle); in toValues()
[all …]
DDvrManager.java122 for (RecordedProgram recordedProgram : recordedPrograms) { in DvrManager()
123 createSeriesRecordingForRecordedProgramIfNeeded(recordedProgram); in DvrManager()
139 for (RecordedProgram recordedProgram : recordedPrograms) { in createSeriesRecordingsForRecordedProgramsIfNeeded()
140 createSeriesRecordingForRecordedProgramIfNeeded(recordedProgram); in createSeriesRecordingsForRecordedProgramsIfNeeded()
144 private void createSeriesRecordingForRecordedProgramIfNeeded(RecordedProgram recordedProgram) { in createSeriesRecordingForRecordedProgramIfNeeded() argument
145 if (recordedProgram.getSeriesId() != null) { in createSeriesRecordingForRecordedProgramIfNeeded()
147 mDataManager.getSeriesRecording(recordedProgram.getSeriesId()); in createSeriesRecordingForRecordedProgramIfNeeded()
149 addSeriesRecording(recordedProgram); in createSeriesRecordingForRecordedProgramIfNeeded()
260 private void addSeriesRecording(RecordedProgram recordedProgram) { in addSeriesRecording() argument
262 SeriesRecording.builder(recordedProgram.getInputId(), recordedProgram) in addSeriesRecording()
[all …]
DDvrWatchedPositionManager.java88 @DvrWatchedStatus public int getWatchedStatus(RecordedProgram recordedProgram) { in getWatchedStatus() argument
89 long watchedPosition = getWatchedPosition(recordedProgram.getId()); in getWatchedStatus()
92 } else if (watchedPosition > recordedProgram in getWatchedStatus()
DDvrDataManagerImpl.java373 RecordedProgram recordedProgram = recordedPrograms.get(0); in onRecordedProgramsLoadedFinished() local
374 if (isInputAvailable(recordedProgram.getInputId())) { in onRecordedProgramsLoadedFinished()
375 RecordedProgram old = mRecordedPrograms.put(id, recordedProgram); in onRecordedProgramsLoadedFinished()
377 notifyRecordedProgramsAdded(recordedProgram); in onRecordedProgramsLoadedFinished()
379 notifyRecordedProgramsChanged(recordedProgram); in onRecordedProgramsLoadedFinished()
382 mRecordedProgramsForRemovedInput.put(id, recordedProgram); in onRecordedProgramsLoadedFinished()
DDvrUiHelper.java95 RecordedProgram recordedProgram = dvrManager.getRecordedProgram(program.getTitle(), in handleCreateSchedule() local
97 if (recordedProgram != null) { in handleCreateSchedule()
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
DDvrDataManagerInMemoryImpl.java154 public void addRecordedProgram(RecordedProgram recordedProgram) { in addRecordedProgram() argument
155 addRecordedProgramInternal(recordedProgram); in addRecordedProgram()
187 public RecordedProgram addRecordedProgramInternal(RecordedProgram recordedProgram) { in addRecordedProgramInternal() argument
188 SoftPreconditions.checkState(recordedProgram.getId() == RecordedProgram.ID_NOT_SET, TAG, in addRecordedProgramInternal()
189 "expected id of " + RecordedProgram.ID_NOT_SET + " but was " + recordedProgram); in addRecordedProgramInternal() local
190 recordedProgram = RecordedProgram.buildFrom(recordedProgram) in addRecordedProgramInternal()
193 mRecordedPrograms.put(recordedProgram.getId(), recordedProgram); in addRecordedProgramInternal() local
194 notifyRecordedProgramsAdded(recordedProgram); in addRecordedProgramInternal()
195 return recordedProgram; in addRecordedProgramInternal()
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerRecordingSessionWorker.java533 RecordedProgram recordedProgram = RecordedProgram.builder() in insertRecordedProgram() local
543 ContentValues values = RecordedProgram.toValues(recordedProgram); in insertRecordedProgram()