/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
H A D | EpgDataCleanupServiceTests.java | 134 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 D | PackageRemovedReceiverTest.java | 125 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 D | TransientRowHelperTests.java | 127 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/src/com/android/tv/dvr/ui/list/ |
H A D | SchedulesHeaderRow.java | 107 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 D | SeriesScheduleRowAdapter.java | 87 * 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
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
H A D | EpisodicProgramLoadTask.java | 48 * 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/dvr/recorder/ |
H A D | SeriesRecordingScheduler.java | 391 * <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/src/com/android/tv/dvr/ui/browse/ |
H A D | SeriesRecordingDetailsFragment.java | 115 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/recommendation/ |
H A D | ChannelPreviewUpdater.java | 47 /** 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...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | DvrUiHelper.java | 445 * @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/tuner/tvinput/ |
H A D | ChannelDataManager.java | 119 * 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:
|
H A D | TunerSessionWorker.java | 531 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:"
|
/packages/apps/TV/src/com/android/tv/data/ |
H A D | PreviewDataManager.java | 187 * 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
|
H A D | ProgramDataManager.java | 76 // 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...] |
/packages/apps/TV/src/com/android/tv/ |
H A D | TimeShiftManager.java | 60 * {@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...] |