/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 45 import com.android.tv.dvr.data.RecordedProgram; 88 private final HashMap<String, RecordedProgram> mSeriesId2LatestProgram = new HashMap<>(); 113 if (lhs instanceof RecordedProgram) { 114 if (rhs instanceof RecordedProgram) { 115 return RecordedProgram.START_TIME_THEN_ID_COMPARATOR 117 .compare((RecordedProgram) lhs, (RecordedProgram) rhs); 121 } else if (rhs instanceof RecordedProgram) { 151 } else if (rhs instanceof RecordedProgram) { 153 RecordedProgram recorded = (RecordedProgram) rhs; 163 } 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/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/ |
D | DvrDataManagerImpl.java | 49 import com.android.tv.dvr.data.RecordedProgram; 99 private final HashMap<Long, RecordedProgram> mRecordedPrograms = new HashMap<>(); 107 private final HashMap<Long, RecordedProgram> mRecordedProgramsForRemovedInput = new HashMap<>(); 396 private void onRecordedProgramsLoadedFinished(Uri uri, List<RecordedProgram> recordedPrograms) { in onRecordedProgramsLoadedFinished() 406 for (RecordedProgram recorded : recordedPrograms) { in onRecordedProgramsLoadedFinished() 420 List<RecordedProgram> oldRecordedPrograms = in onRecordedProgramsLoadedFinished() 424 notifyRecordedProgramsRemoved(RecordedProgram.toArray(oldRecordedPrograms)); in onRecordedProgramsLoadedFinished() 426 HashMap<Long, RecordedProgram> oldRecordedPrograms = in onRecordedProgramsLoadedFinished() 430 List<RecordedProgram> addedRecordedPrograms = new ArrayList<>(); in onRecordedProgramsLoadedFinished() 431 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 | 50 import com.android.tv.dvr.data.RecordedProgram; 127 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) { in DvrManager() 131 for (RecordedProgram recordedProgram : recordedPrograms) { in DvrManager() 137 public void onRecordedProgramsChanged(RecordedProgram... recordedPrograms) {} in DvrManager() 140 public void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { in DvrManager() 148 List<RecordedProgram> recordedPrograms) { in createSeriesRecordingsForRecordedProgramsIfNeeded() 149 for (RecordedProgram recordedProgram : recordedPrograms) { in createSeriesRecordingsForRecordedProgramsIfNeeded() 154 private void createSeriesRecordingForRecordedProgramIfNeeded(RecordedProgram recordedProgram) { in createSeriesRecordingForRecordedProgramIfNeeded() 304 private void addSeriesRecording(RecordedProgram recordedProgram) { in addSeriesRecording() 318 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 | 25 import com.android.tv.dvr.data.RecordedProgram; 79 public int getWatchedStatus(RecordedProgram recordedProgram) { in getWatchedStatus() 93 if (recordedProgramId == RecordedProgram.ID_NOT_SET) { in addListener()
|
/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 | 50 import com.android.tv.dvr.data.RecordedProgram; 75 private RecordedProgram mProgram; 262 ((RecordedProgram) itemViewHolder.view.getTag()).getId(); in onActivityCreated() 328 public RecordedProgram getNextEpisode(RecordedProgram program) { in getNextEpisode() 333 return (RecordedProgram) mRelatedRecordingsRowAdapter.get(position); in getNextEpisode() 460 List<RecordedProgram> relatedPrograms = in updateRelatedRecordingsRow() 462 for (RecordedProgram program : relatedPrograms) { in updateRelatedRecordingsRow() 501 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; 136 public void onRecordedProgramsAdded(RecordedProgram... recordedPrograms) { in onRecordedProgramsAdded() 138 for (RecordedProgram p : recordedPrograms) { in onRecordedProgramsAdded() 148 public void onRecordedProgramsChanged(RecordedProgram... recordedPrograms) { in onRecordedProgramsChanged() 150 for (RecordedProgram program : recordedPrograms) { in onRecordedProgramsChanged() 162 public void onRecordedProgramsRemoved(RecordedProgram... recordedPrograms) { in onRecordedProgramsRemoved() 164 for (RecordedProgram p : recordedPrograms) { in onRecordedProgramsRemoved()
|
D | DvrHistoryRowAdapter.java | 31 import com.android.tv.dvr.data.RecordedProgram; 82 List<RecordedProgram> recordedProgramList = mDvrDataManager.getRecordedPrograms(); in start() 135 List<RecordedProgram> programs, long maxDays) { in recordedProgramsToScheduledRecordings() 137 for (RecordedProgram recordedProgram : programs) { in recordedProgramsToScheduledRecordings() 149 RecordedProgram program, long maxDays) { in recordedProgramsToScheduledRecordings() 174 public void onScheduledRecordingAdded(RecordedProgram program) { in onScheduledRecordingAdded() 200 public void onScheduledRecordingRemoved(RecordedProgram program) { in onScheduledRecordingRemoved() 230 public void onScheduledRecordingUpdated(RecordedProgram program) { in onScheduledRecordingUpdated() 313 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 | 53 public abstract class RecordedProgram extends BaseProgramImpl { class 88 public static RecordedProgram fromCursor(Cursor cursor) { in fromCursor() 135 public static ContentValues toValues(Context context, RecordedProgram recordedProgram) { in toValues() 311 abstract RecordedProgram autoBuild(); in autoBuild() 313 public RecordedProgram build() { in build() 357 public static final Comparator<RecordedProgram> START_TIME_THEN_ID_COMPARATOR = 358 (RecordedProgram lhs, RecordedProgram rhs) -> { 460 public RecordedProgram withId(long id) { in withId() 475 public static RecordedProgram[] toArray(Collection<RecordedProgram> recordedPrograms) { in toArray() 476 return recordedPrograms.toArray(new RecordedProgram[recordedPrograms.size()]); in toArray()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/list/ |
D | DvrHistoryRowAdapterTest.java | 25 import com.android.tv.dvr.data.RecordedProgram; 72 private static RecordedProgram sRecordedProgram; 238 private static RecordedProgram buildRecordedProgramForTest( in buildRecordedProgramForTest() 240 RecordedProgram.Builder builder = in buildRecordedProgramForTest() 241 RecordedProgram.builder() in buildRecordedProgramForTest()
|
/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/util/ |
D | AsyncDbTask.java | 39 import com.android.tv.dvr.data.RecordedProgram; 373 extends AsyncQueryListTask<RecordedProgram> { 375 super(executor, context, uri, RecordedProgram.PROJECTION, null, null, null); in AsyncRecordedProgramQueryTask() 379 protected final RecordedProgram fromCursor(Cursor c) { in fromCursor() 380 return RecordedProgram.fromCursor(c); in fromCursor()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragmentTest.java | 19 import com.android.tv.dvr.data.RecordedProgram; 56 private RecordedProgram buildRecordedProgramForTest(long id, long start, long end) { in buildRecordedProgramForTest() 57 return RecordedProgram.builder() in buildRecordedProgramForTest()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | InternalDataUtils.java | 25 import com.android.tv.dvr.data.RecordedProgram; 105 byte[] bytes, RecordedProgram.Builder builder) { in deserializeInternalProviderData() 125 public static byte[] serializeInternalProviderData(RecordedProgram program) { in serializeInternalProviderData()
|