Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/dvr/data/
DRecordedProgram.java135 public static ContentValues toValues(Context context, RecordedProgram recordedProgram) { in toValues() argument
137 if (recordedProgram.getId() != ID_NOT_SET) { in toValues()
138 values.put(RecordedPrograms._ID, recordedProgram.getId()); in toValues()
140 values.put(RecordedPrograms.COLUMN_INPUT_ID, recordedProgram.getInputId()); in toValues()
141 values.put(RecordedPrograms.COLUMN_CHANNEL_ID, recordedProgram.getChannelId()); in toValues()
142 values.put(RecordedPrograms.COLUMN_TITLE, recordedProgram.getTitle()); in toValues()
144 RecordedPrograms.COLUMN_SEASON_DISPLAY_NUMBER, recordedProgram.getSeasonNumber()); in toValues()
145 values.put(RecordedPrograms.COLUMN_SEASON_TITLE, recordedProgram.getSeasonTitle()); in toValues()
147 RecordedPrograms.COLUMN_EPISODE_DISPLAY_NUMBER, recordedProgram.getEpisodeNumber()); in toValues()
148 values.put(RecordedPrograms.COLUMN_EPISODE_TITLE, recordedProgram.getEpisodeTitle()); in toValues()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java285 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsAdded()
286 handleRecordedProgramAdded(recordedProgram, true); in onRecordedProgramsAdded()
293 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsChanged()
294 if (recordedProgram.isVisible()) { in onRecordedProgramsChanged()
295 handleRecordedProgramChanged(recordedProgram); in onRecordedProgramsChanged()
303 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsRemoved()
304 handleRecordedProgramRemoved(recordedProgram); in onRecordedProgramsRemoved()
434 for (RecordedProgram recordedProgram : mDvrDataManager.getRecordedPrograms()) { in startBrowseIfDvrInitialized()
435 if (recordedProgram.isVisible()) { in startBrowseIfDvrInitialized()
436 handleRecordedProgramAdded(recordedProgram, false); in startBrowseIfDvrInitialized()
[all …]
DSeriesRecordingPresenter.java94 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsAdded()
96 recordedProgram.getSeriesId(), mSeriesRecording.getSeriesId())) { in onRecordedProgramsAdded()
98 mWatchedPositionManager.addListener(this, recordedProgram.getId()); in onRecordedProgramsAdded()
110 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsRemoved()
112 recordedProgram.getSeriesId(), mSeriesRecording.getSeriesId())) { in onRecordedProgramsRemoved()
113 if (mWatchedPositionManager.getWatchedPosition(recordedProgram.getId()) in onRecordedProgramsRemoved()
115 mWatchedPositionManager.removeListener(this, recordedProgram.getId()); in onRecordedProgramsRemoved()
140 for (RecordedProgram recordedProgram : in onBound()
142 if (mWatchedPositionManager.getWatchedPosition(recordedProgram.getId()) in onBound()
144 mWatchedPositionManager.addListener(this, recordedProgram.getId()); in onBound()
[all …]
DDetailsContent.java48 Context context, RecordedProgram recordedProgram) { in createFromRecordedProgram() argument
50 .setChannelId(recordedProgram.getChannelId()) in createFromRecordedProgram()
51 .setProgramTitle(recordedProgram.getTitle()) in createFromRecordedProgram()
52 .setSeasonNumber(recordedProgram.getSeasonNumber()) in createFromRecordedProgram()
53 .setEpisodeNumber(recordedProgram.getEpisodeNumber()) in createFromRecordedProgram()
54 .setStartTimeUtcMillis(recordedProgram.getStartTimeUtcMillis()) in createFromRecordedProgram()
55 .setEndTimeUtcMillis(recordedProgram.getEndTimeUtcMillis()) in createFromRecordedProgram()
57 TextUtils.isEmpty(recordedProgram.getLongDescription()) in createFromRecordedProgram()
58 ? recordedProgram.getDescription() in createFromRecordedProgram()
59 : recordedProgram.getLongDescription()) in createFromRecordedProgram()
[all …]
DDvrDetailsFragment.java199 protected void startPlayback(RecordedProgram recordedProgram, long seekTimeMs) { in startPlayback() argument
200 if (CommonUtils.isInBundledPackageSet(recordedProgram.getPackageName()) in startPlayback()
201 && !isDataUriAccessible(recordedProgram.getDataUri())) { in startPlayback()
210 long programId = recordedProgram.getId(); in startPlayback()
221 Channel channel = channelDataManager.getChannel(recordedProgram.getChannelId()); in startPlayback()
223 checkPinToPlay(recordedProgram, seekTimeMs); in startPlayback()
226 ImmutableList<TvContentRating> ratings = recordedProgram.getContentRatings(); in startPlayback()
229 checkPinToPlay(recordedProgram, seekTimeMs); in startPlayback()
249 private void checkPinToPlay(RecordedProgram recordedProgram, long seekTimeMs) { in checkPinToPlay() argument
264 recordedProgram.getId(), in checkPinToPlay()
DSeriesRecordingDetailsFragment.java264 for (RecordedProgram recordedProgram : recordedPrograms) {
265 if (TextUtils.equals(recordedProgram.getSeriesId(), mSeries.getSeriesId())) {
266 addProgram(recordedProgram);
281 for (RecordedProgram recordedProgram : recordedPrograms) {
282 if (TextUtils.equals(recordedProgram.getSeriesId(), mSeries.getSeriesId())) {
283 ListRow row = getSeasonRow(recordedProgram.getSeasonNumber(), false);
286 adapter.remove(recordedProgram);
296 && recordedProgram.getId() == mRecommendRecordedProgram.getId()) {
DRecordedProgramDetailsFragment.java170 for (RecordedProgram recordedProgram : recordedPrograms) {
171 if (recordedProgram.getId() == mRecordedProgram.getId()) {
/packages/apps/TV/src/com/android/tv/dvr/
DDvrManager.java131 for (RecordedProgram recordedProgram : recordedPrograms) { in DvrManager()
132 createSeriesRecordingForRecordedProgramIfNeeded(recordedProgram); in DvrManager()
149 for (RecordedProgram recordedProgram : recordedPrograms) { in createSeriesRecordingsForRecordedProgramsIfNeeded()
150 createSeriesRecordingForRecordedProgramIfNeeded(recordedProgram); in createSeriesRecordingsForRecordedProgramsIfNeeded()
154 private void createSeriesRecordingForRecordedProgramIfNeeded(RecordedProgram recordedProgram) { in createSeriesRecordingForRecordedProgramIfNeeded() argument
155 if (recordedProgram.isEpisodic()) { in createSeriesRecordingForRecordedProgramIfNeeded()
157 mDataManager.getSeriesRecording(recordedProgram.getSeriesId()); in createSeriesRecordingForRecordedProgramIfNeeded()
159 addSeriesRecording(recordedProgram); in createSeriesRecordingForRecordedProgramIfNeeded()
304 private void addSeriesRecording(RecordedProgram recordedProgram) { in addSeriesRecording() argument
306 SeriesRecording.builder(recordedProgram.getInputId(), recordedProgram) in addSeriesRecording()
[all …]
DDvrWatchedPositionManager.java79 public int getWatchedStatus(RecordedProgram recordedProgram) { in getWatchedStatus() argument
80 long watchedPosition = getWatchedPosition(recordedProgram.getId()); in getWatchedStatus()
84 > recordedProgram.getDurationMillis() * DVR_WATCHED_THRESHOLD_RATE) { in getWatchedStatus()
DDvrDataManagerImpl.java476 RecordedProgram recordedProgram = recordedPrograms.get(0); in onRecordedProgramsLoadedFinished() local
477 if (isInputAvailable(recordedProgram.getInputId())) { in onRecordedProgramsLoadedFinished()
478 RecordedProgram old = mRecordedPrograms.put(id, recordedProgram); in onRecordedProgramsLoadedFinished()
480 notifyRecordedProgramsAdded(recordedProgram); in onRecordedProgramsLoadedFinished()
482 notifyRecordedProgramsChanged(recordedProgram); in onRecordedProgramsLoadedFinished()
485 mRecordedProgramsForRemovedInput.put(id, recordedProgram); in onRecordedProgramsLoadedFinished()
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
DDvrDataManagerInMemoryImpl.java157 public void addRecordedProgram(RecordedProgram recordedProgram) { in addRecordedProgram() argument
158 addRecordedProgramInternal(recordedProgram, false); in addRecordedProgram()
201 RecordedProgram recordedProgram, boolean keepId) { in addRecordedProgramInternal() argument
204 recordedProgram.getId() == RecordedProgram.ID_NOT_SET, in addRecordedProgramInternal()
206 "expected id of " + RecordedProgram.ID_NOT_SET + " but was " + recordedProgram); in addRecordedProgramInternal() local
207 recordedProgram = recordedProgram.withId(mNextId.incrementAndGet()); in addRecordedProgramInternal()
209 mRecordedPrograms.put(recordedProgram.getId(), recordedProgram); in addRecordedProgramInternal() local
210 notifyRecordedProgramsAdded(recordedProgram); in addRecordedProgramInternal()
211 return recordedProgram; in addRecordedProgramInternal()
/packages/apps/TV/src/com/android/tv/data/
DPreviewProgramContent.java60 Context context, long previewChannelId, RecordedProgram recordedProgram) { in createFromRecordedProgram() argument
64 .getChannel(recordedProgram.getChannelId()); in createFromRecordedProgram()
65 return createFromRecordedProgram(previewChannelId, recordedProgram, channel); in createFromRecordedProgram()
92 long previewChannelId, RecordedProgram recordedProgram, Channel channel) { in createFromRecordedProgram() argument
94 Uri recordedProgramUri = TvContractCompat.buildRecordedProgramUri(recordedProgram.getId()); in createFromRecordedProgram()
96 .setId(recordedProgram.getId()) in createFromRecordedProgram()
99 .setTitle(recordedProgram.getTitle()) in createFromRecordedProgram()
101 .setPosterArtUri(Uri.parse(recordedProgram.getPosterArtUri())) in createFromRecordedProgram()
106 Pair.create(PARAM_INPUT, recordedProgram.getInputId()))) in createFromRecordedProgram()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecordedProgramPreviewUpdater.java152 for (RecordedProgram recordedProgram : sortedRecordedPrograms) { in generateRecommendationRecordedPrograms()
153 if (!TextUtils.isEmpty(recordedProgram.getPosterArtUri())) { in generateRecommendationRecordedPrograms()
154 programs.add(recordedProgram); in generateRecommendationRecordedPrograms()
166 for (RecordedProgram recordedProgram : recordedPrograms) { in generatePreviewProgramContentsFromRecordedPrograms()
169 mContext, previewChannelId, recordedProgram)); in generatePreviewProgramContentsFromRecordedPrograms()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DDvrHistoryRowAdapter.java137 for (RecordedProgram recordedProgram : programs) { in recordedProgramsToScheduledRecordings()
139 recordedProgramsToScheduledRecordings(recordedProgram, maxDays); in recordedProgramsToScheduledRecordings()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrUiHelper.java312 RecordedProgram recordedProgram = in handleCreateSchedule() local
317 if (recordedProgram != null) { in handleCreateSchedule()