/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 44 import com.android.tv.dvr.data.RecordedProgram; 87 private final HashMap<String, RecordedProgram> mSeriesId2LatestProgram = new HashMap<>(); 112 if (lhs instanceof RecordedProgram) { 113 if (rhs instanceof RecordedProgram) { 114 return RecordedProgram.START_TIME_THEN_ID_COMPARATOR 116 .compare((RecordedProgram) lhs, (RecordedProgram) rhs); 120 } else if (rhs instanceof RecordedProgram) { 150 } else if (rhs instanceof RecordedProgram) { 152 RecordedProgram recorded = (RecordedProgram) rhs; 162 } else if (lhs instanceof RecordedProgram) { [all …]
|
D | SeriesRecordingDetailsFragment.java | 41 import com.android.tv.dvr.data.RecordedProgram; 63 private List<RecordedProgram> mRecordedPrograms; 64 private RecordedProgram mRecommendRecordedProgram; 113 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in updateWatchAction() 114 Collections.sort(programs, RecordedProgram.EPISODE_COMPARATOR); in updateWatchAction() 149 Collections.sort(mRecordedPrograms, RecordedProgram.SEASON_REVERSED_EPISODE_COMPARATOR); in onLoadRecordingDetails() 187 for (RecordedProgram program : mRecordedPrograms) { in setupRecordedProgramsRow() 221 private RecordedProgram getRecommendProgram(List<RecordedProgram> programs) { 223 RecordedProgram program = programs.get(i); 263 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) { [all …]
|
D | SeriesRecordingPresenter.java | 30 import com.android.tv.dvr.data.RecordedProgram; 92 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) { in onRecordedProgramsAdded() 94 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsAdded() 108 public void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { in onRecordedProgramsRemoved() 110 for (RecordedProgram recordedProgram : recordedPrograms) { in onRecordedProgramsRemoved() 126 public void onRecordedProgramsChanged(RecordedProgram... recordedPrograms) { in onRecordedProgramsChanged() 140 for (RecordedProgram recordedProgram : in onBound() 161 List<RecordedProgram> recordedPrograms = in updateCardViewContent() 167 for (RecordedProgram recordedProgram : recordedPrograms) { in updateCardViewContent()
|
D | RecordedProgramPresenter.java | 25 import com.android.tv.dvr.data.RecordedProgram; 29 public class RecordedProgramPresenter extends DvrItemPresenter<RecordedProgram> { 39 private RecordedProgram mProgram; 73 protected void onBound(RecordedProgram program) { in onBound() 116 public void onBindDvrItemViewHolder(DvrItemViewHolder baseHolder, RecordedProgram program) { in onBindDvrItemViewHolder() 127 private String generateMajorContent(RecordedProgram program) { in generateMajorContent() 147 private String generateMinorContent(RecordedProgram program) { in generateMinorContent()
|
D | RecordedProgramDetailsFragment.java | 31 import com.android.tv.dvr.data.RecordedProgram; 44 private RecordedProgram mRecordedProgram; 163 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) {} 166 public void onRecordedProgramsChanged(RecordedProgram... recordedPrograms) {} 169 public void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { 170 for (RecordedProgram recordedProgram : recordedPrograms) {
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecordedProgramPreviewUpdater.java | 28 import com.android.tv.dvr.data.RecordedProgram; 66 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) { in RecordedProgramPreviewUpdater() 72 public void onRecordedProgramsChanged(RecordedProgram... recordedPrograms) { in RecordedProgramPreviewUpdater() 78 public void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { in RecordedProgramPreviewUpdater() 116 Set<RecordedProgram> recordedPrograms = generateRecommendationRecordedPrograms(); in updatePreviewDataForRecordedProgramsInternal() 146 private Set<RecordedProgram> generateRecommendationRecordedPrograms() { in generateRecommendationRecordedPrograms() 147 Set<RecordedProgram> programs = new HashSet<>(); in generateRecommendationRecordedPrograms() 148 ArrayList<RecordedProgram> sortedRecordedPrograms = in generateRecommendationRecordedPrograms() 151 sortedRecordedPrograms, RecordedProgram.START_TIME_THEN_ID_COMPARATOR.reversed()); in generateRecommendationRecordedPrograms() 152 for (RecordedProgram recordedProgram : sortedRecordedPrograms) { in generateRecommendationRecordedPrograms() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrDataManagerImpl.java | 47 import com.android.tv.dvr.data.RecordedProgram; 89 private final HashMap<Long, RecordedProgram> mRecordedPrograms = new HashMap<>(); 97 private final HashMap<Long, RecordedProgram> mRecordedProgramsForRemovedInput = new HashMap<>(); 367 private void onRecordedProgramsLoadedFinished(Uri uri, List<RecordedProgram> recordedPrograms) { in onRecordedProgramsLoadedFinished() 377 for (RecordedProgram recorded : recordedPrograms) { in onRecordedProgramsLoadedFinished() 391 List<RecordedProgram> oldRecordedPrograms = in onRecordedProgramsLoadedFinished() 395 notifyRecordedProgramsRemoved(RecordedProgram.toArray(oldRecordedPrograms)); in onRecordedProgramsLoadedFinished() 397 HashMap<Long, RecordedProgram> oldRecordedPrograms = in onRecordedProgramsLoadedFinished() 401 List<RecordedProgram> addedRecordedPrograms = new ArrayList<>(); in onRecordedProgramsLoadedFinished() 402 List<RecordedProgram> changedRecordedPrograms = new ArrayList<>(); in onRecordedProgramsLoadedFinished() [all …]
|
D | DvrDataManager.java | 23 import com.android.tv.dvr.data.RecordedProgram; 44 List<RecordedProgram> getRecordedPrograms(); in getRecordedPrograms() 47 List<RecordedProgram> getRecordedPrograms(long seriesRecordingId); in getRecordedPrograms() 145 RecordedProgram getRecordedProgram(long recordingId); in getRecordedProgram() 204 void onRecordedProgramsAdded(RecordedProgram... recordedPrograms); in onRecordedProgramsAdded() 206 void onRecordedProgramsChanged(RecordedProgram... recordedPrograms); in onRecordedProgramsChanged() 208 void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms); in onRecordedProgramsRemoved()
|
D | DvrManager.java | 49 import com.android.tv.dvr.data.RecordedProgram; 125 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) { in DvrManager() 129 for (RecordedProgram recordedProgram : recordedPrograms) { in DvrManager() 135 public void onRecordedProgramsChanged(RecordedProgram... recordedPrograms) {} in DvrManager() 138 public void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { in DvrManager() 146 List<RecordedProgram> recordedPrograms) { in createSeriesRecordingsForRecordedProgramsIfNeeded() 147 for (RecordedProgram recordedProgram : recordedPrograms) { in createSeriesRecordingsForRecordedProgramsIfNeeded() 152 private void createSeriesRecordingForRecordedProgramIfNeeded(RecordedProgram recordedProgram) { in createSeriesRecordingForRecordedProgramIfNeeded() 283 private void addSeriesRecording(RecordedProgram recordedProgram) { in addSeriesRecording() 297 for (RecordedProgram recordedProgram : mDataManager.getRecordedPrograms()) { in addRecordedProgramToSeriesRecording() [all …]
|
D | BaseDvrDataManager.java | 29 import com.android.tv.dvr.data.RecordedProgram; 139 protected final void notifyRecordedProgramsAdded(RecordedProgram... recordedPrograms) { in notifyRecordedProgramsAdded() 147 protected final void notifyRecordedProgramsChanged(RecordedProgram... recordedPrograms) { in notifyRecordedProgramsChanged() 155 protected final void notifyRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { in notifyRecordedProgramsRemoved() 295 public List<RecordedProgram> getRecordedPrograms(long seriesRecordingId) { in getRecordedPrograms() 300 List<RecordedProgram> result = new ArrayList<>(); in getRecordedPrograms() 301 for (RecordedProgram r : getRecordedPrograms()) { in getRecordedPrograms() 337 for (RecordedProgram r : getRecordedPrograms()) { in isEmptySeriesRecording()
|
D | DvrWatchedPositionManager.java | 24 import com.android.tv.dvr.data.RecordedProgram; 77 public int getWatchedStatus(RecordedProgram recordedProgram) { in getWatchedStatus() 91 if (recordedProgramId == RecordedProgram.ID_NOT_SET) { in addListener()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
D | DvrDataManagerInMemoryImpl.java | 29 import com.android.tv.dvr.data.RecordedProgram; 45 private final Map<Long, RecordedProgram> mRecordedPrograms = new HashMap<>(); 72 public List<RecordedProgram> getRecordedPrograms() { in getRecordedPrograms() 157 public void addRecordedProgram(RecordedProgram recordedProgram) { in addRecordedProgram() 161 public void updateRecordedProgram(RecordedProgram r) { in updateRecordedProgram() 171 public void removeRecordedProgram(RecordedProgram scheduledRecording) { in removeRecordedProgram() 200 public RecordedProgram addRecordedProgramInternal( in addRecordedProgramInternal() 201 RecordedProgram recordedProgram, boolean keepId) { in addRecordedProgramInternal() 204 recordedProgram.getId() == RecordedProgram.ID_NOT_SET, in addRecordedProgramInternal() 206 "expected id of " + RecordedProgram.ID_NOT_SET + " but was " + recordedProgram); in addRecordedProgramInternal() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackMediaSessionHelper.java | 36 import com.android.tv.dvr.data.RecordedProgram; 85 RecordedProgram nextEpisode = in DvrPlaybackMediaSessionHelper() 133 public void setupPlayback(RecordedProgram program, long seekPositionMs) { in setupPlayback() 144 public RecordedProgram getProgram() { in getProgram() 149 public boolean isCurrentProgram(RecordedProgram program) { in isCurrentProgram() 178 private void setupMediaSession(RecordedProgram program) { in setupMediaSession() 203 RecordedProgram program, in updatePosterArt() 222 private final RecordedProgram mRecordedProgram; 226 Activity activity, RecordedProgram program, MediaMetadata metadata) { in ProgramPosterArtCallback() 255 final RecordedProgram program, in updateMetadataImageInfo()
|
D | DvrPlaybackOverlayFragment.java | 49 import com.android.tv.dvr.data.RecordedProgram; 71 private RecordedProgram mProgram; 242 ((RecordedProgram) itemViewHolder.view.getTag()).getId(); in onActivityCreated() 300 public RecordedProgram getNextEpisode(RecordedProgram program) { in getNextEpisode() 305 return (RecordedProgram) mRelatedRecordingsRowAdapter.get(position); in getNextEpisode() 431 List<RecordedProgram> relatedPrograms = in updateRelatedRecordingsRow() 433 for (RecordedProgram program : relatedPrograms) { in updateRelatedRecordingsRow() 472 private RecordedProgram getProgramFromIntent(Intent intent) { in getProgramFromIntent()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | DvrHistoryFragment.java | 29 import com.android.tv.dvr.data.RecordedProgram; 129 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) { in onRecordedProgramsAdded() 131 for (RecordedProgram p : recordedPrograms) { in onRecordedProgramsAdded() 142 public void onRecordedProgramsChanged(RecordedProgram... recordedPrograms) { in onRecordedProgramsChanged() 144 for (RecordedProgram program : recordedPrograms) { in onRecordedProgramsChanged() 156 public void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { in onRecordedProgramsRemoved() 158 for (RecordedProgram p : recordedPrograms) { in onRecordedProgramsRemoved()
|
D | DvrHistoryRowAdapter.java | 32 import com.android.tv.dvr.data.RecordedProgram; 78 List<RecordedProgram> recordedProgramList = mDvrDataManager.getRecordedPrograms(); in start() 131 List<RecordedProgram> programs, int maxDays) { in recordedProgramsToScheduledRecordings() 133 for (RecordedProgram recordedProgram : programs) { in recordedProgramsToScheduledRecordings() 145 RecordedProgram program, int maxDays) { in recordedProgramsToScheduledRecordings() 170 public void onScheduledRecordingAdded(RecordedProgram program) { in onScheduledRecordingAdded() 196 public void onScheduledRecordingRemoved(RecordedProgram program) { in onScheduledRecordingRemoved() 226 public void onScheduledRecordingUpdated(RecordedProgram program) { in onScheduledRecordingUpdated() 307 private ScheduleRow findRowByRecordedProgram(RecordedProgram program) { in findRowByRecordedProgram()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | Utils.java | 122 public static class RecordedProgram extends BaseProgram { class in Utils 124 RecordedProgram(String pkgName, Long channelId) { in RecordedProgram() method in Utils.RecordedProgram 128 RecordedProgram(long id, String pkgName, Long channelId) { in RecordedProgram() method in Utils.RecordedProgram 135 if (!(obj instanceof RecordedProgram)) { in equals() 138 RecordedProgram that = (RecordedProgram) obj; in equals() 265 ContentResolver resolver, long channelId, RecordedProgram... programs) { in insertRecordedPrograms() 269 for (RecordedProgram program : programs) { in insertRecordedPrograms() 276 public static Set<RecordedProgram> queryRecordedPrograms(ContentResolver resolver) { in queryRecordedPrograms() 286 Set<RecordedProgram> programs = Sets.newHashSet(); in queryRecordedPrograms() 290 new RecordedProgram(cursor.getLong(0), cursor.getString(1), channelId)); in queryRecordedPrograms()
|
D | BootCompletedReceiverTest.java | 21 import static com.android.providers.tv.Utils.RecordedProgram; 108 RecordedProgram recordedProgramInNonExistingPackage = in testPackageRemoved() 109 new RecordedProgram(NON_EXISTING_PACKAGE_NAME, channelInNonExistingPackageId); in testPackageRemoved() 123 RecordedProgram recordedProgramInExistingPackage = in testPackageRemoved() 124 new RecordedProgram(EXISTING_PACKAGE_NAME, channelInExistingPackageId); in testPackageRemoved()
|
D | PackageRemovedReceiverTest.java | 21 import static com.android.providers.tv.Utils.RecordedProgram; 99 RecordedProgram recordedProgramInPackage1 = in testPackageRemoved() 100 new RecordedProgram(FAKE_PACKAGE_NAME_1, channelInPackage1Id); in testPackageRemoved() 110 RecordedProgram recordedProgramInPackage2 = in testPackageRemoved() 111 new RecordedProgram(FAKE_PACKAGE_NAME_2, channelInPackage2Id); in testPackageRemoved()
|
/packages/apps/TV/src/com/android/tv/dvr/data/ |
D | RecordedProgram.java | 52 public abstract class RecordedProgram extends BaseProgram { class 87 public static RecordedProgram fromCursor(Cursor cursor) { in fromCursor() 134 public static ContentValues toValues(Context context, RecordedProgram recordedProgram) { in toValues() 310 abstract RecordedProgram autoBuild(); in autoBuild() 312 public RecordedProgram build() { in build() 356 public static final Comparator<RecordedProgram> START_TIME_THEN_ID_COMPARATOR = 357 (RecordedProgram lhs, RecordedProgram rhs) -> { 459 public RecordedProgram withId(long id) { in withId() 474 public static RecordedProgram[] toArray(Collection<RecordedProgram> recordedPrograms) { in toArray() 475 return recordedPrograms.toArray(new RecordedProgram[recordedPrograms.size()]); in toArray()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | AsyncDbTask.java | 37 import com.android.tv.dvr.data.RecordedProgram; 359 extends AsyncQueryListTask<RecordedProgram> { 361 super(executor, context, uri, RecordedProgram.PROJECTION, null, null, null); in AsyncRecordedProgramQueryTask() 365 protected final RecordedProgram fromCursor(Cursor c) { in fromCursor() 366 return RecordedProgram.fromCursor(c); in fromCursor()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrSeriesDeletionFragment.java | 36 import com.android.tv.dvr.data.RecordedProgram; 60 private List<RecordedProgram> mRecordings; 91 Collections.sort(mRecordings, RecordedProgram.EPISODE_COMPARATOR); in onAttach() 121 for (RecordedProgram recording : mRecordings) { in onCreateActions() 238 for (RecordedProgram r : mRecordings) {
|
/packages/apps/TV/src/com/android/tv/data/ |
D | InternalDataUtils.java | 23 import com.android.tv.dvr.data.RecordedProgram; 102 byte[] bytes, RecordedProgram.Builder builder) { in deserializeInternalProviderData() 122 public static byte[] serializeInternalProviderData(RecordedProgram program) { in serializeInternalProviderData()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerSessionWorkerExoV2.java | 660 private static class RecordedProgram { class in TunerSessionWorkerExoV2 671 public RecordedProgram(Cursor cursor) { in RecordedProgram() method in TunerSessionWorkerExoV2.RecordedProgram 679 public RecordedProgram(long channelId, String dataUri) { in RecordedProgram() method in TunerSessionWorkerExoV2.RecordedProgram 685 public static RecordedProgram onQuery(Cursor c) { in onQuery() 686 RecordedProgram recording = null; in onQuery() 688 recording = new RecordedProgram(c); in onQuery() 702 private RecordedProgram getRecordedProgram(Uri recordedUri) { in getRecordedProgram() 704 try (Cursor c = resolver.query(recordedUri, RecordedProgram.PROJECTION, null, null, null)) { in getRecordedProgram() 706 RecordedProgram result = RecordedProgram.onQuery(c); in getRecordedProgram() 725 RecordedProgram recording = getRecordedProgram(uri); in parseRecording()
|
D | TunerSessionWorker.java | 652 private static class RecordedProgram { class in TunerSessionWorker 663 public RecordedProgram(Cursor cursor) { in RecordedProgram() method in TunerSessionWorker.RecordedProgram 671 public RecordedProgram(long channelId, String dataUri) { in RecordedProgram() method in TunerSessionWorker.RecordedProgram 677 public static RecordedProgram onQuery(Cursor c) { in onQuery() 678 RecordedProgram recording = null; in onQuery() 680 recording = new RecordedProgram(c); in onQuery() 694 private RecordedProgram getRecordedProgram(Uri recordedUri) { in getRecordedProgram() 696 try (Cursor c = resolver.query(recordedUri, RecordedProgram.PROJECTION, null, null, null)) { in getRecordedProgram() 698 RecordedProgram result = RecordedProgram.onQuery(c); in getRecordedProgram() 715 RecordedProgram recording = getRecordedProgram(uri); in parseRecording()
|