/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingScheduler.java | 45 import com.android.tv.dvr.data.SeriesRecording; 103 public void onSeriesRecordingAdded(SeriesRecording... seriesRecordings) { 104 for (SeriesRecording seriesRecording : seriesRecordings) { 110 public void onSeriesRecordingRemoved(SeriesRecording... seriesRecordings) { 118 SeriesRecording.ID_COMPARATOR) 124 for (SeriesRecording seriesRecording : seriesRecordings) { 135 public void onSeriesRecordingChanged(SeriesRecording... seriesRecordings) { 136 List<SeriesRecording> stopped = new ArrayList<>(); 137 List<SeriesRecording> normal = new ArrayList<>(); 138 for (SeriesRecording r : seriesRecordings) { [all …]
|
D | ScheduledProgramReaper.java | 23 import com.android.tv.dvr.data.SeriesRecording; 50 && (r.getSeriesRecordingId() == SeriesRecording.ID_NOT_SET in run()
|
/packages/apps/TV/src/com/android/tv/dvr/data/ |
D | SeriesRecording.java | 46 public class SeriesRecording implements Parcelable { class 76 public static final Comparator<SeriesRecording> PRIORITY_COMPARATOR = 77 (SeriesRecording lhs, SeriesRecording rhs) -> { 87 public static final Comparator<SeriesRecording> ID_COMPARATOR = 88 (SeriesRecording lhs, SeriesRecording rhs) -> Long.compare(lhs.mId, rhs.mId); 108 public static Builder buildFrom(SeriesRecording r) { in buildFrom() 150 public static SeriesRecording fromCursor(Cursor c) { in fromCursor() 175 public static ContentValues toContentValues(SeriesRecording r) { in toContentValues() 259 private int mState = SeriesRecording.STATE_SERIES_NORMAL; 358 public SeriesRecording build() { in build() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrSeriesSettingsFragment.java | 41 import com.android.tv.dvr.data.SeriesRecording; 42 import com.android.tv.dvr.data.SeriesRecording.ChannelOption; 66 private SeriesRecording mSeriesRecording; 127 if (mChannelOption == SeriesRecording.OPTION_CHANNEL_ONE) { in onAttach() 132 mChannelOption = SeriesRecording.OPTION_CHANNEL_ALL; in onAttach() 210 || (mChannelOption == SeriesRecording.OPTION_CHANNEL_ONE in onGuidedActionClicked() 212 SeriesRecording.Builder builder = in onGuidedActionClicked() 213 SeriesRecording.buildFrom(mSeriesRecording) in onGuidedActionClicked() 215 .setState(SeriesRecording.STATE_SERIES_NORMAL); in onGuidedActionClicked() 222 && (mChannelOption == SeriesRecording.OPTION_CHANNEL_ALL in onGuidedActionClicked() [all …]
|
D | DvrPrioritySettingsFragment.java | 36 import com.android.tv.dvr.data.SeriesRecording; 51 private final List<SeriesRecording> mSeriesRecordings = new ArrayList<>(); 53 private SeriesRecording mSelectedRecording; 54 private SeriesRecording mComeFromSeriesRecording; 64 new SeriesRecording.Builder() in onAttach() 71 for (SeriesRecording series : dvrDataManager.getSeriesRecordings()) { in onAttach() 72 if (series.getState() == SeriesRecording.STATE_SERIES_NORMAL in onAttach() 77 mSeriesRecordings.sort(SeriesRecording.PRIORITY_COMPARATOR); in onAttach() 108 for (SeriesRecording seriesRecording : mSeriesRecordings) { in onCreateActions() 138 SeriesRecording seriesRecording = mSeriesRecordings.get(i); in onTrackedGuidedActionClicked() [all …]
|
D | DvrStopSeriesRecordingFragment.java | 33 import com.android.tv.dvr.data.SeriesRecording; 44 private SeriesRecording mSeriesRecording; 96 SeriesRecording.buildFrom(mSeriesRecording) in onTrackedGuidedActionClicked() 97 .setState(SeriesRecording.STATE_SERIES_STOPPED) in onTrackedGuidedActionClicked()
|
D | DvrScheduleFragment.java | 38 import com.android.tv.dvr.data.SeriesRecording; 79 SeriesRecording seriesRecording = dvrManager.getSeriesRecording(mProgram); in onCreate() 163 SeriesRecording seriesRecording = in onTrackedGuidedActionClicked() 173 SeriesRecording.STATE_SERIES_STOPPED); in onTrackedGuidedActionClicked() 177 SeriesRecording.buildFrom(seriesRecording) in onTrackedGuidedActionClicked()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/data/ |
D | SeriesRecordingTest.java | 43 private final SeriesRecording mBaseSeriesRecording = 44 new SeriesRecording.Builder() 49 private final SeriesRecording mSeriesRecordingSeason2 = 50 SeriesRecording.buildFrom(mBaseSeriesRecording).setStartFromSeason(2).build(); 51 private final SeriesRecording mSeriesRecordingSeason2Episode5 = 52 SeriesRecording.buildFrom(mSeriesRecordingSeason2).setStartFromEpisode(5).build(); 62 SeriesRecording r1 = in testParcelable() 63 new SeriesRecording.Builder() in testParcelable() 73 .setChannelOption(SeriesRecording.OPTION_CHANNEL_ALL) in testParcelable() 85 SeriesRecording r2 = SeriesRecording.fromParcel(p2); in testParcelable() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrDataManagerImpl.java | 52 import com.android.tv.dvr.data.SeriesRecording; 100 private final HashMap<Long, SeriesRecording> mSeriesRecordings = new HashMap<>(); 103 private final HashMap<String, SeriesRecording> mSeriesId2SeriesRecordings = new HashMap<>(); 108 private final HashMap<Long, SeriesRecording> mSeriesRecordingsForRemovedInput = new HashMap<>(); 229 ListenableFuture<List<SeriesRecording>> dvrQuerySeriesRecordingFuture = in start() 231 new FutureCallback<List<SeriesRecording>>() { in start() 233 public void onSuccess(List<SeriesRecording> seriesRecordings) { in start() 237 for (SeriesRecording r : seriesRecordings) { in start() 470 SeriesRecording r = mSeriesId2SeriesRecordings.get(old.getSeriesId()); in onRecordedProgramsLoadedFinished() 526 SeriesRecording seriesRecording = getSeriesRecording(seriesRecordingId); in getRecordedPrograms() [all …]
|
D | DvrDataManager.java | 26 import com.android.tv.dvr.data.SeriesRecording; 72 List<SeriesRecording> getSeriesRecordings(); in getSeriesRecordings() 75 List<SeriesRecording> getSeriesRecordings(String inputId); in getSeriesRecordings() 149 SeriesRecording getSeriesRecording(long seriesRecordingId); in getSeriesRecording() 153 SeriesRecording getSeriesRecording(String seriesId); in getSeriesRecording() 195 void onSeriesRecordingAdded(SeriesRecording... seriesRecordings); in onSeriesRecordingAdded() 197 void onSeriesRecordingRemoved(SeriesRecording... seriesRecordings); in onSeriesRecordingRemoved() 199 void onSeriesRecordingChanged(SeriesRecording... seriesRecordings); in onSeriesRecordingChanged()
|
D | DvrManager.java | 52 import com.android.tv.dvr.data.SeriesRecording; 156 SeriesRecording seriesRecording = in createSeriesRecordingForRecordedProgramIfNeeded() 181 SeriesRecording seriesRecording = getSeriesRecording(program); in addSchedule() 199 SeriesRecording seriesRecording = getSeriesRecording(program); in addScheduleWithHighestPriority() 222 SeriesRecording seriesRecording = getSeriesRecording(program); in addSchedule() 228 ? SeriesRecording.ID_NOT_SET in addSchedule() 273 public SeriesRecording addSeriesRecording( in addSeriesRecording() 276 @SeriesRecording.SeriesState int initialState) { in addSeriesRecording() 291 SeriesRecording seriesRecording = in addSeriesRecording() 292 SeriesRecording.builder(input.getId(), selectedProgram) in addSeriesRecording() [all …]
|
D | BaseDvrDataManager.java | 32 import com.android.tv.dvr.data.SeriesRecording; 163 protected final void notifySeriesRecordingAdded(SeriesRecording... seriesRecordings) { in notifySeriesRecordingAdded() 171 protected final void notifySeriesRecordingRemoved(SeriesRecording... seriesRecordings) { in notifySeriesRecordingRemoved() 179 protected final void notifySeriesRecordingChanged(SeriesRecording... seriesRecordings) { in notifySeriesRecordingChanged() 296 SeriesRecording seriesRecording = getSeriesRecording(seriesRecordingId); in getRecordedPrograms() 311 List<SeriesRecording> toRemove = new ArrayList<>(); in checkAndRemoveEmptySeriesRecording() 313 SeriesRecording seriesRecording = getSeriesRecording(rId); in checkAndRemoveEmptySeriesRecording() 318 removeSeriesRecording(SeriesRecording.toArray(toRemove)); in checkAndRemoveEmptySeriesRecording() 326 protected final boolean isEmptySeriesRecording(@NonNull SeriesRecording seriesRecording) { in isEmptySeriesRecording()
|
D | WritableDvrDataManager.java | 22 import com.android.tv.dvr.data.SeriesRecording; 36 void addSeriesRecording(SeriesRecording... seriesRecordings); in addSeriesRecording() 48 void removeSeriesRecording(SeriesRecording... seasonSchedules); in removeSeriesRecording() 54 void updateSeriesRecording(SeriesRecording... seriesRecordings); in updateSeriesRecording()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
D | DvrDataManagerInMemoryImpl.java | 32 import com.android.tv.dvr.data.SeriesRecording; 46 private final Map<Long, SeriesRecording> mSeriesRecordings = new HashMap<>(); 82 public List<SeriesRecording> getSeriesRecordings() { in getSeriesRecordings() 87 public List<SeriesRecording> getSeriesRecordings(String inputId) { in getSeriesRecordings() 88 List<SeriesRecording> result = new ArrayList<>(); in getSeriesRecordings() 89 for (SeriesRecording r : mSeriesRecordings.values()) { in getSeriesRecordings() 215 public void addSeriesRecording(SeriesRecording... seriesRecordings) { in addSeriesRecording() 216 for (SeriesRecording r : seriesRecordings) { in addSeriesRecording() 236 public void removeSeriesRecording(SeriesRecording... seriesRecordings) { in removeSeriesRecording() 237 for (SeriesRecording r : seriesRecordings) { in removeSeriesRecording() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDbFuture.java | 26 import com.android.tv.dvr.data.SeriesRecording; 161 public static class AddSeriesRecordingFuture extends DvrDbFuture<SeriesRecording, Void> { 167 protected final Void dbHelperInBackground(SeriesRecording... params) { in dbHelperInBackground() 174 public static class UpdateSeriesRecordingFuture extends DvrDbFuture<SeriesRecording, Void> { 180 protected final Void dbHelperInBackground(SeriesRecording... params) { in dbHelperInBackground() 187 public static class DeleteSeriesRecordingFuture extends DvrDbFuture<SeriesRecording, Void> { 193 protected final Void dbHelperInBackground(SeriesRecording... params) { in dbHelperInBackground() 201 extends DvrDbFuture<Void, List<SeriesRecording>> { 210 protected final List<SeriesRecording> dbHelperInBackground(Void... params) { in dbHelperInBackground() 214 List<SeriesRecording> scheduledRecordings = new ArrayList<>(); in dbHelperInBackground() [all …]
|
D | DvrDbSync.java | 40 import com.android.tv.dvr.data.SeriesRecording; 221 List<SeriesRecording> seriesRecordingsToUpdate = new ArrayList<>(); in onChannelsUpdated() 222 for (SeriesRecording r : mDataManager.getSeriesRecordings()) { in onChannelsUpdated() 223 if (r.getChannelOption() == SeriesRecording.OPTION_CHANNEL_ONE in onChannelsUpdated() 226 SeriesRecording.buildFrom(r) in onChannelsUpdated() 227 .setChannelOption(SeriesRecording.OPTION_CHANNEL_ALL) in onChannelsUpdated() 228 .setState(SeriesRecording.STATE_SERIES_STOPPED) in onChannelsUpdated() 233 mDataManager.updateSeriesRecording(SeriesRecording.toArray(seriesRecordingsToUpdate)); in onChannelsUpdated() 294 Set<SeriesRecording> seriesRecordingsToUpdate = new HashSet<>(); in handleUpdateProgram() 301 if (schedule.getSeriesRecordingId() != SeriesRecording.ID_NOT_SET) { in handleUpdateProgram() [all …]
|
D | EpisodicProgramLoadTask.java | 37 import com.android.tv.dvr.data.SeriesRecording; 83 private final ArrayList<SeriesRecording> mSeriesRecordings = new ArrayList<>(); 87 public EpisodicProgramLoadTask(Context context, SeriesRecording seriesRecording) { in EpisodicProgramLoadTask() 95 public EpisodicProgramLoadTask(Context context, Collection<SeriesRecording> seriesRecordings) { in EpisodicProgramLoadTask() 102 public List<SeriesRecording> getSeriesRecordings() { in getSeriesRecordings() 164 == SeriesRecording.OPTION_CHANNEL_ALL in execute() 269 SeriesRecordingCursorFilter(List<SeriesRecording> seriesRecordings) { 275 for (SeriesRecording r : seriesRecordings) { 296 for (SeriesRecording seriesRecording : mSeriesRecordings) { 301 program, SeriesRecording.OPTION_CHANNEL_ALL); [all …]
|
D | DvrDatabaseHelper.java | 34 import com.android.tv.dvr.data.SeriesRecording; 134 defaultConstraint(SeriesRecording.DEFAULT_PRIORITY)), 446 public void insertSeriesRecordings(SeriesRecording... seriesRecordings) { in insertSeriesRecordings() 451 for (SeriesRecording r : seriesRecordings) { in insertSeriesRecordings() 453 ContentValues values = SeriesRecording.toContentValues(r); in insertSeriesRecordings() 464 public void updateSeriesRecordings(SeriesRecording... seriesRecordings) { in updateSeriesRecordings() 469 for (SeriesRecording r : seriesRecordings) { in updateSeriesRecordings() 471 ContentValues values = SeriesRecording.toContentValues(r); in updateSeriesRecordings() 483 public void deleteSeriesRecordings(SeriesRecording... seriesRecordings) { in deleteSeriesRecordings() 488 for (SeriesRecording r : seriesRecordings) { in deleteSeriesRecordings()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 47 import com.android.tv.dvr.data.SeriesRecording; 107 if (lhs instanceof SeriesRecording) { 108 lhs = mSeriesId2LatestProgram.get(((SeriesRecording) lhs).getSeriesId()); 110 if (rhs instanceof SeriesRecording) { 111 rhs = mSeriesId2LatestProgram.get(((SeriesRecording) rhs).getSeriesId()); 217 SeriesRecording.class, new SeriesRecordingPresenter(context)) in onCreate() 359 public void onSeriesRecordingAdded(SeriesRecording... seriesRecordings) { in onSeriesRecordingAdded() 365 public void onSeriesRecordingRemoved(SeriesRecording... seriesRecordings) { in onSeriesRecordingRemoved() 371 public void onSeriesRecordingChanged(SeriesRecording... seriesRecordings) { in onSeriesRecordingChanged() 449 List<SeriesRecording> recordings = mDvrDataManager.getSeriesRecordings(); in startBrowseIfDvrInitialized() [all …]
|
D | SeriesRecordingPresenter.java | 32 import com.android.tv.dvr.data.SeriesRecording; 36 class SeriesRecordingPresenter extends DvrItemPresenter<SeriesRecording> { 45 private SeriesRecording mSeriesRecording; 136 protected void onBound(SeriesRecording seriesRecording) { in onBound() 204 public void onBindDvrItemViewHolder(DvrItemViewHolder baseHolder, SeriesRecording series) { in onBindDvrItemViewHolder()
|
D | SeriesRecordingDetailsFragment.java | 42 import com.android.tv.dvr.data.SeriesRecording; 60 private SeriesRecording mSeries; 241 public void onSeriesRecordingAdded(SeriesRecording... seriesRecordings) {} 244 public void onSeriesRecordingChanged(SeriesRecording... seriesRecordings) { 245 for (SeriesRecording series : seriesRecordings) { 253 public void onSeriesRecordingRemoved(SeriesRecording... seriesRecordings) { 254 for (SeriesRecording series : seriesRecordings) {
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingSchedulerTest.java | 28 import com.android.tv.dvr.data.SeriesRecording; 58 private final SeriesRecording mBaseSeriesRecording = 59 new SeriesRecording.Builder() 88 SeriesRecording seriesRecording = in testPickOneProgramPerEpisode_onePerEpisode() 89 SeriesRecording.buildFrom(mBaseSeriesRecording).setId(SERIES_RECORDING_ID1).build(); in testPickOneProgramPerEpisode_onePerEpisode() 112 SeriesRecording seriesRecording = in testPickOneProgramPerEpisode_manyPerEpisode() 113 SeriesRecording.buildFrom(mBaseSeriesRecording).setId(SERIES_RECORDING_ID1).build(); in testPickOneProgramPerEpisode_manyPerEpisode() 141 SeriesRecording seriesRecording = in testPickOneProgramPerEpisode_nullEpisode() 142 SeriesRecording.buildFrom(mBaseSeriesRecording).setId(SERIES_RECORDING_ID1).build(); in testPickOneProgramPerEpisode_nullEpisode()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | DvrSeriesSchedulesFragment.java | 42 import com.android.tv.dvr.data.SeriesRecording; 67 private SeriesRecording mSeriesRecording; 74 public void onSeriesRecordingAdded(SeriesRecording... seriesRecordings) {} 77 public void onSeriesRecordingRemoved(SeriesRecording... seriesRecordings) { 78 for (SeriesRecording r : seriesRecordings) { 87 public void onSeriesRecordingChanged(SeriesRecording... seriesRecordings) { 88 for (SeriesRecording r : seriesRecordings) { 171 if (mSeriesRecording.getState() == SeriesRecording.STATE_SERIES_STOPPED) { in updateEmptyMessage() 212 && mSeriesRecording.getState() == SeriesRecording.STATE_SERIES_STOPPED) { in getFirstItemPosition()
|
D | SchedulesHeaderRow.java | 20 import com.android.tv.dvr.data.SeriesRecording; 83 private SeriesRecording mSeriesRecording; 90 SeriesRecording series, in SeriesRecordingHeaderRow() 103 public SeriesRecording getSeriesRecording() { in getSeriesRecording() 108 public void setSeriesRecording(SeriesRecording seriesRecording) { in setSeriesRecording()
|
D | SeriesScheduleRowAdapter.java | 35 import com.android.tv.dvr.data.SeriesRecording; 51 private final SeriesRecording mSeriesRecording; 61 SeriesRecording seriesRecording) { in SeriesScheduleRowAdapter() 216 public void onSeriesRecordingUpdated(SeriesRecording seriesRecording) { in onSeriesRecordingUpdated()
|