/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingScheduler.java | 104 for (SeriesRecording seriesRecording : seriesRecordings) { 105 executeFetchSeriesInfoTask(seriesRecording); 124 for (SeriesRecording seriesRecording : seriesRecordings) { 126 mFetchSeriesInfoTasks.get(seriesRecording.getId()); 129 mFetchSeriesInfoTasks.remove(seriesRecording.getId()); 197 SeriesRecording seriesRecording = mDataManager.getSeriesRecording(id); 198 if (seriesRecording != null) { 199 seriesRecordings.add(seriesRecording); 257 for (SeriesRecording seriesRecording : mDataManager.getSeriesRecordings()) { in startFetchingSeriesInfo() 258 if (!mFetchedSeriesIds.contains(seriesRecording.getSeriesId())) { in startFetchingSeriesInfo() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 478 SeriesRecording seriesRecording = null; in handleRecordedProgramAdded() local 480 seriesRecording = mDvrDataManager.getSeriesRecording(seriesId); in handleRecordedProgramAdded() 487 if (updateSeriesRecording && seriesRecording != null) { in handleRecordedProgramAdded() 488 onSeriesRecordingChanged(seriesRecording); in handleRecordedProgramAdded() 492 if (seriesRecording == null) { in handleRecordedProgramAdded() 504 SeriesRecording seriesRecording = mDvrDataManager.getSeriesRecording(seriesId); in handleRecordedProgramRemoved() local 508 if (seriesRecording != null) { in handleRecordedProgramRemoved() 509 updateLatestRecordedProgram(seriesRecording); in handleRecordedProgramRemoved() 510 onSeriesRecordingChanged(seriesRecording); in handleRecordedProgramRemoved() 523 SeriesRecording seriesRecording = null; in handleRecordedProgramChanged() local [all …]
|
D | DetailsContent.java | 83 Context context, SeriesRecording seriesRecording) { in createFromSeriesRecording() argument 85 .setChannelId(seriesRecording.getChannelId()) in createFromSeriesRecording() 86 .setTitle(seriesRecording.getTitle()) in createFromSeriesRecording() 88 TextUtils.isEmpty(seriesRecording.getLongDescription()) in createFromSeriesRecording() 89 ? seriesRecording.getDescription() in createFromSeriesRecording() 90 : seriesRecording.getLongDescription()) in createFromSeriesRecording() 91 .setPosterArtUri(seriesRecording.getPosterUri()) in createFromSeriesRecording() 92 .setThumbnailUri(seriesRecording.getPhotoUri()) in createFromSeriesRecording()
|
D | SeriesRecordingPresenter.java | 136 protected void onBound(SeriesRecording seriesRecording) { in onBound() argument 137 mSeriesRecording = seriesRecording; in onBound()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrScheduleFragment.java | 79 SeriesRecording seriesRecording = dvrManager.getSeriesRecording(mProgram); in onCreate() local 81 seriesRecording == null || seriesRecording.isStopped(), in onCreate() 84 seriesRecording); in onCreate() 163 SeriesRecording seriesRecording = in onTrackedGuidedActionClicked() local 167 if (seriesRecording == null) { in onTrackedGuidedActionClicked() 168 seriesRecording = in onTrackedGuidedActionClicked() 176 seriesRecording = in onTrackedGuidedActionClicked() 177 SeriesRecording.buildFrom(seriesRecording) in onTrackedGuidedActionClicked() 183 getDvrManager().updateSeriesRecording(seriesRecording); in onTrackedGuidedActionClicked() 188 seriesRecording.getId(), in onTrackedGuidedActionClicked()
|
D | DvrSeriesSettingsFragment.java | 282 for (SeriesRecording seriesRecording : mDvrDataManager.getSeriesRecordings()) { in updatePriorityGuidedAction() 283 if (seriesRecording.getState() == SeriesRecording.STATE_SERIES_NORMAL in updatePriorityGuidedAction() 284 || seriesRecording.getId() == mSeriesRecording.getId()) { in updatePriorityGuidedAction() 287 if (seriesRecording.getState() == SeriesRecording.STATE_SERIES_NORMAL in updatePriorityGuidedAction() 288 && seriesRecording.getId() != mSeriesRecording.getId() in updatePriorityGuidedAction() 289 && seriesRecording.getPriority() > mSeriesRecording.getPriority()) { in updatePriorityGuidedAction() 383 for (SeriesRecording seriesRecording : seriesRecordings) { in onSeriesRecordingChanged() 384 if (seriesRecording.getId() == mSeriesRecordingId) { in onSeriesRecordingChanged() 385 mSeriesRecording = seriesRecording; in onSeriesRecordingChanged()
|
D | DvrUiHelper.java | 333 SeriesRecording seriesRecording = dvrManager.getSeriesRecording(program); in handleCreateSchedule() local 334 if (seriesRecording == null || seriesRecording.isStopped()) { in handleCreateSchedule() 447 Context context, SeriesRecording seriesRecording) { in startSchedulesActivityForSeries() argument 452 DvrSeriesSchedulesFragment.SERIES_SCHEDULES_KEY_SERIES_RECORDING, seriesRecording); in startSchedulesActivityForSeries() 573 SeriesRecording seriesRecording, in startSeriesScheduledDialogActivity() argument 576 if (seriesRecording == null) { in startSeriesScheduledDialogActivity() 581 DvrSeriesScheduledDialogActivity.SERIES_RECORDING_ID, seriesRecording.getId()); in startSeriesScheduledDialogActivity() 647 DvrSchedulesActivity activity, SeriesRecording seriesRecording) { in showCancelAllSeriesRecordingDialog() argument 652 DvrStopSeriesRecordingFragment.KEY_SERIES_RECORDING, seriesRecording); in showCancelAllSeriesRecordingDialog()
|
D | DvrPrioritySettingsFragment.java | 108 for (SeriesRecording seriesRecording : mSeriesRecordings) { in onCreateActions() 112 .title(seriesRecording.getTitle()) in onCreateActions() 138 SeriesRecording seriesRecording = mSeriesRecordings.get(i); in onTrackedGuidedActionClicked() local 139 if (seriesRecording.getPriority() != priority) { in onTrackedGuidedActionClicked() 141 SeriesRecording.buildFrom(seriesRecording) in onTrackedGuidedActionClicked()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrManager.java | 156 SeriesRecording seriesRecording = in createSeriesRecordingForRecordedProgramIfNeeded() local 158 if (seriesRecording == null) { in createSeriesRecordingForRecordedProgramIfNeeded() 181 SeriesRecording seriesRecording = getSeriesRecording(program); in addSchedule() local 184 seriesRecording == null in addSchedule() 186 : seriesRecording.getPriority(), in addSchedule() 199 SeriesRecording seriesRecording = getSeriesRecording(program); in addScheduleWithHighestPriority() local 202 seriesRecording == null in addScheduleWithHighestPriority() 205 seriesRecording.getInputId(), in addScheduleWithHighestPriority() 209 seriesRecording.getPriority()), in addScheduleWithHighestPriority() 222 SeriesRecording seriesRecording = getSeriesRecording(program); in addSchedule() local [all …]
|
D | BaseDvrDataManager.java | 296 SeriesRecording seriesRecording = getSeriesRecording(seriesRecordingId); in getRecordedPrograms() local 297 if (seriesRecording == null) { in getRecordedPrograms() 302 if (seriesRecording.getSeriesId().equals(r.getSeriesId())) { in getRecordedPrograms() 313 SeriesRecording seriesRecording = getSeriesRecording(rId); in checkAndRemoveEmptySeriesRecording() local 314 if (seriesRecording != null && isEmptySeriesRecording(seriesRecording)) { in checkAndRemoveEmptySeriesRecording() 315 toRemove.add(seriesRecording); in checkAndRemoveEmptySeriesRecording() 326 protected final boolean isEmptySeriesRecording(@NonNull SeriesRecording seriesRecording) { in isEmptySeriesRecording() argument 327 if (!seriesRecording.isStopped()) { in isEmptySeriesRecording() 330 long seriesRecordingId = seriesRecording.getId(); in isEmptySeriesRecording() 336 String seriesId = seriesRecording.getSeriesId(); in isEmptySeriesRecording()
|
D | DvrDataManagerImpl.java | 526 SeriesRecording seriesRecording = getSeriesRecording(seriesRecordingId); in getRecordedPrograms() local 527 if (!mRecordedProgramLoadFinished || seriesRecording == null) { in getRecordedPrograms() 974 for (SeriesRecording seriesRecording : movedSeriesRecordings) { in unhideInput() 975 mSeriesId2SeriesRecordings.put(seriesRecording.getSeriesId(), seriesRecording); in unhideInput() local 1022 for (SeriesRecording seriesRecording : movedSeriesRecordings) { in hideInput() 1023 mSeriesId2SeriesRecordings.remove(seriesRecording.getSeriesId()); in hideInput()
|
D | DvrScheduleManager.java | 542 public List<ScheduledRecording> getConflictingSchedules(SeriesRecording seriesRecording) { in getConflictingSchedules() argument 544 SoftPreconditions.checkState(seriesRecording != null, TAG, "series recording is null"); in getConflictingSchedules() 545 if (!mInitialized || seriesRecording == null) { in getConflictingSchedules() 548 TvInputInfo input = Utils.getTvInputInfoForInputId(mContext, seriesRecording.getInputId()); in getConflictingSchedules() 553 mDataManager.getScheduledRecordings(seriesRecording.getId()); in getConflictingSchedules()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingSchedulerTest.java | 88 SeriesRecording seriesRecording = in testPickOneProgramPerEpisode_onePerEpisode() local 90 mDataManager.addSeriesRecording(seriesRecording); in testPickOneProgramPerEpisode_onePerEpisode() 106 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_onePerEpisode() 112 SeriesRecording seriesRecording = in testPickOneProgramPerEpisode_manyPerEpisode() local 114 mDataManager.addSeriesRecording(seriesRecording); in testPickOneProgramPerEpisode_manyPerEpisode() 135 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_manyPerEpisode() 141 SeriesRecording seriesRecording = in testPickOneProgramPerEpisode_nullEpisode() local 143 mDataManager.addSeriesRecording(seriesRecording); in testPickOneProgramPerEpisode_nullEpisode() 151 mDataManager, Collections.singletonList(seriesRecording), programs); in testPickOneProgramPerEpisode_nullEpisode()
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDbSync.java | 302 SeriesRecording seriesRecording = in handleUpdateProgram() local 304 if (seriesRecording != null) { in handleUpdateProgram() 305 seriesRecordingsToUpdate.add(seriesRecording); in handleUpdateProgram() 324 SeriesRecording seriesRecording = in handleUpdateProgram() local 326 if (seriesRecording == null) { in handleUpdateProgram() 335 } else if (seriesRecording.getId() != schedule.getSeriesRecordingId()) { in handleUpdateProgram() 337 builder.setSeriesRecordingId(seriesRecording.getId()); in handleUpdateProgram() 339 seriesRecordingsToUpdate.add(seriesRecording); in handleUpdateProgram()
|
D | EpisodicProgramLoadTask.java | 87 public EpisodicProgramLoadTask(Context context, SeriesRecording seriesRecording) { in EpisodicProgramLoadTask() argument 88 this(context, Collections.singletonList(seriesRecording)); in EpisodicProgramLoadTask() 296 for (SeriesRecording seriesRecording : mSeriesRecordings) { 300 seriesRecording.matchProgram( 303 programMatches = seriesRecording.matchProgram(program); 309 seriesRecording.getId(),
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SeriesScheduleRowAdapter.java | 61 SeriesRecording seriesRecording) { in SeriesScheduleRowAdapter() argument 63 mSeriesRecording = seriesRecording; in SeriesScheduleRowAdapter() 216 public void onSeriesRecordingUpdated(SeriesRecording seriesRecording) { in onSeriesRecordingUpdated() argument 217 if (seriesRecording.getId() == mSeriesRecording.getId()) { in onSeriesRecordingUpdated() 218 mHeaderRow.setSeriesRecording(seriesRecording); in onSeriesRecordingUpdated()
|
D | SchedulesHeaderRow.java | 108 public void setSeriesRecording(SeriesRecording seriesRecording) { in setSeriesRecording() argument 109 mSeriesRecording = seriesRecording; in setSeriesRecording()
|
D | DvrSchedulesActivity.java | 83 SeriesRecording seriesRecording = in onCreate() local 91 new EpisodicProgramLoadTask(this, Collections.singletonList(seriesRecording)) { in onCreate() argument
|
D | SchedulesHeaderRowPresenter.java | 158 SeriesRecording seriesRecording = in onBindRowViewHolder() 167 .updateSeriesRecording(seriesRecording); in onBindRowViewHolder()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/data/ |
D | SeriesRecordingTest.java | 142 Program p, SeriesRecording seriesRecording, boolean expected) { in assertDoesProgramMatch() argument 143 assertWithMessage(seriesRecording + " doesProgramMatch " + p) in assertDoesProgramMatch() 144 .that(seriesRecording.matchProgram(p)) in assertDoesProgramMatch()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackOverlayFragment.java | 457 SeriesRecording seriesRecording = mDvrDataManager.getSeriesRecording(seriesId); in updateRelatedRecordingsRow() local 458 if (seriesRecording != null) { in updateRelatedRecordingsRow() 461 mDvrDataManager.getRecordedPrograms(seriesRecording.getId()); in updateRelatedRecordingsRow()
|