Searched refs:programs (Results 1 - 23 of 23) sorted by relevance

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DEpgDataCleanupServiceTests.java134 private void insertPrograms(Program... programs) { argument
135 insertPrograms(Arrays.asList(programs));
138 private void insertPrograms(Collection<Program> programs) { argument
143 for (Program program : programs) {
162 Set<Program> programs = Sets.newHashSet();
164 programs.add(new Program(cursor.getLong(0), cursor.getLong(1), cursor.getLong(2)));
166 return programs;
172 private void insertWatchedPrograms(Program... programs) { argument
173 insertWatchedPrograms(Arrays.asList(programs));
176 private void insertWatchedPrograms(Collection<Program> programs) { argument
[all...]
H A DPackageRemovedReceiverTest.java125 private void insertPrograms(long channelId, Program... programs) { argument
126 insertPrograms(channelId, Arrays.asList(programs));
129 private void insertPrograms(long channelId, Collection<Program> programs) { argument
132 for (Program program : programs) {
148 Set<Program> programs = Sets.newHashSet();
150 programs.add(new Program(cursor.getLong(0), cursor.getString(1)));
152 return programs;
H A DTransientRowHelperTests.java127 private void insertPreviewPrograms(long channelId, PreviewProgram... programs) { argument
128 insertPreviewPrograms(channelId, Arrays.asList(programs));
131 private void insertPreviewPrograms(long channelId, Collection<PreviewProgram> programs) { argument
134 for (PreviewProgram program : programs) {
152 Set<PreviewProgram> programs = Sets.newHashSet();
154 programs.add(new PreviewProgram(cursor.getLong(0), cursor.getInt(1) == 1));
156 return programs;
192 assertEquals("Before reboot all the programs inserted should exist.",
201 assertEquals("Transient program and programs in transient channel should be removed.",
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/
H A DSeriesRecordingSchedulerTest.java82 List<Program> programs = new ArrayList<>();
85 programs.add(program1);
88 programs.add(program2);
90 mDataManager, Collections.singletonList(seriesRecording), programs);
99 List<Program> programs = new ArrayList<>();
102 programs.add(program1);
104 programs.add(program2);
107 programs.add(program3);
109 programs.add(program4);
111 mDataManager, Collections.singletonList(seriesRecording), programs);
[all...]
/packages/apps/TV/src/com/android/tv/recommendation/
H A DChannelPreviewUpdater.java47 /** Class for updating the preview programs for {@link Channel}. */
114 * Starts the routine service for updating the preview programs.
142 * Updates the preview programs table.
177 Set<Program> programs = new HashSet<>();
184 programs.add(program);
185 if (programs.size() >= RECOMMENDATION_COUNT) {
191 return programs;
215 // We recommend those programs that meet the condition only.
221 protected void onPostExecute(Set<Program> programs) {
222 updatePreviewDataForChannelsInternal(programs);
227 updatePreviewDataForChannelsInternal(Set<Program> programs) argument
256 generatePreviewProgramContentsFromPrograms( long previewChannelId, Set<Program> programs) argument
[all...]
H A DRecordedProgramPreviewUpdater.java73 if (DEBUG) Log.d(TAG, "Add new preview recorded programs");
79 if (DEBUG) Log.d(TAG, "Update preview recorded programs");
85 if (DEBUG) Log.d(TAG, "Delete preview recorded programs");
92 * Updates the preview data for recorded programs.
151 Set<RecordedProgram> programs = new HashSet<>();
158 programs.add(recordedProgram);
159 if (programs.size() >= RECOMMENDATION_COUNT) {
164 return programs;
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
H A DSchedulesHeaderRow.java107 SeriesRecording series, List<Program> programs) {
110 mPrograms = programs;
114 * Returns the list of programs which belong to the series.
106 SeriesRecordingHeaderRow(String title, String description, int itemCount, SeriesRecording series, List<Program> programs) argument
H A DDvrSchedulesActivity.java75 // The programs will be passed to the DvrSeriesSchedulesFragment, so don't need
84 // To get programs faster, hold the update of the series schedules.
88 protected void onPostExecute(List<Program> programs) {
96 programs == null ? Collections.EMPTY_LIST : programs);
H A DSeriesScheduleRowAdapter.java87 * Sets the programs to show.
89 public void setPrograms(List<Program> programs) { argument
90 if (programs == null) {
91 programs = Collections.emptyList();
95 List<Program> sortedPrograms = new ArrayList<>(programs);
99 null, sortedPrograms.size(), mSeriesRecording, programs);
257 * Should take the current time argument which is the time when the programs are checked in
H A DDvrSeriesSchedulesFragment.java60 * The key for programs which belong to the series recording whose scheduled recording list
223 protected void onPostExecute(List<Program> programs) {
224 mPrograms = programs == null ? Collections.EMPTY_LIST : programs;
/packages/apps/TV/src/com/android/tv/data/
H A DProgramDataManager.java76 // COLUMN_CHANNEL_ID, COLUMN_END_TIME_UTC_MILLIS are added to detect duplicated programs.
77 // Duplicated programs are always consecutive by the sorting order.
152 * Set the program prefetch update wait which gives the delay to query all programs from DB
170 // to the handler. If not, another DB task can be executed before loading current programs.
211 /** Returns all the current programs. */
277 * Returns the programs for the given channel which ends after the given start time.
296 // If there isn't, return the first program among programs that starts after the given time
298 private int getProgramIndexAt(List<Program> programs, long time) { argument
304 int index = Collections.binarySearch(programs, key);
307 if (index > 0 && isProgramPlayedAt(programs
517 onPostExecute(Map<Long, ArrayList<Program>> programs) argument
583 onPostExecute(List<Program> programs) argument
[all...]
H A DPreviewDataManager.java187 * Updates the preview programs table for a specific preview channel.
190 Set<PreviewProgramContent> programs, PreviewDataListener previewDataListener) {
194 && currentRunningUpdateTask.getPrograms().equals(programs)) {
199 new UpdatePreviewProgramTask(previewChannelId, programs);
244 // Query preview channels and programs.
392 * Updates the whole data which belongs to the package in preview programs table for a
402 Set<PreviewProgramContent> programs) {
404 mPrograms = programs;
189 updatePreviewProgramsForChannel(long previewChannelId, Set<PreviewProgramContent> programs, PreviewDataListener previewDataListener) argument
401 UpdatePreviewProgramTask(long previewChannelId, Set<PreviewProgramContent> programs) argument
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
H A DSeriesRecordingDetailsFragment.java115 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId());
116 Collections.sort(programs, RecordedProgram.EPISODE_COMPARATOR);
117 mRecommendRecordedProgram = getRecommendProgram(programs);
211 * The programs are sorted by season number and episode number.
213 private RecordedProgram getRecommendProgram(List<RecordedProgram> programs) { argument
214 for (int i = programs.size() - 1 ; i >= 0 ; i--) {
215 RecordedProgram program = programs.get(i);
223 if (i == programs.size() - 1) {
226 return programs.get(i + 1);
229 return programs
[all...]
/packages/apps/TV/src/com/android/tv/dvr/provider/
H A DEpisodicProgramLoadTask.java48 * A wrapper of AsyncProgramQueryTask to load the episodic programs for the series recordings.
78 // If true, match programs with OPTION_CHANNEL_ALL.
85 * Constructor used to load programs for one series recording with the given channel option.
92 * Constructor used to load programs for multiple series recordings. The channel option is
117 * Enables loading current programs. The default value is {@code false}.
137 * Enables loading disallowed programs whose schedules were removed manually by the user.
148 * Gives the option whether to ignore the channel option when matching programs.
190 protected void onPostExecute(List<Program> programs) { argument
196 protected void onCancelled(List<Program> programs) { argument
204 protected void onPostExecute(List<Program> programs) {
[all...]
/packages/apps/TV/src/com/android/tv/
H A DTimeShiftManager.java60 * {@link ProgramManager} loads programs of the current channel in the background.
994 // Insert dummy programs if the holes exist in the list.
1030 // Skip previous programs.
1038 // Remove overlapped programs.
1050 // Returns a list of dummy programs.
1053 // we need to create multiple dummy programs.
1059 "createDummyProgram: long duration of dummy programs are requested ("
1065 List<Program> programs = new ArrayList<>();
1069 programs.add(new Program.Builder()
1076 programs
1185 onPostExecute(List<Program> programs) argument
1235 onCancelled(List<Program> programs) argument
[all...]
/packages/apps/TV/src/com/android/tv/data/epg/
H A DEpgFetcher.java413 List<Program> programs = entry.getValue();
414 if (programs == null) {
417 Collections.sort(programs);
418 Log.i(TAG, "Batch fetched " + programs.size() + " programs for channel "
420 EpgFetchHelper.updateEpgData(mContext, entry.getKey(), programs);
571 List<Program> programs = new ArrayList<>(mEpgReader.getPrograms(channelId));
573 Collections.sort(programs);
574 Log.i(TAG, "Fetched " + programs.size() + " programs fo
[all...]
H A DEpgFetchHelper.java60 * compare the broadcasting time and try to match each newly fetched program with old programs
63 * time remove those old programs which conflicts with the inserted one.
81 // Compare the new programs with old programs one by one and update/delete the old one
91 // Exact match. No need to update. Move on to the next programs.
112 // No match. The new program does not match any of the old programs. Insert
118 // No old programs. Just insert new programs.
141 Log.e(TAG, "Failed to insert programs.", e);
148 Log.d(TAG, "Updated " + fetchedProgramsCount + " programs fo
[all...]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
H A DSeriesRecordingScheduler.java391 * <p>Note that the programs which has been already scheduled have the highest priority, and all
398 List<SeriesRecording> seriesRecordings, List<Program> programs) {
399 return pickOneProgramPerEpisode(mDataManager, seriesRecordings, programs);
407 List<Program> programs) {
415 // Group programs by the episode.
417 for (Program program : programs) {
421 // Add all the programs if it doesn't have season number or episode number.
454 // Add all the scheduled programs
490 protected void onPostExecute(List<Program> programs) { argument
491 if (DEBUG) Log.d(TAG, "onPostExecute: updating schedules with programs
397 pickOneProgramPerEpisode( List<SeriesRecording> seriesRecordings, List<Program> programs) argument
405 pickOneProgramPerEpisode( DvrDataManager dataManager, List<SeriesRecording> seriesRecordings, List<Program> programs) argument
516 onCancelled(List<Program> programs) argument
[all...]
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DProgramDataManagerTest.java147 List<Program> programs =
151 for (Program program : programs) {
158 long startTimeMs = programs.get(0).getStartTimeUtcMillis();
159 programs = mProgramDataManager.getPrograms(channelId, startTimeMs);
160 assertEquals(startTimeMs, programs.get(0).getStartTimeUtcMillis());
163 programs = mProgramDataManager.getPrograms(channelId,
165 for (Program program : programs) {
340 * Simulate program data appends at the end of the existing programs.
341 * This appends programs until the maximum program query range
400 * @param channelId channel ID to query programs belong
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DDvrUiHelper.java445 * @param programs list of programs which belong to the series.
448 @Nullable List<Program> programs, boolean removeEmptySeriesSchedule,
456 if (programs != null) {
457 startSeriesSettingsActivityInternal(context, seriesRecordingId, programs,
490 @NonNull List<Program> programs, boolean removeEmptySeriesSchedule,
493 SoftPreconditions.checkState(programs != null,
494 TAG, "Start series settings activity but programs is null");
498 BigArguments.setArgument(DvrSeriesSettingsActivity.PROGRAM_LIST, programs);
513 List<Program> programs) {
447 startSeriesSettingsActivity(Context context, long seriesRecordingId, @Nullable List<Program> programs, boolean removeEmptySeriesSchedule, boolean isWindowTranslucent, boolean showViewScheduleOptionInDialog, Program currentProgram) argument
489 startSeriesSettingsActivityInternal(Context context, long seriesRecordingId, @NonNull List<Program> programs, boolean removeEmptySeriesSchedule, boolean isWindowTranslucent, boolean showViewScheduleOptionInDialog, Program currentProgram) argument
511 StartSeriesScheduledDialogActivity(Context context, SeriesRecording seriesRecording, boolean showViewScheduleOptionInDialog, List<Program> programs) argument
[all...]
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramManager.java44 * Manages the channels and programs for the program guide.
422 * (e.g., whose channelId is INVALID_ID), when it corresponds to a gap between programs.
514 * Build genre filters based on the current programs.
594 List<Program> programs = mProgramDataManager.getPrograms(channelId, mStartUtcMillis);
595 for (Program program : programs) {
665 * programs. This is needed for {@link ProgramListAdapter} because
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
H A DTunerSessionWorker.java531 public void onProgramsArrived(TunerChannel channel, List<EitItem> programs) { argument
532 sendMessage(MSG_SCHEDULE_OF_PROGRAMS, new Pair<>(channel, programs));
546 public void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs) { argument
547 sendMessage(MSG_PROGRAM_DATA_RESULT, new Pair<>(channel, programs));
1509 // this means that there is a change of playback status and the programs of the current
1513 Log.d(TAG, "reschedule programs size:"
H A DChannelDataManager.java119 * Invoked when a request for getting programs of a channel has been processed and passes
120 * the requested channel and the programs retrieved from database to the listener.
122 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); argument
125 * Invoked when programs of a channel have been arrived and passes the arrived channel and
126 * programs to the listener.
128 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); argument
382 // Schedule the audio and caption tracks of the current program and the programs being
392 // TODO: Find a right way to check if the programs are added outside.
402 // Inserting programs only when there is no overlapping with existing data assuming that:

Completed in 216 milliseconds