Home
last modified time | relevance | path

Searched refs:programs (Results 1 – 25 of 38) sorted by relevance

12

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DEpgDataCleanupServiceTests.java134 private void insertPrograms(Program... programs) { in insertPrograms() argument
135 insertPrograms(Arrays.asList(programs)); in insertPrograms()
138 private void insertPrograms(Collection<Program> programs) { in insertPrograms() argument
143 for (Program program : programs) { in insertPrograms()
162 Set<Program> programs = Sets.newHashSet(); in queryPrograms() local
164 programs.add(new Program(cursor.getLong(0), cursor.getLong(1), cursor.getLong(2))); in queryPrograms()
166 return programs; in queryPrograms()
172 private void insertWatchedPrograms(Program... programs) { in insertWatchedPrograms() argument
173 insertWatchedPrograms(Arrays.asList(programs)); in insertWatchedPrograms()
176 private void insertWatchedPrograms(Collection<Program> programs) { in insertWatchedPrograms() argument
[all …]
DUtils.java200 ContentResolver resolver, long channelId, Program... programs) { in insertPrograms() argument
203 for (Program program : programs) { in insertPrograms()
220 Set<Program> programs = Sets.newHashSet(); in queryPrograms() local
222 programs.add(new Program(cursor.getLong(0), cursor.getString(1))); in queryPrograms()
224 return programs; in queryPrograms()
231 ContentResolver resolver, long channelId, PreviewProgram... programs) { in insertPreviewPrograms() argument
236 for (PreviewProgram program : programs) { in insertPreviewPrograms()
254 Set<PreviewProgram> programs = Sets.newHashSet(); in queryPreviewPrograms() local
256 programs.add(new PreviewProgram(cursor.getLong(0), cursor.getString(1))); in queryPreviewPrograms()
258 return programs; in queryPreviewPrograms()
[all …]
DTransientRowHelperTests.java130 private void insertPreviewPrograms(long channelId, PreviewProgram... programs) { in insertPreviewPrograms() argument
131 insertPreviewPrograms(channelId, Arrays.asList(programs)); in insertPreviewPrograms()
134 private void insertPreviewPrograms(long channelId, Collection<PreviewProgram> programs) { in insertPreviewPrograms() argument
137 for (PreviewProgram program : programs) { in insertPreviewPrograms()
155 Set<PreviewProgram> programs = Sets.newHashSet(); in queryPreviewPrograms() local
157 programs.add(new PreviewProgram(cursor.getLong(0), cursor.getInt(1) == 1)); in queryPreviewPrograms()
159 return programs; in queryPreviewPrograms()
/packages/apps/TV/src/com/android/tv/recommendation/
DChannelPreviewUpdater.java171 Set<Program> programs = new HashSet<>(); in updatePreviewDataForChannels() local
180 programs.add(program); in updatePreviewDataForChannels()
181 if (programs.size() >= RECOMMENDATION_COUNT) { in updatePreviewDataForChannels()
190 return programs; in updatePreviewDataForChannels()
220 protected void onPostExecute(Set<Program> programs) { in updatePreviewDataForChannels() argument
221 updatePreviewDataForChannelsInternal(programs); in updatePreviewDataForChannels()
226 private void updatePreviewDataForChannelsInternal(Set<Program> programs) { in updatePreviewDataForChannelsInternal() argument
232 if (programs.size() > MIN_COUNT_TO_ADD_ROW) { in updatePreviewDataForChannelsInternal()
245 createdPreviewChannelId, programs)); in updatePreviewDataForChannelsInternal()
254 + programs.size() in updatePreviewDataForChannelsInternal()
[all …]
DRecordedProgramPreviewUpdater.java147 Set<RecordedProgram> programs = new HashSet<>(); in generateRecommendationRecordedPrograms() local
154 programs.add(recordedProgram); in generateRecommendationRecordedPrograms()
155 if (programs.size() >= RECOMMENDATION_COUNT) { in generateRecommendationRecordedPrograms()
160 return programs; in generateRecommendationRecordedPrograms()
/packages/apps/TV/src/com/android/tv/data/
DProgramDataManager.java345 private int getProgramIndexAt(List<Program> programs, long time) { in getProgramIndexAt() argument
351 int index = Collections.binarySearch(programs, key); in getProgramIndexAt()
354 if (index > 0 && isProgramPlayedAt(programs.get(index - 1), time)) { in getProgramIndexAt()
575 ArrayList<Program> programs = programMap.get(program.getChannelId()); in doInBackground() local
576 if (programs == null) { in doInBackground()
577 programs = new ArrayList<>(); in doInBackground()
587 programMap.put(program.getChannelId(), programs); in doInBackground() local
589 programs.add(program); in doInBackground()
616 protected void onPostExecute(Map<Long, ArrayList<Program>> programs) { in onPostExecute() argument
635 mChannelIdProgramCache = programs; in onPostExecute()
[all …]
DPreviewDataManager.java162 Set<PreviewProgramContent> programs, in updatePreviewProgramsForChannel() argument
167 && currentRunningUpdateTask.getPrograms().equals(programs)) { in updatePreviewProgramsForChannel()
172 new UpdatePreviewProgramTask(previewChannelId, programs); in updatePreviewProgramsForChannel()
379 long previewChannelId, Set<PreviewProgramContent> programs) { in UpdatePreviewProgramTask() argument
381 mPrograms = programs; in UpdatePreviewProgramTask()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DSeriesRecordingDetailsFragment.java113 List<RecordedProgram> programs = mDvrDataManager.getRecordedPrograms(mSeries.getId()); in updateWatchAction() local
114 Collections.sort(programs, RecordedProgram.EPISODE_COMPARATOR); in updateWatchAction()
115 mRecommendRecordedProgram = getRecommendProgram(programs); in updateWatchAction()
221 private RecordedProgram getRecommendProgram(List<RecordedProgram> programs) {
222 for (int i = programs.size() - 1; i >= 0; i--) {
223 RecordedProgram program = programs.get(i);
231 if (i == programs.size() - 1) {
234 return programs.get(i + 1);
237 return programs.isEmpty() ? null : programs.get(0);
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java1101 List<Program> programs = new ArrayList<>(); in createDummyPrograms() local
1105 programs.add( in createDummyPrograms()
1113 programs.add( in createDummyPrograms()
1118 return programs; in createDummyPrograms()
1234 protected void onPostExecute(List<Program> programs) { in onPostExecute() argument
1254 if (programs == null || programs.isEmpty()) { in onPostExecute()
1266 removeOverlappedPrograms(programs); in onPostExecute()
1267 Program loadedProgram = programs.get(0); in onPostExecute()
1268 for (int i = 0; i < mPrograms.size() && !programs.isEmpty(); ++i) { in onPostExecute()
1273 programs.remove(0); in onPostExecute()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DSeriesRecordingScheduler.java397 List<SeriesRecording> seriesRecordings, List<Program> programs) { in pickOneProgramPerEpisode() argument
398 return pickOneProgramPerEpisode(mDataManager, seriesRecordings, programs); in pickOneProgramPerEpisode()
405 List<Program> programs) { in pickOneProgramPerEpisode() argument
415 for (Program program : programs) { in pickOneProgramPerEpisode()
490 protected void onPostExecute(List<Program> programs) { in onPostExecute() argument
491 if (DEBUG) Log.d(TAG, "onPostExecute: updating schedules with programs:" + programs); in onPostExecute()
493 if (programs == null) { in onPostExecute()
500 pickOneProgramPerEpisode(getSeriesRecordings(), programs); in onPostExecute()
517 protected void onCancelled(List<Program> programs) { in onCancelled() argument
/packages/apps/TV/src/com/android/tv/dvr/provider/
DEpisodicProgramLoadTask.java180 protected void onPostExecute(List<Program> programs) {} in onPostExecute() argument
183 protected void onCancelled(List<Program> programs) {} in onCancelled() argument
196 protected void onPostExecute(List<Program> programs) { in createTask()
197 EpisodicProgramLoadTask.this.onPostExecute(programs); in createTask()
201 protected void onCancelled(List<Program> programs) { in createTask() argument
202 EpisodicProgramLoadTask.this.onCancelled(programs); in createTask()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DSeriesScheduleRowAdapter.java84 public void setPrograms(List<Program> programs) { in setPrograms() argument
85 if (programs == null) { in setPrograms()
86 programs = Collections.emptyList(); in setPrograms()
90 List<Program> sortedPrograms = new ArrayList<>(programs); in setPrograms()
99 programs); in setPrograms()
DDvrSchedulesActivity.java91 protected void onPostExecute(List<Program> programs) { in onCreate() argument
99 programs == null ? Collections.EMPTY_LIST : programs); in onCreate()
DDvrSeriesSchedulesFragment.java221 protected void onPostExecute(List<Program> programs) { in executeProgramLoadingTask()
222 mPrograms = programs == null ? Collections.EMPTY_LIST : programs; in executeProgramLoadingTask()
DSchedulesHeaderRow.java90 List<Program> programs) { in SeriesRecordingHeaderRow() argument
93 mPrograms = programs; in SeriesRecordingHeaderRow()
DDvrHistoryRowAdapter.java131 List<RecordedProgram> programs, int maxDays) { in recordedProgramsToScheduledRecordings() argument
133 for (RecordedProgram recordedProgram : programs) { in recordedProgramsToScheduledRecordings()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrUiHelper.java458 @Nullable List<Program> programs, in startSeriesSettingsActivity() argument
470 if (programs != null) { in startSeriesSettingsActivity()
474 programs, in startSeriesSettingsActivity()
523 @NonNull List<Program> programs, in startSeriesSettingsActivityInternal() argument
529 programs != null, TAG, "Start series settings activity but programs is null"); in startSeriesSettingsActivityInternal()
533 BigArguments.setArgument(DvrSeriesSettingsActivity.PROGRAM_LIST, programs); in startSeriesSettingsActivityInternal()
549 List<Program> programs) { in startSeriesScheduledDialogActivity() argument
561 DvrSeriesScheduledFragment.SERIES_SCHEDULED_KEY_PROGRAMS, programs); in startSeriesScheduledDialogActivity()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java488 List<Program> programs = new ArrayList(entry.getValue()); in batchUpdateEpg() local
489 if (programs == null) { in batchUpdateEpg()
492 Collections.sort(programs); in batchUpdateEpg()
495 "Batch fetched " + programs.size() + " programs for channel " + entry.getKey()); in batchUpdateEpg()
497 mContext, mClock, entry.getKey().getChannel().getId(), programs); in batchUpdateEpg()
710 List<Program> programs = new ArrayList<>(mEpgReader.getPrograms(epgChannel)); in fetchEpgFor() local
712 Collections.sort(programs); in fetchEpgFor()
716 + programs.size() in fetchEpgFor()
720 mContext, mClock, epgChannel.getChannel().getId(), programs); in fetchEpgFor()
DEpgFetchHelper.java220 ArrayList<Program> programs = new ArrayList<>(); in queryPrograms() local
222 programs.add(Program.fromCursor(c)); in queryPrograms()
224 return programs; in queryPrograms()
/packages/apps/Car/Radio/src/com/android/car/radio/storage/
DRadioStorage.java107 protected Void doInBackground(Program... programs) { in doInBackground() argument
108 mDatabase.insertFavorite(programs[0]); in doInBackground()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DEpgTestData.java188 private static Iterable<Program> updateTime(long time, Program... programs) {
190 ImmutableList.copyOf(programs),
DFakeEpgReader.java133 Iterable<Program> programs = getPrograms(epgChannel); in getPrograms() local
137 ImmutableList.copyOf(Iterables.filter(programs, isProgramDuring(validRange)))); in getPrograms()
/packages/apps/Car/Radio/src/com/android/car/radio/
DBrowseAdapter.java123 public void setProgramList(@NonNull List<ProgramInfo> programs) { in setProgramList() argument
124 Map<ProgramSelector.Identifier, ProgramInfo> liveMap = programs.stream().collect( in setProgramList()
/packages/apps/TV/src/com/android/tv/guide/
DProgramManager.java625 List<Program> programs = mProgramDataManager.getPrograms(channelId, mStartUtcMillis); in createProgramEntries() local
626 for (Program program : programs) { in createProgramEntries()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java597 public void onProgramsArrived(TunerChannel channel, List<EitItem> programs) { in onProgramsArrived() argument
598 sendMessage(MSG_SCHEDULE_OF_PROGRAMS, new Pair<>(channel, programs)); in onProgramsArrived()
612 public void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs) { in onRequestProgramsResponse() argument
613 sendMessage(MSG_PROGRAM_DATA_RESULT, new Pair<>(channel, programs)); in onRequestProgramsResponse()

12